private void InitActions(IContainer components)
        {
            _actionList = new TActionList(components);

            _actionAddImage        = new TAction(components);
            _actionRemoveImage     = new TAction(components);
            _actionRemoveAllImages = new TAction(components);
            _actionEditImage       = new TAction(components);
            _actionAddMultiple     = new TAction(components);

            _actionList.Actions.AddRange(new TAction[] {
                _actionAddImage,
                _actionRemoveImage,
                _actionRemoveAllImages,
                _actionEditImage,
                _actionAddMultiple
            });

            _actionAddImage.Execute   += ActionAddImageExecute;
            _actionAddImage.Enabled    = false;
            _actionAddImage.Hint       = "Adds a new image";
            _actionAddImage.ImageIndex = 0;
            _actionAddImage.Text       = "Add";
            _actionAddImage.SetComponent(toolButtonAddImage, true);
            _actionAddImage.SetComponent(popupAdd, true);
            //_actionAddCommand.ShowTextOnToolBar = false;

            _actionRemoveImage.Execute   += ActionRemoveImageExecute;
            _actionRemoveImage.Enabled    = false;
            _actionRemoveImage.Hint       = "Remove the selected image";
            _actionRemoveImage.ImageIndex = 1;
            _actionRemoveImage.Text       = "Remove";
            _actionRemoveImage.SetComponent(toolButtonRemoveImage, true);

            _actionRemoveAllImages.Execute += ActionRemoveAllImagesExecute;
            //_actionRemoveAllImages.ImageIndex = 1;
            _actionRemoveAllImages.Text = "Remove All";
            _actionRemoveAllImages.SetComponent(toolButtonRemoveAllImages, true);

            _actionEditImage.Execute   += ActionEditImageExecute;
            _actionEditImage.Enabled    = false;
            _actionEditImage.Hint       = "Edit the selected image";
            _actionEditImage.ImageIndex = 2;
            _actionEditImage.Text       = "Edit";
            _actionEditImage.SetComponent(toolButtonEditImage, true);

            _actionAddMultiple.Execute += ActionAddMultipleExecute;
            _actionAddMultiple.Hint     = "Add multiple images with different resolutions";
            //_actionAddMultiple.ImageIndex = 2;
            _actionAddMultiple.Text = "Add Multiple Images";
            _actionAddMultiple.SetComponent(popupAddMultiple, true);

            _actionList.ImageList = _imageListToolbars;
        }
