Changeset 68168 in vbox
- Timestamp:
- Jul 29, 2017 9:41:06 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117260
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r66682 r68168 924 924 setName(QApplication::translate("UIActionPool", "&Sort")); 925 925 setStatusTip(QApplication::translate("UIActionPool", "Sort group of first selected virtual machine alphabetically")); 926 } 927 }; 928 929 930 class UIActionToggleToolsMachine : public UIActionToggle 931 { 932 Q_OBJECT; 933 934 public: 935 936 UIActionToggleToolsMachine(UIActionPool *pParent) 937 : UIActionToggle(pParent, ":/tools_machine_32px.png") {} 938 939 protected: 940 941 QString shortcutExtraDataID() const 942 { 943 return QString("ToolsMachine"); 944 } 945 946 void retranslateUi() 947 { 948 setName(QApplication::translate("UIActionPool", "&Machine Tools")); 949 setStatusTip(QApplication::translate("UIActionPool", "Switch to machine tools")); 950 } 951 }; 952 953 class UIActionMenuToolsMachine : public UIActionMenu 954 { 955 Q_OBJECT; 956 957 public: 958 959 UIActionMenuToolsMachine(UIActionPool *pParent) 960 : UIActionMenu(pParent) {} 961 962 protected: 963 964 QString shortcutExtraDataID() const 965 { 966 return QString("ToolsMachineMenu"); 967 } 968 969 void retranslateUi() 970 { 971 setName(QApplication::translate("UIActionPool", "&Machine Tools Menu")); 972 setStatusTip(QApplication::translate("UIActionPool", "Open machine tools menu")); 973 } 974 }; 975 976 class UIActionSimpleToolsMachineDetails : public UIActionSimple 977 { 978 Q_OBJECT; 979 980 public: 981 982 UIActionSimpleToolsMachineDetails(UIActionPool *pParent) 983 : UIActionSimple(pParent, 984 ":/session_info_details_16px.png", ":/session_info_details_16px.png", 985 ":/session_info_details_16px.png", ":/session_info_details_16px.png") {} 986 987 protected: 988 989 QString shortcutExtraDataID() const 990 { 991 return QString("ToolsMachineDetails"); 992 } 993 994 void retranslateUi() 995 { 996 setName(QApplication::translate("UIActionPool", "&Details")); 997 setStatusTip(QApplication::translate("UIActionPool", "Open machine details pane")); 998 } 999 }; 1000 1001 class UIActionSimpleToolsMachineSnapshots : public UIActionSimple 1002 { 1003 Q_OBJECT; 1004 1005 public: 1006 1007 UIActionSimpleToolsMachineSnapshots(UIActionPool *pParent) 1008 : UIActionSimple(pParent, 1009 ":/snapshot_manager_22px.png", ":/snapshot_manager_16px.png", 1010 ":/snapshot_manager_22px.png", ":/snapshot_manager_16px.png") {} 1011 1012 protected: 1013 1014 QString shortcutExtraDataID() const 1015 { 1016 return QString("ToolsMachineSnapshots"); 1017 } 1018 1019 void retranslateUi() 1020 { 1021 setName(QApplication::translate("UIActionPool", "&Snapshots")); 1022 setStatusTip(QApplication::translate("UIActionPool", "Open machine snapshots pane")); 926 1023 } 927 1024 }; … … 1121 1218 m_pool[UIActionIndexST_M_Machine_S_SortParent] = new UIActionSimpleMachineSortParent(this); 1122 1219 1220 /* Machine Tools actions: */ 1221 m_pool[UIActionIndexST_M_Tools_T_Machine] = new UIActionToggleToolsMachine(this); 1222 m_pool[UIActionIndexST_M_Tools_M_Machine] = new UIActionMenuToolsMachine(this); 1223 m_pool[UIActionIndexST_M_Tools_M_Machine_Details] = new UIActionSimpleToolsMachineDetails(this); 1224 m_pool[UIActionIndexST_M_Tools_M_Machine_Snapshots] = new UIActionSimpleToolsMachineSnapshots(this); 1225 1123 1226 /* Call to base-class: */ 1124 1227 UIActionPool::preparePool(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h
r66681 r68168 92 92 UIActionIndexST_M_Machine_S_SortParent, 93 93 94 /* Machine Tools actions: */ 95 UIActionIndexST_M_Tools_T_Machine, 96 UIActionIndexST_M_Tools_M_Machine, 97 UIActionIndexST_M_Tools_M_Machine_Details, 98 UIActionIndexST_M_Tools_M_Machine_Snapshots, 99 94 100 /* Maximum index: */ 95 101 UIActionIndexST_Max
Note:
See TracChangeset
for help on using the changeset viewer.