Changeset 42845 in vbox for trunk/src/VBox
- Timestamp:
- Aug 16, 2012 12:30:40 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r42767 r42845 241 241 void retranslateUi() 242 242 { 243 setText(QApplication::translate("UIActionPool", "Sort Group"));243 setText(QApplication::translate("UIActionPool", "Sort")); 244 244 setStatusTip(QApplication::translate("UIActionPool", "Sort the items of the selected virtual machine group alphabetically")); 245 245 setShortcut(gSS->keySequence(UISelectorShortcuts::SortGroup)); … … 607 607 }; 608 608 609 class UIActionSimple CommonSortParent : public UIActionSimple610 { 611 Q_OBJECT; 612 613 public: 614 615 UIActionSimple CommonSortParent(QObject *pParent)609 class UIActionSimpleMachineSortParent : public UIActionSimple 610 { 611 Q_OBJECT; 612 613 public: 614 615 UIActionSimpleMachineSortParent(QObject *pParent) 616 616 : UIActionSimple(pParent/*, ":/settings_16px.png", ":/settings_dis_16px.png"*/) 617 617 { … … 623 623 void retranslateUi() 624 624 { 625 setText(QApplication::translate("UIActionPool", "Sort Parent Group"));626 setStatusTip(QApplication::translate("UIActionPool", "Sort the parent group of the first selected itemalphabetically"));625 setText(QApplication::translate("UIActionPool", "Sort")); 626 setStatusTip(QApplication::translate("UIActionPool", "Sort the group of the first selected machine alphabetically")); 627 627 setShortcut(gSS->keySequence(UISelectorShortcuts::SortParentGroup)); 628 628 } … … 768 768 m_pool[UIActionIndexSelector_Simple_Machine_Remove] = new UIActionSimpleMachineRemove(this); 769 769 m_pool[UIActionIndexSelector_Simple_Machine_AddGroup] = new UIActionSimpleMachineAddGroup(this); 770 m_pool[UIActionIndexSelector_Simple_Machine_SortParent] = new UIActionSimpleMachineSortParent(this); 770 771 m_pool[UIActionIndexSelector_Simple_Machine_Close_Save] = new UIActionSimpleSave(this); 771 772 m_pool[UIActionIndexSelector_Simple_Machine_Close_ACPIShutdown] = new UIActionSimpleACPIShutdown(this); … … 782 783 m_pool[UIActionIndexSelector_Simple_Common_ShowInFileManager] = new UIActionSimpleCommonShowInFileManager(this); 783 784 m_pool[UIActionIndexSelector_Simple_Common_CreateShortcut] = new UIActionSimpleCommonCreateShortcut(this); 784 m_pool[UIActionIndexSelector_Simple_Common_SortParent] = new UIActionSimpleCommonSortParent(this);785 785 } 786 786 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h
r42767 r42845 50 50 UIActionIndexSelector_Simple_Machine_Remove, 51 51 UIActionIndexSelector_Simple_Machine_AddGroup, 52 UIActionIndexSelector_Simple_Machine_SortParent, 52 53 UIActionIndexSelector_Menu_Machine_Close, 53 54 UIActionIndexSelector_Simple_Machine_Close_Save, … … 65 66 UIActionIndexSelector_Simple_Common_ShowInFileManager, 66 67 UIActionIndexSelector_Simple_Common_CreateShortcut, 67 UIActionIndexSelector_Simple_Common_SortParent,68 68 69 69 /* Maximum index: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r42767 r42845 1154 1154 m_pAction_Common_ShowInFileManager = gActionPool->action(UIActionIndexSelector_Simple_Common_ShowInFileManager); 1155 1155 m_pAction_Common_CreateShortcut = gActionPool->action(UIActionIndexSelector_Simple_Common_CreateShortcut); 1156 m_pAction_Common_SortParent = gActionPool->action(UIActionIndexSelector_Simple_Common_SortParent);1157 1156 } 1158 1157 … … 1166 1165 void UISelectorWindow::prepareMachineActions() 1167 1166 { 1168 m_pAction_Machine_Settings = gActionPool->action(UIActionIndexSelector_Simple_Machine_Settings); 1169 m_pAction_Machine_Clone = gActionPool->action(UIActionIndexSelector_Simple_Machine_Clone); 1170 m_pAction_Machine_Remove = gActionPool->action(UIActionIndexSelector_Simple_Machine_Remove); 1171 m_pAction_Machine_AddGroup = gActionPool->action(UIActionIndexSelector_Simple_Machine_AddGroup); 1167 m_pAction_Machine_Settings = gActionPool->action(UIActionIndexSelector_Simple_Machine_Settings); 1168 m_pAction_Machine_Clone = gActionPool->action(UIActionIndexSelector_Simple_Machine_Clone); 1169 m_pAction_Machine_Remove = gActionPool->action(UIActionIndexSelector_Simple_Machine_Remove); 1170 m_pAction_Machine_AddGroup = gActionPool->action(UIActionIndexSelector_Simple_Machine_AddGroup); 1171 m_pAction_Machine_SortParent = gActionPool->action(UIActionIndexSelector_Simple_Machine_SortParent); 1172 1172 } 1173 1173 … … 1197 1197 pMenu->addAction(m_pAction_Common_CreateShortcut); 1198 1198 pMenu->addSeparator(); 1199 pMenu->addAction(m_pAction_Common_SortParent);1200 1199 pMenu->addAction(m_pAction_Group_Sort); 1201 1200 … … 1232 1231 pMenu->addAction(m_pAction_Common_CreateShortcut); 1233 1232 pMenu->addSeparator(); 1234 pMenu->addAction(m_pAction_ Common_SortParent);1233 pMenu->addAction(m_pAction_Machine_SortParent); 1235 1234 1236 1235 /* Remember action list: */ … … 1238 1237 << m_pAction_Machine_Clone 1239 1238 << m_pAction_Machine_Remove 1240 << m_pAction_Machine_AddGroup; 1239 << m_pAction_Machine_AddGroup 1240 << m_pAction_Machine_SortParent; 1241 1241 } 1242 1242 … … 1597 1597 m_pAction_Machine_Remove->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_Remove, items)); 1598 1598 m_pAction_Machine_AddGroup->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_AddGroup, items)); 1599 m_pAction_Machine_SortParent->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Machine_SortParent, items)); 1599 1600 1600 1601 /* Enable/disable common actions: */ … … 1607 1608 m_pAction_Common_ShowInFileManager->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_ShowInFileManager, items)); 1608 1609 m_pAction_Common_CreateShortcut->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_CreateShortcut, items)); 1609 m_pAction_Common_SortParent->setEnabled(isActionEnabled(UIActionIndexSelector_Simple_Common_SortParent, items));1610 1610 1611 1611 /* Enable/disable group-close actions: */ … … 1720 1720 return isAtLeastOneItemAccessible(items); 1721 1721 } 1722 case UIActionIndexSelector_Simple_ Common_SortParent:1722 case UIActionIndexSelector_Simple_Machine_SortParent: 1723 1723 { 1724 1724 return !m_pChooser->isGroupSavingInProgress(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r42767 r42845 205 205 UIAction *m_pAction_Common_ShowInFileManager; 206 206 UIAction *m_pAction_Common_CreateShortcut; 207 UIAction *m_pAction_Common_SortParent;208 207 209 208 /* 'Group' menu action pointers: */ … … 229 228 UIAction *m_pAction_Machine_Remove; 230 229 UIAction *m_pAction_Machine_AddGroup; 230 UIAction *m_pAction_Machine_SortParent; 231 231 /* 'Machine / Close' menu action pointers: */ 232 232 UIAction *m_pMachineCloseMenuAction; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r42832 r42845 976 976 m_pContextMenuGroup->addAction(gActionPool->action(UIActionIndexSelector_Simple_Common_CreateShortcut)); 977 977 m_pContextMenuGroup->addSeparator(); 978 m_pContextMenuGroup->addAction(gActionPool->action(UIActionIndexSelector_Simple_Common_SortParent));979 978 m_pContextMenuGroup->addAction(gActionPool->action(UIActionIndexSelector_Simple_Group_Sort)); 980 979 … … 998 997 m_pContextMenuMachine->addAction(gActionPool->action(UIActionIndexSelector_Simple_Common_CreateShortcut)); 999 998 m_pContextMenuMachine->addSeparator(); 1000 m_pContextMenuMachine->addAction(gActionPool->action(UIActionIndexSelector_Simple_ Common_SortParent));999 m_pContextMenuMachine->addAction(gActionPool->action(UIActionIndexSelector_Simple_Machine_SortParent)); 1001 1000 1002 1001 connect(m_pContextMenuGroup, SIGNAL(hovered(QAction*)), this, SLOT(sltActionHovered(QAction*))); … … 1013 1012 connect(gActionPool->action(UIActionIndexSelector_Simple_Machine_AddGroup), SIGNAL(triggered()), 1014 1013 this, SLOT(sltAddGroupBasedOnChosenItems())); 1015 connect(gActionPool->action(UIActionIndexSelector_Simple_ Common_SortParent), SIGNAL(triggered()),1014 connect(gActionPool->action(UIActionIndexSelector_Simple_Machine_SortParent), SIGNAL(triggered()), 1016 1015 this, SLOT(sltSortParentGroup())); 1017 1016 connect(gActionPool->action(UIActionIndexSelector_Simple_Group_Sort), SIGNAL(triggered()),
Note:
See TracChangeset
for help on using the changeset viewer.