Beispiel #2
0
        private void InitActions()
        {
            _actionList = new TActionList(components);

            _actionPreview            = new TAction(components);
            _actionOpen               = new TAction(components);
            _actionNew                = new TAction(components);
            _actionConvertImage       = new TAction(components);
            _actionGenerateCommandIDs = new TAction(components);
            _actionSaveAs             = new TAction(components);
            _actionSave               = new TAction(components);
            _actionSettings           = new TAction(components);
            _actionExit               = new TAction(components);
            //_actionNewBlank = new TAction(components);
            _actionBuild               = new TAction(components);
            _actionTutorial            = new TAction(components);
            _actionWebSite             = new TAction(components);
            _actionDotnetWebSite       = new TAction(components);
            _actionMSDN                = new TAction(components);
            _actionSetResourceName     = new TAction(components);
            _actionGenerateResourceIDs = new TAction(components);

            //_actionList.SetAction(MenuAddCommand, ActionAddCommand);
            _actionList.Actions.AddRange(new TAction[] {
                _actionPreview,
                _actionOpen,
                _actionNew,
                _actionConvertImage,
                _actionGenerateCommandIDs,
                _actionSaveAs,
                _actionSave,
                _actionSettings,
                _actionExit,
                //_actionNewBlank,
                _actionBuild,
                _actionTutorial,
                _actionWebSite,
                _actionDotnetWebSite,
                _actionMSDN,
                _actionSetResourceName,
                _actionGenerateResourceIDs
            });

            _actionPreview.Execute     += ActionPreviewExecute;
            _actionPreview.Enabled      = false;                     //@ added
            _actionPreview.Hint         = "Preview the ribbon (F9)"; //@ "Build & Preview the ribbon (F9)"
            _actionPreview.ImageIndex   = 3;
            _actionPreview.Text         = "Preview";
            _actionPreview.ShortcutKeys = Keys.F9;
            _actionPreview.SetComponent(toolButtonPreview, true);
            _actionPreview.SetComponent(menuPreview, true);

            _actionOpen.Execute     += ActionOpenExecute;
            _actionOpen.Hint         = "Open an existing Ribbon document (Ctrl+O)";
            _actionOpen.ImageIndex   = 1;
            _actionOpen.Text         = "Open";
            _actionOpen.ShortcutKeys = (Keys)(Keys.Control | Keys.O);
            _actionOpen.SetComponent(toolButtonOpen, true);
            _actionOpen.SetComponent(menuOpen, true);
            //_actionAddCommand.ShowTextOnToolBar = false;

            _actionNew.Execute     += ActionNewExecute;
            _actionNew.Hint         = "Create a new Ribbon document (Ctrl+N)";
            _actionNew.ImageIndex   = 0;
            _actionNew.Text         = "New";
            _actionNew.ShortcutKeys = (Keys)(Keys.Control | Keys.N);
            _actionNew.SetComponent(menuNew, true);

            //_actionConvertImage.Visible = false;
            //_nN9.Visible = false;
            _actionConvertImage.Execute += ActionImageExecute;
            _actionConvertImage.Hint     = "Convert to Bitmaps with Alpha channel";
            //_actionConvertImage.ImageIndex = 0;
            _actionConvertImage.Text = "Convert Images";
            //_actionConvertImage.ShortcutKeys = (Keys)(Keys.Control | Keys.N);
            _actionConvertImage.SetComponent(menuImage, true);

            _actionGenerateCommandIDs.Execute += ActionGenerateCommandIDsExecute;
            _actionGenerateCommandIDs.Hint     = "Generates and sets IDs for all commands in this markup.";
            _actionGenerateCommandIDs.Text     = "Auto generate IDs for all commands";
            _actionGenerateCommandIDs.SetComponent(autoGenerateIdsForAllCommands, true);

            _actionSaveAs.Execute     += ActionSaveAsExecute;
            _actionSaveAs.Enabled      = false; //@ added
            _actionSaveAs.Hint         = "Saves the Ribbon document under a new name (Shift+Ctrl+S)";
            _actionSaveAs.Text         = "Save As";
            _actionSaveAs.ShortcutKeys = (Keys)(Keys.Shift | Keys.Control | Keys.S);
            _actionSaveAs.SetComponent(menuSaveAs, true);

            _actionSave.Execute     += ActionSaveExecute;
            _actionSave.Enabled      = false; //@ added
            _actionSave.Hint         = "Saves the Ribbon document (Ctrl+S)";
            _actionSave.ImageIndex   = 2;
            _actionSave.Text         = "Save";
            _actionSave.ShortcutKeys = (Keys)(Keys.Control | Keys.S);
            _actionSave.SetComponent(toolButtonSave, true);
            _actionSave.SetComponent(menuSave, true);

            _actionSettings.Execute   += ActionSettingsExecute;
            _actionSettings.ImageIndex = 4;
            _actionSettings.Text       = "Settings";
            _actionSettings.SetComponent(menuSettings, true);

            _actionExit.Execute += ActionExitExecute;
            _actionExit.Hint     = "Exits the " + RS_RIBBON_TOOLS;
            _actionExit.Text     = "Exit";
            _actionExit.SetComponent(menuExit, true);

            //_actionNewBlank.Hint = "Create a new blank Ribbon Document";
            //_actionNewBlank.Text = "Empty Ribbon Document";
            ////_actionNewBlank.Shortcut = (Shortcut)16462;
            //_actionNewBlank.SetComponent(menuNew, true);

            _actionBuild.Execute     += ActionBuildExecute;
            _actionBuild.Enabled      = false; //@ added
            _actionBuild.Hint         = "Build the ribbon (Ctrl+F9)";
            _actionBuild.ImageIndex   = 5;
            _actionBuild.Text         = "Build";
            _actionBuild.ShortcutKeys = (Keys)(Keys.Control | Keys.F9);
            _actionBuild.SetComponent(toolButtonBuild, true);
            _actionBuild.SetComponent(menuBuild, true);

            _actionTutorial.Execute   += ActionTutorialExecute;
            _actionTutorial.ImageIndex = 7;
            _actionTutorial.Text       = "Tutorial";
            _actionTutorial.SetComponent(menuTutorial, true);

            _actionWebSite.Execute   += ActionWebSiteExecute;
            _actionWebSite.ImageIndex = 7;
            _actionWebSite.Text       = "Ribbon Framework for Delphi website";
            _actionWebSite.SetComponent(menuWebSite, true);
            _actionWebSite.Visible = false;

            _actionDotnetWebSite.Execute   += ActionDotnetWebSiteExecute;
            _actionDotnetWebSite.Hint       = "C#, VB Ribbon Framework";
            _actionDotnetWebSite.ImageIndex = 7;
            _actionDotnetWebSite.Text       = "Website for .NET Windows Ribbon";
            _actionDotnetWebSite.SetComponent(menuDotnetWebSite, true);

            _actionMSDN.Execute   += ActionMSDNExecute;
            _actionMSDN.ImageIndex = 6;
            _actionMSDN.Text       = "MSDN Windows Ribbon";
            _actionMSDN.SetComponent(menuMSDN, true);

            _actionSetResourceName.Visible  = Settings.Instance.AllowChangingResourceName; // false; //@ not supported in .NET Ribbon
            _actionSetResourceName.Execute += ActionSetResourceNameExecute;
            _actionSetResourceName.Hint     =
                "Set a resource name for the markup. This is necessary " + Environment.NewLine +
                "if multiple markups are used in one application." + Environment.NewLine +
                "The default is APPLICATION" + Environment.NewLine +
                Environment.NewLine + "Changing of default is not supported in .NET Ribbon";

            _actionSetResourceName.Text = "Set ribbon resource name";
            _actionSetResourceName.SetComponent(setresourcename, true);

            _actionGenerateResourceIDs.Execute += ActionGenerateResourceIDsExecute;
            _actionGenerateResourceIDs.Hint     =
                "Generates and sets IDs for all resources in this markup." + Environment.NewLine +
                "(For applications that use multiple different ribbons," + Environment.NewLine +
                "it may be necessary to set IDs explicitly," + Environment.NewLine +
                "so that there are no conflicting resource IDs)";
            _actionGenerateResourceIDs.Text         = "Auto generate IDs for all resources";
            _actionGenerateResourceIDs.ShortcutKeys = (Keys)(Keys.Control | Keys.G);
            _actionGenerateResourceIDs.SetComponent(autoGenerateIdsForAllResources, true);

            _actionList.ImageList = _imageListMain;
        }
