Changeset 85597 in vbox for trunk/src/VBox
- Timestamp:
- Aug 3, 2020 12:17:47 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp
r85486 r85597 469 469 QMenu *UICloudConsoleManagerWidget::menu() const 470 470 { 471 return m_pActionPool->action(UIActionIndex ST_M_CloudConsoleWindow)->menu();471 return m_pActionPool->action(UIActionIndexMN_M_CloudConsoleWindow)->menu(); 472 472 } 473 473 … … 689 689 690 690 /* Update actions availability: */ 691 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationAdd)->setEnabled(!pItem || pItemApplication);692 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationRemove)->setEnabled(pItemApplication);693 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileAdd)->setEnabled(pItemApplication || pItemProfile);694 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileRemove)->setEnabled(pItemProfile);695 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details)->setEnabled(pItemApplication || pItemProfile);691 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationAdd)->setEnabled(!pItem || pItemApplication); 692 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationRemove)->setEnabled(pItemApplication); 693 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileAdd)->setEnabled(pItemApplication || pItemProfile); 694 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileRemove)->setEnabled(pItemProfile); 695 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)->setEnabled(pItemApplication || pItemProfile); 696 696 697 697 /* Update current-item definition: */ … … 708 708 709 709 /* Update details area visibility: */ 710 sltToggleCloudConsoleDetailsVisibility(pItem && m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details)->isChecked());710 sltToggleCloudConsoleDetailsVisibility(pItem && m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)->isChecked()); 711 711 } 712 712 … … 722 722 if (pItemApplication) 723 723 { 724 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationRemove));725 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileAdd));726 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details));724 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationRemove)); 725 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileAdd)); 726 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)); 727 727 } 728 728 else if (pItemProfile) 729 729 { 730 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileRemove));731 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details));730 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileRemove)); 731 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)); 732 732 } 733 733 else 734 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationAdd));734 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationAdd)); 735 735 736 736 /* And show it: */ … … 787 787 { 788 788 /* First of all, add actions which has smaller shortcut scope: */ 789 addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationAdd));790 addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationRemove));791 addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileAdd));792 addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileRemove));793 addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details));789 addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationAdd)); 790 addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationRemove)); 791 addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileAdd)); 792 addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileRemove)); 793 addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)); 794 794 } 795 795 … … 832 832 833 833 /* Add toolbar actions: */ 834 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationAdd));835 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationRemove));834 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationAdd)); 835 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationRemove)); 836 836 m_pToolBar->addSeparator(); 837 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileAdd));838 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileRemove));837 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileAdd)); 838 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileRemove)); 839 839 m_pToolBar->addSeparator(); 840 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details));840 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)); 841 841 842 842 #ifdef VBOX_WS_MAC … … 894 894 { 895 895 /* Action connections: */ 896 connect(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationAdd), &QAction::triggered,896 connect(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationAdd), &QAction::triggered, 897 897 this, &UICloudConsoleManagerWidget::sltAddCloudConsoleApplication); 898 connect(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ApplicationRemove), &QAction::triggered,898 connect(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ApplicationRemove), &QAction::triggered, 899 899 this, &UICloudConsoleManagerWidget::sltRemoveCloudConsoleApplication); 900 connect(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileAdd), &QAction::triggered,900 connect(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileAdd), &QAction::triggered, 901 901 this, &UICloudConsoleManagerWidget::sltAddCloudConsoleProfile); 902 connect(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_S_ProfileRemove), &QAction::triggered,902 connect(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_S_ProfileRemove), &QAction::triggered, 903 903 this, &UICloudConsoleManagerWidget::sltRemoveCloudConsoleProfile); 904 connect(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details), &QAction::toggled,904 connect(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details), &QAction::toggled, 905 905 this, &UICloudConsoleManagerWidget::sltToggleCloudConsoleDetailsVisibility); 906 906 … … 915 915 this, &UICloudConsoleManagerWidget::sltHandleContextMenuRequest); 916 916 connect(m_pTreeWidget, &QITreeWidget::itemDoubleClicked, 917 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details), &QAction::setChecked);917 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details), &QAction::setChecked); 918 918 connect(m_pTreeWidget, &QITreeWidget::itemChanged, 919 919 this, &UICloudConsoleManagerWidget::sltHandleItemChange); … … 937 937 { 938 938 /* Details action/widget: */ 939 m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details)->setChecked(gEDataManager->cloudConsoleManagerDetailsExpanded());940 sltToggleCloudConsoleDetailsVisibility(m_pActionPool->action(UIActionIndex ST_M_CloudConsole_T_Details)->isChecked());939 m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)->setChecked(gEDataManager->cloudConsoleManagerDetailsExpanded()); 940 sltToggleCloudConsoleDetailsVisibility(m_pActionPool->action(UIActionIndexMN_M_CloudConsole_T_Details)->isChecked()); 941 941 } 942 942 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r85387 r85597 164 164 QMenu *UICloudProfileManagerWidget::menu() const 165 165 { 166 return m_pActionPool->action(UIActionIndex ST_M_CloudWindow)->menu();166 return m_pActionPool->action(UIActionIndexMN_M_CloudWindow)->menu(); 167 167 } 168 168 … … 521 521 522 522 /* Update actions availability: */ 523 m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Add)->setEnabled(!pItem || pItemProvider);524 m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Import)->setEnabled(!pItem || pItemProvider);525 m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Remove)->setEnabled(pItemProfile);526 m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details)->setEnabled(pItemProfile || pItemProvider);523 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add)->setEnabled(!pItem || pItemProvider); 524 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import)->setEnabled(!pItem || pItemProvider); 525 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove)->setEnabled(pItemProfile); 526 m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->setEnabled(pItemProfile || pItemProvider); 527 527 528 528 /* If there is an item => update details data: */ … … 534 534 535 535 /* Update details area visibility: */ 536 sltToggleCloudProfileDetailsVisibility(pItem && m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details)->isChecked());536 sltToggleCloudProfileDetailsVisibility(pItem && m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->isChecked()); 537 537 } 538 538 … … 548 548 if (pItemProfile) 549 549 { 550 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Remove));551 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details));550 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove)); 551 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)); 552 552 } 553 553 else if (pItemProvider) 554 554 { 555 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Add));556 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Import));557 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details));555 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add)); 556 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import)); 557 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)); 558 558 } 559 559 … … 611 611 { 612 612 /* First of all, add actions which has smaller shortcut scope: */ 613 addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Add));614 addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Import));615 addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Remove));616 addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details));617 addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_TryPage));618 addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Help));613 addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add)); 614 addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import)); 615 addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove)); 616 addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)); 617 addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_TryPage)); 618 addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Help)); 619 619 } 620 620 … … 657 657 658 658 /* Add toolbar actions: */ 659 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Add));660 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Import));659 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add)); 660 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import)); 661 661 m_pToolBar->addSeparator(); 662 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Remove));663 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details));662 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove)); 663 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)); 664 664 m_pToolBar->addSeparator(); 665 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_TryPage));666 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Help));665 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_TryPage)); 666 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Help)); 667 667 668 668 #ifdef VBOX_WS_MAC … … 720 720 { 721 721 /* Action connections: */ 722 connect(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Add), &QAction::triggered,722 connect(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add), &QAction::triggered, 723 723 this, &UICloudProfileManagerWidget::sltAddCloudProfile); 724 connect(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Import), &QAction::triggered,724 connect(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import), &QAction::triggered, 725 725 this, &UICloudProfileManagerWidget::sltImportCloudProfiles); 726 connect(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Remove), &QAction::triggered,726 connect(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove), &QAction::triggered, 727 727 this, &UICloudProfileManagerWidget::sltRemoveCloudProfile); 728 connect(m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details), &QAction::toggled,728 connect(m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details), &QAction::toggled, 729 729 this, &UICloudProfileManagerWidget::sltToggleCloudProfileDetailsVisibility); 730 connect(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_TryPage), &QAction::triggered,730 connect(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_TryPage), &QAction::triggered, 731 731 this, &UICloudProfileManagerWidget::sltShowCloudProfileTryPage); 732 connect(m_pActionPool->action(UIActionIndex ST_M_Cloud_S_Help), &QAction::triggered,732 connect(m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Help), &QAction::triggered, 733 733 this, &UICloudProfileManagerWidget::sltShowCloudProfileHelp); 734 734 … … 743 743 this, &UICloudProfileManagerWidget::sltHandleContextMenuRequest); 744 744 connect(m_pTreeWidget, &QITreeWidget::itemDoubleClicked, 745 m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details), &QAction::setChecked);745 m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details), &QAction::setChecked); 746 746 connect(m_pTreeWidget, &QITreeWidget::itemChanged, 747 747 this, &UICloudProfileManagerWidget::sltHandleItemChange); … … 763 763 { 764 764 /* Details action/widget: */ 765 m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details)->setChecked(gEDataManager->cloudProfileManagerDetailsExpanded());766 sltToggleCloudProfileDetailsVisibility(m_pActionPool->action(UIActionIndex ST_M_Cloud_T_Details)->isChecked());765 m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->setChecked(gEDataManager->cloudProfileManagerDetailsExpanded()); 766 sltToggleCloudProfileDetailsVisibility(m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->isChecked()); 767 767 } 768 768 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r85572 r85597 3366 3366 { 3367 3367 /* 'File' actions: */ 3368 m_pool[UIActionIndex ST_M_File] = new UIActionMenuSelectorFile(this);3369 m_pool[UIActionIndex ST_M_File_S_ShowVirtualMediumManager] = new UIActionSimpleSelectorFileShowVirtualMediaManager(this);3370 m_pool[UIActionIndex ST_M_File_S_ShowHostNetworkManager] = new UIActionSimpleSelectorFileShowHostNetworkManager(this);3371 m_pool[UIActionIndex ST_M_File_S_ShowCloudProfileManager] = new UIActionSimpleSelectorFileShowCloudProfileManager(this);3372 m_pool[UIActionIndex ST_M_File_S_ImportAppliance] = new UIActionSimpleSelectorFileShowImportApplianceWizard(this);3373 m_pool[UIActionIndex ST_M_File_S_ExportAppliance] = new UIActionSimpleSelectorFileShowExportApplianceWizard(this);3374 m_pool[UIActionIndex ST_M_File_S_NewCloudVM] = new UIActionSimpleSelectorFileShowNewCloudVMWizard(this);3368 m_pool[UIActionIndexMN_M_File] = new UIActionMenuSelectorFile(this); 3369 m_pool[UIActionIndexMN_M_File_S_ShowVirtualMediumManager] = new UIActionSimpleSelectorFileShowVirtualMediaManager(this); 3370 m_pool[UIActionIndexMN_M_File_S_ShowHostNetworkManager] = new UIActionSimpleSelectorFileShowHostNetworkManager(this); 3371 m_pool[UIActionIndexMN_M_File_S_ShowCloudProfileManager] = new UIActionSimpleSelectorFileShowCloudProfileManager(this); 3372 m_pool[UIActionIndexMN_M_File_S_ImportAppliance] = new UIActionSimpleSelectorFileShowImportApplianceWizard(this); 3373 m_pool[UIActionIndexMN_M_File_S_ExportAppliance] = new UIActionSimpleSelectorFileShowExportApplianceWizard(this); 3374 m_pool[UIActionIndexMN_M_File_S_NewCloudVM] = new UIActionSimpleSelectorFileShowNewCloudVMWizard(this); 3375 3375 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 3376 m_pool[UIActionIndex ST_M_File_S_ShowExtraDataManager] = new UIActionSimpleSelectorFileShowExtraDataManager(this);3376 m_pool[UIActionIndexMN_M_File_S_ShowExtraDataManager] = new UIActionSimpleSelectorFileShowExtraDataManager(this); 3377 3377 #endif 3378 m_pool[UIActionIndex ST_M_File_S_Close] = new UIActionSimpleSelectorFilePerformExit(this);3378 m_pool[UIActionIndexMN_M_File_S_Close] = new UIActionSimpleSelectorFilePerformExit(this); 3379 3379 3380 3380 /* 'Welcome' actions: */ 3381 m_pool[UIActionIndex ST_M_Welcome] = new UIActionMenuSelectorMachine(this);3382 m_pool[UIActionIndex ST_M_Welcome_S_New] = new UIActionSimpleSelectorMachinePerformCreate(this);3383 m_pool[UIActionIndex ST_M_Welcome_S_Add] = new UIActionSimpleSelectorMachinePerformAdd(this);3381 m_pool[UIActionIndexMN_M_Welcome] = new UIActionMenuSelectorMachine(this); 3382 m_pool[UIActionIndexMN_M_Welcome_S_New] = new UIActionSimpleSelectorMachinePerformCreate(this); 3383 m_pool[UIActionIndexMN_M_Welcome_S_Add] = new UIActionSimpleSelectorMachinePerformAdd(this); 3384 3384 3385 3385 /* 'Group' actions: */ 3386 m_pool[UIActionIndex ST_M_Group] = new UIActionMenuSelectorGroup(this);3387 m_pool[UIActionIndex ST_M_Group_S_New] = new UIActionSimpleSelectorGroupPerformCreateMachine(this);3388 m_pool[UIActionIndex ST_M_Group_S_Add] = new UIActionSimpleSelectorGroupPerformAddMachine(this);3389 m_pool[UIActionIndex ST_M_Group_S_Rename] = new UIActionSimpleSelectorGroupPerformRename(this);3390 m_pool[UIActionIndex ST_M_Group_S_Remove] = new UIActionSimpleSelectorGroupPerformRemove(this);3391 m_pool[UIActionIndex ST_M_Group_M_MoveToGroup] = new UIActionMenuSelectorCommonMoveToGroup(this);3392 m_pool[UIActionIndex ST_M_Group_M_StartOrShow] = new UIActionStateSelectorCommonStartOrShow(this);3393 m_pool[UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal] = new UIActionSimpleSelectorCommonPerformStartNormal(this);3394 m_pool[UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless] = new UIActionSimpleSelectorCommonPerformStartHeadless(this);3395 m_pool[UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable] = new UIActionSimpleSelectorCommonPerformStartDetachable(this);3396 m_pool[UIActionIndex ST_M_Group_T_Pause] = new UIActionToggleSelectorCommonPauseAndResume(this);3397 m_pool[UIActionIndex ST_M_Group_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this);3398 m_pool[UIActionIndex ST_M_Group_M_Console] = new UIActionMenuSelectorConsole(this);3399 m_pool[UIActionIndex ST_M_Group_M_Console_S_CreateConnection] = new UIActionSimpleSelectorConsolePerformCreateConnection(this);3400 m_pool[UIActionIndex ST_M_Group_M_Console_S_DeleteConnection] = new UIActionSimpleSelectorConsolePerformDeleteConnection(this);3401 m_pool[UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications] = new UIActionSimpleSelectorConsolePerformConfigureApplications(this);3402 m_pool[UIActionIndex ST_M_Group_M_Close] = new UIActionMenuSelectorClose(this);3403 m_pool[UIActionIndex ST_M_Group_M_Close_S_Detach] = new UIActionSimpleSelectorClosePerformDetach(this);3404 m_pool[UIActionIndex ST_M_Group_M_Close_S_SaveState] = new UIActionSimpleSelectorClosePerformSave(this);3405 m_pool[UIActionIndex ST_M_Group_M_Close_S_Shutdown] = new UIActionSimpleSelectorClosePerformShutdown(this);3406 m_pool[UIActionIndex ST_M_Group_M_Close_S_PowerOff] = new UIActionSimpleSelectorClosePerformPowerOff(this);3407 m_pool[UIActionIndex ST_M_Group_M_Tools] = new UIActionMenuSelectorToolsMachine(this);3408 m_pool[UIActionIndex ST_M_Group_M_Tools_T_Details] = new UIActionToggleSelectorToolsMachineShowDetails(this);3409 m_pool[UIActionIndex ST_M_Group_M_Tools_T_Snapshots] = new UIActionToggleSelectorToolsMachineShowSnapshots(this);3410 m_pool[UIActionIndex ST_M_Group_M_Tools_T_Logs] = new UIActionToggleSelectorToolsMachineShowLogs(this);3411 m_pool[UIActionIndex ST_M_Group_M_Tools_T_Performance] = new UIActionToggleSelectorToolsMachineShowPerformance(this);3412 m_pool[UIActionIndex ST_M_Group_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this);3413 m_pool[UIActionIndex ST_M_Group_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this);3414 m_pool[UIActionIndex ST_M_Group_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this);3415 m_pool[UIActionIndex ST_M_Group_S_Refresh] = new UIActionSimpleSelectorCommonPerformRefresh(this);3416 m_pool[UIActionIndex ST_M_Group_S_ShowInFileManager] = new UIActionSimpleSelectorCommonShowInFileManager(this);3417 m_pool[UIActionIndex ST_M_Group_S_CreateShortcut] = new UIActionSimpleSelectorCommonPerformCreateShortcut(this);3418 m_pool[UIActionIndex ST_M_Group_S_Sort] = new UIActionSimpleSelectorGroupPerformSort(this);3386 m_pool[UIActionIndexMN_M_Group] = new UIActionMenuSelectorGroup(this); 3387 m_pool[UIActionIndexMN_M_Group_S_New] = new UIActionSimpleSelectorGroupPerformCreateMachine(this); 3388 m_pool[UIActionIndexMN_M_Group_S_Add] = new UIActionSimpleSelectorGroupPerformAddMachine(this); 3389 m_pool[UIActionIndexMN_M_Group_S_Rename] = new UIActionSimpleSelectorGroupPerformRename(this); 3390 m_pool[UIActionIndexMN_M_Group_S_Remove] = new UIActionSimpleSelectorGroupPerformRemove(this); 3391 m_pool[UIActionIndexMN_M_Group_M_MoveToGroup] = new UIActionMenuSelectorCommonMoveToGroup(this); 3392 m_pool[UIActionIndexMN_M_Group_M_StartOrShow] = new UIActionStateSelectorCommonStartOrShow(this); 3393 m_pool[UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal] = new UIActionSimpleSelectorCommonPerformStartNormal(this); 3394 m_pool[UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless] = new UIActionSimpleSelectorCommonPerformStartHeadless(this); 3395 m_pool[UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable] = new UIActionSimpleSelectorCommonPerformStartDetachable(this); 3396 m_pool[UIActionIndexMN_M_Group_T_Pause] = new UIActionToggleSelectorCommonPauseAndResume(this); 3397 m_pool[UIActionIndexMN_M_Group_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this); 3398 m_pool[UIActionIndexMN_M_Group_M_Console] = new UIActionMenuSelectorConsole(this); 3399 m_pool[UIActionIndexMN_M_Group_M_Console_S_CreateConnection] = new UIActionSimpleSelectorConsolePerformCreateConnection(this); 3400 m_pool[UIActionIndexMN_M_Group_M_Console_S_DeleteConnection] = new UIActionSimpleSelectorConsolePerformDeleteConnection(this); 3401 m_pool[UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications] = new UIActionSimpleSelectorConsolePerformConfigureApplications(this); 3402 m_pool[UIActionIndexMN_M_Group_M_Close] = new UIActionMenuSelectorClose(this); 3403 m_pool[UIActionIndexMN_M_Group_M_Close_S_Detach] = new UIActionSimpleSelectorClosePerformDetach(this); 3404 m_pool[UIActionIndexMN_M_Group_M_Close_S_SaveState] = new UIActionSimpleSelectorClosePerformSave(this); 3405 m_pool[UIActionIndexMN_M_Group_M_Close_S_Shutdown] = new UIActionSimpleSelectorClosePerformShutdown(this); 3406 m_pool[UIActionIndexMN_M_Group_M_Close_S_PowerOff] = new UIActionSimpleSelectorClosePerformPowerOff(this); 3407 m_pool[UIActionIndexMN_M_Group_M_Tools] = new UIActionMenuSelectorToolsMachine(this); 3408 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Details] = new UIActionToggleSelectorToolsMachineShowDetails(this); 3409 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Snapshots] = new UIActionToggleSelectorToolsMachineShowSnapshots(this); 3410 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Logs] = new UIActionToggleSelectorToolsMachineShowLogs(this); 3411 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Performance] = new UIActionToggleSelectorToolsMachineShowPerformance(this); 3412 m_pool[UIActionIndexMN_M_Group_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this); 3413 m_pool[UIActionIndexMN_M_Group_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this); 3414 m_pool[UIActionIndexMN_M_Group_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this); 3415 m_pool[UIActionIndexMN_M_Group_S_Refresh] = new UIActionSimpleSelectorCommonPerformRefresh(this); 3416 m_pool[UIActionIndexMN_M_Group_S_ShowInFileManager] = new UIActionSimpleSelectorCommonShowInFileManager(this); 3417 m_pool[UIActionIndexMN_M_Group_S_CreateShortcut] = new UIActionSimpleSelectorCommonPerformCreateShortcut(this); 3418 m_pool[UIActionIndexMN_M_Group_S_Sort] = new UIActionSimpleSelectorGroupPerformSort(this); 3419 3419 3420 3420 /* 'Machine' actions: */ 3421 m_pool[UIActionIndex ST_M_Machine] = new UIActionMenuSelectorMachine(this);3422 m_pool[UIActionIndex ST_M_Machine_S_New] = new UIActionSimpleSelectorMachinePerformCreate(this);3423 m_pool[UIActionIndex ST_M_Machine_S_Add] = new UIActionSimpleSelectorMachinePerformAdd(this);3424 m_pool[UIActionIndex ST_M_Machine_S_Settings] = new UIActionSimpleSelectorMachineShowSettings(this);3425 m_pool[UIActionIndex ST_M_Machine_S_Clone] = new UIActionSimpleSelectorMachinePerformClone(this);3426 m_pool[UIActionIndex ST_M_Machine_S_Move] = new UIActionSimpleSelectorMachinePerformMove(this);3427 m_pool[UIActionIndex ST_M_Machine_S_ExportToOCI] = new UIActionSimpleSelectorMachinePerformExportToOCI(this);3428 m_pool[UIActionIndex ST_M_Machine_S_Remove] = new UIActionSimpleSelectorMachinePerformRemove(this);3429 m_pool[UIActionIndex ST_M_Machine_M_MoveToGroup] = new UIActionMenuSelectorCommonMoveToGroup(this);3430 m_pool[UIActionIndex ST_M_Machine_M_MoveToGroup_S_New] = new UIActionSimpleSelectorMachineMoveToGroupNew(this);3431 m_pool[UIActionIndex ST_M_Machine_M_StartOrShow] = new UIActionStateSelectorCommonStartOrShow(this);3432 m_pool[UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal] = new UIActionSimpleSelectorCommonPerformStartNormal(this);3433 m_pool[UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless] = new UIActionSimpleSelectorCommonPerformStartHeadless(this);3434 m_pool[UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable] = new UIActionSimpleSelectorCommonPerformStartDetachable(this);3435 m_pool[UIActionIndex ST_M_Machine_T_Pause] = new UIActionToggleSelectorCommonPauseAndResume(this);3436 m_pool[UIActionIndex ST_M_Machine_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this);3437 m_pool[UIActionIndex ST_M_Machine_M_Console] = new UIActionMenuSelectorConsole(this);3438 m_pool[UIActionIndex ST_M_Machine_M_Console_S_CreateConnection] = new UIActionSimpleSelectorConsolePerformCreateConnection(this);3439 m_pool[UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection] = new UIActionSimpleSelectorConsolePerformDeleteConnection(this);3440 m_pool[UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, true, true);3441 m_pool[UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, true, false);3442 m_pool[UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, false, true);3443 m_pool[UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, false, false);3444 m_pool[UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications] = new UIActionSimpleSelectorConsolePerformConfigureApplications(this);3445 m_pool[UIActionIndex ST_M_Machine_M_Close] = new UIActionMenuSelectorClose(this);3446 m_pool[UIActionIndex ST_M_Machine_M_Close_S_Detach] = new UIActionSimpleSelectorClosePerformDetach(this);3447 m_pool[UIActionIndex ST_M_Machine_M_Close_S_SaveState] = new UIActionSimpleSelectorClosePerformSave(this);3448 m_pool[UIActionIndex ST_M_Machine_M_Close_S_Shutdown] = new UIActionSimpleSelectorClosePerformShutdown(this);3449 m_pool[UIActionIndex ST_M_Machine_M_Close_S_PowerOff] = new UIActionSimpleSelectorClosePerformPowerOff(this);3450 m_pool[UIActionIndex ST_M_Machine_M_Tools] = new UIActionMenuSelectorToolsMachine(this);3451 m_pool[UIActionIndex ST_M_Machine_M_Tools_T_Details] = new UIActionToggleSelectorToolsMachineShowDetails(this);3452 m_pool[UIActionIndex ST_M_Machine_M_Tools_T_Snapshots] = new UIActionToggleSelectorToolsMachineShowSnapshots(this);3453 m_pool[UIActionIndex ST_M_Machine_M_Tools_T_Logs] = new UIActionToggleSelectorToolsMachineShowLogs(this);3454 m_pool[UIActionIndex ST_M_Machine_M_Tools_T_Performance] = new UIActionToggleSelectorToolsMachineShowPerformance(this);3455 m_pool[UIActionIndex ST_M_Machine_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this);3456 m_pool[UIActionIndex ST_M_Machine_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this);3457 m_pool[UIActionIndex ST_M_Machine_S_Refresh] = new UIActionSimpleSelectorCommonPerformRefresh(this);3458 m_pool[UIActionIndex ST_M_Machine_S_ShowInFileManager] = new UIActionSimpleSelectorCommonShowInFileManager(this);3459 m_pool[UIActionIndex ST_M_Machine_S_CreateShortcut] = new UIActionSimpleSelectorCommonPerformCreateShortcut(this);3460 m_pool[UIActionIndex ST_M_Machine_S_SortParent] = new UIActionSimpleSelectorMachinePerformSortParent(this);3461 m_pool[UIActionIndex ST_M_Machine_T_Search] = new UIActionToggleSelectorMachineToggleSearch(this);3421 m_pool[UIActionIndexMN_M_Machine] = new UIActionMenuSelectorMachine(this); 3422 m_pool[UIActionIndexMN_M_Machine_S_New] = new UIActionSimpleSelectorMachinePerformCreate(this); 3423 m_pool[UIActionIndexMN_M_Machine_S_Add] = new UIActionSimpleSelectorMachinePerformAdd(this); 3424 m_pool[UIActionIndexMN_M_Machine_S_Settings] = new UIActionSimpleSelectorMachineShowSettings(this); 3425 m_pool[UIActionIndexMN_M_Machine_S_Clone] = new UIActionSimpleSelectorMachinePerformClone(this); 3426 m_pool[UIActionIndexMN_M_Machine_S_Move] = new UIActionSimpleSelectorMachinePerformMove(this); 3427 m_pool[UIActionIndexMN_M_Machine_S_ExportToOCI] = new UIActionSimpleSelectorMachinePerformExportToOCI(this); 3428 m_pool[UIActionIndexMN_M_Machine_S_Remove] = new UIActionSimpleSelectorMachinePerformRemove(this); 3429 m_pool[UIActionIndexMN_M_Machine_M_MoveToGroup] = new UIActionMenuSelectorCommonMoveToGroup(this); 3430 m_pool[UIActionIndexMN_M_Machine_M_MoveToGroup_S_New] = new UIActionSimpleSelectorMachineMoveToGroupNew(this); 3431 m_pool[UIActionIndexMN_M_Machine_M_StartOrShow] = new UIActionStateSelectorCommonStartOrShow(this); 3432 m_pool[UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal] = new UIActionSimpleSelectorCommonPerformStartNormal(this); 3433 m_pool[UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless] = new UIActionSimpleSelectorCommonPerformStartHeadless(this); 3434 m_pool[UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable] = new UIActionSimpleSelectorCommonPerformStartDetachable(this); 3435 m_pool[UIActionIndexMN_M_Machine_T_Pause] = new UIActionToggleSelectorCommonPauseAndResume(this); 3436 m_pool[UIActionIndexMN_M_Machine_S_Reset] = new UIActionSimpleSelectorCommonPerformReset(this); 3437 m_pool[UIActionIndexMN_M_Machine_M_Console] = new UIActionMenuSelectorConsole(this); 3438 m_pool[UIActionIndexMN_M_Machine_M_Console_S_CreateConnection] = new UIActionSimpleSelectorConsolePerformCreateConnection(this); 3439 m_pool[UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection] = new UIActionSimpleSelectorConsolePerformDeleteConnection(this); 3440 m_pool[UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, true, true); 3441 m_pool[UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, true, false); 3442 m_pool[UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, false, true); 3443 m_pool[UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows] = new UIActionSimpleSelectorConsolePerformCopyCommand(this, false, false); 3444 m_pool[UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications] = new UIActionSimpleSelectorConsolePerformConfigureApplications(this); 3445 m_pool[UIActionIndexMN_M_Machine_M_Close] = new UIActionMenuSelectorClose(this); 3446 m_pool[UIActionIndexMN_M_Machine_M_Close_S_Detach] = new UIActionSimpleSelectorClosePerformDetach(this); 3447 m_pool[UIActionIndexMN_M_Machine_M_Close_S_SaveState] = new UIActionSimpleSelectorClosePerformSave(this); 3448 m_pool[UIActionIndexMN_M_Machine_M_Close_S_Shutdown] = new UIActionSimpleSelectorClosePerformShutdown(this); 3449 m_pool[UIActionIndexMN_M_Machine_M_Close_S_PowerOff] = new UIActionSimpleSelectorClosePerformPowerOff(this); 3450 m_pool[UIActionIndexMN_M_Machine_M_Tools] = new UIActionMenuSelectorToolsMachine(this); 3451 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Details] = new UIActionToggleSelectorToolsMachineShowDetails(this); 3452 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Snapshots] = new UIActionToggleSelectorToolsMachineShowSnapshots(this); 3453 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Logs] = new UIActionToggleSelectorToolsMachineShowLogs(this); 3454 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Performance] = new UIActionToggleSelectorToolsMachineShowPerformance(this); 3455 m_pool[UIActionIndexMN_M_Machine_S_Discard] = new UIActionSimpleSelectorCommonPerformDiscard(this); 3456 m_pool[UIActionIndexMN_M_Machine_S_ShowLogDialog] = new UIActionSimpleSelectorCommonShowMachineLogs(this); 3457 m_pool[UIActionIndexMN_M_Machine_S_Refresh] = new UIActionSimpleSelectorCommonPerformRefresh(this); 3458 m_pool[UIActionIndexMN_M_Machine_S_ShowInFileManager] = new UIActionSimpleSelectorCommonShowInFileManager(this); 3459 m_pool[UIActionIndexMN_M_Machine_S_CreateShortcut] = new UIActionSimpleSelectorCommonPerformCreateShortcut(this); 3460 m_pool[UIActionIndexMN_M_Machine_S_SortParent] = new UIActionSimpleSelectorMachinePerformSortParent(this); 3461 m_pool[UIActionIndexMN_M_Machine_T_Search] = new UIActionToggleSelectorMachineToggleSearch(this); 3462 3462 3463 3463 /* Global Tools actions: */ 3464 m_pool[UIActionIndex ST_M_Tools_M_Global] = new UIActionMenuSelectorToolsGlobal(this);3465 m_pool[UIActionIndex ST_M_Tools_M_Global_S_VirtualMediaManager] = new UIActionSimpleSelectorToolsGlobalShowVirtualMediaManager(this);3466 m_pool[UIActionIndex ST_M_Tools_M_Global_S_HostNetworkManager] = new UIActionSimpleSelectorToolsGlobalShowHostNetworkManager(this);3467 m_pool[UIActionIndex ST_M_Tools_M_Global_S_CloudProfileManager] = new UIActionSimpleSelectorToolsGlobalShowCloudProfileManager(this);3468 m_pool[UIActionIndex ST_M_Tools_M_Global_S_VMResourceMonitor] = new UIActionSimpleSelectorToolsGlobalShowVMResourceMonitor(this);3464 m_pool[UIActionIndexMN_M_Tools_M_Global] = new UIActionMenuSelectorToolsGlobal(this); 3465 m_pool[UIActionIndexMN_M_Tools_M_Global_S_VirtualMediaManager] = new UIActionSimpleSelectorToolsGlobalShowVirtualMediaManager(this); 3466 m_pool[UIActionIndexMN_M_Tools_M_Global_S_HostNetworkManager] = new UIActionSimpleSelectorToolsGlobalShowHostNetworkManager(this); 3467 m_pool[UIActionIndexMN_M_Tools_M_Global_S_CloudProfileManager] = new UIActionSimpleSelectorToolsGlobalShowCloudProfileManager(this); 3468 m_pool[UIActionIndexMN_M_Tools_M_Global_S_VMResourceMonitor] = new UIActionSimpleSelectorToolsGlobalShowVMResourceMonitor(this); 3469 3469 3470 3470 /* Snapshot Pane actions: */ 3471 m_pool[UIActionIndex ST_M_Snapshot] = new UIActionMenuSelectorSnapshot(this);3472 m_pool[UIActionIndex ST_M_Snapshot_S_Take] = new UIActionMenuSelectorSnapshotPerformTake(this);3473 m_pool[UIActionIndex ST_M_Snapshot_S_Delete] = new UIActionMenuSelectorSnapshotPerformDelete(this);3474 m_pool[UIActionIndex ST_M_Snapshot_S_Restore] = new UIActionMenuSelectorSnapshotPerformRestore(this);3475 m_pool[UIActionIndex ST_M_Snapshot_T_Properties] = new UIActionMenuSelectorSnapshotToggleProperties(this);3476 m_pool[UIActionIndex ST_M_Snapshot_S_Clone] = new UIActionMenuSelectorSnapshotPerformClone(this);3471 m_pool[UIActionIndexMN_M_Snapshot] = new UIActionMenuSelectorSnapshot(this); 3472 m_pool[UIActionIndexMN_M_Snapshot_S_Take] = new UIActionMenuSelectorSnapshotPerformTake(this); 3473 m_pool[UIActionIndexMN_M_Snapshot_S_Delete] = new UIActionMenuSelectorSnapshotPerformDelete(this); 3474 m_pool[UIActionIndexMN_M_Snapshot_S_Restore] = new UIActionMenuSelectorSnapshotPerformRestore(this); 3475 m_pool[UIActionIndexMN_M_Snapshot_T_Properties] = new UIActionMenuSelectorSnapshotToggleProperties(this); 3476 m_pool[UIActionIndexMN_M_Snapshot_S_Clone] = new UIActionMenuSelectorSnapshotPerformClone(this); 3477 3477 3478 3478 /* Virtual Medium Manager actions: */ 3479 m_pool[UIActionIndex ST_M_MediumWindow] = new UIActionMenuSelectorMedium(this);3480 m_pool[UIActionIndex ST_M_Medium] = new UIActionMenuSelectorMedium(this);3481 m_pool[UIActionIndex ST_M_Medium_S_Add] = new UIActionMenuSelectorMediumPerformAdd(this);3482 m_pool[UIActionIndex ST_M_Medium_S_Create] = new UIActionMenuSelectorMediumPerformCreate(this);3483 m_pool[UIActionIndex ST_M_Medium_S_Copy] = new UIActionMenuSelectorMediumPerformCopy(this);3484 m_pool[UIActionIndex ST_M_Medium_S_Move] = new UIActionMenuSelectorMediumPerformMove(this);3485 m_pool[UIActionIndex ST_M_Medium_S_Remove] = new UIActionMenuSelectorMediumPerformRemove(this);3486 m_pool[UIActionIndex ST_M_Medium_S_Release] = new UIActionMenuSelectorMediumPerformRelease(this);3487 m_pool[UIActionIndex ST_M_Medium_T_Details] = new UIActionMenuSelectorMediumToggleProperties(this);3488 m_pool[UIActionIndex ST_M_Medium_T_Search] = new UIActionMenuSelectorMediumToggleSearch(this);3489 m_pool[UIActionIndex ST_M_Medium_S_Refresh] = new UIActionMenuSelectorMediumPerformRefresh(this);3479 m_pool[UIActionIndexMN_M_MediumWindow] = new UIActionMenuSelectorMedium(this); 3480 m_pool[UIActionIndexMN_M_Medium] = new UIActionMenuSelectorMedium(this); 3481 m_pool[UIActionIndexMN_M_Medium_S_Add] = new UIActionMenuSelectorMediumPerformAdd(this); 3482 m_pool[UIActionIndexMN_M_Medium_S_Create] = new UIActionMenuSelectorMediumPerformCreate(this); 3483 m_pool[UIActionIndexMN_M_Medium_S_Copy] = new UIActionMenuSelectorMediumPerformCopy(this); 3484 m_pool[UIActionIndexMN_M_Medium_S_Move] = new UIActionMenuSelectorMediumPerformMove(this); 3485 m_pool[UIActionIndexMN_M_Medium_S_Remove] = new UIActionMenuSelectorMediumPerformRemove(this); 3486 m_pool[UIActionIndexMN_M_Medium_S_Release] = new UIActionMenuSelectorMediumPerformRelease(this); 3487 m_pool[UIActionIndexMN_M_Medium_T_Details] = new UIActionMenuSelectorMediumToggleProperties(this); 3488 m_pool[UIActionIndexMN_M_Medium_T_Search] = new UIActionMenuSelectorMediumToggleSearch(this); 3489 m_pool[UIActionIndexMN_M_Medium_S_Refresh] = new UIActionMenuSelectorMediumPerformRefresh(this); 3490 3490 3491 3491 /* Host Network Manager actions: */ 3492 m_pool[UIActionIndex ST_M_NetworkWindow] = new UIActionMenuSelectorNetwork(this);3493 m_pool[UIActionIndex ST_M_Network] = new UIActionMenuSelectorNetwork(this);3494 m_pool[UIActionIndex ST_M_Network_S_Create] = new UIActionMenuSelectorNetworkPerformCreate(this);3495 m_pool[UIActionIndex ST_M_Network_S_Remove] = new UIActionMenuSelectorNetworkPerformRemove(this);3496 m_pool[UIActionIndex ST_M_Network_T_Details] = new UIActionMenuSelectorNetworkToggleProperties(this);3497 m_pool[UIActionIndex ST_M_Network_S_Refresh] = new UIActionMenuSelectorNetworkPerformRefresh(this);3492 m_pool[UIActionIndexMN_M_NetworkWindow] = new UIActionMenuSelectorNetwork(this); 3493 m_pool[UIActionIndexMN_M_Network] = new UIActionMenuSelectorNetwork(this); 3494 m_pool[UIActionIndexMN_M_Network_S_Create] = new UIActionMenuSelectorNetworkPerformCreate(this); 3495 m_pool[UIActionIndexMN_M_Network_S_Remove] = new UIActionMenuSelectorNetworkPerformRemove(this); 3496 m_pool[UIActionIndexMN_M_Network_T_Details] = new UIActionMenuSelectorNetworkToggleProperties(this); 3497 m_pool[UIActionIndexMN_M_Network_S_Refresh] = new UIActionMenuSelectorNetworkPerformRefresh(this); 3498 3498 3499 3499 /* Cloud Profile Manager actions: */ 3500 m_pool[UIActionIndex ST_M_CloudWindow] = new UIActionMenuSelectorCloud(this);3501 m_pool[UIActionIndex ST_M_Cloud] = new UIActionMenuSelectorCloud(this);3502 m_pool[UIActionIndex ST_M_Cloud_S_Add] = new UIActionMenuSelectorCloudPerformAdd(this);3503 m_pool[UIActionIndex ST_M_Cloud_S_Import] = new UIActionMenuSelectorCloudPerformImport(this);3504 m_pool[UIActionIndex ST_M_Cloud_S_Remove] = new UIActionMenuSelectorCloudPerformRemove(this);3505 m_pool[UIActionIndex ST_M_Cloud_T_Details] = new UIActionMenuSelectorCloudToggleProperties(this);3506 m_pool[UIActionIndex ST_M_Cloud_S_TryPage] = new UIActionMenuSelectorCloudShowTryPage(this);3507 m_pool[UIActionIndex ST_M_Cloud_S_Help] = new UIActionMenuSelectorCloudShowHelp(this);3500 m_pool[UIActionIndexMN_M_CloudWindow] = new UIActionMenuSelectorCloud(this); 3501 m_pool[UIActionIndexMN_M_Cloud] = new UIActionMenuSelectorCloud(this); 3502 m_pool[UIActionIndexMN_M_Cloud_S_Add] = new UIActionMenuSelectorCloudPerformAdd(this); 3503 m_pool[UIActionIndexMN_M_Cloud_S_Import] = new UIActionMenuSelectorCloudPerformImport(this); 3504 m_pool[UIActionIndexMN_M_Cloud_S_Remove] = new UIActionMenuSelectorCloudPerformRemove(this); 3505 m_pool[UIActionIndexMN_M_Cloud_T_Details] = new UIActionMenuSelectorCloudToggleProperties(this); 3506 m_pool[UIActionIndexMN_M_Cloud_S_TryPage] = new UIActionMenuSelectorCloudShowTryPage(this); 3507 m_pool[UIActionIndexMN_M_Cloud_S_Help] = new UIActionMenuSelectorCloudShowHelp(this); 3508 3508 3509 3509 /* Cloud Console Manager actions: */ 3510 m_pool[UIActionIndex ST_M_CloudConsoleWindow] = new UIActionMenuSelectorCloudConsole(this);3511 m_pool[UIActionIndex ST_M_CloudConsole] = new UIActionMenuSelectorCloudConsole(this);3512 m_pool[UIActionIndex ST_M_CloudConsole_S_ApplicationAdd] = new UIActionMenuSelectorCloudConsolePerformApplicationAdd(this);3513 m_pool[UIActionIndex ST_M_CloudConsole_S_ApplicationRemove] = new UIActionMenuSelectorCloudConsolePerformApplicationRemove(this);3514 m_pool[UIActionIndex ST_M_CloudConsole_S_ProfileAdd] = new UIActionMenuSelectorCloudConsolePerformProfileAdd(this);3515 m_pool[UIActionIndex ST_M_CloudConsole_S_ProfileRemove] = new UIActionMenuSelectorCloudConsolePerformProfileRemove(this);3516 m_pool[UIActionIndex ST_M_CloudConsole_T_Details] = new UIActionMenuSelectorCloudConsoleToggleProperties(this);3510 m_pool[UIActionIndexMN_M_CloudConsoleWindow] = new UIActionMenuSelectorCloudConsole(this); 3511 m_pool[UIActionIndexMN_M_CloudConsole] = new UIActionMenuSelectorCloudConsole(this); 3512 m_pool[UIActionIndexMN_M_CloudConsole_S_ApplicationAdd] = new UIActionMenuSelectorCloudConsolePerformApplicationAdd(this); 3513 m_pool[UIActionIndexMN_M_CloudConsole_S_ApplicationRemove] = new UIActionMenuSelectorCloudConsolePerformApplicationRemove(this); 3514 m_pool[UIActionIndexMN_M_CloudConsole_S_ProfileAdd] = new UIActionMenuSelectorCloudConsolePerformProfileAdd(this); 3515 m_pool[UIActionIndexMN_M_CloudConsole_S_ProfileRemove] = new UIActionMenuSelectorCloudConsolePerformProfileRemove(this); 3516 m_pool[UIActionIndexMN_M_CloudConsole_T_Details] = new UIActionMenuSelectorCloudConsoleToggleProperties(this); 3517 3517 3518 3518 /* VM resource Monitor actions: */ 3519 m_pool[UIActionIndex ST_M_VMResourceMonitor] = new UIActionMenuVMResourceMonitor(this);3520 m_pool[UIActionIndex ST_M_VMResourceMonitor_M_Columns] = new UIActionMenuSelectorVMResourceMonitorToggleColumns(this);3521 m_pool[UIActionIndex ST_M_VMResourceMonitor_S_SwitchToMachinePerformance] = new UIActionMenuSelectorVMResourceMonitorSwitchToMachinePerformance(this);3519 m_pool[UIActionIndexMN_M_VMResourceMonitor] = new UIActionMenuVMResourceMonitor(this); 3520 m_pool[UIActionIndexMN_M_VMResourceMonitor_M_Columns] = new UIActionMenuSelectorVMResourceMonitorToggleColumns(this); 3521 m_pool[UIActionIndexMN_M_VMResourceMonitor_S_SwitchToMachinePerformance] = new UIActionMenuSelectorVMResourceMonitorSwitchToMachinePerformance(this); 3522 3522 3523 3523 /* 'Group' action groups: */ 3524 m_groupPool[UIActionIndex ST_M_Group_M_Tools] = new QActionGroup(m_pool.value(UIActionIndexST_M_Group_M_Tools));3525 m_groupPool[UIActionIndex ST_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Group_M_Tools_T_Details));3526 m_groupPool[UIActionIndex ST_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Group_M_Tools_T_Snapshots));3527 m_groupPool[UIActionIndex ST_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Group_M_Tools_T_Logs));3528 m_groupPool[UIActionIndex ST_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Group_M_Tools_T_Performance));3524 m_groupPool[UIActionIndexMN_M_Group_M_Tools] = new QActionGroup(m_pool.value(UIActionIndexMN_M_Group_M_Tools)); 3525 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Details)); 3526 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Snapshots)); 3527 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Logs)); 3528 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Performance)); 3529 3529 3530 3530 /* 'Machine' action groups: */ 3531 m_groupPool[UIActionIndex ST_M_Machine_M_Tools] = new QActionGroup(m_pool.value(UIActionIndexST_M_Machine_M_Tools));3532 m_groupPool[UIActionIndex ST_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Machine_M_Tools_T_Details));3533 m_groupPool[UIActionIndex ST_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Machine_M_Tools_T_Snapshots));3534 m_groupPool[UIActionIndex ST_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Machine_M_Tools_T_Logs));3535 m_groupPool[UIActionIndex ST_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexST_M_Machine_M_Tools_T_Performance));3531 m_groupPool[UIActionIndexMN_M_Machine_M_Tools] = new QActionGroup(m_pool.value(UIActionIndexMN_M_Machine_M_Tools)); 3532 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Details)); 3533 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots)); 3534 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Logs)); 3535 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Performance)); 3536 3536 3537 3537 /* Prepare update-handlers for known menus: */ 3538 m_menuUpdateHandlers[UIActionIndex ST_M_File].ptfm = &UIActionPoolManager::updateMenuFile;3539 m_menuUpdateHandlers[UIActionIndex ST_M_Welcome].ptfm = &UIActionPoolManager::updateMenuWelcome;3540 m_menuUpdateHandlers[UIActionIndex ST_M_Group].ptfm = &UIActionPoolManager::updateMenuGroup;3541 m_menuUpdateHandlers[UIActionIndex ST_M_Machine].ptfm = &UIActionPoolManager::updateMenuMachine;3542 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_MoveToGroup].ptfm = &UIActionPoolManager::updateMenuGroupMoveToGroup;3543 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_MoveToGroup].ptfm = &UIActionPoolManager::updateMenuMachineMoveToGroup;3544 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_StartOrShow].ptfm = &UIActionPoolManager::updateMenuGroupStartOrShow;3545 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_StartOrShow].ptfm = &UIActionPoolManager::updateMenuMachineStartOrShow;3546 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_Console].ptfm = &UIActionPoolManager::updateMenuGroupConsole;3547 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_Console].ptfm = &UIActionPoolManager::updateMenuMachineConsole;3548 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_Close].ptfm = &UIActionPoolManager::updateMenuGroupClose;3549 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_Close].ptfm = &UIActionPoolManager::updateMenuMachineClose;3550 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_Tools].ptfm = &UIActionPoolManager::updateMenuGroupTools;3551 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_Tools].ptfm = &UIActionPoolManager::updateMenuMachineTools;3552 m_menuUpdateHandlers[UIActionIndex ST_M_MediumWindow].ptfm = &UIActionPoolManager::updateMenuMediumWindow;3553 m_menuUpdateHandlers[UIActionIndex ST_M_Medium].ptfm = &UIActionPoolManager::updateMenuMedium;3554 m_menuUpdateHandlers[UIActionIndex ST_M_NetworkWindow].ptfm = &UIActionPoolManager::updateMenuNetworkWindow;3555 m_menuUpdateHandlers[UIActionIndex ST_M_Network].ptfm = &UIActionPoolManager::updateMenuNetwork;3556 m_menuUpdateHandlers[UIActionIndex ST_M_CloudWindow].ptfm = &UIActionPoolManager::updateMenuCloudWindow;3557 m_menuUpdateHandlers[UIActionIndex ST_M_Cloud].ptfm = &UIActionPoolManager::updateMenuCloud;3558 m_menuUpdateHandlers[UIActionIndex ST_M_CloudConsoleWindow].ptfm = &UIActionPoolManager::updateMenuCloudConsoleWindow;3559 m_menuUpdateHandlers[UIActionIndex ST_M_CloudConsole].ptfm = &UIActionPoolManager::updateMenuCloudConsole;3560 m_menuUpdateHandlers[UIActionIndex ST_M_VMResourceMonitor].ptfm = &UIActionPoolManager::updateMenuVMResourceMonitor;3561 m_menuUpdateHandlers[UIActionIndex ST_M_Snapshot].ptfm = &UIActionPoolManager::updateMenuSnapshot;3538 m_menuUpdateHandlers[UIActionIndexMN_M_File].ptfm = &UIActionPoolManager::updateMenuFile; 3539 m_menuUpdateHandlers[UIActionIndexMN_M_Welcome].ptfm = &UIActionPoolManager::updateMenuWelcome; 3540 m_menuUpdateHandlers[UIActionIndexMN_M_Group].ptfm = &UIActionPoolManager::updateMenuGroup; 3541 m_menuUpdateHandlers[UIActionIndexMN_M_Machine].ptfm = &UIActionPoolManager::updateMenuMachine; 3542 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_MoveToGroup].ptfm = &UIActionPoolManager::updateMenuGroupMoveToGroup; 3543 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_MoveToGroup].ptfm = &UIActionPoolManager::updateMenuMachineMoveToGroup; 3544 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_StartOrShow].ptfm = &UIActionPoolManager::updateMenuGroupStartOrShow; 3545 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_StartOrShow].ptfm = &UIActionPoolManager::updateMenuMachineStartOrShow; 3546 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_Console].ptfm = &UIActionPoolManager::updateMenuGroupConsole; 3547 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_Console].ptfm = &UIActionPoolManager::updateMenuMachineConsole; 3548 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_Close].ptfm = &UIActionPoolManager::updateMenuGroupClose; 3549 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_Close].ptfm = &UIActionPoolManager::updateMenuMachineClose; 3550 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_Tools].ptfm = &UIActionPoolManager::updateMenuGroupTools; 3551 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_Tools].ptfm = &UIActionPoolManager::updateMenuMachineTools; 3552 m_menuUpdateHandlers[UIActionIndexMN_M_MediumWindow].ptfm = &UIActionPoolManager::updateMenuMediumWindow; 3553 m_menuUpdateHandlers[UIActionIndexMN_M_Medium].ptfm = &UIActionPoolManager::updateMenuMedium; 3554 m_menuUpdateHandlers[UIActionIndexMN_M_NetworkWindow].ptfm = &UIActionPoolManager::updateMenuNetworkWindow; 3555 m_menuUpdateHandlers[UIActionIndexMN_M_Network].ptfm = &UIActionPoolManager::updateMenuNetwork; 3556 m_menuUpdateHandlers[UIActionIndexMN_M_CloudWindow].ptfm = &UIActionPoolManager::updateMenuCloudWindow; 3557 m_menuUpdateHandlers[UIActionIndexMN_M_Cloud].ptfm = &UIActionPoolManager::updateMenuCloud; 3558 m_menuUpdateHandlers[UIActionIndexMN_M_CloudConsoleWindow].ptfm = &UIActionPoolManager::updateMenuCloudConsoleWindow; 3559 m_menuUpdateHandlers[UIActionIndexMN_M_CloudConsole].ptfm = &UIActionPoolManager::updateMenuCloudConsole; 3560 m_menuUpdateHandlers[UIActionIndexMN_M_VMResourceMonitor].ptfm = &UIActionPoolManager::updateMenuVMResourceMonitor; 3561 m_menuUpdateHandlers[UIActionIndexMN_M_Snapshot].ptfm = &UIActionPoolManager::updateMenuSnapshot; 3562 3562 3563 3563 /* Call to base-class: */ … … 3595 3595 3596 3596 /* 'File' menu: */ 3597 addMenu(m_mainMenus, action(UIActionIndex ST_M_File));3597 addMenu(m_mainMenus, action(UIActionIndexMN_M_File)); 3598 3598 updateMenuFile(); 3599 3599 3600 3600 /* 'Welcome' menu: */ 3601 addMenu(m_mainMenus, action(UIActionIndex ST_M_Welcome));3601 addMenu(m_mainMenus, action(UIActionIndexMN_M_Welcome)); 3602 3602 updateMenuWelcome(); 3603 3603 /* 'Group' menu: */ 3604 addMenu(m_mainMenus, action(UIActionIndex ST_M_Group));3604 addMenu(m_mainMenus, action(UIActionIndexMN_M_Group)); 3605 3605 updateMenuGroup(); 3606 3606 /* 'Machine' menu: */ 3607 addMenu(m_mainMenus, action(UIActionIndex ST_M_Machine));3607 addMenu(m_mainMenus, action(UIActionIndexMN_M_Machine)); 3608 3608 updateMenuMachine(); 3609 3609 … … 3624 3624 3625 3625 /* 'Virtual Media Manager' menu: */ 3626 addMenu(m_mainMenus, action(UIActionIndex ST_M_Medium));3626 addMenu(m_mainMenus, action(UIActionIndexMN_M_Medium)); 3627 3627 updateMenuMediumWindow(); 3628 3628 updateMenuMedium(); 3629 3629 /* 'Host Network Manager' menu: */ 3630 addMenu(m_mainMenus, action(UIActionIndex ST_M_Network));3630 addMenu(m_mainMenus, action(UIActionIndexMN_M_Network)); 3631 3631 updateMenuNetworkWindow(); 3632 3632 updateMenuNetwork(); 3633 3633 /* 'Cloud Profile Manager' menu: */ 3634 addMenu(m_mainMenus, action(UIActionIndex ST_M_Cloud));3634 addMenu(m_mainMenus, action(UIActionIndexMN_M_Cloud)); 3635 3635 updateMenuCloudWindow(); 3636 3636 updateMenuCloud(); 3637 3637 3638 3638 /* 'VM Resource Monitor' menu: */ 3639 addMenu(m_mainMenus, action(UIActionIndex ST_M_VMResourceMonitor));3639 addMenu(m_mainMenus, action(UIActionIndexMN_M_VMResourceMonitor)); 3640 3640 updateMenuVMResourceMonitor(); 3641 3641 3642 3642 /* 'Snapshot' menu: */ 3643 addMenu(m_mainMenus, action(UIActionIndex ST_M_Snapshot));3643 addMenu(m_mainMenus, action(UIActionIndexMN_M_Snapshot)); 3644 3644 updateMenuSnapshot(); 3645 3645 /* 'Log' menu: */ … … 3659 3659 { 3660 3660 /* Get corresponding menu: */ 3661 UIMenu *pMenu = action(UIActionIndex ST_M_File)->menu();3661 UIMenu *pMenu = action(UIActionIndexMN_M_File)->menu(); 3662 3662 AssertPtrReturnVoid(pMenu); 3663 3663 /* Clear contents: */ … … 3686 3686 pMenu->addAction(action(UIActionIndex_M_Application_S_Preferences)); 3687 3687 /* 'Close' action goes to Application menu: */ 3688 pMenu->addAction(action(UIActionIndex ST_M_File_S_Close));3688 pMenu->addAction(action(UIActionIndexMN_M_File_S_Close)); 3689 3689 3690 3690 /* 'Import Appliance' action goes to 'File' menu: */ 3691 pMenu->addAction(action(UIActionIndex ST_M_File_S_ImportAppliance));3691 pMenu->addAction(action(UIActionIndexMN_M_File_S_ImportAppliance)); 3692 3692 /* 'Export Appliance' action goes to 'File' menu: */ 3693 pMenu->addAction(action(UIActionIndex ST_M_File_S_ExportAppliance));3693 pMenu->addAction(action(UIActionIndexMN_M_File_S_ExportAppliance)); 3694 3694 /* 'New Cloud VM' action goes to 'File' menu: */ 3695 pMenu->addAction(action(UIActionIndex ST_M_File_S_NewCloudVM));3695 pMenu->addAction(action(UIActionIndexMN_M_File_S_NewCloudVM)); 3696 3696 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 3697 3697 /* 'Show Extra-data Manager' action goes to 'File' menu for Debug build: */ 3698 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowExtraDataManager));3698 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowExtraDataManager)); 3699 3699 # endif 3700 3700 /* 'Show Virtual Medium Manager' action goes to 'File' menu: */ 3701 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowVirtualMediumManager));3701 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)); 3702 3702 /* 'Show Host Network Manager' action goes to 'File' menu: */ 3703 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowHostNetworkManager));3703 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 3704 3704 /* 'Show Cloud Profile Manager' action goes to 'File' menu: */ 3705 3705 if (fExtPackAccessible) 3706 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowCloudProfileManager));3706 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 3707 3707 3708 3708 #else /* !VBOX_WS_MAC */ … … 3713 3713 pMenu->addSeparator(); 3714 3714 /* 'Import Appliance' action goes to 'File' menu: */ 3715 pMenu->addAction(action(UIActionIndex ST_M_File_S_ImportAppliance));3715 pMenu->addAction(action(UIActionIndexMN_M_File_S_ImportAppliance)); 3716 3716 /* 'Export Appliance' action goes to 'File' menu: */ 3717 pMenu->addAction(action(UIActionIndex ST_M_File_S_ExportAppliance));3717 pMenu->addAction(action(UIActionIndexMN_M_File_S_ExportAppliance)); 3718 3718 /* 'New Cloud VM' action goes to 'File' menu: */ 3719 pMenu->addAction(action(UIActionIndex ST_M_File_S_NewCloudVM));3719 pMenu->addAction(action(UIActionIndexMN_M_File_S_NewCloudVM)); 3720 3720 /* Separator after 'Export Appliance' action of the 'File' menu: */ 3721 3721 pMenu->addSeparator(); 3722 3722 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 3723 3723 /* 'Extra-data Manager' action goes to 'File' menu for Debug build: */ 3724 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowExtraDataManager));3724 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowExtraDataManager)); 3725 3725 # endif 3726 3726 /* 'Show Virtual Medium Manager' action goes to 'File' menu: */ 3727 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowVirtualMediumManager));3727 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)); 3728 3728 /* 'Show Host Network Manager' action goes to 'File' menu: */ 3729 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowHostNetworkManager));3729 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 3730 3730 /* 'Show Cloud Profile Manager' action goes to 'File' menu: */ 3731 3731 if (fExtPackAccessible) 3732 pMenu->addAction(action(UIActionIndex ST_M_File_S_ShowCloudProfileManager));3732 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 3733 3733 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 3734 3734 /* 'Network Access Manager' action goes to 'File' menu: */ … … 3745 3745 pMenu->addSeparator(); 3746 3746 /* 'Close' action goes to 'File' menu: */ 3747 pMenu->addAction(action(UIActionIndex ST_M_File_S_Close));3747 pMenu->addAction(action(UIActionIndexMN_M_File_S_Close)); 3748 3748 3749 3749 #endif /* !VBOX_WS_MAC */ 3750 3750 3751 3751 /* Mark menu as valid: */ 3752 m_invalidations.remove(UIActionIndex ST_M_File);3752 m_invalidations.remove(UIActionIndexMN_M_File); 3753 3753 } 3754 3754 … … 3756 3756 { 3757 3757 /* Get corresponding menu: */ 3758 UIMenu *pMenu = action(UIActionIndex ST_M_Welcome)->menu();3758 UIMenu *pMenu = action(UIActionIndexMN_M_Welcome)->menu(); 3759 3759 AssertPtrReturnVoid(pMenu); 3760 3760 /* Clear contents: */ … … 3762 3762 3763 3763 /* Populate Welcome menu: */ 3764 pMenu->addAction(action(UIActionIndex ST_M_Welcome_S_New));3765 pMenu->addAction(action(UIActionIndex ST_M_Welcome_S_Add));3764 pMenu->addAction(action(UIActionIndexMN_M_Welcome_S_New)); 3765 pMenu->addAction(action(UIActionIndexMN_M_Welcome_S_Add)); 3766 3766 3767 3767 /* Mark menu as valid: */ 3768 m_invalidations.remove(UIActionIndex ST_M_Welcome);3768 m_invalidations.remove(UIActionIndexMN_M_Welcome); 3769 3769 } 3770 3770 … … 3772 3772 { 3773 3773 /* Get corresponding menu: */ 3774 UIMenu *pMenu = action(UIActionIndex ST_M_Group)->menu();3774 UIMenu *pMenu = action(UIActionIndexMN_M_Group)->menu(); 3775 3775 AssertPtrReturnVoid(pMenu); 3776 3776 /* Clear contents: */ … … 3783 3783 { 3784 3784 /* Get corresponding menu: */ 3785 UIMenu *pMenu = action(UIActionIndex ST_M_Machine)->menu();3785 UIMenu *pMenu = action(UIActionIndexMN_M_Machine)->menu(); 3786 3786 AssertPtrReturnVoid(pMenu); 3787 3787 /* Clear contents: */ … … 3794 3794 { 3795 3795 /* Get corresponding menu: */ 3796 UIMenu *pMenu = action(UIActionIndex ST_M_Group_M_MoveToGroup)->menu();3796 UIMenu *pMenu = action(UIActionIndexMN_M_Group_M_MoveToGroup)->menu(); 3797 3797 AssertPtrReturnVoid(pMenu); 3798 3798 /* Clear contents: */ … … 3805 3805 { 3806 3806 /* Get corresponding menu: */ 3807 UIMenu *pMenu = action(UIActionIndex ST_M_Machine_M_MoveToGroup)->menu();3807 UIMenu *pMenu = action(UIActionIndexMN_M_Machine_M_MoveToGroup)->menu(); 3808 3808 AssertPtrReturnVoid(pMenu); 3809 3809 /* Clear contents: */ … … 3811 3811 3812 3812 /* Populate 'Machine' / 'Move to Group' menu: */ 3813 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_MoveToGroup_S_New));3813 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_MoveToGroup_S_New)); 3814 3814 3815 3815 /* This menu always remains invalid.. */ … … 3819 3819 { 3820 3820 /* Get corresponding menu: */ 3821 UIMenu *pMenu = action(UIActionIndex ST_M_Group_M_StartOrShow)->menu();3821 UIMenu *pMenu = action(UIActionIndexMN_M_Group_M_StartOrShow)->menu(); 3822 3822 AssertPtrReturnVoid(pMenu); 3823 3823 /* Clear contents: */ … … 3825 3825 3826 3826 /* Populate 'Group' / 'Start or Show' menu: */ 3827 pMenu->addAction(action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal));3828 pMenu->addAction(action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless));3829 pMenu->addAction(action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable));3827 pMenu->addAction(action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal)); 3828 pMenu->addAction(action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless)); 3829 pMenu->addAction(action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable)); 3830 3830 3831 3831 /* Mark menu as valid: */ 3832 m_invalidations.remove(UIActionIndex ST_M_Group_M_StartOrShow);3832 m_invalidations.remove(UIActionIndexMN_M_Group_M_StartOrShow); 3833 3833 } 3834 3834 … … 3836 3836 { 3837 3837 /* Get corresponding menu: */ 3838 UIMenu *pMenu = action(UIActionIndex ST_M_Machine_M_StartOrShow)->menu();3838 UIMenu *pMenu = action(UIActionIndexMN_M_Machine_M_StartOrShow)->menu(); 3839 3839 AssertPtrReturnVoid(pMenu); 3840 3840 /* Clear contents: */ … … 3842 3842 3843 3843 /* Populate 'Machine' / 'Start or Show' menu: */ 3844 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal));3845 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless));3846 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable));3844 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal)); 3845 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless)); 3846 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable)); 3847 3847 3848 3848 /* Mark menu as valid: */ 3849 m_invalidations.remove(UIActionIndex ST_M_Machine_M_StartOrShow);3849 m_invalidations.remove(UIActionIndexMN_M_Machine_M_StartOrShow); 3850 3850 } 3851 3851 … … 3853 3853 { 3854 3854 /* Get corresponding menu: */ 3855 UIMenu *pMenu = action(UIActionIndex ST_M_Group_M_Console)->menu();3855 UIMenu *pMenu = action(UIActionIndexMN_M_Group_M_Console)->menu(); 3856 3856 AssertPtrReturnVoid(pMenu); 3857 3857 /* Clear contents: */ … … 3864 3864 { 3865 3865 /* Get corresponding menu: */ 3866 UIMenu *pMenu = action(UIActionIndex ST_M_Machine_M_Console)->menu();3866 UIMenu *pMenu = action(UIActionIndexMN_M_Machine_M_Console)->menu(); 3867 3867 AssertPtrReturnVoid(pMenu); 3868 3868 /* Clear contents: */ … … 3875 3875 { 3876 3876 /* Get corresponding menu: */ 3877 UIMenu *pMenu = action(UIActionIndex ST_M_Group_M_Close)->menu();3877 UIMenu *pMenu = action(UIActionIndexMN_M_Group_M_Close)->menu(); 3878 3878 AssertPtrReturnVoid(pMenu); 3879 3879 /* Clear contents: */ … … 3881 3881 3882 3882 /* Populate 'Group' / 'Close' menu: */ 3883 // pMenu->addAction(action(UIActionIndex ST_M_Group_M_Close_S_Detach));3884 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Close_S_SaveState));3885 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Close_S_Shutdown));3886 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Close_S_PowerOff));3883 // pMenu->addAction(action(UIActionIndexMN_M_Group_M_Close_S_Detach)); 3884 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Close_S_SaveState)); 3885 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Close_S_Shutdown)); 3886 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Close_S_PowerOff)); 3887 3887 3888 3888 /* Mark menu as valid: */ 3889 m_invalidations.remove(UIActionIndex ST_M_Group_M_Close);3889 m_invalidations.remove(UIActionIndexMN_M_Group_M_Close); 3890 3890 } 3891 3891 … … 3893 3893 { 3894 3894 /* Get corresponding menu: */ 3895 UIMenu *pMenu = action(UIActionIndex ST_M_Machine_M_Close)->menu();3895 UIMenu *pMenu = action(UIActionIndexMN_M_Machine_M_Close)->menu(); 3896 3896 AssertPtrReturnVoid(pMenu); 3897 3897 /* Clear contents: */ … … 3899 3899 3900 3900 /* Populate 'Machine' / 'Close' menu: */ 3901 // pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Close_S_Detach));3902 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Close_S_SaveState));3903 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Close_S_Shutdown));3904 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Close_S_PowerOff));3901 // pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Close_S_Detach)); 3902 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Close_S_SaveState)); 3903 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Close_S_Shutdown)); 3904 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Close_S_PowerOff)); 3905 3905 3906 3906 /* Mark menu as valid: */ 3907 m_invalidations.remove(UIActionIndex ST_M_Machine_M_Close);3907 m_invalidations.remove(UIActionIndexMN_M_Machine_M_Close); 3908 3908 } 3909 3909 … … 3911 3911 { 3912 3912 /* Get corresponding menu: */ 3913 UIMenu *pMenu = action(UIActionIndex ST_M_Group_M_Tools)->menu();3913 UIMenu *pMenu = action(UIActionIndexMN_M_Group_M_Tools)->menu(); 3914 3914 AssertPtrReturnVoid(pMenu); 3915 3915 /* Clear contents: */ … … 3917 3917 3918 3918 /* Populate 'Group' / 'Tools' menu: */ 3919 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Tools_T_Details));3920 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Tools_T_Snapshots));3921 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Tools_T_Logs));3922 pMenu->addAction(action(UIActionIndex ST_M_Group_M_Tools_T_Performance));3919 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Details)); 3920 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Snapshots)); 3921 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Logs)); 3922 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Performance)); 3923 3923 3924 3924 /* Mark menu as valid: */ 3925 m_invalidations.remove(UIActionIndex ST_M_Group_M_Tools);3925 m_invalidations.remove(UIActionIndexMN_M_Group_M_Tools); 3926 3926 } 3927 3927 … … 3929 3929 { 3930 3930 /* Get corresponding menu: */ 3931 UIMenu *pMenu = action(UIActionIndex ST_M_Machine_M_Tools)->menu();3931 UIMenu *pMenu = action(UIActionIndexMN_M_Machine_M_Tools)->menu(); 3932 3932 AssertPtrReturnVoid(pMenu); 3933 3933 /* Clear contents: */ … … 3935 3935 3936 3936 /* Populate 'Machine' / 'Tools' menu: */ 3937 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Tools_T_Details));3938 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Tools_T_Snapshots));3939 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Tools_T_Logs));3940 pMenu->addAction(action(UIActionIndex ST_M_Machine_M_Tools_T_Performance));3937 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Details)); 3938 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots)); 3939 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Logs)); 3940 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Performance)); 3941 3941 3942 3942 /* Mark menu as valid: */ 3943 m_invalidations.remove(UIActionIndex ST_M_Machine_M_Tools);3943 m_invalidations.remove(UIActionIndexMN_M_Machine_M_Tools); 3944 3944 } 3945 3945 … … 3947 3947 { 3948 3948 /* Update corresponding menu: */ 3949 updateMenuMediumWrapper(action(UIActionIndex ST_M_MediumWindow)->menu());3949 updateMenuMediumWrapper(action(UIActionIndexMN_M_MediumWindow)->menu()); 3950 3950 3951 3951 /* Mark menu as valid: */ 3952 m_invalidations.remove(UIActionIndex ST_M_MediumWindow);3952 m_invalidations.remove(UIActionIndexMN_M_MediumWindow); 3953 3953 } 3954 3954 … … 3956 3956 { 3957 3957 /* Update corresponding menu: */ 3958 updateMenuMediumWrapper(action(UIActionIndex ST_M_Medium)->menu());3958 updateMenuMediumWrapper(action(UIActionIndexMN_M_Medium)->menu()); 3959 3959 3960 3960 /* Mark menu as valid: */ 3961 m_invalidations.remove(UIActionIndex ST_M_Medium);3961 m_invalidations.remove(UIActionIndexMN_M_Medium); 3962 3962 } 3963 3963 … … 3971 3971 3972 3972 /* 'Add' action: */ 3973 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Add)) || fSeparator;3974 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Create)) || fSeparator;3973 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Add)) || fSeparator; 3974 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Create)) || fSeparator; 3975 3975 3976 3976 /* Separator? */ … … 3982 3982 3983 3983 /* 'Copy' action: */ 3984 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Copy)) || fSeparator;3984 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Copy)) || fSeparator; 3985 3985 /* 'Move' action: */ 3986 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Move)) || fSeparator;3986 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Move)) || fSeparator; 3987 3987 /* 'Remove' action: */ 3988 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Remove)) || fSeparator;3988 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Remove)) || fSeparator; 3989 3989 /* 'Release' action: */ 3990 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Release)) || fSeparator;3990 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Release)) || fSeparator; 3991 3991 /* 'Search' action: */ 3992 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_T_Search)) || fSeparator;3992 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_T_Search)) || fSeparator; 3993 3993 /* 'Properties' action: */ 3994 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_T_Details)) || fSeparator;3994 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_T_Details)) || fSeparator; 3995 3995 3996 3996 /* Separator? */ … … 4002 4002 4003 4003 /* 'Refresh' action: */ 4004 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Medium_S_Refresh)) || fSeparator;;4004 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Medium_S_Refresh)) || fSeparator;; 4005 4005 } 4006 4006 … … 4008 4008 { 4009 4009 /* Update corresponding menu: */ 4010 updateMenuNetworkWrapper(action(UIActionIndex ST_M_NetworkWindow)->menu());4010 updateMenuNetworkWrapper(action(UIActionIndexMN_M_NetworkWindow)->menu()); 4011 4011 4012 4012 /* Mark menu as valid: */ 4013 m_invalidations.remove(UIActionIndex ST_M_NetworkWindow);4013 m_invalidations.remove(UIActionIndexMN_M_NetworkWindow); 4014 4014 } 4015 4015 … … 4017 4017 { 4018 4018 /* Update corresponding menu: */ 4019 updateMenuNetworkWrapper(action(UIActionIndex ST_M_Network)->menu());4019 updateMenuNetworkWrapper(action(UIActionIndexMN_M_Network)->menu()); 4020 4020 4021 4021 /* Mark menu as valid: */ 4022 m_invalidations.remove(UIActionIndex ST_M_Network);4022 m_invalidations.remove(UIActionIndexMN_M_Network); 4023 4023 } 4024 4024 … … 4032 4032 4033 4033 /* 'Create' action: */ 4034 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Network_S_Create)) || fSeparator;4034 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Network_S_Create)) || fSeparator; 4035 4035 4036 4036 /* Separator? */ … … 4042 4042 4043 4043 /* 'Remove' action: */ 4044 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Network_S_Remove)) || fSeparator;4044 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Network_S_Remove)) || fSeparator; 4045 4045 /* 'Properties' action: */ 4046 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Network_T_Details)) || fSeparator;4046 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Network_T_Details)) || fSeparator; 4047 4047 4048 4048 // /* Separator? */ … … 4054 4054 4055 4055 // /* 'Refresh' action: */ 4056 // fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Network_S_Refresh)) || fSeparator;;4056 // fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Network_S_Refresh)) || fSeparator;; 4057 4057 } 4058 4058 … … 4060 4060 { 4061 4061 /* Update corresponding menu: */ 4062 updateMenuCloudWrapper(action(UIActionIndex ST_M_CloudWindow)->menu());4062 updateMenuCloudWrapper(action(UIActionIndexMN_M_CloudWindow)->menu()); 4063 4063 4064 4064 /* Mark menu as valid: */ 4065 m_invalidations.remove(UIActionIndex ST_M_CloudWindow);4065 m_invalidations.remove(UIActionIndexMN_M_CloudWindow); 4066 4066 } 4067 4067 … … 4069 4069 { 4070 4070 /* Update corresponding menu: */ 4071 updateMenuCloudWrapper(action(UIActionIndex ST_M_Cloud)->menu());4071 updateMenuCloudWrapper(action(UIActionIndexMN_M_Cloud)->menu()); 4072 4072 4073 4073 /* Mark menu as valid: */ 4074 m_invalidations.remove(UIActionIndex ST_M_Cloud);4074 m_invalidations.remove(UIActionIndexMN_M_Cloud); 4075 4075 } 4076 4076 … … 4084 4084 4085 4085 /* 'Add' action: */ 4086 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Cloud_S_Add)) || fSeparator;4086 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Cloud_S_Add)) || fSeparator; 4087 4087 /* 'Import' action: */ 4088 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Cloud_S_Import)) || fSeparator;4088 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Cloud_S_Import)) || fSeparator; 4089 4089 4090 4090 /* Separator? */ … … 4096 4096 4097 4097 /* 'Remove' action: */ 4098 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Cloud_S_Remove)) || fSeparator;4098 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Cloud_S_Remove)) || fSeparator; 4099 4099 /* 'Properties' action: */ 4100 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Cloud_T_Details)) || fSeparator;4100 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Cloud_T_Details)) || fSeparator; 4101 4101 4102 4102 /* Separator? */ … … 4108 4108 4109 4109 /* 'Try Page' action: */ 4110 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Cloud_S_TryPage)) || fSeparator;4110 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Cloud_S_TryPage)) || fSeparator; 4111 4111 /* 'Help' action: */ 4112 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_Cloud_S_Help)) || fSeparator;4112 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_Cloud_S_Help)) || fSeparator; 4113 4113 } 4114 4114 … … 4116 4116 { 4117 4117 /* Update corresponding menu: */ 4118 updateMenuCloudConsoleWrapper(action(UIActionIndex ST_M_CloudConsoleWindow)->menu());4118 updateMenuCloudConsoleWrapper(action(UIActionIndexMN_M_CloudConsoleWindow)->menu()); 4119 4119 4120 4120 /* Mark menu as valid: */ 4121 m_invalidations.remove(UIActionIndex ST_M_CloudConsoleWindow);4121 m_invalidations.remove(UIActionIndexMN_M_CloudConsoleWindow); 4122 4122 } 4123 4123 … … 4125 4125 { 4126 4126 /* Update corresponding menu: */ 4127 updateMenuCloudConsoleWrapper(action(UIActionIndex ST_M_CloudConsole)->menu());4127 updateMenuCloudConsoleWrapper(action(UIActionIndexMN_M_CloudConsole)->menu()); 4128 4128 4129 4129 /* Mark menu as valid: */ 4130 m_invalidations.remove(UIActionIndex ST_M_CloudConsole);4130 m_invalidations.remove(UIActionIndexMN_M_CloudConsole); 4131 4131 } 4132 4132 … … 4140 4140 4141 4141 /* 'Add Application' action: */ 4142 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_CloudConsole_S_ApplicationAdd)) || fSeparator;4142 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_CloudConsole_S_ApplicationAdd)) || fSeparator; 4143 4143 /* 'Remove Application' action: */ 4144 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_CloudConsole_S_ApplicationRemove)) || fSeparator;4144 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_CloudConsole_S_ApplicationRemove)) || fSeparator; 4145 4145 4146 4146 /* Separator? */ … … 4152 4152 4153 4153 /* 'Add Profile' action: */ 4154 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_CloudConsole_S_ProfileAdd)) || fSeparator;4154 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_CloudConsole_S_ProfileAdd)) || fSeparator; 4155 4155 /* 'Remove Profile' action: */ 4156 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_CloudConsole_S_ProfileRemove)) || fSeparator;4156 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_CloudConsole_S_ProfileRemove)) || fSeparator; 4157 4157 4158 4158 /* Separator? */ … … 4164 4164 4165 4165 /* 'Properties' action: */ 4166 fSeparator = addAction(pMenu, action(UIActionIndex ST_M_CloudConsole_T_Details)) || fSeparator;4166 fSeparator = addAction(pMenu, action(UIActionIndexMN_M_CloudConsole_T_Details)) || fSeparator; 4167 4167 } 4168 4168 … … 4170 4170 { 4171 4171 /* Update corresponding menu: */ 4172 updateMenuVMResourceMonitorWrapper(action(UIActionIndex ST_M_VMResourceMonitor)->menu());4172 updateMenuVMResourceMonitorWrapper(action(UIActionIndexMN_M_VMResourceMonitor)->menu()); 4173 4173 4174 4174 /* Mark menu as valid: */ 4175 m_invalidations.remove(UIActionIndex ST_M_VMResourceMonitor);4175 m_invalidations.remove(UIActionIndexMN_M_VMResourceMonitor); 4176 4176 } 4177 4177 … … 4180 4180 /* Clear contents: */ 4181 4181 pMenu->clear(); 4182 addAction(pMenu, action(UIActionIndex ST_M_VMResourceMonitor_M_Columns));4183 addAction(pMenu, action(UIActionIndex ST_M_VMResourceMonitor_S_SwitchToMachinePerformance));4182 addAction(pMenu, action(UIActionIndexMN_M_VMResourceMonitor_M_Columns)); 4183 addAction(pMenu, action(UIActionIndexMN_M_VMResourceMonitor_S_SwitchToMachinePerformance)); 4184 4184 } 4185 4185 … … 4187 4187 { 4188 4188 /* Get corresponding menu: */ 4189 UIMenu *pMenu = action(UIActionIndex ST_M_Snapshot)->menu();4189 UIMenu *pMenu = action(UIActionIndexMN_M_Snapshot)->menu(); 4190 4190 AssertPtrReturnVoid(pMenu); 4191 4191 /* Clear contents: */ … … 4193 4193 4194 4194 /* Populate Snapshot-menu: */ 4195 pMenu->addAction(action(UIActionIndex ST_M_Snapshot_S_Take));4196 pMenu->addAction(action(UIActionIndex ST_M_Snapshot_S_Delete));4197 pMenu->addAction(action(UIActionIndex ST_M_Snapshot_S_Restore));4198 pMenu->addAction(action(UIActionIndex ST_M_Snapshot_T_Properties));4199 pMenu->addAction(action(UIActionIndex ST_M_Snapshot_S_Clone));4195 pMenu->addAction(action(UIActionIndexMN_M_Snapshot_S_Take)); 4196 pMenu->addAction(action(UIActionIndexMN_M_Snapshot_S_Delete)); 4197 pMenu->addAction(action(UIActionIndexMN_M_Snapshot_S_Restore)); 4198 pMenu->addAction(action(UIActionIndexMN_M_Snapshot_T_Properties)); 4199 pMenu->addAction(action(UIActionIndexMN_M_Snapshot_S_Clone)); 4200 4200 4201 4201 /* Mark menu as valid: */ 4202 m_invalidations.remove(UIActionIndex ST_M_Snapshot);4202 m_invalidations.remove(UIActionIndexMN_M_Snapshot); 4203 4203 } 4204 4204 … … 4220 4220 switch (iIndex) 4221 4221 { 4222 case UIActionIndex ST_M_Welcome:4222 case UIActionIndexMN_M_Welcome: 4223 4223 { 4224 actions << action(UIActionIndex ST_M_Welcome_S_New)4225 << action(UIActionIndex ST_M_Welcome_S_Add);4224 actions << action(UIActionIndexMN_M_Welcome_S_New) 4225 << action(UIActionIndexMN_M_Welcome_S_Add); 4226 4226 break; 4227 4227 } 4228 case UIActionIndex ST_M_Group:4228 case UIActionIndexMN_M_Group: 4229 4229 { 4230 actions << action(UIActionIndex ST_M_Group_S_New)4231 << action(UIActionIndex ST_M_Group_S_Add)4232 << action(UIActionIndex ST_M_Group_S_Rename)4233 << action(UIActionIndex ST_M_Group_S_Remove)4234 << action(UIActionIndex ST_M_Group_M_MoveToGroup)4235 << action(UIActionIndex ST_M_Group_M_StartOrShow)4236 << action(UIActionIndex ST_M_Group_T_Pause)4237 << action(UIActionIndex ST_M_Group_S_Reset)4238 << action(UIActionIndex ST_M_Group_S_Discard)4239 << action(UIActionIndex ST_M_Group_S_ShowLogDialog)4240 << action(UIActionIndex ST_M_Group_S_Refresh)4241 << action(UIActionIndex ST_M_Group_S_ShowInFileManager)4242 << action(UIActionIndex ST_M_Group_S_CreateShortcut)4243 << action(UIActionIndex ST_M_Group_S_Sort)4244 << action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal)4245 << action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless)4246 << action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable)4247 << action(UIActionIndex ST_M_Group_M_Console_S_CreateConnection)4248 << action(UIActionIndex ST_M_Group_M_Console_S_DeleteConnection)4249 << action(UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications)4250 // << action(UIActionIndex ST_M_Group_M_Close_S_Detach)4251 << action(UIActionIndex ST_M_Group_M_Close_S_SaveState)4252 << action(UIActionIndex ST_M_Group_M_Close_S_Shutdown)4253 << action(UIActionIndex ST_M_Group_M_Close_S_PowerOff)4254 << action(UIActionIndex ST_M_Group_M_Tools_T_Details)4255 << action(UIActionIndex ST_M_Group_M_Tools_T_Snapshots)4256 << action(UIActionIndex ST_M_Group_M_Tools_T_Logs)4257 << action(UIActionIndex ST_M_Group_M_Tools_T_Performance);4230 actions << action(UIActionIndexMN_M_Group_S_New) 4231 << action(UIActionIndexMN_M_Group_S_Add) 4232 << action(UIActionIndexMN_M_Group_S_Rename) 4233 << action(UIActionIndexMN_M_Group_S_Remove) 4234 << action(UIActionIndexMN_M_Group_M_MoveToGroup) 4235 << action(UIActionIndexMN_M_Group_M_StartOrShow) 4236 << action(UIActionIndexMN_M_Group_T_Pause) 4237 << action(UIActionIndexMN_M_Group_S_Reset) 4238 << action(UIActionIndexMN_M_Group_S_Discard) 4239 << action(UIActionIndexMN_M_Group_S_ShowLogDialog) 4240 << action(UIActionIndexMN_M_Group_S_Refresh) 4241 << action(UIActionIndexMN_M_Group_S_ShowInFileManager) 4242 << action(UIActionIndexMN_M_Group_S_CreateShortcut) 4243 << action(UIActionIndexMN_M_Group_S_Sort) 4244 << action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal) 4245 << action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless) 4246 << action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable) 4247 << action(UIActionIndexMN_M_Group_M_Console_S_CreateConnection) 4248 << action(UIActionIndexMN_M_Group_M_Console_S_DeleteConnection) 4249 << action(UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications) 4250 // << action(UIActionIndexMN_M_Group_M_Close_S_Detach) 4251 << action(UIActionIndexMN_M_Group_M_Close_S_SaveState) 4252 << action(UIActionIndexMN_M_Group_M_Close_S_Shutdown) 4253 << action(UIActionIndexMN_M_Group_M_Close_S_PowerOff) 4254 << action(UIActionIndexMN_M_Group_M_Tools_T_Details) 4255 << action(UIActionIndexMN_M_Group_M_Tools_T_Snapshots) 4256 << action(UIActionIndexMN_M_Group_M_Tools_T_Logs) 4257 << action(UIActionIndexMN_M_Group_M_Tools_T_Performance); 4258 4258 break; 4259 4259 } 4260 case UIActionIndex ST_M_Machine:4260 case UIActionIndexMN_M_Machine: 4261 4261 { 4262 actions << action(UIActionIndex ST_M_Machine_S_New)4263 << action(UIActionIndex ST_M_Machine_S_Add)4264 << action(UIActionIndex ST_M_Machine_S_Settings)4265 << action(UIActionIndex ST_M_Machine_S_Clone)4266 << action(UIActionIndex ST_M_Machine_S_Move)4267 << action(UIActionIndex ST_M_Machine_S_ExportToOCI)4268 << action(UIActionIndex ST_M_Machine_S_Remove)4269 << action(UIActionIndex ST_M_Machine_M_MoveToGroup)4270 << action(UIActionIndex ST_M_Machine_M_StartOrShow)4271 << action(UIActionIndex ST_M_Machine_T_Pause)4272 << action(UIActionIndex ST_M_Machine_S_Reset)4273 << action(UIActionIndex ST_M_Machine_S_Discard)4274 << action(UIActionIndex ST_M_Machine_S_ShowLogDialog)4275 << action(UIActionIndex ST_M_Machine_S_Refresh)4276 << action(UIActionIndex ST_M_Machine_S_ShowInFileManager)4277 << action(UIActionIndex ST_M_Machine_S_CreateShortcut)4278 << action(UIActionIndex ST_M_Machine_S_SortParent)4279 << action(UIActionIndex ST_M_Machine_M_MoveToGroup_S_New)4280 << action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal)4281 << action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless)4282 << action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable)4283 << action(UIActionIndex ST_M_Machine_M_Console_S_CreateConnection)4284 << action(UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection)4285 << action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix)4286 << action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows)4287 << action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix)4288 << action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows)4289 << action(UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications)4290 // << action(UIActionIndex ST_M_Machine_M_Close_S_Detach)4291 << action(UIActionIndex ST_M_Machine_M_Close_S_SaveState)4292 << action(UIActionIndex ST_M_Machine_M_Close_S_Shutdown)4293 << action(UIActionIndex ST_M_Machine_M_Close_S_PowerOff)4294 << action(UIActionIndex ST_M_Machine_M_Tools_T_Details)4295 << action(UIActionIndex ST_M_Machine_M_Tools_T_Snapshots)4296 << action(UIActionIndex ST_M_Machine_M_Tools_T_Logs)4297 << action(UIActionIndex ST_M_Machine_M_Tools_T_Performance);4262 actions << action(UIActionIndexMN_M_Machine_S_New) 4263 << action(UIActionIndexMN_M_Machine_S_Add) 4264 << action(UIActionIndexMN_M_Machine_S_Settings) 4265 << action(UIActionIndexMN_M_Machine_S_Clone) 4266 << action(UIActionIndexMN_M_Machine_S_Move) 4267 << action(UIActionIndexMN_M_Machine_S_ExportToOCI) 4268 << action(UIActionIndexMN_M_Machine_S_Remove) 4269 << action(UIActionIndexMN_M_Machine_M_MoveToGroup) 4270 << action(UIActionIndexMN_M_Machine_M_StartOrShow) 4271 << action(UIActionIndexMN_M_Machine_T_Pause) 4272 << action(UIActionIndexMN_M_Machine_S_Reset) 4273 << action(UIActionIndexMN_M_Machine_S_Discard) 4274 << action(UIActionIndexMN_M_Machine_S_ShowLogDialog) 4275 << action(UIActionIndexMN_M_Machine_S_Refresh) 4276 << action(UIActionIndexMN_M_Machine_S_ShowInFileManager) 4277 << action(UIActionIndexMN_M_Machine_S_CreateShortcut) 4278 << action(UIActionIndexMN_M_Machine_S_SortParent) 4279 << action(UIActionIndexMN_M_Machine_M_MoveToGroup_S_New) 4280 << action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal) 4281 << action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless) 4282 << action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable) 4283 << action(UIActionIndexMN_M_Machine_M_Console_S_CreateConnection) 4284 << action(UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection) 4285 << action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix) 4286 << action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows) 4287 << action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix) 4288 << action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows) 4289 << action(UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications) 4290 // << action(UIActionIndexMN_M_Machine_M_Close_S_Detach) 4291 << action(UIActionIndexMN_M_Machine_M_Close_S_SaveState) 4292 << action(UIActionIndexMN_M_Machine_M_Close_S_Shutdown) 4293 << action(UIActionIndexMN_M_Machine_M_Close_S_PowerOff) 4294 << action(UIActionIndexMN_M_Machine_M_Tools_T_Details) 4295 << action(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots) 4296 << action(UIActionIndexMN_M_Machine_M_Tools_T_Logs) 4297 << action(UIActionIndexMN_M_Machine_M_Tools_T_Performance); 4298 4298 break; 4299 4299 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.h
r85572 r85597 30 30 31 31 32 /** Runtimeaction-pool index enum.32 /** VirtualBox Manager action-pool index enum. 33 33 * Naming convention is following: 34 34 * 1. Every menu index prepended with 'M', … … 37 37 * 4. Every polymorphic-action index presended with 'P', 38 38 * 5. Every sub-index contains full parent-index name. */ 39 enum UIActionIndex ST39 enum UIActionIndexMN 40 40 { 41 41 /* 'File' menu actions: */ 42 UIActionIndex ST_M_File = UIActionIndex_Max + 1,43 UIActionIndex ST_M_File_S_ShowVirtualMediumManager,44 UIActionIndex ST_M_File_S_ShowHostNetworkManager,45 UIActionIndex ST_M_File_S_ShowCloudProfileManager,46 UIActionIndex ST_M_File_S_ImportAppliance,47 UIActionIndex ST_M_File_S_ExportAppliance,48 UIActionIndex ST_M_File_S_NewCloudVM,42 UIActionIndexMN_M_File = UIActionIndex_Max + 1, 43 UIActionIndexMN_M_File_S_ShowVirtualMediumManager, 44 UIActionIndexMN_M_File_S_ShowHostNetworkManager, 45 UIActionIndexMN_M_File_S_ShowCloudProfileManager, 46 UIActionIndexMN_M_File_S_ImportAppliance, 47 UIActionIndexMN_M_File_S_ExportAppliance, 48 UIActionIndexMN_M_File_S_NewCloudVM, 49 49 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 50 UIActionIndex ST_M_File_S_ShowExtraDataManager,50 UIActionIndexMN_M_File_S_ShowExtraDataManager, 51 51 #endif 52 UIActionIndex ST_M_File_S_Close,52 UIActionIndexMN_M_File_S_Close, 53 53 54 54 /* 'Welcome' menu actions: */ 55 UIActionIndex ST_M_Welcome,56 UIActionIndex ST_M_Welcome_S_New,57 UIActionIndex ST_M_Welcome_S_Add,55 UIActionIndexMN_M_Welcome, 56 UIActionIndexMN_M_Welcome_S_New, 57 UIActionIndexMN_M_Welcome_S_Add, 58 58 59 59 /* 'Group' menu actions: */ 60 UIActionIndex ST_M_Group,61 UIActionIndex ST_M_Group_S_New,62 UIActionIndex ST_M_Group_S_Add,63 UIActionIndex ST_M_Group_S_Rename,64 UIActionIndex ST_M_Group_S_Remove,65 UIActionIndex ST_M_Group_M_MoveToGroup,66 UIActionIndex ST_M_Group_M_StartOrShow,67 UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal,68 UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless,69 UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable,70 UIActionIndex ST_M_Group_T_Pause,71 UIActionIndex ST_M_Group_S_Reset,72 UIActionIndex ST_M_Group_M_Console,73 UIActionIndex ST_M_Group_M_Console_S_CreateConnection,74 UIActionIndex ST_M_Group_M_Console_S_DeleteConnection,75 UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications,76 UIActionIndex ST_M_Group_M_Close,77 UIActionIndex ST_M_Group_M_Close_S_Detach,78 UIActionIndex ST_M_Group_M_Close_S_SaveState,79 UIActionIndex ST_M_Group_M_Close_S_Shutdown,80 UIActionIndex ST_M_Group_M_Close_S_PowerOff,81 UIActionIndex ST_M_Group_M_Tools,82 UIActionIndex ST_M_Group_M_Tools_T_Details,83 UIActionIndex ST_M_Group_M_Tools_T_Snapshots,84 UIActionIndex ST_M_Group_M_Tools_T_Logs,85 UIActionIndex ST_M_Group_M_Tools_T_Performance,86 UIActionIndex ST_M_Group_S_Discard,87 UIActionIndex ST_M_Group_S_ShowLogDialog,88 UIActionIndex ST_M_Group_S_Refresh,89 UIActionIndex ST_M_Group_S_ShowInFileManager,90 UIActionIndex ST_M_Group_S_CreateShortcut,91 UIActionIndex ST_M_Group_S_Sort,60 UIActionIndexMN_M_Group, 61 UIActionIndexMN_M_Group_S_New, 62 UIActionIndexMN_M_Group_S_Add, 63 UIActionIndexMN_M_Group_S_Rename, 64 UIActionIndexMN_M_Group_S_Remove, 65 UIActionIndexMN_M_Group_M_MoveToGroup, 66 UIActionIndexMN_M_Group_M_StartOrShow, 67 UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal, 68 UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless, 69 UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable, 70 UIActionIndexMN_M_Group_T_Pause, 71 UIActionIndexMN_M_Group_S_Reset, 72 UIActionIndexMN_M_Group_M_Console, 73 UIActionIndexMN_M_Group_M_Console_S_CreateConnection, 74 UIActionIndexMN_M_Group_M_Console_S_DeleteConnection, 75 UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications, 76 UIActionIndexMN_M_Group_M_Close, 77 UIActionIndexMN_M_Group_M_Close_S_Detach, 78 UIActionIndexMN_M_Group_M_Close_S_SaveState, 79 UIActionIndexMN_M_Group_M_Close_S_Shutdown, 80 UIActionIndexMN_M_Group_M_Close_S_PowerOff, 81 UIActionIndexMN_M_Group_M_Tools, 82 UIActionIndexMN_M_Group_M_Tools_T_Details, 83 UIActionIndexMN_M_Group_M_Tools_T_Snapshots, 84 UIActionIndexMN_M_Group_M_Tools_T_Logs, 85 UIActionIndexMN_M_Group_M_Tools_T_Performance, 86 UIActionIndexMN_M_Group_S_Discard, 87 UIActionIndexMN_M_Group_S_ShowLogDialog, 88 UIActionIndexMN_M_Group_S_Refresh, 89 UIActionIndexMN_M_Group_S_ShowInFileManager, 90 UIActionIndexMN_M_Group_S_CreateShortcut, 91 UIActionIndexMN_M_Group_S_Sort, 92 92 93 93 /* 'Machine' menu actions: */ 94 UIActionIndex ST_M_Machine,95 UIActionIndex ST_M_Machine_S_New,96 UIActionIndex ST_M_Machine_S_Add,97 UIActionIndex ST_M_Machine_S_Settings,98 UIActionIndex ST_M_Machine_S_Clone,99 UIActionIndex ST_M_Machine_S_Move,100 UIActionIndex ST_M_Machine_S_ExportToOCI,101 UIActionIndex ST_M_Machine_S_Remove,102 UIActionIndex ST_M_Machine_M_MoveToGroup,103 UIActionIndex ST_M_Machine_M_MoveToGroup_S_New,104 UIActionIndex ST_M_Machine_M_StartOrShow,105 UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal,106 UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless,107 UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable,108 UIActionIndex ST_M_Machine_T_Pause,109 UIActionIndex ST_M_Machine_S_Reset,110 UIActionIndex ST_M_Machine_M_Console,111 UIActionIndex ST_M_Machine_M_Console_S_CreateConnection,112 UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection,113 UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix,114 UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows,115 UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix,116 UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows,117 UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications,118 UIActionIndex ST_M_Machine_M_Close,119 UIActionIndex ST_M_Machine_M_Close_S_Detach,120 UIActionIndex ST_M_Machine_M_Close_S_SaveState,121 UIActionIndex ST_M_Machine_M_Close_S_Shutdown,122 UIActionIndex ST_M_Machine_M_Close_S_PowerOff,123 UIActionIndex ST_M_Machine_M_Tools,124 UIActionIndex ST_M_Machine_M_Tools_T_Details,125 UIActionIndex ST_M_Machine_M_Tools_T_Snapshots,126 UIActionIndex ST_M_Machine_M_Tools_T_Logs,127 UIActionIndex ST_M_Machine_M_Tools_T_Performance,128 UIActionIndex ST_M_Machine_S_Discard,129 UIActionIndex ST_M_Machine_S_ShowLogDialog,130 UIActionIndex ST_M_Machine_S_Refresh,131 UIActionIndex ST_M_Machine_S_ShowInFileManager,132 UIActionIndex ST_M_Machine_S_CreateShortcut,133 UIActionIndex ST_M_Machine_S_SortParent,134 UIActionIndex ST_M_Machine_T_Search,94 UIActionIndexMN_M_Machine, 95 UIActionIndexMN_M_Machine_S_New, 96 UIActionIndexMN_M_Machine_S_Add, 97 UIActionIndexMN_M_Machine_S_Settings, 98 UIActionIndexMN_M_Machine_S_Clone, 99 UIActionIndexMN_M_Machine_S_Move, 100 UIActionIndexMN_M_Machine_S_ExportToOCI, 101 UIActionIndexMN_M_Machine_S_Remove, 102 UIActionIndexMN_M_Machine_M_MoveToGroup, 103 UIActionIndexMN_M_Machine_M_MoveToGroup_S_New, 104 UIActionIndexMN_M_Machine_M_StartOrShow, 105 UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal, 106 UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless, 107 UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable, 108 UIActionIndexMN_M_Machine_T_Pause, 109 UIActionIndexMN_M_Machine_S_Reset, 110 UIActionIndexMN_M_Machine_M_Console, 111 UIActionIndexMN_M_Machine_M_Console_S_CreateConnection, 112 UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection, 113 UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix, 114 UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows, 115 UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix, 116 UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows, 117 UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications, 118 UIActionIndexMN_M_Machine_M_Close, 119 UIActionIndexMN_M_Machine_M_Close_S_Detach, 120 UIActionIndexMN_M_Machine_M_Close_S_SaveState, 121 UIActionIndexMN_M_Machine_M_Close_S_Shutdown, 122 UIActionIndexMN_M_Machine_M_Close_S_PowerOff, 123 UIActionIndexMN_M_Machine_M_Tools, 124 UIActionIndexMN_M_Machine_M_Tools_T_Details, 125 UIActionIndexMN_M_Machine_M_Tools_T_Snapshots, 126 UIActionIndexMN_M_Machine_M_Tools_T_Logs, 127 UIActionIndexMN_M_Machine_M_Tools_T_Performance, 128 UIActionIndexMN_M_Machine_S_Discard, 129 UIActionIndexMN_M_Machine_S_ShowLogDialog, 130 UIActionIndexMN_M_Machine_S_Refresh, 131 UIActionIndexMN_M_Machine_S_ShowInFileManager, 132 UIActionIndexMN_M_Machine_S_CreateShortcut, 133 UIActionIndexMN_M_Machine_S_SortParent, 134 UIActionIndexMN_M_Machine_T_Search, 135 135 136 136 /* Global Tools actions: */ 137 UIActionIndex ST_M_Tools_M_Global,138 UIActionIndex ST_M_Tools_M_Global_S_VirtualMediaManager,139 UIActionIndex ST_M_Tools_M_Global_S_HostNetworkManager,140 UIActionIndex ST_M_Tools_M_Global_S_CloudProfileManager,141 UIActionIndex ST_M_Tools_M_Global_S_VMResourceMonitor,137 UIActionIndexMN_M_Tools_M_Global, 138 UIActionIndexMN_M_Tools_M_Global_S_VirtualMediaManager, 139 UIActionIndexMN_M_Tools_M_Global_S_HostNetworkManager, 140 UIActionIndexMN_M_Tools_M_Global_S_CloudProfileManager, 141 UIActionIndexMN_M_Tools_M_Global_S_VMResourceMonitor, 142 142 143 143 /* Snapshot Pane actions: */ 144 UIActionIndex ST_M_Snapshot,145 UIActionIndex ST_M_Snapshot_S_Take,146 UIActionIndex ST_M_Snapshot_S_Delete,147 UIActionIndex ST_M_Snapshot_S_Restore,148 UIActionIndex ST_M_Snapshot_T_Properties,149 UIActionIndex ST_M_Snapshot_S_Clone,144 UIActionIndexMN_M_Snapshot, 145 UIActionIndexMN_M_Snapshot_S_Take, 146 UIActionIndexMN_M_Snapshot_S_Delete, 147 UIActionIndexMN_M_Snapshot_S_Restore, 148 UIActionIndexMN_M_Snapshot_T_Properties, 149 UIActionIndexMN_M_Snapshot_S_Clone, 150 150 151 151 /* Virtual Media Manager actions: */ 152 UIActionIndex ST_M_MediumWindow,153 UIActionIndex ST_M_Medium,154 UIActionIndex ST_M_Medium_S_Add,155 UIActionIndex ST_M_Medium_S_Create,156 UIActionIndex ST_M_Medium_S_Copy,157 UIActionIndex ST_M_Medium_S_Move,158 UIActionIndex ST_M_Medium_S_Remove,159 UIActionIndex ST_M_Medium_S_Release,160 UIActionIndex ST_M_Medium_T_Details,161 UIActionIndex ST_M_Medium_T_Search,162 UIActionIndex ST_M_Medium_S_Refresh,152 UIActionIndexMN_M_MediumWindow, 153 UIActionIndexMN_M_Medium, 154 UIActionIndexMN_M_Medium_S_Add, 155 UIActionIndexMN_M_Medium_S_Create, 156 UIActionIndexMN_M_Medium_S_Copy, 157 UIActionIndexMN_M_Medium_S_Move, 158 UIActionIndexMN_M_Medium_S_Remove, 159 UIActionIndexMN_M_Medium_S_Release, 160 UIActionIndexMN_M_Medium_T_Details, 161 UIActionIndexMN_M_Medium_T_Search, 162 UIActionIndexMN_M_Medium_S_Refresh, 163 163 164 164 /* Host Network Manager actions: */ 165 UIActionIndex ST_M_NetworkWindow,166 UIActionIndex ST_M_Network,167 UIActionIndex ST_M_Network_S_Create,168 UIActionIndex ST_M_Network_S_Remove,169 UIActionIndex ST_M_Network_T_Details,170 UIActionIndex ST_M_Network_S_Refresh,165 UIActionIndexMN_M_NetworkWindow, 166 UIActionIndexMN_M_Network, 167 UIActionIndexMN_M_Network_S_Create, 168 UIActionIndexMN_M_Network_S_Remove, 169 UIActionIndexMN_M_Network_T_Details, 170 UIActionIndexMN_M_Network_S_Refresh, 171 171 172 172 /* Cloud Profile Manager actions: */ 173 UIActionIndex ST_M_CloudWindow,174 UIActionIndex ST_M_Cloud,175 UIActionIndex ST_M_Cloud_S_Add,176 UIActionIndex ST_M_Cloud_S_Import,177 UIActionIndex ST_M_Cloud_S_Remove,178 UIActionIndex ST_M_Cloud_T_Details,179 UIActionIndex ST_M_Cloud_S_TryPage,180 UIActionIndex ST_M_Cloud_S_Help,173 UIActionIndexMN_M_CloudWindow, 174 UIActionIndexMN_M_Cloud, 175 UIActionIndexMN_M_Cloud_S_Add, 176 UIActionIndexMN_M_Cloud_S_Import, 177 UIActionIndexMN_M_Cloud_S_Remove, 178 UIActionIndexMN_M_Cloud_T_Details, 179 UIActionIndexMN_M_Cloud_S_TryPage, 180 UIActionIndexMN_M_Cloud_S_Help, 181 181 182 182 /* Cloud Console Manager actions: */ 183 UIActionIndex ST_M_CloudConsoleWindow,184 UIActionIndex ST_M_CloudConsole,185 UIActionIndex ST_M_CloudConsole_S_ApplicationAdd,186 UIActionIndex ST_M_CloudConsole_S_ApplicationRemove,187 UIActionIndex ST_M_CloudConsole_S_ProfileAdd,188 UIActionIndex ST_M_CloudConsole_S_ProfileRemove,189 UIActionIndex ST_M_CloudConsole_T_Details,183 UIActionIndexMN_M_CloudConsoleWindow, 184 UIActionIndexMN_M_CloudConsole, 185 UIActionIndexMN_M_CloudConsole_S_ApplicationAdd, 186 UIActionIndexMN_M_CloudConsole_S_ApplicationRemove, 187 UIActionIndexMN_M_CloudConsole_S_ProfileAdd, 188 UIActionIndexMN_M_CloudConsole_S_ProfileRemove, 189 UIActionIndexMN_M_CloudConsole_T_Details, 190 190 191 191 /* VM resource Monitor actions: */ 192 UIActionIndex ST_M_VMResourceMonitor,193 UIActionIndex ST_M_VMResourceMonitor_M_Columns,194 UIActionIndex ST_M_VMResourceMonitor_S_SwitchToMachinePerformance,192 UIActionIndexMN_M_VMResourceMonitor, 193 UIActionIndexMN_M_VMResourceMonitor_M_Columns, 194 UIActionIndexMN_M_VMResourceMonitor_S_SwitchToMachinePerformance, 195 195 196 196 /* Maximum index: */ 197 UIActionIndex ST_Max197 UIActionIndexMN_Max 198 198 }; 199 199 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.h
r82968 r85597 32 32 33 33 34 /** Runtime action-pool index enum.34 /** VirtualBox Runtime action-pool index enum. 35 35 * Naming convention is following: 36 36 * 1. Every menu index prepended with 'M', -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r82968 r85597 205 205 QMenu *UIHostNetworkManagerWidget::menu() const 206 206 { 207 return m_pActionPool->action(UIActionIndex ST_M_NetworkWindow)->menu();207 return m_pActionPool->action(UIActionIndexMN_M_NetworkWindow)->menu(); 208 208 } 209 209 … … 638 638 639 639 /* Update actions availability: */ 640 m_pActionPool->action(UIActionIndex ST_M_Network_S_Remove)->setEnabled(pItem);641 m_pActionPool->action(UIActionIndex ST_M_Network_T_Details)->setEnabled(pItem);640 m_pActionPool->action(UIActionIndexMN_M_Network_S_Remove)->setEnabled(pItem); 641 m_pActionPool->action(UIActionIndexMN_M_Network_T_Details)->setEnabled(pItem); 642 642 643 643 /* If there is an item => update details data: */ … … 658 658 if (m_pTreeWidget->itemAt(position)) 659 659 { 660 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Remove));661 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Network_T_Details));660 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Remove)); 661 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Network_T_Details)); 662 662 } 663 663 else 664 664 { 665 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Create));666 // menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Refresh));665 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Create)); 666 // menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Refresh)); 667 667 } 668 668 /* And show it: */ … … 690 690 { 691 691 /* First of all, add actions which has smaller shortcut scope: */ 692 addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Create));693 addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Remove));694 addAction(m_pActionPool->action(UIActionIndex ST_M_Network_T_Details));695 addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Refresh));692 addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Create)); 693 addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Remove)); 694 addAction(m_pActionPool->action(UIActionIndexMN_M_Network_T_Details)); 695 addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Refresh)); 696 696 697 697 /* Connect actions: */ 698 connect(m_pActionPool->action(UIActionIndex ST_M_Network_S_Create), &QAction::triggered,698 connect(m_pActionPool->action(UIActionIndexMN_M_Network_S_Create), &QAction::triggered, 699 699 this, &UIHostNetworkManagerWidget::sltCreateHostNetwork); 700 connect(m_pActionPool->action(UIActionIndex ST_M_Network_S_Remove), &QAction::triggered,700 connect(m_pActionPool->action(UIActionIndexMN_M_Network_S_Remove), &QAction::triggered, 701 701 this, &UIHostNetworkManagerWidget::sltRemoveHostNetwork); 702 connect(m_pActionPool->action(UIActionIndex ST_M_Network_T_Details), &QAction::toggled,702 connect(m_pActionPool->action(UIActionIndexMN_M_Network_T_Details), &QAction::toggled, 703 703 this, &UIHostNetworkManagerWidget::sltToggleHostNetworkDetailsVisibility); 704 connect(m_pActionPool->action(UIActionIndex ST_M_Network_S_Refresh), &QAction::triggered,704 connect(m_pActionPool->action(UIActionIndexMN_M_Network_S_Refresh), &QAction::triggered, 705 705 this, &UIHostNetworkManagerWidget::sltRefreshHostNetworks); 706 706 } … … 742 742 743 743 /* Add toolbar actions: */ 744 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Create));744 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Create)); 745 745 m_pToolBar->addSeparator(); 746 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Remove));747 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Network_T_Details));746 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Remove)); 747 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Network_T_Details)); 748 748 // m_pToolBar->addSeparator(); 749 // m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Network_S_Refresh));749 // m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Network_S_Refresh)); 750 750 751 751 #ifdef VBOX_WS_MAC … … 785 785 this, &UIHostNetworkManagerWidget::sltHandleItemChange); 786 786 connect(m_pTreeWidget, &QITreeWidget::itemDoubleClicked, 787 m_pActionPool->action(UIActionIndex ST_M_Network_T_Details), &QAction::setChecked);787 m_pActionPool->action(UIActionIndexMN_M_Network_T_Details), &QAction::setChecked); 788 788 789 789 /* Add into layout: */ … … 816 816 { 817 817 /* Details action/widget: */ 818 m_pActionPool->action(UIActionIndex ST_M_Network_T_Details)->setChecked(gEDataManager->hostNetworkManagerDetailsExpanded());819 sltToggleHostNetworkDetailsVisibility(m_pActionPool->action(UIActionIndex ST_M_Network_T_Details)->isChecked());818 m_pActionPool->action(UIActionIndexMN_M_Network_T_Details)->setChecked(gEDataManager->hostNetworkManagerDetailsExpanded()); 819 sltToggleHostNetworkDetailsVisibility(m_pActionPool->action(UIActionIndexMN_M_Network_T_Details)->isChecked()); 820 820 } 821 821 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r85577 r85597 674 674 675 675 /* Lock the action preventing cascade calls: */ 676 UIQObjectPropertySetter guardBlock(actionPool()->action(UIActionIndex ST_M_File_S_ImportAppliance), "opened", true);676 UIQObjectPropertySetter guardBlock(actionPool()->action(UIActionIndexMN_M_File_S_ImportAppliance), "opened", true); 677 677 connect(&guardBlock, &UIQObjectPropertySetter::sigAboutToBeDestroyed, 678 678 this, &UIVirtualBoxManager::sltHandleUpdateActionAppearanceRequest); … … 700 700 701 701 /* Lock the actions preventing cascade calls: */ 702 UIQObjectPropertySetter guardBlock(QList<QObject*>() << actionPool()->action(UIActionIndex ST_M_File_S_ExportAppliance)703 << actionPool()->action(UIActionIndex ST_M_Machine_S_ExportToOCI),702 UIQObjectPropertySetter guardBlock(QList<QObject*>() << actionPool()->action(UIActionIndexMN_M_File_S_ExportAppliance) 703 << actionPool()->action(UIActionIndexMN_M_Machine_S_ExportToOCI), 704 704 "opened", true); 705 705 connect(&guardBlock, &UIQObjectPropertySetter::sigAboutToBeDestroyed, … … 714 714 UISafePointerWizard pWizard = new UIWizardExportApp(pWizardParent, names, 715 715 pAction && 716 pAction == actionPool()->action(UIActionIndex ST_M_Machine_S_ExportToOCI));716 pAction == actionPool()->action(UIActionIndexMN_M_Machine_S_ExportToOCI)); 717 717 windowManager().registerNewParent(pWizard, pWizardParent); 718 718 pWizard->prepare(); … … 724 724 { 725 725 /* Lock the action preventing cascade calls: */ 726 UIQObjectPropertySetter guardBlock(actionPool()->action(UIActionIndex ST_M_File_S_NewCloudVM), "opened", true);726 UIQObjectPropertySetter guardBlock(actionPool()->action(UIActionIndexMN_M_File_S_NewCloudVM), "opened", true); 727 727 connect(&guardBlock, &UIQObjectPropertySetter::sigAboutToBeDestroyed, 728 728 this, &UIVirtualBoxManager::sltHandleUpdateActionAppearanceRequest); … … 775 775 { 776 776 /* Lock the actions preventing cascade calls: */ 777 UIQObjectPropertySetter guardBlock(QList<QObject*>() << actionPool()->action(UIActionIndex ST_M_Welcome_S_New)778 << actionPool()->action(UIActionIndex ST_M_Machine_S_New)779 << actionPool()->action(UIActionIndex ST_M_Group_S_New),777 UIQObjectPropertySetter guardBlock(QList<QObject*>() << actionPool()->action(UIActionIndexMN_M_Welcome_S_New) 778 << actionPool()->action(UIActionIndexMN_M_Machine_S_New) 779 << actionPool()->action(UIActionIndexMN_M_Group_S_New), 780 780 "opened", true); 781 781 connect(&guardBlock, &UIQObjectPropertySetter::sigAboutToBeDestroyed, … … 836 836 { 837 837 /* Lock the actions preventing cascade calls: */ 838 UIQObjectPropertySetter guardBlock(QList<QObject*>() << actionPool()->action(UIActionIndex ST_M_Welcome_S_Add)839 << actionPool()->action(UIActionIndex ST_M_Machine_S_Add)840 << actionPool()->action(UIActionIndex ST_M_Group_S_Add),838 UIQObjectPropertySetter guardBlock(QList<QObject*>() << actionPool()->action(UIActionIndexMN_M_Welcome_S_Add) 839 << actionPool()->action(UIActionIndexMN_M_Machine_S_Add) 840 << actionPool()->action(UIActionIndexMN_M_Group_S_Add), 841 841 "opened", true); 842 842 connect(&guardBlock, &UIQObjectPropertySetter::sigAboutToBeDestroyed, … … 884 884 { 885 885 /* Lock the action preventing cascade calls: */ 886 UIQObjectPropertySetter guardBlock(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings), "opened", true);886 UIQObjectPropertySetter guardBlock(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings), "opened", true); 887 887 connect(&guardBlock, &UIQObjectPropertySetter::sigAboutToBeDestroyed, 888 888 this, &UIVirtualBoxManager::sltHandleUpdateActionAppearanceRequest); … … 1405 1405 foreach (UIVirtualMachineItem *pItem, items) 1406 1406 { 1407 if (isActionEnabled(UIActionIndex ST_M_Group_S_Discard, QList<UIVirtualMachineItem*>() << pItem))1407 if (isActionEnabled(UIActionIndexMN_M_Group_S_Discard, QList<UIVirtualMachineItem*>() << pItem)) 1408 1408 { 1409 1409 if (pItem->itemType() == UIVirtualMachineItemType_Local) … … 1494 1494 1495 1495 /* Check if current item could be paused/resumed: */ 1496 if (!isActionEnabled(UIActionIndex ST_M_Group_T_Pause, QList<UIVirtualMachineItem*>() << pItem))1496 if (!isActionEnabled(UIActionIndexMN_M_Group_T_Pause, QList<UIVirtualMachineItem*>() << pItem)) 1497 1497 continue; 1498 1498 … … 1546 1546 foreach (UIVirtualMachineItem *pItem, items) 1547 1547 { 1548 if (isActionEnabled(UIActionIndex ST_M_Group_S_Reset, QList<UIVirtualMachineItem*>() << pItem))1548 if (isActionEnabled(UIActionIndexMN_M_Group_S_Reset, QList<UIVirtualMachineItem*>() << pItem)) 1549 1549 { 1550 1550 machineNames << pItem->name(); … … 1586 1586 { 1587 1587 /* Check if current item could be detached: */ 1588 if (!isActionEnabled(UIActionIndex ST_M_Machine_M_Close_S_Detach, QList<UIVirtualMachineItem*>() << pItem))1588 if (!isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_Detach, QList<UIVirtualMachineItem*>() << pItem)) 1589 1589 continue; 1590 1590 … … 1605 1605 /* Check if current item could be saved: */ 1606 1606 AssertPtrReturnVoid(pItem); 1607 if (!isActionEnabled(UIActionIndex ST_M_Machine_M_Close_S_SaveState, QList<UIVirtualMachineItem*>() << pItem))1607 if (!isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_SaveState, QList<UIVirtualMachineItem*>() << pItem)) 1608 1608 continue; 1609 1609 … … 1659 1659 foreach (UIVirtualMachineItem *pItem, items) 1660 1660 { 1661 if (isActionEnabled(UIActionIndex ST_M_Machine_M_Close_S_Shutdown, QList<UIVirtualMachineItem*>() << pItem))1661 if (isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_Shutdown, QList<UIVirtualMachineItem*>() << pItem)) 1662 1662 { 1663 1663 machineNames << pItem->name(); … … 1725 1725 foreach (UIVirtualMachineItem *pItem, items) 1726 1726 { 1727 if (isActionEnabled(UIActionIndex ST_M_Machine_M_Close_S_PowerOff, QList<UIVirtualMachineItem*>() << pItem))1727 if (isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_PowerOff, QList<UIVirtualMachineItem*>() << pItem)) 1728 1728 { 1729 1729 machineNames << pItem->name(); … … 1816 1816 1817 1817 /* Check if log could be show for the current item: */ 1818 if (!isActionEnabled(UIActionIndex ST_M_Group_S_ShowLogDialog, QList<UIVirtualMachineItem*>() << pItem))1818 if (!isActionEnabled(UIActionIndexMN_M_Group_S_ShowLogDialog, QList<UIVirtualMachineItem*>() << pItem)) 1819 1819 continue; 1820 1820 … … 1914 1914 1915 1915 /* Check if that item could be shown in file-browser: */ 1916 if (!isActionEnabled(UIActionIndex ST_M_Group_S_ShowInFileManager, QList<UIVirtualMachineItem*>() << pItem))1916 if (!isActionEnabled(UIActionIndexMN_M_Group_S_ShowInFileManager, QList<UIVirtualMachineItem*>() << pItem)) 1917 1917 continue; 1918 1918 … … 1937 1937 1938 1938 /* Check if shortcuts could be created for this item: */ 1939 if (!isActionEnabled(UIActionIndex ST_M_Group_S_CreateShortcut, QList<UIVirtualMachineItem*>() << pItem))1939 if (!isActionEnabled(UIActionIndexMN_M_Group_S_CreateShortcut, QList<UIVirtualMachineItem*>() << pItem)) 1940 1940 continue; 1941 1941 … … 2042 2042 2043 2043 /* Prepare menu update-handlers: */ 2044 m_menuUpdateHandlers[UIActionIndex ST_M_Group] = &UIVirtualBoxManager::updateMenuGroup;2045 m_menuUpdateHandlers[UIActionIndex ST_M_Machine] = &UIVirtualBoxManager::updateMenuMachine;2046 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_MoveToGroup] = &UIVirtualBoxManager::updateMenuGroupMoveToGroup;2047 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_Console] = &UIVirtualBoxManager::updateMenuGroupConsole;2048 m_menuUpdateHandlers[UIActionIndex ST_M_Group_M_Close] = &UIVirtualBoxManager::updateMenuGroupClose;2049 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_MoveToGroup] = &UIVirtualBoxManager::updateMenuMachineMoveToGroup;2050 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_Console] = &UIVirtualBoxManager::updateMenuMachineConsole;2051 m_menuUpdateHandlers[UIActionIndex ST_M_Machine_M_Close] = &UIVirtualBoxManager::updateMenuMachineClose;2044 m_menuUpdateHandlers[UIActionIndexMN_M_Group] = &UIVirtualBoxManager::updateMenuGroup; 2045 m_menuUpdateHandlers[UIActionIndexMN_M_Machine] = &UIVirtualBoxManager::updateMenuMachine; 2046 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_MoveToGroup] = &UIVirtualBoxManager::updateMenuGroupMoveToGroup; 2047 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_Console] = &UIVirtualBoxManager::updateMenuGroupConsole; 2048 m_menuUpdateHandlers[UIActionIndexMN_M_Group_M_Close] = &UIVirtualBoxManager::updateMenuGroupClose; 2049 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_MoveToGroup] = &UIVirtualBoxManager::updateMenuMachineMoveToGroup; 2050 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_Console] = &UIVirtualBoxManager::updateMenuMachineConsole; 2051 m_menuUpdateHandlers[UIActionIndexMN_M_Machine_M_Close] = &UIVirtualBoxManager::updateMenuMachineClose; 2052 2052 2053 2053 /* Build menu-bar: */ … … 2127 2127 2128 2128 /* 'File' menu connections: */ 2129 connect(actionPool()->action(UIActionIndex ST_M_File_S_ShowVirtualMediumManager), &UIAction::triggered,2129 connect(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager), &UIAction::triggered, 2130 2130 this, &UIVirtualBoxManager::sltOpenVirtualMediumManagerWindow); 2131 connect(actionPool()->action(UIActionIndex ST_M_File_S_ShowHostNetworkManager), &UIAction::triggered,2131 connect(actionPool()->action(UIActionIndexMN_M_File_S_ShowHostNetworkManager), &UIAction::triggered, 2132 2132 this, &UIVirtualBoxManager::sltOpenHostNetworkManagerWindow); 2133 connect(actionPool()->action(UIActionIndex ST_M_File_S_ShowCloudProfileManager), &UIAction::triggered,2133 connect(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager), &UIAction::triggered, 2134 2134 this, &UIVirtualBoxManager::sltOpenCloudProfileManagerWindow); 2135 connect(actionPool()->action(UIActionIndex ST_M_File_S_ImportAppliance), &UIAction::triggered,2135 connect(actionPool()->action(UIActionIndexMN_M_File_S_ImportAppliance), &UIAction::triggered, 2136 2136 this, &UIVirtualBoxManager::sltOpenImportApplianceWizardDefault); 2137 connect(actionPool()->action(UIActionIndex ST_M_File_S_ExportAppliance), &UIAction::triggered,2137 connect(actionPool()->action(UIActionIndexMN_M_File_S_ExportAppliance), &UIAction::triggered, 2138 2138 this, &UIVirtualBoxManager::sltOpenExportApplianceWizard); 2139 connect(actionPool()->action(UIActionIndex ST_M_File_S_NewCloudVM), &UIAction::triggered,2139 connect(actionPool()->action(UIActionIndexMN_M_File_S_NewCloudVM), &UIAction::triggered, 2140 2140 this, &UIVirtualBoxManager::sltOpenNewCloudVMWizard); 2141 2141 #ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 2142 connect(actionPool()->action(UIActionIndex ST_M_File_S_ShowExtraDataManager), &UIAction::triggered,2142 connect(actionPool()->action(UIActionIndexMN_M_File_S_ShowExtraDataManager), &UIAction::triggered, 2143 2143 this, &UIVirtualBoxManager::sltOpenExtraDataManagerWindow); 2144 2144 #endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */ 2145 2145 connect(actionPool()->action(UIActionIndex_M_Application_S_Preferences), &UIAction::triggered, 2146 2146 this, &UIVirtualBoxManager::sltOpenPreferencesDialog); 2147 connect(actionPool()->action(UIActionIndex ST_M_File_S_Close), &UIAction::triggered,2147 connect(actionPool()->action(UIActionIndexMN_M_File_S_Close), &UIAction::triggered, 2148 2148 this, &UIVirtualBoxManager::sltPerformExit); 2149 2149 2150 2150 /* 'Welcome' menu connections: */ 2151 connect(actionPool()->action(UIActionIndex ST_M_Welcome_S_New), &UIAction::triggered,2151 connect(actionPool()->action(UIActionIndexMN_M_Welcome_S_New), &UIAction::triggered, 2152 2152 this, &UIVirtualBoxManager::sltOpenNewMachineWizard); 2153 connect(actionPool()->action(UIActionIndex ST_M_Welcome_S_Add), &UIAction::triggered,2153 connect(actionPool()->action(UIActionIndexMN_M_Welcome_S_Add), &UIAction::triggered, 2154 2154 this, &UIVirtualBoxManager::sltOpenAddMachineDialog); 2155 2155 2156 2156 /* 'Group' menu connections: */ 2157 connect(actionPool()->action(UIActionIndex ST_M_Group_S_New), &UIAction::triggered,2157 connect(actionPool()->action(UIActionIndexMN_M_Group_S_New), &UIAction::triggered, 2158 2158 this, &UIVirtualBoxManager::sltOpenNewMachineWizard); 2159 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Add), &UIAction::triggered,2159 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Add), &UIAction::triggered, 2160 2160 this, &UIVirtualBoxManager::sltOpenAddMachineDialog); 2161 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Rename), &UIAction::triggered,2161 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Rename), &UIAction::triggered, 2162 2162 this, &UIVirtualBoxManager::sltOpenGroupNameEditor); 2163 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Remove), &UIAction::triggered,2163 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Remove), &UIAction::triggered, 2164 2164 this, &UIVirtualBoxManager::sltDisbandGroup); 2165 connect(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow), &UIAction::triggered,2165 connect(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow), &UIAction::triggered, 2166 2166 this, &UIVirtualBoxManager::sltPerformStartOrShowMachine); 2167 connect(actionPool()->action(UIActionIndex ST_M_Group_T_Pause), &UIAction::toggled,2167 connect(actionPool()->action(UIActionIndexMN_M_Group_T_Pause), &UIAction::toggled, 2168 2168 this, &UIVirtualBoxManager::sltPerformPauseOrResumeMachine); 2169 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Reset), &UIAction::triggered,2169 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Reset), &UIAction::triggered, 2170 2170 this, &UIVirtualBoxManager::sltPerformResetMachine); 2171 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Discard), &UIAction::triggered,2171 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Discard), &UIAction::triggered, 2172 2172 this, &UIVirtualBoxManager::sltPerformDiscardMachineState); 2173 connect(actionPool()->action(UIActionIndex ST_M_Group_S_ShowLogDialog), &UIAction::triggered,2173 connect(actionPool()->action(UIActionIndexMN_M_Group_S_ShowLogDialog), &UIAction::triggered, 2174 2174 this, &UIVirtualBoxManager::sltOpenLogViewerWindow); 2175 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Refresh), &UIAction::triggered,2175 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Refresh), &UIAction::triggered, 2176 2176 this, &UIVirtualBoxManager::sltPerformRefreshMachine); 2177 connect(actionPool()->action(UIActionIndex ST_M_Group_S_ShowInFileManager), &UIAction::triggered,2177 connect(actionPool()->action(UIActionIndexMN_M_Group_S_ShowInFileManager), &UIAction::triggered, 2178 2178 this, &UIVirtualBoxManager::sltShowMachineInFileManager); 2179 connect(actionPool()->action(UIActionIndex ST_M_Group_S_CreateShortcut), &UIAction::triggered,2179 connect(actionPool()->action(UIActionIndexMN_M_Group_S_CreateShortcut), &UIAction::triggered, 2180 2180 this, &UIVirtualBoxManager::sltPerformCreateMachineShortcut); 2181 connect(actionPool()->action(UIActionIndex ST_M_Group_S_Sort), &UIAction::triggered,2181 connect(actionPool()->action(UIActionIndexMN_M_Group_S_Sort), &UIAction::triggered, 2182 2182 this, &UIVirtualBoxManager::sltPerformGroupSorting); 2183 2183 2184 2184 /* 'Machine' menu connections: */ 2185 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_New), &UIAction::triggered,2185 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_New), &UIAction::triggered, 2186 2186 this, &UIVirtualBoxManager::sltOpenNewMachineWizard); 2187 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Add), &UIAction::triggered,2187 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Add), &UIAction::triggered, 2188 2188 this, &UIVirtualBoxManager::sltOpenAddMachineDialog); 2189 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings), &UIAction::triggered,2189 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings), &UIAction::triggered, 2190 2190 this, &UIVirtualBoxManager::sltOpenMachineSettingsDialogDefault); 2191 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Clone), &UIAction::triggered,2191 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Clone), &UIAction::triggered, 2192 2192 this, &UIVirtualBoxManager::sltOpenCloneMachineWizard); 2193 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Move), &UIAction::triggered,2193 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Move), &UIAction::triggered, 2194 2194 this, &UIVirtualBoxManager::sltPerformMachineMove); 2195 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_ExportToOCI), &UIAction::triggered,2195 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_ExportToOCI), &UIAction::triggered, 2196 2196 this, &UIVirtualBoxManager::sltOpenExportApplianceWizard); 2197 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Remove), &UIAction::triggered,2197 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Remove), &UIAction::triggered, 2198 2198 this, &UIVirtualBoxManager::sltPerformMachineRemove); 2199 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_MoveToGroup_S_New), &UIAction::triggered,2199 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_MoveToGroup_S_New), &UIAction::triggered, 2200 2200 this, &UIVirtualBoxManager::sltPerformMachineMoveToNewGroup); 2201 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow), &UIAction::triggered,2201 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow), &UIAction::triggered, 2202 2202 this, &UIVirtualBoxManager::sltPerformStartOrShowMachine); 2203 connect(actionPool()->action(UIActionIndex ST_M_Machine_T_Pause), &UIAction::toggled,2203 connect(actionPool()->action(UIActionIndexMN_M_Machine_T_Pause), &UIAction::toggled, 2204 2204 this, &UIVirtualBoxManager::sltPerformPauseOrResumeMachine); 2205 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Reset), &UIAction::triggered,2205 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Reset), &UIAction::triggered, 2206 2206 this, &UIVirtualBoxManager::sltPerformResetMachine); 2207 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard), &UIAction::triggered,2207 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard), &UIAction::triggered, 2208 2208 this, &UIVirtualBoxManager::sltPerformDiscardMachineState); 2209 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_ShowLogDialog), &UIAction::triggered,2209 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_ShowLogDialog), &UIAction::triggered, 2210 2210 this, &UIVirtualBoxManager::sltOpenLogViewerWindow); 2211 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh), &UIAction::triggered,2211 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh), &UIAction::triggered, 2212 2212 this, &UIVirtualBoxManager::sltPerformRefreshMachine); 2213 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_ShowInFileManager), &UIAction::triggered,2213 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_ShowInFileManager), &UIAction::triggered, 2214 2214 this, &UIVirtualBoxManager::sltShowMachineInFileManager); 2215 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_CreateShortcut), &UIAction::triggered,2215 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_CreateShortcut), &UIAction::triggered, 2216 2216 this, &UIVirtualBoxManager::sltPerformCreateMachineShortcut); 2217 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_SortParent), &UIAction::triggered,2217 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_SortParent), &UIAction::triggered, 2218 2218 this, &UIVirtualBoxManager::sltPerformGroupSorting); 2219 connect(actionPool()->action(UIActionIndex ST_M_Machine_T_Search), &UIAction::toggled,2219 connect(actionPool()->action(UIActionIndexMN_M_Machine_T_Search), &UIAction::toggled, 2220 2220 this, &UIVirtualBoxManager::sltPerformMachineSearchWidgetVisibilityToggling); 2221 2221 connect(m_pWidget, &UIVirtualBoxManagerWidget::sigMachineSearchWidgetVisibilityChanged, 2222 actionPool()->action(UIActionIndex ST_M_Machine_T_Search), &QAction::setChecked);2222 actionPool()->action(UIActionIndexMN_M_Machine_T_Search), &QAction::setChecked); 2223 2223 2224 2224 /* 'Group/Start or Show' menu connections: */ 2225 connect(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal), &UIAction::triggered,2225 connect(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal), &UIAction::triggered, 2226 2226 this, &UIVirtualBoxManager::sltPerformStartMachineNormal); 2227 connect(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless), &UIAction::triggered,2227 connect(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless), &UIAction::triggered, 2228 2228 this, &UIVirtualBoxManager::sltPerformStartMachineHeadless); 2229 connect(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable), &UIAction::triggered,2229 connect(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable), &UIAction::triggered, 2230 2230 this, &UIVirtualBoxManager::sltPerformStartMachineDetachable); 2231 2231 2232 2232 /* 'Machine/Start or Show' menu connections: */ 2233 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal), &UIAction::triggered,2233 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal), &UIAction::triggered, 2234 2234 this, &UIVirtualBoxManager::sltPerformStartMachineNormal); 2235 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless), &UIAction::triggered,2235 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless), &UIAction::triggered, 2236 2236 this, &UIVirtualBoxManager::sltPerformStartMachineHeadless); 2237 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable), &UIAction::triggered,2237 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable), &UIAction::triggered, 2238 2238 this, &UIVirtualBoxManager::sltPerformStartMachineDetachable); 2239 2239 2240 2240 /* 'Group/Console' menu connections: */ 2241 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_CreateConnection), &UIAction::triggered,2241 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_CreateConnection), &UIAction::triggered, 2242 2242 this, &UIVirtualBoxManager::sltPerformCreateConsoleConnectionForGroup); 2243 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_DeleteConnection), &UIAction::triggered,2243 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_DeleteConnection), &UIAction::triggered, 2244 2244 this, &UIVirtualBoxManager::sltPerformDeleteConsoleConnectionForGroup); 2245 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications), &UIAction::triggered,2245 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications), &UIAction::triggered, 2246 2246 this, &UIVirtualBoxManager::sltOpenCloudConsoleManagerWindow); 2247 2247 2248 2248 /* 'Machine/Console' menu connections: */ 2249 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CreateConnection), &UIAction::triggered,2249 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CreateConnection), &UIAction::triggered, 2250 2250 this, &UIVirtualBoxManager::sltPerformCreateConsoleConnectionForMachine); 2251 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection), &UIAction::triggered,2251 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection), &UIAction::triggered, 2252 2252 this, &UIVirtualBoxManager::sltPerformDeleteConsoleConnectionForMachine); 2253 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix), &UIAction::triggered,2253 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix), &UIAction::triggered, 2254 2254 this, &UIVirtualBoxManager::sltPerformCopyCommandSerialUnix); 2255 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows), &UIAction::triggered,2255 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows), &UIAction::triggered, 2256 2256 this, &UIVirtualBoxManager::sltPerformCopyCommandSerialWindows); 2257 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix), &UIAction::triggered,2257 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix), &UIAction::triggered, 2258 2258 this, &UIVirtualBoxManager::sltPerformCopyCommandVNCUnix); 2259 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows), &UIAction::triggered,2259 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows), &UIAction::triggered, 2260 2260 this, &UIVirtualBoxManager::sltPerformCopyCommandVNCWindows); 2261 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications), &UIAction::triggered,2261 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications), &UIAction::triggered, 2262 2262 this, &UIVirtualBoxManager::sltOpenCloudConsoleManagerWindow); 2263 2263 2264 2264 /* 'Group/Close' menu connections: */ 2265 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_Detach), &UIAction::triggered,2265 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_Detach), &UIAction::triggered, 2266 2266 this, &UIVirtualBoxManager::sltPerformDetachMachineUI); 2267 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_SaveState), &UIAction::triggered,2267 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_SaveState), &UIAction::triggered, 2268 2268 this, &UIVirtualBoxManager::sltPerformSaveMachineState); 2269 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_Shutdown), &UIAction::triggered,2269 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_Shutdown), &UIAction::triggered, 2270 2270 this, &UIVirtualBoxManager::sltPerformShutdownMachine); 2271 connect(actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_PowerOff), &UIAction::triggered,2271 connect(actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_PowerOff), &UIAction::triggered, 2272 2272 this, &UIVirtualBoxManager::sltPerformPowerOffMachine); 2273 2273 2274 2274 /* 'Machine/Close' menu connections: */ 2275 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_Detach), &UIAction::triggered,2275 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_Detach), &UIAction::triggered, 2276 2276 this, &UIVirtualBoxManager::sltPerformDetachMachineUI); 2277 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_SaveState), &UIAction::triggered,2277 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_SaveState), &UIAction::triggered, 2278 2278 this, &UIVirtualBoxManager::sltPerformSaveMachineState); 2279 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_Shutdown), &UIAction::triggered,2279 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_Shutdown), &UIAction::triggered, 2280 2280 this, &UIVirtualBoxManager::sltPerformShutdownMachine); 2281 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_PowerOff), &UIAction::triggered,2281 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_PowerOff), &UIAction::triggered, 2282 2282 this, &UIVirtualBoxManager::sltPerformPowerOffMachine); 2283 2283 2284 2284 /* 'Group/Tools' menu connections: */ 2285 connect(actionPool()->actionGroup(UIActionIndex ST_M_Group_M_Tools), &QActionGroup::triggered,2285 connect(actionPool()->actionGroup(UIActionIndexMN_M_Group_M_Tools), &QActionGroup::triggered, 2286 2286 this, &UIVirtualBoxManager::sltPerformShowMachineTool); 2287 2287 2288 2288 /* 'Machine/Tools' menu connections: */ 2289 connect(actionPool()->actionGroup(UIActionIndex ST_M_Machine_M_Tools), &QActionGroup::triggered,2289 connect(actionPool()->actionGroup(UIActionIndexMN_M_Machine_M_Tools), &QActionGroup::triggered, 2290 2290 this, &UIVirtualBoxManager::sltPerformShowMachineTool); 2291 2291 } … … 2620 2620 { 2621 2621 /* Populate Group-menu: */ 2622 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_New));2623 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Add));2622 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_New)); 2623 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Add)); 2624 2624 pMenu->addSeparator(); 2625 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Rename));2626 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Remove));2627 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_MoveToGroup));2625 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Rename)); 2626 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Remove)); 2627 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_MoveToGroup)); 2628 2628 pMenu->addSeparator(); 2629 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow));2630 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_T_Pause));2631 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Reset));2632 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Close)->menu());2629 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)); 2630 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_T_Pause)); 2631 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Reset)); 2632 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Close)->menu()); 2633 2633 pMenu->addSeparator(); 2634 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Tools)->menu());2634 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Tools)->menu()); 2635 2635 pMenu->addSeparator(); 2636 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Discard));2637 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_ShowLogDialog));2638 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Refresh));2636 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Discard)); 2637 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_ShowLogDialog)); 2638 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Refresh)); 2639 2639 pMenu->addSeparator(); 2640 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_ShowInFileManager));2641 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_CreateShortcut));2640 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_ShowInFileManager)); 2641 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_CreateShortcut)); 2642 2642 pMenu->addSeparator(); 2643 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Sort));2643 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Sort)); 2644 2644 } 2645 2645 else 2646 2646 { 2647 2647 /* Populate Group-menu: */ 2648 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_New));2649 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Add));2648 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_New)); 2649 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Add)); 2650 2650 pMenu->addSeparator(); 2651 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow));2652 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Console)->menu());2653 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Close)->menu());2651 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)); 2652 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Console)->menu()); 2653 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Close)->menu()); 2654 2654 pMenu->addSeparator(); 2655 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Discard));2656 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Refresh));2655 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Discard)); 2656 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Refresh)); 2657 2657 pMenu->addSeparator(); 2658 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Sort));2658 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Sort)); 2659 2659 } 2660 2660 } … … 2670 2670 { 2671 2671 /* Populate Machine-menu: */ 2672 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_New));2673 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Add));2672 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_New)); 2673 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Add)); 2674 2674 pMenu->addSeparator(); 2675 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));2676 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Clone));2677 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Move));2678 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_ExportToOCI));2679 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Remove));2680 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_MoveToGroup));2675 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 2676 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Clone)); 2677 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Move)); 2678 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_ExportToOCI)); 2679 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Remove)); 2680 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_MoveToGroup)); 2681 2681 pMenu->addSeparator(); 2682 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));2683 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_T_Pause));2684 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Reset));2685 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Close)->menu());2682 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 2683 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)); 2684 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Reset)); 2685 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Close)->menu()); 2686 2686 pMenu->addSeparator(); 2687 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Tools)->menu());2687 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Tools)->menu()); 2688 2688 pMenu->addSeparator(); 2689 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));2690 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_ShowLogDialog));2691 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh));2689 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 2690 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_ShowLogDialog)); 2691 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh)); 2692 2692 pMenu->addSeparator(); 2693 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_ShowInFileManager));2694 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_CreateShortcut));2693 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_ShowInFileManager)); 2694 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_CreateShortcut)); 2695 2695 pMenu->addSeparator(); 2696 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_SortParent));2697 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_T_Search));2696 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_SortParent)); 2697 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_T_Search)); 2698 2698 } 2699 2699 else 2700 2700 { 2701 2701 /* Populate Machine-menu: */ 2702 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_New));2703 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Add));2702 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_New)); 2703 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Add)); 2704 2704 pMenu->addSeparator(); 2705 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));2706 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Remove));2705 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 2706 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Remove)); 2707 2707 pMenu->addSeparator(); 2708 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));2709 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Console)->menu());2710 pMenu->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Close)->menu());2708 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 2709 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Console)->menu()); 2710 pMenu->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Close)->menu()); 2711 2711 pMenu->addSeparator(); 2712 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));2713 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh));2712 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 2713 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh)); 2714 2714 pMenu->addSeparator(); 2715 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_SortParent));2716 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_T_Search));2715 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_SortParent)); 2716 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_T_Search)); 2717 2717 } 2718 2718 } … … 2738 2738 { 2739 2739 /* Populate 'Group' / 'Console' menu: */ 2740 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_CreateConnection));2741 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_DeleteConnection));2740 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_CreateConnection)); 2741 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_DeleteConnection)); 2742 2742 pMenu->addSeparator(); 2743 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications));2743 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications)); 2744 2744 } 2745 2745 … … 2750 2750 AssertMsgReturnVoid(!items.isEmpty(), ("At least one item should be selected!\n")); 2751 2751 2752 actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close_S_Shutdown, items));2752 actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Close_S_Shutdown, items)); 2753 2753 } 2754 2754 … … 2788 2788 /* Populate 'Group' / 'Console' menu: */ 2789 2789 if (strFingerprint.isEmpty()) 2790 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CreateConnection));2790 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CreateConnection)); 2791 2791 else 2792 2792 { … … 2802 2802 2803 2803 /* Copy command to clipboard actions: */ 2804 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix));2805 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows));2806 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix));2807 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows));2804 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix)); 2805 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows)); 2806 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix)); 2807 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows)); 2808 2808 pMenu->addSeparator(); 2809 2809 … … 2859 2859 } 2860 2860 /* Terminal application configuration tool: */ 2861 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications));2861 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications)); 2862 2862 pMenu->addSeparator(); 2863 2863 2864 2864 /* Delete connection action finally: */ 2865 pMenu->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection));2865 pMenu->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection)); 2866 2866 } 2867 2867 } … … 2873 2873 AssertMsgReturnVoid(!items.isEmpty(), ("At least one item should be selected!\n")); 2874 2874 2875 actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Close_S_Shutdown, items));2875 actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_Shutdown, items)); 2876 2876 } 2877 2877 … … 2882 2882 const bool fGroupMenuShown = m_pWidget->isGroupItemSelected() && isSingleGroupSelected(); 2883 2883 const bool fMachineMenuShown = m_pWidget->isMachineItemSelected() && !isSingleGroupSelected(); 2884 actionPool()->action(UIActionIndex ST_M_Welcome)->setVisible(fGlobalMenuShown);2885 actionPool()->action(UIActionIndex ST_M_Group)->setVisible(fGroupMenuShown);2886 actionPool()->action(UIActionIndex ST_M_Machine)->setVisible(fMachineMenuShown);2884 actionPool()->action(UIActionIndexMN_M_Welcome)->setVisible(fGlobalMenuShown); 2885 actionPool()->action(UIActionIndexMN_M_Group)->setVisible(fGroupMenuShown); 2886 actionPool()->action(UIActionIndexMN_M_Machine)->setVisible(fMachineMenuShown); 2887 2887 2888 2888 /* Determine whether Media menu should be visible: */ 2889 2889 const bool fMediumMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_Media; 2890 actionPool()->action(UIActionIndex ST_M_Medium)->setVisible(fMediumMenuShown);2890 actionPool()->action(UIActionIndexMN_M_Medium)->setVisible(fMediumMenuShown); 2891 2891 /* Determine whether Network menu should be visible: */ 2892 2892 const bool fNetworkMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_Network; 2893 actionPool()->action(UIActionIndex ST_M_Network)->setVisible(fNetworkMenuShown);2893 actionPool()->action(UIActionIndexMN_M_Network)->setVisible(fNetworkMenuShown); 2894 2894 /* Determine whether Cloud menu should be visible: */ 2895 2895 const bool fCloudMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_Cloud; 2896 actionPool()->action(UIActionIndex ST_M_Cloud)->setVisible(fCloudMenuShown);2896 actionPool()->action(UIActionIndexMN_M_Cloud)->setVisible(fCloudMenuShown); 2897 2897 /* Determine whether Resources menu should be visible: */ 2898 2898 const bool fResourcesMenuShown = fGlobalMenuShown && m_pWidget->currentGlobalTool() == UIToolType_Resources; 2899 actionPool()->action(UIActionIndex ST_M_VMResourceMonitor)->setVisible(fResourcesMenuShown);2899 actionPool()->action(UIActionIndexMN_M_VMResourceMonitor)->setVisible(fResourcesMenuShown); 2900 2900 2901 2901 /* Determine whether Snapshots menu should be visible: */ 2902 2902 const bool fSnapshotMenuShown = (fMachineMenuShown || fGroupMenuShown) && 2903 2903 m_pWidget->currentMachineTool() == UIToolType_Snapshots; 2904 actionPool()->action(UIActionIndex ST_M_Snapshot)->setVisible(fSnapshotMenuShown);2904 actionPool()->action(UIActionIndexMN_M_Snapshot)->setVisible(fSnapshotMenuShown); 2905 2905 /* Determine whether Logs menu should be visible: */ 2906 2906 const bool fLogViewerMenuShown = (fMachineMenuShown || fGroupMenuShown) && … … 2914 2914 /* Hide action shortcuts: */ 2915 2915 if (!fGlobalMenuShown) 2916 actionPool()->setShortcutsVisible(UIActionIndex ST_M_Welcome, false);2916 actionPool()->setShortcutsVisible(UIActionIndexMN_M_Welcome, false); 2917 2917 if (!fGroupMenuShown) 2918 actionPool()->setShortcutsVisible(UIActionIndex ST_M_Group, false);2918 actionPool()->setShortcutsVisible(UIActionIndexMN_M_Group, false); 2919 2919 if (!fMachineMenuShown) 2920 actionPool()->setShortcutsVisible(UIActionIndex ST_M_Machine, false);2920 actionPool()->setShortcutsVisible(UIActionIndexMN_M_Machine, false); 2921 2921 2922 2922 /* Show action shortcuts: */ 2923 2923 if (fGlobalMenuShown) 2924 actionPool()->setShortcutsVisible(UIActionIndex ST_M_Welcome, true);2924 actionPool()->setShortcutsVisible(UIActionIndexMN_M_Welcome, true); 2925 2925 if (fGroupMenuShown) 2926 actionPool()->setShortcutsVisible(UIActionIndex ST_M_Group, true);2926 actionPool()->setShortcutsVisible(UIActionIndexMN_M_Group, true); 2927 2927 if (fMachineMenuShown) 2928 actionPool()->setShortcutsVisible(UIActionIndex ST_M_Machine, true);2928 actionPool()->setShortcutsVisible(UIActionIndexMN_M_Machine, true); 2929 2929 } 2930 2930 … … 2936 2936 /* Enable/disable File/Application actions: */ 2937 2937 actionPool()->action(UIActionIndex_M_Application_S_Preferences)->setEnabled(isActionEnabled(UIActionIndex_M_Application_S_Preferences, items)); 2938 actionPool()->action(UIActionIndex ST_M_File_S_ExportAppliance)->setEnabled(isActionEnabled(UIActionIndexST_M_File_S_ExportAppliance, items));2939 actionPool()->action(UIActionIndex ST_M_File_S_ImportAppliance)->setEnabled(isActionEnabled(UIActionIndexST_M_File_S_ImportAppliance, items));2940 actionPool()->action(UIActionIndex ST_M_File_S_NewCloudVM)->setEnabled(isActionEnabled(UIActionIndexST_M_File_S_NewCloudVM, items));2938 actionPool()->action(UIActionIndexMN_M_File_S_ExportAppliance)->setEnabled(isActionEnabled(UIActionIndexMN_M_File_S_ExportAppliance, items)); 2939 actionPool()->action(UIActionIndexMN_M_File_S_ImportAppliance)->setEnabled(isActionEnabled(UIActionIndexMN_M_File_S_ImportAppliance, items)); 2940 actionPool()->action(UIActionIndexMN_M_File_S_NewCloudVM)->setEnabled(isActionEnabled(UIActionIndexMN_M_File_S_NewCloudVM, items)); 2941 2941 2942 2942 /* Enable/disable welcome actions: */ 2943 actionPool()->action(UIActionIndex ST_M_Welcome_S_New)->setEnabled(isActionEnabled(UIActionIndexST_M_Welcome_S_New, items));2944 actionPool()->action(UIActionIndex ST_M_Welcome_S_Add)->setEnabled(isActionEnabled(UIActionIndexST_M_Welcome_S_Add, items));2943 actionPool()->action(UIActionIndexMN_M_Welcome_S_New)->setEnabled(isActionEnabled(UIActionIndexMN_M_Welcome_S_New, items)); 2944 actionPool()->action(UIActionIndexMN_M_Welcome_S_Add)->setEnabled(isActionEnabled(UIActionIndexMN_M_Welcome_S_Add, items)); 2945 2945 2946 2946 /* Enable/disable group actions: */ 2947 actionPool()->action(UIActionIndex ST_M_Group_S_New)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_New, items));2948 actionPool()->action(UIActionIndex ST_M_Group_S_Add)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Add, items));2949 actionPool()->action(UIActionIndex ST_M_Group_S_Rename)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Rename, items));2950 actionPool()->action(UIActionIndex ST_M_Group_S_Remove)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Remove, items));2951 actionPool()->action(UIActionIndex ST_M_Group_M_MoveToGroup)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_MoveToGroup, items));2952 actionPool()->action(UIActionIndex ST_M_Group_T_Pause)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_T_Pause, items));2953 actionPool()->action(UIActionIndex ST_M_Group_S_Reset)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Reset, items));2954 actionPool()->action(UIActionIndex ST_M_Group_S_Discard)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Discard, items));2955 actionPool()->action(UIActionIndex ST_M_Group_S_ShowLogDialog)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_ShowLogDialog, items));2956 actionPool()->action(UIActionIndex ST_M_Group_S_Refresh)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Refresh, items));2957 actionPool()->action(UIActionIndex ST_M_Group_S_ShowInFileManager)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_ShowInFileManager, items));2958 actionPool()->action(UIActionIndex ST_M_Group_S_CreateShortcut)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_CreateShortcut, items));2959 actionPool()->action(UIActionIndex ST_M_Group_S_Sort)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_S_Sort, items));2947 actionPool()->action(UIActionIndexMN_M_Group_S_New)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_New, items)); 2948 actionPool()->action(UIActionIndexMN_M_Group_S_Add)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Add, items)); 2949 actionPool()->action(UIActionIndexMN_M_Group_S_Rename)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Rename, items)); 2950 actionPool()->action(UIActionIndexMN_M_Group_S_Remove)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Remove, items)); 2951 actionPool()->action(UIActionIndexMN_M_Group_M_MoveToGroup)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_MoveToGroup, items)); 2952 actionPool()->action(UIActionIndexMN_M_Group_T_Pause)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_T_Pause, items)); 2953 actionPool()->action(UIActionIndexMN_M_Group_S_Reset)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Reset, items)); 2954 actionPool()->action(UIActionIndexMN_M_Group_S_Discard)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Discard, items)); 2955 actionPool()->action(UIActionIndexMN_M_Group_S_ShowLogDialog)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_ShowLogDialog, items)); 2956 actionPool()->action(UIActionIndexMN_M_Group_S_Refresh)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Refresh, items)); 2957 actionPool()->action(UIActionIndexMN_M_Group_S_ShowInFileManager)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_ShowInFileManager, items)); 2958 actionPool()->action(UIActionIndexMN_M_Group_S_CreateShortcut)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_CreateShortcut, items)); 2959 actionPool()->action(UIActionIndexMN_M_Group_S_Sort)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_S_Sort, items)); 2960 2960 2961 2961 /* Enable/disable machine actions: */ 2962 actionPool()->action(UIActionIndex ST_M_Machine_S_New)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_New, items));2963 actionPool()->action(UIActionIndex ST_M_Machine_S_Add)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Add, items));2964 actionPool()->action(UIActionIndex ST_M_Machine_S_Settings)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Settings, items));2965 actionPool()->action(UIActionIndex ST_M_Machine_S_Clone)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Clone, items));2966 actionPool()->action(UIActionIndex ST_M_Machine_S_Move)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Move, items));2967 actionPool()->action(UIActionIndex ST_M_Machine_S_ExportToOCI)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_ExportToOCI, items));2968 actionPool()->action(UIActionIndex ST_M_Machine_S_Remove)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Remove, items));2969 actionPool()->action(UIActionIndex ST_M_Machine_M_MoveToGroup)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_MoveToGroup, items));2970 actionPool()->action(UIActionIndex ST_M_Machine_M_MoveToGroup_S_New)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_MoveToGroup_S_New, items));2971 actionPool()->action(UIActionIndex ST_M_Machine_T_Pause)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_T_Pause, items));2972 actionPool()->action(UIActionIndex ST_M_Machine_S_Reset)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Reset, items));2973 actionPool()->action(UIActionIndex ST_M_Machine_S_Discard)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Discard, items));2974 actionPool()->action(UIActionIndex ST_M_Machine_S_ShowLogDialog)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_ShowLogDialog, items));2975 actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_Refresh, items));2976 actionPool()->action(UIActionIndex ST_M_Machine_S_ShowInFileManager)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_ShowInFileManager, items));2977 actionPool()->action(UIActionIndex ST_M_Machine_S_CreateShortcut)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_CreateShortcut, items));2978 actionPool()->action(UIActionIndex ST_M_Machine_S_SortParent)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_S_SortParent, items));2962 actionPool()->action(UIActionIndexMN_M_Machine_S_New)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_New, items)); 2963 actionPool()->action(UIActionIndexMN_M_Machine_S_Add)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Add, items)); 2964 actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Settings, items)); 2965 actionPool()->action(UIActionIndexMN_M_Machine_S_Clone)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Clone, items)); 2966 actionPool()->action(UIActionIndexMN_M_Machine_S_Move)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Move, items)); 2967 actionPool()->action(UIActionIndexMN_M_Machine_S_ExportToOCI)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_ExportToOCI, items)); 2968 actionPool()->action(UIActionIndexMN_M_Machine_S_Remove)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Remove, items)); 2969 actionPool()->action(UIActionIndexMN_M_Machine_M_MoveToGroup)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_MoveToGroup, items)); 2970 actionPool()->action(UIActionIndexMN_M_Machine_M_MoveToGroup_S_New)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_MoveToGroup_S_New, items)); 2971 actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_T_Pause, items)); 2972 actionPool()->action(UIActionIndexMN_M_Machine_S_Reset)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Reset, items)); 2973 actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Discard, items)); 2974 actionPool()->action(UIActionIndexMN_M_Machine_S_ShowLogDialog)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_ShowLogDialog, items)); 2975 actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_Refresh, items)); 2976 actionPool()->action(UIActionIndexMN_M_Machine_S_ShowInFileManager)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_ShowInFileManager, items)); 2977 actionPool()->action(UIActionIndexMN_M_Machine_S_CreateShortcut)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_CreateShortcut, items)); 2978 actionPool()->action(UIActionIndexMN_M_Machine_S_SortParent)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_S_SortParent, items)); 2979 2979 2980 2980 /* Enable/disable group-start-or-show actions: */ 2981 actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow, items));2982 actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow_S_StartNormal, items));2983 actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow_S_StartHeadless, items));2984 actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_StartOrShow_S_StartDetachable, items));2981 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_StartOrShow, items)); 2982 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal, items)); 2983 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless, items)); 2984 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable, items)); 2985 2985 2986 2986 /* Enable/disable machine-start-or-show actions: */ 2987 actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow, items));2988 actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow_S_StartNormal, items));2989 actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow_S_StartHeadless, items));2990 actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_StartOrShow_S_StartDetachable, items));2987 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_StartOrShow, items)); 2988 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal, items)); 2989 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless, items)); 2990 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable, items)); 2991 2991 2992 2992 /* Enable/disable group-console actions: */ 2993 actionPool()->action(UIActionIndex ST_M_Group_M_Console)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Console, items));2994 actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_CreateConnection)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Console_S_CreateConnection, items));2995 actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_DeleteConnection)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Console_S_DeleteConnection, items));2996 actionPool()->action(UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Console_S_ConfigureApplications, items));2993 actionPool()->action(UIActionIndexMN_M_Group_M_Console)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Console, items)); 2994 actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_CreateConnection)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Console_S_CreateConnection, items)); 2995 actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_DeleteConnection)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Console_S_DeleteConnection, items)); 2996 actionPool()->action(UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications, items)); 2997 2997 2998 2998 /* Enable/disable machine-console actions: */ 2999 actionPool()->action(UIActionIndex ST_M_Machine_M_Console)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console, items));3000 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CreateConnection)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_CreateConnection, items));3001 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_DeleteConnection, items));3002 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_CopyCommandSerialUnix, items));3003 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_CopyCommandSerialWindows, items));3004 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_CopyCommandVNCUnix, items));3005 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_CopyCommandVNCWindows, items));3006 actionPool()->action(UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Console_S_ConfigureApplications, items));2999 actionPool()->action(UIActionIndexMN_M_Machine_M_Console)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console, items)); 3000 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CreateConnection)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_CreateConnection, items)); 3001 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection, items)); 3002 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix, items)); 3003 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows, items)); 3004 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix, items)); 3005 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows, items)); 3006 actionPool()->action(UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications, items)); 3007 3007 3008 3008 /* Enable/disable group-close actions: */ 3009 actionPool()->action(UIActionIndex ST_M_Group_M_Close)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close, items));3010 actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_Detach)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close_S_Detach, items));3011 actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_SaveState)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close_S_SaveState, items));3012 actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close_S_Shutdown, items));3013 actionPool()->action(UIActionIndex ST_M_Group_M_Close_S_PowerOff)->setEnabled(isActionEnabled(UIActionIndexST_M_Group_M_Close_S_PowerOff, items));3009 actionPool()->action(UIActionIndexMN_M_Group_M_Close)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Close, items)); 3010 actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_Detach)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Close_S_Detach, items)); 3011 actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_SaveState)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Close_S_SaveState, items)); 3012 actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Close_S_Shutdown, items)); 3013 actionPool()->action(UIActionIndexMN_M_Group_M_Close_S_PowerOff)->setEnabled(isActionEnabled(UIActionIndexMN_M_Group_M_Close_S_PowerOff, items)); 3014 3014 3015 3015 /* Enable/disable machine-close actions: */ 3016 actionPool()->action(UIActionIndex ST_M_Machine_M_Close)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Close, items));3017 actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_Detach)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Close_S_Detach, items));3018 actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_SaveState)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Close_S_SaveState, items));3019 actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Close_S_Shutdown, items));3020 actionPool()->action(UIActionIndex ST_M_Machine_M_Close_S_PowerOff)->setEnabled(isActionEnabled(UIActionIndexST_M_Machine_M_Close_S_PowerOff, items));3016 actionPool()->action(UIActionIndexMN_M_Machine_M_Close)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Close, items)); 3017 actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_Detach)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_Detach, items)); 3018 actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_SaveState)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_SaveState, items)); 3019 actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_Shutdown)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_Shutdown, items)); 3020 actionPool()->action(UIActionIndexMN_M_Machine_M_Close_S_PowerOff)->setEnabled(isActionEnabled(UIActionIndexMN_M_Machine_M_Close_S_PowerOff, items)); 3021 3021 3022 3022 /* Get current item: */ … … 3028 3028 || pItem->itemType() == UIVirtualMachineItemType_CloudReal)) 3029 3029 { 3030 actionPool()->action(UIActionIndex ST_M_Group_S_Discard)->toActionPolymorphicMenu()->setState(1);3031 actionPool()->action(UIActionIndex ST_M_Machine_S_Discard)->toActionPolymorphicMenu()->setState(1);3030 actionPool()->action(UIActionIndexMN_M_Group_S_Discard)->toActionPolymorphicMenu()->setState(1); 3031 actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)->toActionPolymorphicMenu()->setState(1); 3032 3032 } 3033 3033 else 3034 3034 { 3035 actionPool()->action(UIActionIndex ST_M_Group_S_Discard)->toActionPolymorphicMenu()->setState(0);3036 actionPool()->action(UIActionIndex ST_M_Machine_S_Discard)->toActionPolymorphicMenu()->setState(0);3035 actionPool()->action(UIActionIndexMN_M_Group_S_Discard)->toActionPolymorphicMenu()->setState(0); 3036 actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)->toActionPolymorphicMenu()->setState(0); 3037 3037 } 3038 3038 … … 3040 3040 if (pItem && pItem->accessible()) 3041 3041 { 3042 actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow)->toActionPolymorphicMenu()->setState(pItem->isItemPoweredOff() ? 0 : 1);3043 actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow)->toActionPolymorphicMenu()->setState(pItem->isItemPoweredOff() ? 0 : 1);3042 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)->toActionPolymorphicMenu()->setState(pItem->isItemPoweredOff() ? 0 : 1); 3043 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)->toActionPolymorphicMenu()->setState(pItem->isItemPoweredOff() ? 0 : 1); 3044 3044 /// @todo Hmm, fix it? 3045 // QToolButton *pButton = qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow)));3045 // QToolButton *pButton = qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow))); 3046 3046 // if (pButton) 3047 3047 // pButton->setPopupMode(pItem->isItemPoweredOff() ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); … … 3049 3049 else 3050 3050 { 3051 actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow)->toActionPolymorphicMenu()->setState(0);3052 actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow)->toActionPolymorphicMenu()->setState(0);3051 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)->toActionPolymorphicMenu()->setState(0); 3052 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)->toActionPolymorphicMenu()->setState(0); 3053 3053 /// @todo Hmm, fix it? 3054 // QToolButton *pButton = qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow)));3054 // QToolButton *pButton = qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow))); 3055 3055 // if (pButton) 3056 3056 // pButton->setPopupMode(pItem->isItemPoweredOff() ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); … … 3068 3068 } 3069 3069 /* Update the group Pause/Resume action appearance: */ 3070 actionPool()->action(UIActionIndex ST_M_Group_T_Pause)->blockSignals(true);3071 actionPool()->action(UIActionIndex ST_M_Group_T_Pause)->setChecked(pFirstStartedAction && pFirstStartedAction->isItemPaused());3072 actionPool()->action(UIActionIndex ST_M_Group_T_Pause)->retranslateUi();3073 actionPool()->action(UIActionIndex ST_M_Group_T_Pause)->blockSignals(false);3070 actionPool()->action(UIActionIndexMN_M_Group_T_Pause)->blockSignals(true); 3071 actionPool()->action(UIActionIndexMN_M_Group_T_Pause)->setChecked(pFirstStartedAction && pFirstStartedAction->isItemPaused()); 3072 actionPool()->action(UIActionIndexMN_M_Group_T_Pause)->retranslateUi(); 3073 actionPool()->action(UIActionIndexMN_M_Group_T_Pause)->blockSignals(false); 3074 3074 /* Update the machine Pause/Resume action appearance: */ 3075 actionPool()->action(UIActionIndex ST_M_Machine_T_Pause)->blockSignals(true);3076 actionPool()->action(UIActionIndex ST_M_Machine_T_Pause)->setChecked(pFirstStartedAction && pFirstStartedAction->isItemPaused());3077 actionPool()->action(UIActionIndex ST_M_Machine_T_Pause)->retranslateUi();3078 actionPool()->action(UIActionIndex ST_M_Machine_T_Pause)->blockSignals(false);3075 actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)->blockSignals(true); 3076 actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)->setChecked(pFirstStartedAction && pFirstStartedAction->isItemPaused()); 3077 actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)->retranslateUi(); 3078 actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)->blockSignals(false); 3079 3079 3080 3080 /* Update action toggle states: */ … … 3085 3085 case UIToolType_Details: 3086 3086 { 3087 actionPool()->action(UIActionIndex ST_M_Group_M_Tools_T_Details)->setChecked(true);3088 actionPool()->action(UIActionIndex ST_M_Machine_M_Tools_T_Details)->setChecked(true);3087 actionPool()->action(UIActionIndexMN_M_Group_M_Tools_T_Details)->setChecked(true); 3088 actionPool()->action(UIActionIndexMN_M_Machine_M_Tools_T_Details)->setChecked(true); 3089 3089 break; 3090 3090 } 3091 3091 case UIToolType_Snapshots: 3092 3092 { 3093 actionPool()->action(UIActionIndex ST_M_Group_M_Tools_T_Snapshots)->setChecked(true);3094 actionPool()->action(UIActionIndex ST_M_Machine_M_Tools_T_Snapshots)->setChecked(true);3093 actionPool()->action(UIActionIndexMN_M_Group_M_Tools_T_Snapshots)->setChecked(true); 3094 actionPool()->action(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots)->setChecked(true); 3095 3095 break; 3096 3096 } 3097 3097 case UIToolType_Logs: 3098 3098 { 3099 actionPool()->action(UIActionIndex ST_M_Group_M_Tools_T_Logs)->setChecked(true);3100 actionPool()->action(UIActionIndex ST_M_Machine_M_Tools_T_Logs)->setChecked(true);3099 actionPool()->action(UIActionIndexMN_M_Group_M_Tools_T_Logs)->setChecked(true); 3100 actionPool()->action(UIActionIndexMN_M_Machine_M_Tools_T_Logs)->setChecked(true); 3101 3101 break; 3102 3102 } 3103 3103 case UIToolType_Performance: 3104 3104 { 3105 actionPool()->action(UIActionIndex ST_M_Group_M_Tools_T_Performance)->setChecked(true);3106 actionPool()->action(UIActionIndex ST_M_Machine_M_Tools_T_Performance)->setChecked(true);3105 actionPool()->action(UIActionIndexMN_M_Group_M_Tools_T_Performance)->setChecked(true); 3106 actionPool()->action(UIActionIndexMN_M_Machine_M_Tools_T_Performance)->setChecked(true); 3107 3107 break; 3108 3108 } … … 3127 3127 { 3128 3128 case UIActionIndex_M_Application_S_Preferences: 3129 case UIActionIndex ST_M_File_S_ExportAppliance:3130 case UIActionIndex ST_M_File_S_ImportAppliance:3131 case UIActionIndex ST_M_File_S_NewCloudVM:3132 case UIActionIndex ST_M_Welcome_S_New:3133 case UIActionIndex ST_M_Welcome_S_Add:3129 case UIActionIndexMN_M_File_S_ExportAppliance: 3130 case UIActionIndexMN_M_File_S_ImportAppliance: 3131 case UIActionIndexMN_M_File_S_NewCloudVM: 3132 case UIActionIndexMN_M_Welcome_S_New: 3133 case UIActionIndexMN_M_Welcome_S_Add: 3134 3134 return true; 3135 3135 default: … … 3147 3147 switch (iActionIndex) 3148 3148 { 3149 case UIActionIndex ST_M_Group_S_New:3150 case UIActionIndex ST_M_Group_S_Add:3149 case UIActionIndexMN_M_Group_S_New: 3150 case UIActionIndexMN_M_Group_S_Add: 3151 3151 { 3152 3152 return !isGroupSavingInProgress() && … … 3154 3154 isSingleCloudProfileGroupSelected()); 3155 3155 } 3156 case UIActionIndex ST_M_Group_S_Sort:3156 case UIActionIndexMN_M_Group_S_Sort: 3157 3157 { 3158 3158 return !isGroupSavingInProgress() && … … 3160 3160 isItemsLocal(items); 3161 3161 } 3162 case UIActionIndex ST_M_Group_S_Rename:3163 case UIActionIndex ST_M_Group_S_Remove:3162 case UIActionIndexMN_M_Group_S_Rename: 3163 case UIActionIndexMN_M_Group_S_Remove: 3164 3164 { 3165 3165 return !isGroupSavingInProgress() && … … 3168 3168 isItemsPoweredOff(items); 3169 3169 } 3170 case UIActionIndex ST_M_Machine_S_New:3171 case UIActionIndex ST_M_Machine_S_Add:3170 case UIActionIndexMN_M_Machine_S_New: 3171 case UIActionIndexMN_M_Machine_S_Add: 3172 3172 { 3173 3173 return !isGroupSavingInProgress(); 3174 3174 } 3175 case UIActionIndex ST_M_Machine_S_Settings:3175 case UIActionIndexMN_M_Machine_S_Settings: 3176 3176 { 3177 3177 return !isGroupSavingInProgress() && … … 3181 3181 m_pWidget->isCurrentStateItemSelected()); 3182 3182 } 3183 case UIActionIndex ST_M_Machine_S_Clone:3184 case UIActionIndex ST_M_Machine_S_Move:3183 case UIActionIndexMN_M_Machine_S_Clone: 3184 case UIActionIndexMN_M_Machine_S_Move: 3185 3185 { 3186 3186 return !isGroupSavingInProgress() && … … 3189 3189 pItem->isItemEditable(); 3190 3190 } 3191 case UIActionIndex ST_M_Machine_S_ExportToOCI:3191 case UIActionIndexMN_M_Machine_S_ExportToOCI: 3192 3192 { 3193 3193 return items.size() == 1 && 3194 3194 pItem->toLocal(); 3195 3195 } 3196 case UIActionIndex ST_M_Machine_S_Remove:3196 case UIActionIndexMN_M_Machine_S_Remove: 3197 3197 { 3198 3198 return !isGroupSavingInProgress() && 3199 3199 isAtLeastOneItemRemovable(items); 3200 3200 } 3201 case UIActionIndex ST_M_Group_M_MoveToGroup:3202 case UIActionIndex ST_M_Machine_M_MoveToGroup:3203 case UIActionIndex ST_M_Machine_M_MoveToGroup_S_New:3201 case UIActionIndexMN_M_Group_M_MoveToGroup: 3202 case UIActionIndexMN_M_Machine_M_MoveToGroup: 3203 case UIActionIndexMN_M_Machine_M_MoveToGroup_S_New: 3204 3204 { 3205 3205 return !isGroupSavingInProgress() && … … 3207 3207 isItemsPoweredOff(items); 3208 3208 } 3209 case UIActionIndex ST_M_Group_M_StartOrShow:3210 case UIActionIndex ST_M_Group_M_StartOrShow_S_StartNormal:3211 case UIActionIndex ST_M_Machine_M_StartOrShow:3212 case UIActionIndex ST_M_Machine_M_StartOrShow_S_StartNormal:3209 case UIActionIndexMN_M_Group_M_StartOrShow: 3210 case UIActionIndexMN_M_Group_M_StartOrShow_S_StartNormal: 3211 case UIActionIndexMN_M_Machine_M_StartOrShow: 3212 case UIActionIndexMN_M_Machine_M_StartOrShow_S_StartNormal: 3213 3213 { 3214 3214 return !isGroupSavingInProgress() && … … 3217 3217 m_pWidget->isCurrentStateItemSelected()); 3218 3218 } 3219 case UIActionIndex ST_M_Group_M_StartOrShow_S_StartHeadless:3220 case UIActionIndex ST_M_Group_M_StartOrShow_S_StartDetachable:3221 case UIActionIndex ST_M_Machine_M_StartOrShow_S_StartHeadless:3222 case UIActionIndex ST_M_Machine_M_StartOrShow_S_StartDetachable:3219 case UIActionIndexMN_M_Group_M_StartOrShow_S_StartHeadless: 3220 case UIActionIndexMN_M_Group_M_StartOrShow_S_StartDetachable: 3221 case UIActionIndexMN_M_Machine_M_StartOrShow_S_StartHeadless: 3222 case UIActionIndexMN_M_Machine_M_StartOrShow_S_StartDetachable: 3223 3223 { 3224 3224 return !isGroupSavingInProgress() && … … 3228 3228 m_pWidget->isCurrentStateItemSelected()); 3229 3229 } 3230 case UIActionIndex ST_M_Group_S_Discard:3231 case UIActionIndex ST_M_Machine_S_Discard:3230 case UIActionIndexMN_M_Group_S_Discard: 3231 case UIActionIndexMN_M_Machine_S_Discard: 3232 3232 { 3233 3233 return !isGroupSavingInProgress() && … … 3236 3236 m_pWidget->isCurrentStateItemSelected()); 3237 3237 } 3238 case UIActionIndex ST_M_Group_S_ShowLogDialog:3239 case UIActionIndex ST_M_Machine_S_ShowLogDialog:3238 case UIActionIndexMN_M_Group_S_ShowLogDialog: 3239 case UIActionIndexMN_M_Machine_S_ShowLogDialog: 3240 3240 { 3241 3241 return isItemsLocal(items) && 3242 3242 isAtLeastOneItemAccessible(items); 3243 3243 } 3244 case UIActionIndex ST_M_Group_T_Pause:3245 case UIActionIndex ST_M_Machine_T_Pause:3244 case UIActionIndexMN_M_Group_T_Pause: 3245 case UIActionIndexMN_M_Machine_T_Pause: 3246 3246 { 3247 3247 return isItemsLocal(items) && 3248 3248 isAtLeastOneItemStarted(items); 3249 3249 } 3250 case UIActionIndex ST_M_Group_S_Reset:3251 case UIActionIndex ST_M_Machine_S_Reset:3250 case UIActionIndexMN_M_Group_S_Reset: 3251 case UIActionIndexMN_M_Machine_S_Reset: 3252 3252 { 3253 3253 return isItemsLocal(items) && 3254 3254 isAtLeastOneItemRunning(items); 3255 3255 } 3256 case UIActionIndex ST_M_Group_S_Refresh:3257 case UIActionIndex ST_M_Machine_S_Refresh:3256 case UIActionIndexMN_M_Group_S_Refresh: 3257 case UIActionIndexMN_M_Machine_S_Refresh: 3258 3258 { 3259 3259 return isAtLeastOneItemInaccessible(items); 3260 3260 } 3261 case UIActionIndex ST_M_Group_S_ShowInFileManager:3262 case UIActionIndex ST_M_Machine_S_ShowInFileManager:3261 case UIActionIndexMN_M_Group_S_ShowInFileManager: 3262 case UIActionIndexMN_M_Machine_S_ShowInFileManager: 3263 3263 { 3264 3264 return isItemsLocal(items) && 3265 3265 isAtLeastOneItemAccessible(items); 3266 3266 } 3267 case UIActionIndex ST_M_Machine_S_SortParent:3267 case UIActionIndexMN_M_Machine_S_SortParent: 3268 3268 { 3269 3269 return !isGroupSavingInProgress() && 3270 3270 isItemsLocal(items); 3271 3271 } 3272 case UIActionIndex ST_M_Group_S_CreateShortcut:3273 case UIActionIndex ST_M_Machine_S_CreateShortcut:3272 case UIActionIndexMN_M_Group_S_CreateShortcut: 3273 case UIActionIndexMN_M_Machine_S_CreateShortcut: 3274 3274 { 3275 3275 return isAtLeastOneItemSupportsShortcuts(items); 3276 3276 } 3277 case UIActionIndex ST_M_Group_M_Console:3278 case UIActionIndex ST_M_Group_M_Console_S_CreateConnection:3279 case UIActionIndex ST_M_Group_M_Console_S_DeleteConnection:3280 case UIActionIndex ST_M_Group_M_Console_S_ConfigureApplications:3281 case UIActionIndex ST_M_Machine_M_Console:3282 case UIActionIndex ST_M_Machine_M_Console_S_CreateConnection:3283 case UIActionIndex ST_M_Machine_M_Console_S_DeleteConnection:3284 case UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialUnix:3285 case UIActionIndex ST_M_Machine_M_Console_S_CopyCommandSerialWindows:3286 case UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCUnix:3287 case UIActionIndex ST_M_Machine_M_Console_S_CopyCommandVNCWindows:3288 case UIActionIndex ST_M_Machine_M_Console_S_ConfigureApplications:3277 case UIActionIndexMN_M_Group_M_Console: 3278 case UIActionIndexMN_M_Group_M_Console_S_CreateConnection: 3279 case UIActionIndexMN_M_Group_M_Console_S_DeleteConnection: 3280 case UIActionIndexMN_M_Group_M_Console_S_ConfigureApplications: 3281 case UIActionIndexMN_M_Machine_M_Console: 3282 case UIActionIndexMN_M_Machine_M_Console_S_CreateConnection: 3283 case UIActionIndexMN_M_Machine_M_Console_S_DeleteConnection: 3284 case UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialUnix: 3285 case UIActionIndexMN_M_Machine_M_Console_S_CopyCommandSerialWindows: 3286 case UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCUnix: 3287 case UIActionIndexMN_M_Machine_M_Console_S_CopyCommandVNCWindows: 3288 case UIActionIndexMN_M_Machine_M_Console_S_ConfigureApplications: 3289 3289 { 3290 3290 return isAtLeastOneItemStarted(items); 3291 3291 } 3292 case UIActionIndex ST_M_Group_M_Close:3293 case UIActionIndex ST_M_Machine_M_Close:3292 case UIActionIndexMN_M_Group_M_Close: 3293 case UIActionIndexMN_M_Machine_M_Close: 3294 3294 { 3295 3295 return isAtLeastOneItemStarted(items); 3296 3296 } 3297 case UIActionIndex ST_M_Group_M_Close_S_Detach:3298 case UIActionIndex ST_M_Machine_M_Close_S_Detach:3297 case UIActionIndexMN_M_Group_M_Close_S_Detach: 3298 case UIActionIndexMN_M_Machine_M_Close_S_Detach: 3299 3299 { 3300 3300 return isItemsLocal(items) && 3301 isActionEnabled(UIActionIndex ST_M_Machine_M_Close, items);3302 } 3303 case UIActionIndex ST_M_Group_M_Close_S_SaveState:3304 case UIActionIndex ST_M_Machine_M_Close_S_SaveState:3301 isActionEnabled(UIActionIndexMN_M_Machine_M_Close, items); 3302 } 3303 case UIActionIndexMN_M_Group_M_Close_S_SaveState: 3304 case UIActionIndexMN_M_Machine_M_Close_S_SaveState: 3305 3305 { 3306 3306 return isItemsLocal(items) && 3307 isActionEnabled(UIActionIndex ST_M_Machine_M_Close, items);3308 } 3309 case UIActionIndex ST_M_Group_M_Close_S_Shutdown:3310 case UIActionIndex ST_M_Machine_M_Close_S_Shutdown:3311 { 3312 return isActionEnabled(UIActionIndex ST_M_Machine_M_Close, items) &&3307 isActionEnabled(UIActionIndexMN_M_Machine_M_Close, items); 3308 } 3309 case UIActionIndexMN_M_Group_M_Close_S_Shutdown: 3310 case UIActionIndexMN_M_Machine_M_Close_S_Shutdown: 3311 { 3312 return isActionEnabled(UIActionIndexMN_M_Machine_M_Close, items) && 3313 3313 isAtLeastOneItemAbleToShutdown(items); 3314 3314 } 3315 case UIActionIndex ST_M_Group_M_Close_S_PowerOff:3316 case UIActionIndex ST_M_Machine_M_Close_S_PowerOff:3317 { 3318 return isActionEnabled(UIActionIndex ST_M_Machine_M_Close, items);3315 case UIActionIndexMN_M_Group_M_Close_S_PowerOff: 3316 case UIActionIndexMN_M_Machine_M_Close_S_PowerOff: 3317 { 3318 return isActionEnabled(UIActionIndexMN_M_Machine_M_Close, items); 3319 3319 } 3320 3320 default: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r85547 r85597 735 735 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Application_S_Preferences)); 736 736 m_pToolBar->addSeparator(); 737 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ImportAppliance));738 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ExportAppliance));739 //m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_File_S_NewCloudVM)); // later737 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ImportAppliance)); 738 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ExportAppliance)); 739 //m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_File_S_NewCloudVM)); // later 740 740 m_pToolBar->addSeparator(); 741 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Welcome_S_New));742 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Welcome_S_Add));741 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Welcome_S_New)); 742 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Welcome_S_Add)); 743 743 break; 744 744 } 745 745 case UIToolType_Media: 746 746 { 747 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Add));748 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Create));747 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Add)); 748 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Create)); 749 749 m_pToolBar->addSeparator(); 750 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Copy));751 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Move));752 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Remove));753 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Release));754 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_T_Search));755 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_T_Details));750 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Copy)); 751 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Move)); 752 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Remove)); 753 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Release)); 754 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_T_Search)); 755 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_T_Details)); 756 756 m_pToolBar->addSeparator(); 757 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Medium_S_Refresh));757 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Medium_S_Refresh)); 758 758 break; 759 759 } 760 760 case UIToolType_Network: 761 761 { 762 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Network_S_Create));762 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Network_S_Create)); 763 763 m_pToolBar->addSeparator(); 764 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Network_S_Remove));765 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Network_T_Details));766 //m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Network_S_Refresh));764 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Network_S_Remove)); 765 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Network_T_Details)); 766 //m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Network_S_Refresh)); 767 767 break; 768 768 } 769 769 case UIToolType_Cloud: 770 770 { 771 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Cloud_S_Add));772 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Cloud_S_Import));771 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Cloud_S_Add)); 772 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Cloud_S_Import)); 773 773 m_pToolBar->addSeparator(); 774 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Cloud_S_Remove));775 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Cloud_T_Details));774 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Cloud_S_Remove)); 775 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Cloud_T_Details)); 776 776 m_pToolBar->addSeparator(); 777 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Cloud_S_TryPage));778 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Cloud_S_Help));777 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Cloud_S_TryPage)); 778 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Cloud_S_Help)); 779 779 break; 780 780 } 781 781 case UIToolType_Resources: 782 782 { 783 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_VMResourceMonitor_M_Columns));784 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_VMResourceMonitor_S_SwitchToMachinePerformance));783 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMResourceMonitor_M_Columns)); 784 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMResourceMonitor_S_SwitchToMachinePerformance)); 785 785 QToolButton *pButton = 786 qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndex ST_M_VMResourceMonitor_M_Columns)));786 qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndexMN_M_VMResourceMonitor_M_Columns))); 787 787 if (pButton) 788 788 { … … 807 807 if (isSingleGroupSelected()) 808 808 { 809 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_New));810 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Add));809 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_New)); 810 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Add)); 811 811 m_pToolBar->addSeparator(); 812 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Discard));813 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow));812 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Discard)); 813 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)); 814 814 } 815 815 else 816 816 { 817 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_New));818 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Add));817 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_New)); 818 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Add)); 819 819 m_pToolBar->addSeparator(); 820 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));821 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));822 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));820 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 821 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 822 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 823 823 } 824 824 break; … … 826 826 case UIToolType_Snapshots: 827 827 { 828 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Snapshot_S_Take));829 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Snapshot_S_Delete));830 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Snapshot_S_Restore));831 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Snapshot_T_Properties));832 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Snapshot_S_Clone));828 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Snapshot_S_Take)); 829 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Snapshot_S_Delete)); 830 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Snapshot_S_Restore)); 831 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Snapshot_T_Properties)); 832 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Snapshot_S_Clone)); 833 833 m_pToolBar->addSeparator(); 834 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));835 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));836 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));834 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 835 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 836 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 837 837 break; 838 838 } … … 846 846 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Log_S_Refresh)); 847 847 m_pToolBar->addSeparator(); 848 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));849 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));850 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));848 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 849 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 850 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 851 851 break; 852 852 } … … 855 855 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Performance_S_Export)); 856 856 m_pToolBar->addSeparator(); 857 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));858 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));859 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));857 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 858 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 859 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 860 860 break; 861 861 } 862 862 case UIToolType_Error: 863 863 { 864 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_New));865 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Add));864 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_New)); 865 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Add)); 866 866 m_pToolBar->addSeparator(); 867 m_pToolBar->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh));867 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh)); 868 868 break; 869 869 } … … 881 881 // Actually Qt should do that itself but by some unknown reason it sometimes 882 882 // forget to update toolbar after changing its actions on Cocoa platform. 883 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_New), &UIAction::changed,883 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_New), &UIAction::changed, 884 884 m_pToolBar, static_cast<void(UIToolBar::*)(void)>(&UIToolBar::update)); 885 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings), &UIAction::changed,885 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings), &UIAction::changed, 886 886 m_pToolBar, static_cast<void(UIToolBar::*)(void)>(&UIToolBar::update)); 887 connect(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard), &UIAction::changed,887 connect(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard), &UIAction::changed, 888 888 m_pToolBar, static_cast<void(UIToolBar::*)(void)>(&UIToolBar::update)); 889 connect(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow), &UIAction::changed,889 connect(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow), &UIAction::changed, 890 890 m_pToolBar, static_cast<void(UIToolBar::*)(void)>(&UIToolBar::update)); 891 891 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r85508 r85597 1265 1265 pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_Preferences)); 1266 1266 pMenuGlobal->addSeparator(); 1267 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ImportAppliance));1268 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ExportAppliance));1269 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_NewCloudVM));1267 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ImportAppliance)); 1268 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ExportAppliance)); 1269 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_NewCloudVM)); 1270 1270 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1271 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowExtraDataManager));1271 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowExtraDataManager)); 1272 1272 # endif 1273 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowVirtualMediumManager));1274 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowHostNetworkManager));1273 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)); 1274 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 1275 1275 if (fExtPackAccessible) 1276 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowCloudProfileManager));1276 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 1277 1277 1278 1278 #else /* !VBOX_WS_MAC */ … … 1280 1280 pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_Preferences)); 1281 1281 pMenuGlobal->addSeparator(); 1282 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ImportAppliance));1283 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ExportAppliance));1284 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_NewCloudVM));1282 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ImportAppliance)); 1283 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ExportAppliance)); 1284 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_NewCloudVM)); 1285 1285 pMenuGlobal->addSeparator(); 1286 1286 # ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI 1287 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowExtraDataManager));1287 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowExtraDataManager)); 1288 1288 # endif 1289 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowVirtualMediumManager));1290 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowHostNetworkManager));1289 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)); 1290 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 1291 1291 if (fExtPackAccessible) 1292 pMenuGlobal->addAction(actionPool()->action(UIActionIndex ST_M_File_S_ShowCloudProfileManager));1292 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 1293 1293 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1294 1294 pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager)); … … 1303 1303 if (QMenu *pMenuGroup = m_localMenus.value(UIChooserNodeType_Group)) 1304 1304 { 1305 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_New));1306 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Add));1305 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_New)); 1306 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Add)); 1307 1307 pMenuGroup->addSeparator(); 1308 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Rename));1309 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Remove));1310 pMenuGroup->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_MoveToGroup)->menu());1308 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Rename)); 1309 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Remove)); 1310 pMenuGroup->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_MoveToGroup)->menu()); 1311 1311 pMenuGroup->addSeparator(); 1312 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow));1313 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_T_Pause));1314 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Reset));1315 pMenuGroup->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Close)->menu());1312 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)); 1313 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_T_Pause)); 1314 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Reset)); 1315 pMenuGroup->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Close)->menu()); 1316 1316 pMenuGroup->addSeparator(); 1317 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Discard));1318 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_ShowLogDialog));1319 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Refresh));1317 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Discard)); 1318 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_ShowLogDialog)); 1319 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Refresh)); 1320 1320 pMenuGroup->addSeparator(); 1321 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_ShowInFileManager));1322 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_CreateShortcut));1321 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_ShowInFileManager)); 1322 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_CreateShortcut)); 1323 1323 pMenuGroup->addSeparator(); 1324 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Sort));1324 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Sort)); 1325 1325 } 1326 1326 … … 1329 1329 if (QMenu *pMenuMachine = m_localMenus.value(UIChooserNodeType_Machine)) 1330 1330 { 1331 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));1332 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Clone));1333 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Move));1334 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_ExportToOCI));1335 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Remove));1336 pMenuMachine->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_MoveToGroup)->menu());1331 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 1332 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Clone)); 1333 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Move)); 1334 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_ExportToOCI)); 1335 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Remove)); 1336 pMenuMachine->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_MoveToGroup)->menu()); 1337 1337 pMenuMachine->addSeparator(); 1338 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));1339 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_T_Pause));1340 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Reset));1341 pMenuMachine->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Close)->menu());1338 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 1339 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_T_Pause)); 1340 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Reset)); 1341 pMenuMachine->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Close)->menu()); 1342 1342 pMenuMachine->addSeparator(); 1343 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));1344 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_ShowLogDialog));1345 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh));1343 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 1344 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_ShowLogDialog)); 1345 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh)); 1346 1346 pMenuMachine->addSeparator(); 1347 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_ShowInFileManager));1348 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_CreateShortcut));1347 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_ShowInFileManager)); 1348 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_CreateShortcut)); 1349 1349 pMenuMachine->addSeparator(); 1350 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_SortParent));1351 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_T_Search));1350 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_SortParent)); 1351 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_T_Search)); 1352 1352 } 1353 1353 … … 1356 1356 if (QMenu *pMenuGroup = m_cloudMenus.value(UIChooserNodeType_Group)) 1357 1357 { 1358 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_New));1359 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Add));1358 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_New)); 1359 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Add)); 1360 1360 pMenuGroup->addSeparator(); 1361 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_M_StartOrShow));1362 pMenuGroup->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Console)->menu());1363 pMenuGroup->addMenu(actionPool()->action(UIActionIndex ST_M_Group_M_Close)->menu());1361 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)); 1362 pMenuGroup->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Console)->menu()); 1363 pMenuGroup->addMenu(actionPool()->action(UIActionIndexMN_M_Group_M_Close)->menu()); 1364 1364 pMenuGroup->addSeparator(); 1365 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Discard));1366 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Refresh));1365 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Discard)); 1366 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Refresh)); 1367 1367 pMenuGroup->addSeparator(); 1368 pMenuGroup->addAction(actionPool()->action(UIActionIndex ST_M_Group_S_Sort));1368 pMenuGroup->addAction(actionPool()->action(UIActionIndexMN_M_Group_S_Sort)); 1369 1369 } 1370 1370 … … 1373 1373 if (QMenu *pMenuMachine = m_cloudMenus.value(UIChooserNodeType_Machine)) 1374 1374 { 1375 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Settings));1376 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Remove));1375 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings)); 1376 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Remove)); 1377 1377 pMenuMachine->addSeparator(); 1378 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_M_StartOrShow));1379 pMenuMachine->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Console)->menu());1380 pMenuMachine->addMenu(actionPool()->action(UIActionIndex ST_M_Machine_M_Close)->menu());1378 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)); 1379 pMenuMachine->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Console)->menu()); 1380 pMenuMachine->addMenu(actionPool()->action(UIActionIndexMN_M_Machine_M_Close)->menu()); 1381 1381 pMenuMachine->addSeparator(); 1382 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Discard));1383 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_Refresh));1382 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Discard)); 1383 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Refresh)); 1384 1384 pMenuMachine->addSeparator(); 1385 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_S_SortParent));1386 pMenuMachine->addAction(actionPool()->action(UIActionIndex ST_M_Machine_T_Search));1385 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_SortParent)); 1386 pMenuMachine->addAction(actionPool()->action(UIActionIndexMN_M_Machine_T_Search)); 1387 1387 } 1388 1388 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r82968 r85597 171 171 QMenu *UIMediumManagerWidget::menu() const 172 172 { 173 return m_pActionPool->action(UIActionIndex ST_M_MediumWindow)->menu();173 return m_pActionPool->action(UIActionIndexMN_M_MediumWindow)->menu(); 174 174 } 175 175 … … 393 393 { 394 394 /* Disable 'refresh' action: */ 395 if (m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh))396 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh)->setEnabled(false);395 if (m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)) 396 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)->setEnabled(false); 397 397 398 398 /* Disable details-widget: */ … … 462 462 463 463 /* Enable 'refresh' action: */ 464 if (m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh))465 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh)->setEnabled(true);464 if (m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)) 465 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)->setEnabled(true); 466 466 467 467 /* Re-fetch all current medium-items: */ … … 631 631 if (pTreeWidget->itemAt(position)) 632 632 { 633 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Copy));634 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Move));635 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Remove));636 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Release));637 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search));638 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details));633 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Copy)); 634 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Move)); 635 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Remove)); 636 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Release)); 637 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search)); 638 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)); 639 639 } 640 640 else 641 641 { 642 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Add));643 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Create));644 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search));645 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh));642 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Add)); 643 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Create)); 644 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search)); 645 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)); 646 646 } 647 647 /* And show it: */ … … 733 733 { 734 734 /* First of all, add actions which has smaller shortcut scope: */ 735 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Add));736 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Create));737 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Copy));738 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Move));739 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Remove));740 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Release));741 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search));742 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details));743 addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh));735 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Add)); 736 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Create)); 737 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Copy)); 738 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Move)); 739 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Remove)); 740 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Release)); 741 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search)); 742 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)); 743 addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)); 744 744 745 745 /* Connect actions: */ 746 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Add), &QAction::triggered,746 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Add), &QAction::triggered, 747 747 this, &UIMediumManagerWidget::sltAddMedium); 748 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Create), &QAction::triggered,748 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Create), &QAction::triggered, 749 749 this, &UIMediumManagerWidget::sltCreateMedium); 750 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Copy), &QAction::triggered,750 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Copy), &QAction::triggered, 751 751 this, &UIMediumManagerWidget::sltCopyMedium); 752 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Move), &QAction::triggered,752 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Move), &QAction::triggered, 753 753 this, &UIMediumManagerWidget::sltMoveMedium); 754 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Remove), &QAction::triggered,754 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Remove), &QAction::triggered, 755 755 this, &UIMediumManagerWidget::sltRemoveMedium); 756 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Release), &QAction::triggered,756 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Release), &QAction::triggered, 757 757 this, &UIMediumManagerWidget::sltReleaseMedium); 758 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details), &QAction::toggled,758 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details), &QAction::toggled, 759 759 this, &UIMediumManagerWidget::sltToggleMediumDetailsVisibility); 760 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search), &QAction::toggled,760 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search), &QAction::toggled, 761 761 this, &UIMediumManagerWidget::sltToggleMediumSearchVisibility); 762 connect(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh), &QAction::triggered,762 connect(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh), &QAction::triggered, 763 763 this, &UIMediumManagerWidget::sltRefreshAll); 764 764 … … 805 805 806 806 /* Add toolbar actions: */ 807 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Add));808 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Create));807 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Add)); 808 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Create)); 809 809 m_pToolBar->addSeparator(); 810 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Copy));811 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Move));812 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Remove));813 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Release));814 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search));815 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details));810 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Copy)); 811 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Move)); 812 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Remove)); 813 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Release)); 814 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search)); 815 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)); 816 816 m_pToolBar->addSeparator(); 817 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Medium_S_Refresh));817 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Medium_S_Refresh)); 818 818 819 819 #ifdef VBOX_WS_MAC … … 904 904 this, &UIMediumManagerWidget::sltHandleCurrentItemChanged); 905 905 connect(pTreeWidget, &QITreeWidget::itemDoubleClicked, 906 m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details), &QAction::setChecked);906 m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details), &QAction::setChecked); 907 907 connect(pTreeWidget, &QITreeWidget::customContextMenuRequested, 908 908 this, &UIMediumManagerWidget::sltHandleContextMenuRequest); … … 958 958 { 959 959 /* Details action/widget: */ 960 m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details)->setChecked(gEDataManager->virtualMediaManagerDetailsExpanded());961 sltToggleMediumDetailsVisibility(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details)->isChecked());960 m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)->setChecked(gEDataManager->virtualMediaManagerDetailsExpanded()); 961 sltToggleMediumDetailsVisibility(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)->isChecked()); 962 962 963 963 /* Search action/widget: */ 964 m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search)->setChecked(gEDataManager->virtualMediaManagerSearchWidgetExpanded());965 sltToggleMediumSearchVisibility(m_pActionPool->action(UIActionIndex ST_M_Medium_T_Search)->isChecked());964 m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search)->setChecked(gEDataManager->virtualMediaManagerSearchWidgetExpanded()); 965 sltToggleMediumSearchVisibility(m_pActionPool->action(UIActionIndexMN_M_Medium_T_Search)->isChecked()); 966 966 } 967 967 … … 1065 1065 /* Apply actions accessibility: */ 1066 1066 bool fActionEnabledCopy = fNotInEnumeration && pMediumItem && checkMediumFor(pMediumItem, Action_Copy); 1067 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Copy)->setEnabled(fActionEnabledCopy);1067 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Copy)->setEnabled(fActionEnabledCopy); 1068 1068 bool fActionEnabledMove = fNotInEnumeration && pMediumItem && checkMediumFor(pMediumItem, Action_Edit); 1069 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Move)->setEnabled(fActionEnabledMove);1069 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Move)->setEnabled(fActionEnabledMove); 1070 1070 bool fActionEnabledRemove = fNotInEnumeration && pMediumItem && checkMediumFor(pMediumItem, Action_Remove); 1071 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Remove)->setEnabled(fActionEnabledRemove);1071 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Remove)->setEnabled(fActionEnabledRemove); 1072 1072 bool fActionEnabledRelease = fNotInEnumeration && pMediumItem && checkMediumFor(pMediumItem, Action_Release); 1073 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Release)->setEnabled(fActionEnabledRelease);1073 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Release)->setEnabled(fActionEnabledRelease); 1074 1074 bool fActionEnabledDetails = true; 1075 m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details)->setEnabled(fActionEnabledDetails);1075 m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)->setEnabled(fActionEnabledDetails); 1076 1076 } 1077 1077 … … 1081 1081 if (enmCurrentMediumType != UIMediumDeviceType_Invalid) 1082 1082 { 1083 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Add)->setState((int)enmCurrentMediumType);1084 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Create)->setState((int)enmCurrentMediumType);1085 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Copy)->setState((int)enmCurrentMediumType);1086 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Move)->setState((int)enmCurrentMediumType);1087 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Remove)->setState((int)enmCurrentMediumType);1088 m_pActionPool->action(UIActionIndex ST_M_Medium_S_Release)->setState((int)enmCurrentMediumType);1089 m_pActionPool->action(UIActionIndex ST_M_Medium_T_Details)->setState((int)enmCurrentMediumType);1083 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Add)->setState((int)enmCurrentMediumType); 1084 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Create)->setState((int)enmCurrentMediumType); 1085 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Copy)->setState((int)enmCurrentMediumType); 1086 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Move)->setState((int)enmCurrentMediumType); 1087 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Remove)->setState((int)enmCurrentMediumType); 1088 m_pActionPool->action(UIActionIndexMN_M_Medium_S_Release)->setState((int)enmCurrentMediumType); 1089 m_pActionPool->action(UIActionIndexMN_M_Medium_T_Details)->setState((int)enmCurrentMediumType); 1090 1090 } 1091 1091 } -
trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.cpp
r85596 r85597 1418 1418 void UIResourceMonitorWidget::updateColumnsMenu() 1419 1419 { 1420 UIMenu *pMenu = m_pActionPool->action(UIActionIndex ST_M_VMResourceMonitor_M_Columns)->menu();1420 UIMenu *pMenu = m_pActionPool->action(UIActionIndexMN_M_VMResourceMonitor_M_Columns)->menu(); 1421 1421 if (!pMenu) 1422 1422 return; … … 1438 1438 updateColumnsMenu(); 1439 1439 m_pShowPerformanceMonitorAction = 1440 m_pActionPool->action(UIActionIndex ST_M_VMResourceMonitor_S_SwitchToMachinePerformance);1440 m_pActionPool->action(UIActionIndexMN_M_VMResourceMonitor_S_SwitchToMachinePerformance); 1441 1441 1442 1442 if (m_pShowPerformanceMonitorAction) -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r82968 r85597 1083 1083 if (m_pCurrentSnapshotItem && !pSnapshotItem->isCurrentStateItem()) 1084 1084 { 1085 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Delete));1085 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Delete)); 1086 1086 menu.addSeparator(); 1087 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Restore));1088 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties));1087 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Restore)); 1088 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties)); 1089 1089 menu.addSeparator(); 1090 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Clone));1090 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Clone)); 1091 1091 } 1092 1092 /* For "current state" item: */ 1093 1093 else 1094 1094 { 1095 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Take));1095 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Take)); 1096 1096 menu.addSeparator(); 1097 menu.addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Clone));1097 menu.addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Clone)); 1098 1098 } 1099 1099 … … 1172 1172 { 1173 1173 /* As show details-widget procedure: */ 1174 m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties)->setChecked(true);1174 m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties)->setChecked(true); 1175 1175 } 1176 1176 } … … 1231 1231 { 1232 1232 /* First of all, add actions which has smaller shortcut scope: */ 1233 addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Take));1234 addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Delete));1235 addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Restore));1236 addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties));1237 addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Clone));1233 addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Take)); 1234 addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Delete)); 1235 addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Restore)); 1236 addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties)); 1237 addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Clone)); 1238 1238 1239 1239 /* Connect actions: */ 1240 connect(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Take), &UIAction::triggered,1240 connect(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Take), &UIAction::triggered, 1241 1241 this, &UISnapshotPane::sltTakeSnapshot); 1242 connect(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Delete), &UIAction::triggered,1242 connect(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Delete), &UIAction::triggered, 1243 1243 this, &UISnapshotPane::sltDeleteSnapshot); 1244 connect(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Restore), &UIAction::triggered,1244 connect(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Restore), &UIAction::triggered, 1245 1245 this, &UISnapshotPane::sltRestoreSnapshot); 1246 connect(m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties), &UIAction::toggled,1246 connect(m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties), &UIAction::toggled, 1247 1247 this, &UISnapshotPane::sltToggleSnapshotDetailsVisibility); 1248 connect(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Clone), &UIAction::triggered,1248 connect(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Clone), &UIAction::triggered, 1249 1249 this, &UISnapshotPane::sltCloneSnapshot); 1250 1250 } … … 1286 1286 1287 1287 /* Add toolbar actions: */ 1288 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Take));1289 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Delete));1288 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Take)); 1289 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Delete)); 1290 1290 m_pToolBar->addSeparator(); 1291 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Restore));1292 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties));1291 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Restore)); 1292 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties)); 1293 1293 m_pToolBar->addSeparator(); 1294 m_pToolBar->addAction(m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Clone));1294 m_pToolBar->addAction(m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Clone)); 1295 1295 1296 1296 /* Add into layout: */ … … 1339 1339 { 1340 1340 /* Details action/widget: */ 1341 m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties)->1341 m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties)-> 1342 1342 setChecked(gEDataManager->snapshotManagerDetailsExpanded()); 1343 1343 } … … 1485 1485 1486 1486 /* Update 'Take' action: */ 1487 m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Take)->setEnabled(1487 m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Take)->setEnabled( 1488 1488 m_fShapshotOperationsAllowed 1489 1489 && ( ( fCanTakeDeleteSnapshot … … 1496 1496 1497 1497 /* Update 'Delete' action: */ 1498 m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Delete)->setEnabled(1498 m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Delete)->setEnabled( 1499 1499 m_fShapshotOperationsAllowed 1500 1500 && fCanTakeDeleteSnapshot … … 1505 1505 1506 1506 /* Update 'Restore' action: */ 1507 m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Restore)->setEnabled(1507 m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Restore)->setEnabled( 1508 1508 !fBusy 1509 1509 && m_pCurrentSnapshotItem … … 1513 1513 1514 1514 /* Update 'Show Details' action: */ 1515 m_pActionPool->action(UIActionIndex ST_M_Snapshot_T_Properties)->setEnabled(1515 m_pActionPool->action(UIActionIndexMN_M_Snapshot_T_Properties)->setEnabled( 1516 1516 pSnapshotItem 1517 1517 ); 1518 1518 1519 1519 /* Update 'Clone' action: */ 1520 m_pActionPool->action(UIActionIndex ST_M_Snapshot_S_Clone)->setEnabled(1520 m_pActionPool->action(UIActionIndexMN_M_Snapshot_S_Clone)->setEnabled( 1521 1521 pSnapshotItem 1522 1522 && ( !pSnapshotItem->isCurrentStateItem()
Note:
See TracChangeset
for help on using the changeset viewer.