Changeset 73661 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 14, 2018 1:54:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolSelector.cpp
r73659 r73661 63 63 64 64 /** Simple action extension, used as 'Show Virtual Media Manager' action class. */ 65 class UIActionSimpleSelector ShowVirtualMediaManager : public UIActionSimple66 { 67 Q_OBJECT; 68 69 public: 70 71 /** Constructs action passing @a pParent to the base-class. */ 72 UIActionSimpleSelector ShowVirtualMediaManager(UIActionPool *pParent)65 class UIActionSimpleSelectorFileShowVirtualMediaManager : public UIActionSimple 66 { 67 Q_OBJECT; 68 69 public: 70 71 /** Constructs action passing @a pParent to the base-class. */ 72 UIActionSimpleSelectorFileShowVirtualMediaManager(UIActionPool *pParent) 73 73 : UIActionSimple(pParent, ":/media_manager_16px.png") 74 74 {} … … 97 97 98 98 /** Simple action extension, used as 'Show Host Network Manager' action class. */ 99 class UIActionSimpleSelector ShowHostNetworkManager : public UIActionSimple100 { 101 Q_OBJECT; 102 103 public: 104 105 /** Constructs action passing @a pParent to the base-class. */ 106 UIActionSimpleSelector ShowHostNetworkManager(UIActionPool *pParent)99 class UIActionSimpleSelectorFileShowHostNetworkManager : public UIActionSimple 100 { 101 Q_OBJECT; 102 103 public: 104 105 /** Constructs action passing @a pParent to the base-class. */ 106 UIActionSimpleSelectorFileShowHostNetworkManager(UIActionPool *pParent) 107 107 : UIActionSimple(pParent, ":/host_iface_manager_16px.png") 108 108 {} … … 131 131 132 132 /** Simple action extension, used as 'Show Import Appliance Wizard' action class. */ 133 class UIActionSimpleSelector ShowImportApplianceWizard : public UIActionSimple134 { 135 Q_OBJECT; 136 137 public: 138 139 /** Constructs action passing @a pParent to the base-class. */ 140 UIActionSimpleSelector ShowImportApplianceWizard(UIActionPool *pParent)133 class UIActionSimpleSelectorFileShowImportApplianceWizard : public UIActionSimple 134 { 135 Q_OBJECT; 136 137 public: 138 139 /** Constructs action passing @a pParent to the base-class. */ 140 UIActionSimpleSelectorFileShowImportApplianceWizard(UIActionPool *pParent) 141 141 : UIActionSimple(pParent, ":/import_16px.png") 142 142 {} … … 165 165 166 166 /** Simple action extension, used as 'Show Export Appliance Wizard' action class. */ 167 class UIActionSimpleSelector ShowExportApplianceWizard : public UIActionSimple168 { 169 Q_OBJECT; 170 171 public: 172 173 /** Constructs action passing @a pParent to the base-class. */ 174 UIActionSimpleSelector ShowExportApplianceWizard(UIActionPool *pParent)167 class UIActionSimpleSelectorFileShowExportApplianceWizard : public UIActionSimple 168 { 169 Q_OBJECT; 170 171 public: 172 173 /** Constructs action passing @a pParent to the base-class. */ 174 UIActionSimpleSelectorFileShowExportApplianceWizard(UIActionPool *pParent) 175 175 : UIActionSimple(pParent, ":/export_16px.png") 176 176 {} … … 200 200 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 201 201 /** Simple action extension, used as 'Show Extra-data Manager' action class. */ 202 class UIActionSimpleSelector ShowExtraDataManager : public UIActionSimple203 { 204 Q_OBJECT; 205 206 public: 207 208 /** Constructs action passing @a pParent to the base-class. */ 209 UIActionSimpleSelector ShowExtraDataManager(UIActionPool *pParent)202 class UIActionSimpleSelectorFileShowExtraDataManager : public UIActionSimple 203 { 204 Q_OBJECT; 205 206 public: 207 208 /** Constructs action passing @a pParent to the base-class. */ 209 UIActionSimpleSelectorFileShowExtraDataManager(UIActionPool *pParent) 210 210 : UIActionSimple(pParent, ":/edata_manager_16px.png") 211 211 {} … … 235 235 236 236 /** Simple action extension, used as 'Perform Exit' action class. */ 237 class UIActionSimpleSelector PerformExit : public UIActionSimple238 { 239 Q_OBJECT; 240 241 public: 242 243 /** Constructs action passing @a pParent to the base-class. */ 244 UIActionSimpleSelector PerformExit(UIActionPool *pParent)237 class UIActionSimpleSelectorFilePerformExit : public UIActionSimple 238 { 239 Q_OBJECT; 240 241 public: 242 243 /** Constructs action passing @a pParent to the base-class. */ 244 UIActionSimpleSelectorFilePerformExit(UIActionPool *pParent) 245 245 : UIActionSimple(pParent, ":/exit_16px.png") 246 246 { … … 1161 1161 1162 1162 /** Simple action extension, used as 'Perform Detach' action class. */ 1163 class UIActionSimpleSelector PerformDetach : public UIActionSimple1164 { 1165 Q_OBJECT; 1166 1167 public: 1168 1169 /** Constructs action passing @a pParent to the base-class. */ 1170 UIActionSimpleSelector PerformDetach(UIActionPool *pParent)1163 class UIActionSimpleSelectorClosePerformDetach : public UIActionSimple 1164 { 1165 Q_OBJECT; 1166 1167 public: 1168 1169 /** Constructs action passing @a pParent to the base-class. */ 1170 UIActionSimpleSelectorClosePerformDetach(UIActionPool *pParent) 1171 1171 : UIActionSimple(pParent, ":/vm_create_shortcut_16px.png", ":/vm_create_shortcut_disabled_16px.png") 1172 1172 {} … … 1189 1189 1190 1190 /** Simple action extension, used as 'Perform Save' action class. */ 1191 class UIActionSimpleSelector PerformSave : public UIActionSimple1192 { 1193 Q_OBJECT; 1194 1195 public: 1196 1197 /** Constructs action passing @a pParent to the base-class. */ 1198 UIActionSimpleSelector PerformSave(UIActionPool *pParent)1191 class UIActionSimpleSelectorClosePerformSave : public UIActionSimple 1192 { 1193 Q_OBJECT; 1194 1195 public: 1196 1197 /** Constructs action passing @a pParent to the base-class. */ 1198 UIActionSimpleSelectorClosePerformSave(UIActionPool *pParent) 1199 1199 : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png") 1200 1200 {} … … 1223 1223 1224 1224 /** Simple action extension, used as 'Perform Shutdown' action class. */ 1225 class UIActionSimpleSelector PerformShutdown : public UIActionSimple1226 { 1227 Q_OBJECT; 1228 1229 public: 1230 1231 /** Constructs action passing @a pParent to the base-class. */ 1232 UIActionSimpleSelector PerformShutdown(UIActionPool *pParent)1225 class UIActionSimpleSelectorClosePerformShutdown : public UIActionSimple 1226 { 1227 Q_OBJECT; 1228 1229 public: 1230 1231 /** Constructs action passing @a pParent to the base-class. */ 1232 UIActionSimpleSelectorClosePerformShutdown(UIActionPool *pParent) 1233 1233 : UIActionSimple(pParent, ":/vm_shutdown_16px.png", ":/vm_shutdown_disabled_16px.png") 1234 1234 {} … … 1257 1257 1258 1258 /** Simple action extension, used as 'Perform PowerOff' action class. */ 1259 class UIActionSimpleSelector PerformPowerOff : public UIActionSimple1260 { 1261 Q_OBJECT; 1262 1263 public: 1264 1265 /** Constructs action passing @a pParent to the base-class. */ 1266 UIActionSimpleSelector PerformPowerOff(UIActionPool *pParent)1259 class UIActionSimpleSelectorClosePerformPowerOff : public UIActionSimple 1260 { 1261 Q_OBJECT; 1262 1263 public: 1264 1265 /** Constructs action passing @a pParent to the base-class. */ 1266 UIActionSimpleSelectorClosePerformPowerOff(UIActionPool *pParent) 1267 1267 : UIActionSimple(pParent, ":/vm_poweroff_16px.png", ":/vm_poweroff_disabled_16px.png") 1268 1268 {} … … 1348 1348 1349 1349 /** Simple action extension, used as 'Show Machine Details' action class. */ 1350 class UIActionSimpleSelectorTools ShowMachineDetails : public UIActionSimple1351 { 1352 Q_OBJECT; 1353 1354 public: 1355 1356 /** Constructs action passing @a pParent to the base-class. */ 1357 UIActionSimpleSelectorTools ShowMachineDetails(UIActionPool *pParent)1350 class UIActionSimpleSelectorToolsMachineShowDetails : public UIActionSimple 1351 { 1352 Q_OBJECT; 1353 1354 public: 1355 1356 /** Constructs action passing @a pParent to the base-class. */ 1357 UIActionSimpleSelectorToolsMachineShowDetails(UIActionPool *pParent) 1358 1358 : UIActionSimple(pParent, 1359 1359 ":/machine_details_manager_22px.png", ":/machine_details_manager_16px.png", … … 1378 1378 1379 1379 /** Simple action extension, used as 'Show Machine Snapshots' action class. */ 1380 class UIActionSimpleSelectorTools ShowMachineSnapshots : public UIActionSimple1381 { 1382 Q_OBJECT; 1383 1384 public: 1385 1386 /** Constructs action passing @a pParent to the base-class. */ 1387 UIActionSimpleSelectorTools ShowMachineSnapshots(UIActionPool *pParent)1380 class UIActionSimpleSelectorToolsMachineShowSnapshots : public UIActionSimple 1381 { 1382 Q_OBJECT; 1383 1384 public: 1385 1386 /** Constructs action passing @a pParent to the base-class. */ 1387 UIActionSimpleSelectorToolsMachineShowSnapshots(UIActionPool *pParent) 1388 1388 : UIActionSimple(pParent, 1389 1389 ":/snapshot_manager_22px.png", ":/snapshot_manager_16px.png", … … 1408 1408 1409 1409 /** Simple action extension, used as 'Show Machine Logs' action class. */ 1410 class UIActionSimpleSelectorTools ShowMachineLogs : public UIActionSimple1411 { 1412 Q_OBJECT; 1413 1414 public: 1415 1416 /** Constructs action passing @a pParent to the base-class. */ 1417 UIActionSimpleSelectorTools ShowMachineLogs(UIActionPool *pParent)1410 class UIActionSimpleSelectorToolsMachineShowLogs : public UIActionSimple 1411 { 1412 Q_OBJECT; 1413 1414 public: 1415 1416 /** Constructs action passing @a pParent to the base-class. */ 1417 UIActionSimpleSelectorToolsMachineShowLogs(UIActionPool *pParent) 1418 1418 : UIActionSimple(pParent, 1419 1419 ":/vm_show_logs_32px.png", ":/vm_show_logs_32px.png", … … 1568 1568 /* 'File' actions: */ 1569 1569 m_pool[UIActionIndexST_M_File] = new UIActionMenuSelectorFile(this); 1570 m_pool[UIActionIndexST_M_File_S_ShowVirtualMediumManager] = new UIActionSimpleSelector ShowVirtualMediaManager(this);1571 m_pool[UIActionIndexST_M_File_S_ShowHostNetworkManager] = new UIActionSimpleSelector ShowHostNetworkManager(this);1572 m_pool[UIActionIndexST_M_File_S_ImportAppliance] = new UIActionSimpleSelector ShowImportApplianceWizard(this);1573 m_pool[UIActionIndexST_M_File_S_ExportAppliance] = new UIActionSimpleSelector ShowExportApplianceWizard(this);1570 m_pool[UIActionIndexST_M_File_S_ShowVirtualMediumManager] = new UIActionSimpleSelectorFileShowVirtualMediaManager(this); 1571 m_pool[UIActionIndexST_M_File_S_ShowHostNetworkManager] = new UIActionSimpleSelectorFileShowHostNetworkManager(this); 1572 m_pool[UIActionIndexST_M_File_S_ImportAppliance] = new UIActionSimpleSelectorFileShowImportApplianceWizard(this); 1573 m_pool[UIActionIndexST_M_File_S_ExportAppliance] = new UIActionSimpleSelectorFileShowExportApplianceWizard(this); 1574 1574 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1575 m_pool[UIActionIndexST_M_File_S_ShowExtraDataManager] = new UIActionSimpleSelector ShowExtraDataManager(this);1575 m_pool[UIActionIndexST_M_File_S_ShowExtraDataManager] = new UIActionSimpleSelectorFileShowExtraDataManager(this); 1576 1576 #endif 1577 m_pool[UIActionIndexST_M_File_S_Close] = new UIActionSimpleSelector PerformExit(this);1577 m_pool[UIActionIndexST_M_File_S_Close] = new UIActionSimpleSelectorFilePerformExit(this); 1578 1578 1579 1579 /* 'Group' actions: */ … … 1590 1590 m_pool[UIActionIndexST_M_Group_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this); 1591 1591 m_pool[UIActionIndexST_M_Group_M_Close] = new UIActionMenuSelectorClose(this); 1592 m_pool[UIActionIndexST_M_Group_M_Close_S_Detach] = new UIActionSimpleSelector PerformDetach(this);1593 m_pool[UIActionIndexST_M_Group_M_Close_S_SaveState] = new UIActionSimpleSelector PerformSave(this);1594 m_pool[UIActionIndexST_M_Group_M_Close_S_Shutdown] = new UIActionSimpleSelector PerformShutdown(this);1595 m_pool[UIActionIndexST_M_Group_M_Close_S_PowerOff] = new UIActionSimpleSelector PerformPowerOff(this);1592 m_pool[UIActionIndexST_M_Group_M_Close_S_Detach] = new UIActionSimpleSelectorClosePerformDetach(this); 1593 m_pool[UIActionIndexST_M_Group_M_Close_S_SaveState] = new UIActionSimpleSelectorClosePerformSave(this); 1594 m_pool[UIActionIndexST_M_Group_M_Close_S_Shutdown] = new UIActionSimpleSelectorClosePerformShutdown(this); 1595 m_pool[UIActionIndexST_M_Group_M_Close_S_PowerOff] = new UIActionSimpleSelectorClosePerformPowerOff(this); 1596 1596 m_pool[UIActionIndexST_M_Group_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this); 1597 1597 m_pool[UIActionIndexST_M_Group_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this); … … 1617 1617 m_pool[UIActionIndexST_M_Machine_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this); 1618 1618 m_pool[UIActionIndexST_M_Machine_M_Close] = new UIActionMenuSelectorClose(this); 1619 m_pool[UIActionIndexST_M_Machine_M_Close_S_Detach] = new UIActionSimpleSelector PerformDetach(this);1620 m_pool[UIActionIndexST_M_Machine_M_Close_S_SaveState] = new UIActionSimpleSelector PerformSave(this);1621 m_pool[UIActionIndexST_M_Machine_M_Close_S_Shutdown] = new UIActionSimpleSelector PerformShutdown(this);1622 m_pool[UIActionIndexST_M_Machine_M_Close_S_PowerOff] = new UIActionSimpleSelector PerformPowerOff(this);1619 m_pool[UIActionIndexST_M_Machine_M_Close_S_Detach] = new UIActionSimpleSelectorClosePerformDetach(this); 1620 m_pool[UIActionIndexST_M_Machine_M_Close_S_SaveState] = new UIActionSimpleSelectorClosePerformSave(this); 1621 m_pool[UIActionIndexST_M_Machine_M_Close_S_Shutdown] = new UIActionSimpleSelectorClosePerformShutdown(this); 1622 m_pool[UIActionIndexST_M_Machine_M_Close_S_PowerOff] = new UIActionSimpleSelectorClosePerformPowerOff(this); 1623 1623 m_pool[UIActionIndexST_M_Machine_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this); 1624 1624 m_pool[UIActionIndexST_M_Machine_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this); … … 1631 1631 m_pool[UIActionIndexST_M_Tools_T_Machine] = new UIActionToggleSelectorToolsMachine(this); 1632 1632 m_pool[UIActionIndexST_M_Tools_M_Machine] = new UIActionMenuSelectorToolsMachine(this); 1633 m_pool[UIActionIndexST_M_Tools_M_Machine_S_Details] = new UIActionSimpleSelectorTools ShowMachineDetails(this);1634 m_pool[UIActionIndexST_M_Tools_M_Machine_S_Snapshots] = new UIActionSimpleSelectorTools ShowMachineSnapshots(this);1635 m_pool[UIActionIndexST_M_Tools_M_Machine_S_LogViewer] = new UIActionSimpleSelectorTools ShowMachineLogs(this);1633 m_pool[UIActionIndexST_M_Tools_M_Machine_S_Details] = new UIActionSimpleSelectorToolsMachineShowDetails(this); 1634 m_pool[UIActionIndexST_M_Tools_M_Machine_S_Snapshots] = new UIActionSimpleSelectorToolsMachineShowSnapshots(this); 1635 m_pool[UIActionIndexST_M_Tools_M_Machine_S_LogViewer] = new UIActionSimpleSelectorToolsMachineShowLogs(this); 1636 1636 1637 1637 /* Global Tools actions: */ … … 1677 1677 1678 1678 #include "UIActionPoolSelector.moc" 1679
Note:
See TracChangeset
for help on using the changeset viewer.