Beispiel #3
0
        private void InitActions(IContainer components)
        {
            _actionList = new TActionList(components);

            _actionAdd                      = new TAction(components);
            _actionRemove                   = new TAction(components);
            _actionMoveUp                   = new TAction(components);
            _actionMoveDown                 = new TAction(components);
            _actionAddButton                = new TAction(components);
            _actionAddToggleButton          = new TAction(components);
            _actionAddDropDownButton        = new TAction(components);
            _actionAddSplitButton           = new TAction(components);
            _actionAddCheckBox              = new TAction(components);
            _actionAddDropDownGallery       = new TAction(components);
            _actionAddSplitButtonGallery    = new TAction(components);
            _actionAddDropDownColorPicker   = new TAction(components);
            _actionAddMenuGroup             = new TAction(components);
            _actionAddQatButton             = new TAction(components);
            _actionAddQatToggleButton       = new TAction(components);
            _actionAddQatCheckBox           = new TAction(components);
            _actionAddQatComboBox           = new TAction(components);
            _actionAddQatDropDownGallery    = new TAction(components);
            _actionAddQatSplitButtonGallery = new TAction(components);
            _actionAddQatInRibbonGallery    = new TAction(components);
            _actionAddRibbonSizeDefinition  = new TAction(components);
            _actionAddGroupSizeDefinition   = new TAction(components);
            _actionAddControlSizeDefinition = new TAction(components);
            _actionAddControlSizeGroup      = new TAction(components);
            _actionAddColumnBreak           = new TAction(components);
            _actionAddRow                   = new TAction(components);
            _actionAddGroup                 = new TAction(components);
            _actionAddScale                 = new TAction(components);
            _actionAddControlGroup          = new TAction(components);
            _actionAddComboBox              = new TAction(components);
            _actionAddSpinner               = new TAction(components);
            _actionAddInRibbonGallery       = new TAction(components);
            _actionAddFontControl           = new TAction(components);
            _actionAddFloatieFontControl    = new TAction(components);
            _actionAddTab                   = new TAction(components);
            _actionAddTabGroup              = new TAction(components);
            _actionAddContextPopup          = new TAction(components);
            _actionAddMiniToolbar           = new TAction(components);
            _actionAddContextMenu           = new TAction(components);
            _actionAddContextMap            = new TAction(components);
            _actionAddMiniToolbarMenuGroup  = new TAction(components);

            _actionList.Actions.AddRange(new TAction[] {
                _actionAdd,
                _actionRemove,
                _actionMoveUp,
                _actionMoveDown,
                _actionAddButton,
                _actionAddToggleButton,
                _actionAddDropDownButton,
                _actionAddSplitButton,
                _actionAddCheckBox,
                _actionAddDropDownGallery,
                _actionAddSplitButtonGallery,
                _actionAddDropDownColorPicker,
                _actionAddMenuGroup,
                _actionAddQatButton,
                _actionAddQatToggleButton,
                _actionAddQatCheckBox,
                _actionAddQatComboBox,
                _actionAddQatDropDownGallery,
                _actionAddQatSplitButtonGallery,
                _actionAddQatInRibbonGallery,
                _actionAddRibbonSizeDefinition,
                _actionAddGroupSizeDefinition,
                _actionAddControlSizeDefinition,
                _actionAddControlSizeGroup,
                _actionAddColumnBreak,
                _actionAddRow,
                _actionAddGroup,
                _actionAddScale,
                _actionAddControlGroup,
                _actionAddComboBox,
                _actionAddSpinner,
                _actionAddInRibbonGallery,
                _actionAddFontControl,
                _actionAddFloatieFontControl,
                _actionAddTab,
                _actionAddTabGroup,
                _actionAddContextPopup,
                _actionAddMiniToolbar,
                _actionAddContextMenu,
                _actionAddContextMap,
                _actionAddMiniToolbarMenuGroup,
            });

            _actionAdd.Update    += TreeActionUpdate;
            _actionAdd.Hint       = "Adds a subitem to the selected node";
            _actionAdd.ImageIndex = 36;
            _actionAdd.Text       = "Add";
            _actionAdd.SetComponent(toolButtonAdd, true);

            _actionRemove.Execute     += ActionRemoveExecute;
            _actionRemove.Update      += TreeActionUpdate;
            _actionRemove.Hint         = "Removes the selected item";
            _actionRemove.ImageIndex   = 37;
            _actionRemove.ShortcutKeys = Keys.Control | Keys.Delete;
            _actionRemove.Text         = "Remove";
            _actionRemove.SetComponent(toolButtonRemove, true);
            _actionRemove.SetComponent(popupRemove, true);

            _actionMoveUp.Execute     += ActionMoveUpExecute;
            _actionMoveUp.Update      += TreeActionUpdate;
            _actionMoveUp.ImageIndex   = 38;
            _actionMoveUp.ShortcutKeys = Keys.Control | Keys.Up;
            _actionMoveUp.Text         = "Up";
            _actionMoveUp.SetComponent(toolButtonMoveUp, true);
            _actionMoveUp.SetComponent(popupMoveUp, true);

            _actionMoveDown.Execute     += ActionMoveDownExecute;
            _actionMoveDown.Update      += TreeActionUpdate;
            _actionMoveDown.ImageIndex   = 39;
            _actionMoveDown.ShortcutKeys = Keys.Control | Keys.Down;
            _actionMoveDown.Text         = "Down";
            _actionMoveDown.SetComponent(toolButtonMoveDown, true);
            _actionMoveDown.SetComponent(popupMoveDown, true);

            _actionAddButton.Execute   += ActionAddButtonExecute;
            _actionAddButton.ImageIndex = 0;
            _actionAddButton.Text       = "Add Button";
            _actionAddButton.SetComponent(popupAddButton, true);
            _actionAddButton.SetComponent(menuAddButton, true);

            _actionAddToggleButton.Execute   += ActionAddToggleButtonExecute;
            _actionAddToggleButton.ImageIndex = 1;
            _actionAddToggleButton.Text       = "Add ToggleButton";
            _actionAddToggleButton.SetComponent(popupAddToggleButton, true);
            _actionAddToggleButton.SetComponent(menuAddToggleButton, true);

            _actionAddDropDownButton.Execute   += ActionAddDropDownButtonExecute;
            _actionAddDropDownButton.ImageIndex = 3;
            _actionAddDropDownButton.Text       = "Add DropDownButton";
            _actionAddDropDownButton.SetComponent(popupAddDropDownButton, true);
            _actionAddDropDownButton.SetComponent(menuAddDropDownButton, true);

            _actionAddSplitButton.Execute   += ActionAddSplitButtonExecute;
            _actionAddSplitButton.ImageIndex = 2;
            _actionAddSplitButton.Text       = "Add SplitButton";
            _actionAddSplitButton.SetComponent(popupAddSplitButton, true);
            _actionAddSplitButton.SetComponent(menuAddSplitButton, true);

            _actionAddCheckBox.Execute   += ActionAddCheckBoxExecute;
            _actionAddCheckBox.ImageIndex = 10;
            _actionAddCheckBox.Text       = "Add CheckBox";
            _actionAddCheckBox.SetComponent(popupAddCheckBox, true);
            _actionAddCheckBox.SetComponent(menuAddCheckBox, true);

            _actionAddDropDownGallery.Execute   += ActionAddDropDownGalleryExecute;
            _actionAddDropDownGallery.ImageIndex = 15;
            _actionAddDropDownGallery.Text       = "Add DropDownGallery";
            _actionAddDropDownGallery.SetComponent(popupAddDropDownGallery, true);
            _actionAddDropDownGallery.SetComponent(menuAddDropDownGallery, true);

            _actionAddSplitButtonGallery.Execute   += ActionAddSplitButtonGalleryExecute;
            _actionAddSplitButtonGallery.ImageIndex = 16;
            _actionAddSplitButtonGallery.Text       = "Add SplitButtonGallery";
            _actionAddSplitButtonGallery.SetComponent(popupAddSplitButtonGallery, true);
            _actionAddSplitButtonGallery.SetComponent(menuAddSplitButtonGallery, true);

            _actionAddDropDownColorPicker.Execute   += ActionAddDropDownColorPickerExecute;
            _actionAddDropDownColorPicker.ImageIndex = 4;
            _actionAddDropDownColorPicker.Text       = "Add DropDownColorPicker";
            _actionAddDropDownColorPicker.SetComponent(popupAddDropDownColorPicker, true);
            _actionAddDropDownColorPicker.SetComponent(menuAddDropDownColorPicker, true);

            _actionAddMenuGroup.Execute   += ActionAddMenuGroupExecute;
            _actionAddMenuGroup.ImageIndex = 24;
            _actionAddMenuGroup.Text       = "Add MenuGroup";
            _actionAddMenuGroup.SetComponent(popupAddMenuGroup, true);
            _actionAddMenuGroup.SetComponent(menuAddMenuGroup, true);

            _actionAddQatButton.Execute   += ActionAddQatButtonExecute;
            _actionAddQatButton.ImageIndex = 0;
            _actionAddQatButton.Text       = "Add Qat Button";
            _actionAddQatButton.SetComponent(popupAddQatButton, true);
            _actionAddQatButton.SetComponent(menuAddQatButton, true);

            _actionAddQatToggleButton.Execute   += ActionAddQatToggleButtonExecute;
            _actionAddQatToggleButton.ImageIndex = 1;
            _actionAddQatToggleButton.Text       = "Add Qat ToggleButton";
            _actionAddQatToggleButton.SetComponent(popupAddQatToggleButton, true);
            _actionAddQatToggleButton.SetComponent(menuAddQatToggleButton, true);

            _actionAddQatCheckBox.Execute   += ActionAddQatCheckBoxExecute;
            _actionAddQatCheckBox.ImageIndex = 10;
            _actionAddQatCheckBox.Text       = "Add Qat CheckBox";
            _actionAddQatCheckBox.SetComponent(popupAddQatCheckBox, true);
            _actionAddQatCheckBox.SetComponent(menuAddQatCheckBox, true);

            _actionAddQatComboBox.Execute   += ActionAddQatComboBoxExecute;
            _actionAddQatComboBox.Hint       = "Since Windows 8";
            _actionAddQatComboBox.ImageIndex = 7;
            _actionAddQatComboBox.Text       = "Add Qat ComboBox";
            _actionAddQatComboBox.SetComponent(popupAddQatComboBox, true);
            _actionAddQatComboBox.SetComponent(menuAddQatComboBox, true);

            _actionAddQatDropDownGallery.Execute   += ActionAddQatDropDownGalleryExecute;
            _actionAddQatDropDownGallery.Hint       = "Since Windows 8";
            _actionAddQatDropDownGallery.ImageIndex = 15;
            _actionAddQatDropDownGallery.Text       = "Add Qat DropDownGallery";
            _actionAddQatDropDownGallery.SetComponent(popupAddQatDropDownGallery, true);
            _actionAddQatDropDownGallery.SetComponent(menuAddQatDropDownGallery, true);

            _actionAddQatSplitButtonGallery.Execute   += ActionAddQatSplitButtonGalleryExecute;
            _actionAddQatSplitButtonGallery.Hint       = "Since Windows 8";
            _actionAddQatSplitButtonGallery.ImageIndex = 16;
            _actionAddQatSplitButtonGallery.Text       = "Add Qat SplitButtonGallery";
            _actionAddQatSplitButtonGallery.SetComponent(popupAddQatSplitButtonGallery, true);
            _actionAddQatSplitButtonGallery.SetComponent(menuAddQatSplitButtonGallery, true);

            _actionAddQatInRibbonGallery.Execute   += ActionAddQatInRibbonGalleryExecute;
            _actionAddQatInRibbonGallery.Hint       = "Since Windows 8";
            _actionAddQatInRibbonGallery.ImageIndex = 17;
            _actionAddQatInRibbonGallery.Text       = "Add Qat InRibbonGallery";
            _actionAddQatInRibbonGallery.SetComponent(popupAddQatInRibbonGallery, true);
            _actionAddQatInRibbonGallery.SetComponent(menuAddQatInRibbonGallery, true);

            _actionAddRibbonSizeDefinition.Execute   += ActionAddRibbonSizeDefinitionExecute;
            _actionAddRibbonSizeDefinition.ImageIndex = 25;
            _actionAddRibbonSizeDefinition.Text       = "Add Ribbon SizeDefinition";
            _actionAddRibbonSizeDefinition.SetComponent(popupAddRibbonSizeDefinition, true);
            _actionAddRibbonSizeDefinition.SetComponent(menuAddRibbonSizeDefinition, true);

            _actionAddGroupSizeDefinition.Execute   += ActionAddGroupSizeDefinitionExecute;
            _actionAddGroupSizeDefinition.ImageIndex = 30;
            _actionAddGroupSizeDefinition.Text       = "Add GroupSizeDefinition";
            _actionAddGroupSizeDefinition.SetComponent(popupAddGroupSizeDefinition, true);
            _actionAddGroupSizeDefinition.SetComponent(menuAddGroupSizeDefinition, true);

            _actionAddControlSizeDefinition.Execute   += ActionAddControlSizeDefinitionExecute;
            _actionAddControlSizeDefinition.ImageIndex = 31;
            _actionAddControlSizeDefinition.Text       = "Add ControlSizeDefinition";
            _actionAddControlSizeDefinition.SetComponent(popupAddControlSizeDefinition, true);
            _actionAddControlSizeDefinition.SetComponent(menuAddControlSizeDefinition, true);

            _actionAddControlSizeGroup.Execute   += ActionAddControlSizeGroupExecute;
            _actionAddControlSizeGroup.ImageIndex = 31;
            _actionAddControlSizeGroup.Text       = "Add ControlGroup";
            _actionAddControlSizeGroup.SetComponent(popupAddControlSizeGroup, true);
            _actionAddControlSizeGroup.SetComponent(menuAddControlSizeGroup, true);

            _actionAddColumnBreak.Execute   += ActionAddColumnBreakExecute;
            _actionAddColumnBreak.ImageIndex = 31;
            _actionAddColumnBreak.Text       = "Add ColumnBreak";
            _actionAddColumnBreak.SetComponent(popupAddColumnBreak, true);
            _actionAddColumnBreak.SetComponent(menuAddColumnBreak, true);

            _actionAddRow.Execute   += ActionAddRowExecute;
            _actionAddRow.ImageIndex = 31;
            _actionAddRow.Text       = "Add Row";
            _actionAddRow.SetComponent(popupAddRow, true);
            _actionAddRow.SetComponent(menuAddRow, true);

            _actionAddGroup.Execute   += ActionAddGroupExecute;
            _actionAddGroup.ImageIndex = 20;
            _actionAddGroup.Text       = "Add Group";
            _actionAddGroup.SetComponent(popupAddGroup, true);
            _actionAddGroup.SetComponent(menuAddGroup, true);

            _actionAddScale.Execute   += ActionAddScaleExecute;
            _actionAddScale.ImageIndex = 29;
            _actionAddScale.Text       = "Add Scale";
            _actionAddScale.SetComponent(popupAddScale, true);
            _actionAddScale.SetComponent(menuAddScale, true);

            _actionAddControlGroup.Execute   += ActionAddControlGroupExecute;
            _actionAddControlGroup.ImageIndex = 14;
            _actionAddControlGroup.Text       = "Add ControlGroup";
            _actionAddControlGroup.SetComponent(popupAddControlGroup, true);
            _actionAddControlGroup.SetComponent(menuAddControlGroup, true);

            _actionAddComboBox.Execute   += ActionAddComboBoxExecute;
            _actionAddComboBox.ImageIndex = 7;
            _actionAddComboBox.Text       = "Add ComboBox";
            _actionAddComboBox.SetComponent(popupAddComboBox, true);
            _actionAddComboBox.SetComponent(menuAddComboBox, true);

            _actionAddSpinner.Execute   += ActionAddSpinnerExecute;
            _actionAddSpinner.ImageIndex = 5;
            _actionAddSpinner.Text       = "Add Spinner";
            _actionAddSpinner.SetComponent(popupAddSpinner, true);
            _actionAddSpinner.SetComponent(menuAddSpinner, true);

            _actionAddInRibbonGallery.Execute   += ActionAddInRibbonGalleryExecute;
            _actionAddInRibbonGallery.ImageIndex = 17;
            _actionAddInRibbonGallery.Text       = "Add InRibbonGallery";
            _actionAddInRibbonGallery.SetComponent(popupAddInRibbonGallery, true);
            _actionAddInRibbonGallery.SetComponent(menuAddInRibbonGallery, true);

            _actionAddFontControl.Execute   += ActionAddFontControlExecute;
            _actionAddFontControl.ImageIndex = 13;
            _actionAddFontControl.Text       = "Add FontControl";
            _actionAddFontControl.SetComponent(popupAddFontControl, true);
            _actionAddFontControl.SetComponent(menuAddFontControl, true);

            _actionAddFloatieFontControl.Execute   += ActionAddFloatieFontControlExecute;
            _actionAddFloatieFontControl.ImageIndex = 12;
            _actionAddFloatieFontControl.Text       = "Add FloatieFontControl";
            _actionAddFloatieFontControl.SetComponent(popupAddFloatieFontControl, true);
            _actionAddFloatieFontControl.SetComponent(menuAddFloatieFontControl, true);

            _actionAddTab.Execute   += ActionAddTabExecute;
            _actionAddTab.ImageIndex = 21;
            _actionAddTab.Text       = "Add Tab";
            _actionAddTab.SetComponent(popupAddTab, true);
            _actionAddTab.SetComponent(menuAddTab, true);

            _actionAddTabGroup.Execute   += ActionAddTabGroupExecute;
            _actionAddTabGroup.ImageIndex = 22;
            _actionAddTabGroup.Text       = "Add TabGroup";
            _actionAddTabGroup.SetComponent(popupAddTabGroup, true);
            _actionAddTabGroup.SetComponent(menuAddTabGroup, true);

            //_actionAddContextPopup.Execute += ActionAddContextPopupExecute;
            //_actionAddContextPopup.ImageIndex = 32;
            //_actionAddContextPopup.Text = "Add ContextPopup";
            //_actionAddContextPopup.Visible = false;
            //_actionAddContextPopup.SetComponent(popupAddContextPopup, true);
            //_actionAddContextPopup.SetComponent(menuAddContextPopup, true);

            _actionAddMiniToolbar.Execute   += ActionAddMiniToolbarExecute;
            _actionAddMiniToolbar.ImageIndex = 33;
            _actionAddMiniToolbar.Text       = "Add MiniToolbar";
            _actionAddMiniToolbar.SetComponent(popupAddMiniToolbar, true);
            _actionAddMiniToolbar.SetComponent(menuAddMiniToolbar, true);

            _actionAddContextMenu.Execute   += ActionAddContextMenuExecute;
            _actionAddContextMenu.ImageIndex = 34;
            _actionAddContextMenu.Text       = "Add ContextMenu";
            _actionAddContextMenu.SetComponent(popupAddContextMenu, true);
            _actionAddContextMenu.SetComponent(menuAddContextMenu, true);

            _actionAddContextMap.Execute   += ActionAddContextMapExecute;
            _actionAddContextMap.ImageIndex = 35;
            _actionAddContextMap.Text       = "Add ContextMap";
            _actionAddContextMap.SetComponent(popupAddContextMap, true);
            _actionAddContextMap.SetComponent(menuAddContextMap, true);

            _actionAddMiniToolbarMenuGroup.Execute   += ActionAddMiniToolbarMenuGroupExecute;
            _actionAddMiniToolbarMenuGroup.ImageIndex = 24;
            _actionAddMiniToolbarMenuGroup.Text       = "Add MiniToolbar MenuGroup";
            _actionAddMiniToolbarMenuGroup.SetComponent(popupAddMiniToolbarMenuGroup, true);
            _actionAddMiniToolbarMenuGroup.SetComponent(menuAddMiniToolbarMenuGroup, true);

            _actionList.ImageList = _imageListTreeView;
        }
        private void InitActions()
        {
            _actionList = new TActionList(components);

            _actionAddCommand    = new TAction(components);
            _actionRemoveCommand = new TAction(components);
            _actionMoveUp        = new TAction(components);
            _actionMoveDown      = new TAction(components);
            _actionSearchCommand = new TAction(components);

            _actionList.Actions.AddRange(new TAction[] {
                _actionAddCommand,
                _actionRemoveCommand,
                _actionMoveUp,
                _actionMoveDown,
                _actionSearchCommand
            });

            _actionAddCommand.Execute     += ActionAddCommandExecute;
            _actionAddCommand.Update      += ActionAddCommandUpdate;
            _actionAddCommand.Hint         = "Adds a new command";
            _actionAddCommand.ImageIndex   = 0;
            _actionAddCommand.ShortcutKeys = Keys.Shift | Keys.Control | Keys.Insert;
            _actionAddCommand.Text         = "Add";
            _actionAddCommand.SetComponent(toolButtonAddCommand, true);
            _actionAddCommand.SetComponent(menuAddCommand, true);
            //_actionAddCommand.ShowTextOnToolBar = false;

            _actionRemoveCommand.Execute   += ActionRemoveCommandExecute;
            _actionRemoveCommand.Update    += ActionUpdate;
            _actionRemoveCommand.Hint       = "Removes the selected command";
            _actionRemoveCommand.ImageIndex = 1;
            _actionRemoveCommand.Text       = "Remove";
            _actionRemoveCommand.SetComponent(toolButtonRemoveCommand, true);
            _actionRemoveCommand.SetComponent(menuRemoveCommand, true);

            _actionMoveUp.Execute   += ActionMoveUpExecute;
            _actionMoveUp.Update    += ActionUpdateUp;
            _actionMoveUp.Hint       = "Moves the selected command up in the list";
            _actionMoveUp.ImageIndex = 2;
            _actionMoveUp.Text       = "Up";
            _actionMoveUp.SetComponent(toolButtonMoveUp, true);
            _actionMoveUp.SetComponent(menuMoveUp, true);

            _actionMoveDown.Execute   += ActionMoveDownExecute;
            _actionMoveDown.Update    += ActionUpdateDown;
            _actionMoveDown.Hint       = "Moves the selected command down in the list";
            _actionMoveDown.ImageIndex = 3;
            _actionMoveDown.Text       = "Down";
            _actionMoveDown.SetComponent(toolButtonMoveDown, true);
            _actionMoveDown.SetComponent(menuMoveDown, true);

            _actionSearchCommand.Execute     += ActionSearchCommandExecute;
            _actionSearchCommand.Update      += ActionUpdate;
            _actionSearchCommand.Hint         = string.Empty;
            _actionSearchCommand.ImageIndex   = 4;
            _actionSearchCommand.ShortcutKeys = Keys.Shift | Keys.F;
            _actionSearchCommand.Text         = "Search";
            _actionSearchCommand.SetComponent(toolButtonSearchCommand, true);

            _actionList.ImageList = _imageListToolbars;
        }