VirtualBox

Changeset 73661 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 14, 2018 1:54:40 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: UIActionPoolSelector: A bit of cleanup/rework: Refactoring class-names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolSelector.cpp

    r73659 r73661  
    6363
    6464/** Simple action extension, used as 'Show Virtual Media Manager' action class. */
    65 class UIActionSimpleSelectorShowVirtualMediaManager : public UIActionSimple
    66 {
    67     Q_OBJECT;
    68 
    69 public:
    70 
    71     /** Constructs action passing @a pParent to the base-class. */
    72     UIActionSimpleSelectorShowVirtualMediaManager(UIActionPool *pParent)
     65class UIActionSimpleSelectorFileShowVirtualMediaManager : public UIActionSimple
     66{
     67    Q_OBJECT;
     68
     69public:
     70
     71    /** Constructs action passing @a pParent to the base-class. */
     72    UIActionSimpleSelectorFileShowVirtualMediaManager(UIActionPool *pParent)
    7373        : UIActionSimple(pParent, ":/media_manager_16px.png")
    7474    {}
     
    9797
    9898/** Simple action extension, used as 'Show Host Network Manager' action class. */
    99 class UIActionSimpleSelectorShowHostNetworkManager : public UIActionSimple
    100 {
    101     Q_OBJECT;
    102 
    103 public:
    104 
    105     /** Constructs action passing @a pParent to the base-class. */
    106     UIActionSimpleSelectorShowHostNetworkManager(UIActionPool *pParent)
     99class UIActionSimpleSelectorFileShowHostNetworkManager : public UIActionSimple
     100{
     101    Q_OBJECT;
     102
     103public:
     104
     105    /** Constructs action passing @a pParent to the base-class. */
     106    UIActionSimpleSelectorFileShowHostNetworkManager(UIActionPool *pParent)
    107107        : UIActionSimple(pParent, ":/host_iface_manager_16px.png")
    108108    {}
     
    131131
    132132/** Simple action extension, used as 'Show Import Appliance Wizard' action class. */
    133 class UIActionSimpleSelectorShowImportApplianceWizard : public UIActionSimple
    134 {
    135     Q_OBJECT;
    136 
    137 public:
    138 
    139     /** Constructs action passing @a pParent to the base-class. */
    140     UIActionSimpleSelectorShowImportApplianceWizard(UIActionPool *pParent)
     133class UIActionSimpleSelectorFileShowImportApplianceWizard : public UIActionSimple
     134{
     135    Q_OBJECT;
     136
     137public:
     138
     139    /** Constructs action passing @a pParent to the base-class. */
     140    UIActionSimpleSelectorFileShowImportApplianceWizard(UIActionPool *pParent)
    141141        : UIActionSimple(pParent, ":/import_16px.png")
    142142    {}
     
    165165
    166166/** Simple action extension, used as 'Show Export Appliance Wizard' action class. */
    167 class UIActionSimpleSelectorShowExportApplianceWizard : public UIActionSimple
    168 {
    169     Q_OBJECT;
    170 
    171 public:
    172 
    173     /** Constructs action passing @a pParent to the base-class. */
    174     UIActionSimpleSelectorShowExportApplianceWizard(UIActionPool *pParent)
     167class UIActionSimpleSelectorFileShowExportApplianceWizard : public UIActionSimple
     168{
     169    Q_OBJECT;
     170
     171public:
     172
     173    /** Constructs action passing @a pParent to the base-class. */
     174    UIActionSimpleSelectorFileShowExportApplianceWizard(UIActionPool *pParent)
    175175        : UIActionSimple(pParent, ":/export_16px.png")
    176176    {}
     
    200200#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
    201201/** Simple action extension, used as 'Show Extra-data Manager' action class. */
    202 class UIActionSimpleSelectorShowExtraDataManager : public UIActionSimple
    203 {
    204     Q_OBJECT;
    205 
    206 public:
    207 
    208     /** Constructs action passing @a pParent to the base-class. */
    209     UIActionSimpleSelectorShowExtraDataManager(UIActionPool *pParent)
     202class UIActionSimpleSelectorFileShowExtraDataManager : public UIActionSimple
     203{
     204    Q_OBJECT;
     205
     206public:
     207
     208    /** Constructs action passing @a pParent to the base-class. */
     209    UIActionSimpleSelectorFileShowExtraDataManager(UIActionPool *pParent)
    210210        : UIActionSimple(pParent, ":/edata_manager_16px.png")
    211211    {}
     
    235235
    236236/** Simple action extension, used as 'Perform Exit' action class. */
    237 class UIActionSimpleSelectorPerformExit : public UIActionSimple
    238 {
    239     Q_OBJECT;
    240 
    241 public:
    242 
    243     /** Constructs action passing @a pParent to the base-class. */
    244     UIActionSimpleSelectorPerformExit(UIActionPool *pParent)
     237class UIActionSimpleSelectorFilePerformExit : public UIActionSimple
     238{
     239    Q_OBJECT;
     240
     241public:
     242
     243    /** Constructs action passing @a pParent to the base-class. */
     244    UIActionSimpleSelectorFilePerformExit(UIActionPool *pParent)
    245245        : UIActionSimple(pParent, ":/exit_16px.png")
    246246    {
     
    11611161
    11621162/** Simple action extension, used as 'Perform Detach' action class. */
    1163 class UIActionSimpleSelectorPerformDetach : public UIActionSimple
    1164 {
    1165     Q_OBJECT;
    1166 
    1167 public:
    1168 
    1169     /** Constructs action passing @a pParent to the base-class. */
    1170     UIActionSimpleSelectorPerformDetach(UIActionPool *pParent)
     1163class UIActionSimpleSelectorClosePerformDetach : public UIActionSimple
     1164{
     1165    Q_OBJECT;
     1166
     1167public:
     1168
     1169    /** Constructs action passing @a pParent to the base-class. */
     1170    UIActionSimpleSelectorClosePerformDetach(UIActionPool *pParent)
    11711171        : UIActionSimple(pParent, ":/vm_create_shortcut_16px.png", ":/vm_create_shortcut_disabled_16px.png")
    11721172    {}
     
    11891189
    11901190/** Simple action extension, used as 'Perform Save' action class. */
    1191 class UIActionSimpleSelectorPerformSave : public UIActionSimple
    1192 {
    1193     Q_OBJECT;
    1194 
    1195 public:
    1196 
    1197     /** Constructs action passing @a pParent to the base-class. */
    1198     UIActionSimpleSelectorPerformSave(UIActionPool *pParent)
     1191class UIActionSimpleSelectorClosePerformSave : public UIActionSimple
     1192{
     1193    Q_OBJECT;
     1194
     1195public:
     1196
     1197    /** Constructs action passing @a pParent to the base-class. */
     1198    UIActionSimpleSelectorClosePerformSave(UIActionPool *pParent)
    11991199        : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png")
    12001200    {}
     
    12231223
    12241224/** Simple action extension, used as 'Perform Shutdown' action class. */
    1225 class UIActionSimpleSelectorPerformShutdown : public UIActionSimple
    1226 {
    1227     Q_OBJECT;
    1228 
    1229 public:
    1230 
    1231     /** Constructs action passing @a pParent to the base-class. */
    1232     UIActionSimpleSelectorPerformShutdown(UIActionPool *pParent)
     1225class UIActionSimpleSelectorClosePerformShutdown : public UIActionSimple
     1226{
     1227    Q_OBJECT;
     1228
     1229public:
     1230
     1231    /** Constructs action passing @a pParent to the base-class. */
     1232    UIActionSimpleSelectorClosePerformShutdown(UIActionPool *pParent)
    12331233        : UIActionSimple(pParent, ":/vm_shutdown_16px.png", ":/vm_shutdown_disabled_16px.png")
    12341234    {}
     
    12571257
    12581258/** Simple action extension, used as 'Perform PowerOff' action class. */
    1259 class UIActionSimpleSelectorPerformPowerOff : public UIActionSimple
    1260 {
    1261     Q_OBJECT;
    1262 
    1263 public:
    1264 
    1265     /** Constructs action passing @a pParent to the base-class. */
    1266     UIActionSimpleSelectorPerformPowerOff(UIActionPool *pParent)
     1259class UIActionSimpleSelectorClosePerformPowerOff : public UIActionSimple
     1260{
     1261    Q_OBJECT;
     1262
     1263public:
     1264
     1265    /** Constructs action passing @a pParent to the base-class. */
     1266    UIActionSimpleSelectorClosePerformPowerOff(UIActionPool *pParent)
    12671267        : UIActionSimple(pParent, ":/vm_poweroff_16px.png", ":/vm_poweroff_disabled_16px.png")
    12681268    {}
     
    13481348
    13491349/** Simple action extension, used as 'Show Machine Details' action class. */
    1350 class UIActionSimpleSelectorToolsShowMachineDetails : public UIActionSimple
    1351 {
    1352     Q_OBJECT;
    1353 
    1354 public:
    1355 
    1356     /** Constructs action passing @a pParent to the base-class. */
    1357     UIActionSimpleSelectorToolsShowMachineDetails(UIActionPool *pParent)
     1350class UIActionSimpleSelectorToolsMachineShowDetails : public UIActionSimple
     1351{
     1352    Q_OBJECT;
     1353
     1354public:
     1355
     1356    /** Constructs action passing @a pParent to the base-class. */
     1357    UIActionSimpleSelectorToolsMachineShowDetails(UIActionPool *pParent)
    13581358        : UIActionSimple(pParent,
    13591359                         ":/machine_details_manager_22px.png", ":/machine_details_manager_16px.png",
     
    13781378
    13791379/** Simple action extension, used as 'Show Machine Snapshots' action class. */
    1380 class UIActionSimpleSelectorToolsShowMachineSnapshots : public UIActionSimple
    1381 {
    1382     Q_OBJECT;
    1383 
    1384 public:
    1385 
    1386     /** Constructs action passing @a pParent to the base-class. */
    1387     UIActionSimpleSelectorToolsShowMachineSnapshots(UIActionPool *pParent)
     1380class UIActionSimpleSelectorToolsMachineShowSnapshots : public UIActionSimple
     1381{
     1382    Q_OBJECT;
     1383
     1384public:
     1385
     1386    /** Constructs action passing @a pParent to the base-class. */
     1387    UIActionSimpleSelectorToolsMachineShowSnapshots(UIActionPool *pParent)
    13881388        : UIActionSimple(pParent,
    13891389                         ":/snapshot_manager_22px.png", ":/snapshot_manager_16px.png",
     
    14081408
    14091409/** Simple action extension, used as 'Show Machine Logs' action class. */
    1410 class UIActionSimpleSelectorToolsShowMachineLogs : public UIActionSimple
    1411 {
    1412     Q_OBJECT;
    1413 
    1414 public:
    1415 
    1416     /** Constructs action passing @a pParent to the base-class. */
    1417     UIActionSimpleSelectorToolsShowMachineLogs(UIActionPool *pParent)
     1410class UIActionSimpleSelectorToolsMachineShowLogs : public UIActionSimple
     1411{
     1412    Q_OBJECT;
     1413
     1414public:
     1415
     1416    /** Constructs action passing @a pParent to the base-class. */
     1417    UIActionSimpleSelectorToolsMachineShowLogs(UIActionPool *pParent)
    14181418        : UIActionSimple(pParent,
    14191419                         ":/vm_show_logs_32px.png", ":/vm_show_logs_32px.png",
     
    15681568    /* 'File' actions: */
    15691569    m_pool[UIActionIndexST_M_File] = new UIActionMenuSelectorFile(this);
    1570     m_pool[UIActionIndexST_M_File_S_ShowVirtualMediumManager] = new UIActionSimpleSelectorShowVirtualMediaManager(this);
    1571     m_pool[UIActionIndexST_M_File_S_ShowHostNetworkManager] = new UIActionSimpleSelectorShowHostNetworkManager(this);
    1572     m_pool[UIActionIndexST_M_File_S_ImportAppliance] = new UIActionSimpleSelectorShowImportApplianceWizard(this);
    1573     m_pool[UIActionIndexST_M_File_S_ExportAppliance] = new UIActionSimpleSelectorShowExportApplianceWizard(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);
    15741574#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
    1575     m_pool[UIActionIndexST_M_File_S_ShowExtraDataManager] = new UIActionSimpleSelectorShowExtraDataManager(this);
     1575    m_pool[UIActionIndexST_M_File_S_ShowExtraDataManager] = new UIActionSimpleSelectorFileShowExtraDataManager(this);
    15761576#endif
    1577     m_pool[UIActionIndexST_M_File_S_Close] = new UIActionSimpleSelectorPerformExit(this);
     1577    m_pool[UIActionIndexST_M_File_S_Close] = new UIActionSimpleSelectorFilePerformExit(this);
    15781578
    15791579    /* 'Group' actions: */
     
    15901590    m_pool[UIActionIndexST_M_Group_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this);
    15911591    m_pool[UIActionIndexST_M_Group_M_Close] = new UIActionMenuSelectorClose(this);
    1592     m_pool[UIActionIndexST_M_Group_M_Close_S_Detach] = new UIActionSimpleSelectorPerformDetach(this);
    1593     m_pool[UIActionIndexST_M_Group_M_Close_S_SaveState] = new UIActionSimpleSelectorPerformSave(this);
    1594     m_pool[UIActionIndexST_M_Group_M_Close_S_Shutdown] = new UIActionSimpleSelectorPerformShutdown(this);
    1595     m_pool[UIActionIndexST_M_Group_M_Close_S_PowerOff] = new UIActionSimpleSelectorPerformPowerOff(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);
    15961596    m_pool[UIActionIndexST_M_Group_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this);
    15971597    m_pool[UIActionIndexST_M_Group_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this);
     
    16171617    m_pool[UIActionIndexST_M_Machine_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this);
    16181618    m_pool[UIActionIndexST_M_Machine_M_Close] = new UIActionMenuSelectorClose(this);
    1619     m_pool[UIActionIndexST_M_Machine_M_Close_S_Detach] = new UIActionSimpleSelectorPerformDetach(this);
    1620     m_pool[UIActionIndexST_M_Machine_M_Close_S_SaveState] = new UIActionSimpleSelectorPerformSave(this);
    1621     m_pool[UIActionIndexST_M_Machine_M_Close_S_Shutdown] = new UIActionSimpleSelectorPerformShutdown(this);
    1622     m_pool[UIActionIndexST_M_Machine_M_Close_S_PowerOff] = new UIActionSimpleSelectorPerformPowerOff(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);
    16231623    m_pool[UIActionIndexST_M_Machine_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this);
    16241624    m_pool[UIActionIndexST_M_Machine_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this);
     
    16311631    m_pool[UIActionIndexST_M_Tools_T_Machine] = new UIActionToggleSelectorToolsMachine(this);
    16321632    m_pool[UIActionIndexST_M_Tools_M_Machine] = new UIActionMenuSelectorToolsMachine(this);
    1633     m_pool[UIActionIndexST_M_Tools_M_Machine_S_Details] = new UIActionSimpleSelectorToolsShowMachineDetails(this);
    1634     m_pool[UIActionIndexST_M_Tools_M_Machine_S_Snapshots] = new UIActionSimpleSelectorToolsShowMachineSnapshots(this);
    1635     m_pool[UIActionIndexST_M_Tools_M_Machine_S_LogViewer] = new UIActionSimpleSelectorToolsShowMachineLogs(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);
    16361636
    16371637    /* Global Tools actions: */
     
    16771677
    16781678#include "UIActionPoolSelector.moc"
    1679 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette