- Timestamp:
- Mar 22, 2021 12:20:10 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143442
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp
r88074 r88242 1151 1151 { 1152 1152 QAction *pExportAction = 1153 m_pActionPool->action(UIActionIndex_M_ Performance_S_Export);1153 m_pActionPool->action(UIActionIndex_M_Activity_S_Export); 1154 1154 if (pExportAction) 1155 1155 connect(pExportAction, &QAction::triggered, this, &UIVMActivityMonitor::sltExportMetricsToFile); 1156 1156 1157 1157 QAction *pToResourcesAction = 1158 m_pActionPool->action(UIActionIndex_M_ Performance_S_ToVMActivityOverview);1158 m_pActionPool->action(UIActionIndex_M_Activity_S_ToVMActivityOverview); 1159 1159 if (pToResourcesAction) 1160 1160 connect(pToResourcesAction, &QAction::triggered, this, &UIVMActivityMonitor::sigSwitchToResourcesPane); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r88173 r88242 2202 2202 }; 2203 2203 2204 /** Menu action extension, used as ' Performance' menu class. */2205 class UIActionMenuSelector Performance: public UIActionMenu2206 { 2207 Q_OBJECT; 2208 2209 public: 2210 2211 /** Constructs action passing @a pParent to the base-class. */ 2212 UIActionMenuSelector Performance(UIActionPool *pParent)2204 /** Menu action extension, used as 'Activity' menu class. */ 2205 class UIActionMenuSelectorActivity : public UIActionMenu 2206 { 2207 Q_OBJECT; 2208 2209 public: 2210 2211 /** Constructs action passing @a pParent to the base-class. */ 2212 UIActionMenuSelectorActivity(UIActionPool *pParent) 2213 2213 : UIActionMenu(pParent) 2214 2214 {} … … 2225 2225 virtual void retranslateUi() /* override */ 2226 2226 { 2227 setName(QApplication::translate("UIActionPool", "& Performance"));2227 setName(QApplication::translate("UIActionPool", "&Activity")); 2228 2228 } 2229 2229 }; 2230 2230 2231 2231 /** Simple action extension, used as 'Perform Export' action class. */ 2232 class UIActionMenuSelector PerformancePerformExport : public UIActionSimple2233 { 2234 Q_OBJECT; 2235 2236 public: 2237 2238 /** Constructs action passing @a pParent to the base-class. */ 2239 UIActionMenuSelector PerformancePerformExport(UIActionPool *pParent)2232 class UIActionMenuSelectorActivityPerformExport : public UIActionSimple 2233 { 2234 Q_OBJECT; 2235 2236 public: 2237 2238 /** Constructs action passing @a pParent to the base-class. */ 2239 UIActionMenuSelectorActivityPerformExport(UIActionPool *pParent) 2240 2240 : UIActionSimple(pParent, 2241 2241 ":/performance_monitor_export_32px.png", ":/performance_monitor_export_16px.png", … … 2265 2265 2266 2266 /** Simple action extension, used as 'To VM Activity Oveview' action class. */ 2267 class UIActionMenuSelector PerformanceToVMActivityOverview : public UIActionSimple2268 { 2269 Q_OBJECT; 2270 2271 public: 2272 2273 /** Constructs action passing @a pParent to the base-class. */ 2274 UIActionMenuSelector PerformanceToVMActivityOverview(UIActionPool *pParent)2267 class UIActionMenuSelectorActivityToVMActivityOverview : public UIActionSimple 2268 { 2269 Q_OBJECT; 2270 2271 public: 2272 2273 /** Constructs action passing @a pParent to the base-class. */ 2274 UIActionMenuSelectorActivityToVMActivityOverview(UIActionPool *pParent) 2275 2275 : UIActionSimple(pParent, 2276 2276 ":/resources_monitor_24px.png", ":/resource_monitor_16px.png", … … 2542 2542 2543 2543 /* Create 'Performance Monitor' actions: */ 2544 m_pool[UIActionIndex_M_ Performance] = new UIActionMenuSelectorPerformance(this);2545 m_pool[UIActionIndex_M_ Performance_S_Export] = new UIActionMenuSelectorPerformancePerformExport(this);2546 m_pool[UIActionIndex_M_ Performance_S_ToVMActivityOverview] = new UIActionMenuSelectorPerformanceToVMActivityOverview(this);2544 m_pool[UIActionIndex_M_Activity] = new UIActionMenuSelectorActivity(this); 2545 m_pool[UIActionIndex_M_Activity_S_Export] = new UIActionMenuSelectorActivityPerformExport(this); 2546 m_pool[UIActionIndex_M_Activity_S_ToVMActivityOverview] = new UIActionMenuSelectorActivityToVMActivityOverview(this); 2547 2547 2548 2548 /* Create 'File Manager' actions: */ … … 2589 2589 m_menuUpdateHandlers[UIActionIndex_M_LogWindow].ptf = &UIActionPool::updateMenuLogViewerWindow; 2590 2590 m_menuUpdateHandlers[UIActionIndex_M_Log].ptf = &UIActionPool::updateMenuLogViewer; 2591 m_menuUpdateHandlers[UIActionIndex_M_ Performance].ptf = &UIActionPool::updateMenuVMActivityMonitor;2591 m_menuUpdateHandlers[UIActionIndex_M_Activity].ptf = &UIActionPool::updateMenuVMActivityMonitor; 2592 2592 m_menuUpdateHandlers[UIActionIndex_M_FileManager].ptf = &UIActionPool::updateMenuFileManager; 2593 2593 … … 2968 2968 { 2969 2969 /* Get corresponding menu: */ 2970 UIMenu *pMenu = action(UIActionIndex_M_ Performance)->menu();2970 UIMenu *pMenu = action(UIActionIndex_M_Activity)->menu(); 2971 2971 AssertPtrReturnVoid(pMenu); 2972 2972 /* Clear contents: */ … … 2974 2974 2975 2975 /* 'Export' action: */ 2976 pMenu->addAction(action(UIActionIndex_M_ Performance_S_Export));2977 pMenu->addAction(action(UIActionIndex_M_ Performance_S_ToVMActivityOverview));2976 pMenu->addAction(action(UIActionIndex_M_Activity_S_Export)); 2977 pMenu->addAction(action(UIActionIndex_M_Activity_S_ToVMActivityOverview)); 2978 2978 2979 2979 /* Mark menu as valid: */ 2980 m_invalidations.remove(UIActionIndex_M_ Performance);2980 m_invalidations.remove(UIActionIndex_M_Activity); 2981 2981 } 2982 2982 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r88074 r88242 99 99 100 100 /* 'Performance' menu actions: */ 101 UIActionIndex_M_ Performance,102 UIActionIndex_M_ Performance_S_Export,103 UIActionIndex_M_ Performance_S_ToVMActivityOverview,101 UIActionIndex_M_Activity, 102 UIActionIndex_M_Activity_S_Export, 103 UIActionIndex_M_Activity_S_ToVMActivityOverview, 104 104 105 105 /* File Manager actions: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r88173 r88242 1872 1872 }; 1873 1873 1874 /** Simple action extension, used as 'Show PerformanceMonitor' action class. */1875 class UIActionToggleManagerToolsMachineShow Performance: public UIActionToggle1876 { 1877 Q_OBJECT; 1878 1879 public: 1880 1881 /** Constructs action passing @a pParent to the base-class. */ 1882 UIActionToggleManagerToolsMachineShow Performance(UIActionPool *pParent)1874 /** Simple action extension, used as 'Show VM Activity Monitor' action class. */ 1875 class UIActionToggleManagerToolsMachineShowActivity : public UIActionToggle 1876 { 1877 Q_OBJECT; 1878 1879 public: 1880 1881 /** Constructs action passing @a pParent to the base-class. */ 1882 UIActionToggleManagerToolsMachineShowActivity(UIActionPool *pParent) 1883 1883 : UIActionToggle(pParent) 1884 1884 { … … 1900 1900 virtual void retranslateUi() /* override */ 1901 1901 { 1902 setName(QApplication::translate("UIActionPool", "& Performance"));1903 setStatusTip(QApplication::translate("UIActionPool", "Open the machine performancepane"));1902 setName(QApplication::translate("UIActionPool", "&Activity")); 1903 setStatusTip(QApplication::translate("UIActionPool", "Open the machine activity monitor pane")); 1904 1904 } 1905 1905 }; … … 3541 3541 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Snapshots] = new UIActionToggleManagerToolsMachineShowSnapshots(this); 3542 3542 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Logs] = new UIActionToggleManagerToolsMachineShowLogs(this); 3543 m_pool[UIActionIndexMN_M_Group_M_Tools_T_ Performance] = new UIActionToggleManagerToolsMachineShowPerformance(this);3543 m_pool[UIActionIndexMN_M_Group_M_Tools_T_Activity] = new UIActionToggleManagerToolsMachineShowActivity(this); 3544 3544 m_pool[UIActionIndexMN_M_Group_S_Discard] = new UIActionSimpleManagerCommonPerformDiscard(this); 3545 3545 m_pool[UIActionIndexMN_M_Group_S_ShowLogDialog] = new UIActionSimpleManagerCommonShowMachineLogs(this); … … 3586 3586 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Snapshots] = new UIActionToggleManagerToolsMachineShowSnapshots(this); 3587 3587 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Logs] = new UIActionToggleManagerToolsMachineShowLogs(this); 3588 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_ Performance] = new UIActionToggleManagerToolsMachineShowPerformance(this);3588 m_pool[UIActionIndexMN_M_Machine_M_Tools_T_Activity] = new UIActionToggleManagerToolsMachineShowActivity(this); 3589 3589 m_pool[UIActionIndexMN_M_Machine_S_Discard] = new UIActionSimpleManagerCommonPerformDiscard(this); 3590 3590 m_pool[UIActionIndexMN_M_Machine_S_ShowLogDialog] = new UIActionSimpleManagerCommonShowMachineLogs(this); … … 3668 3668 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Snapshots)); 3669 3669 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Logs)); 3670 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_ Performance));3670 m_groupPool[UIActionIndexMN_M_Group_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Group_M_Tools_T_Activity)); 3671 3671 3672 3672 /* 'Machine' action groups: */ … … 3675 3675 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots)); 3676 3676 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Logs)); 3677 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_ Performance));3677 m_groupPool[UIActionIndexMN_M_Machine_M_Tools]->addAction(m_pool.value(UIActionIndexMN_M_Machine_M_Tools_T_Activity)); 3678 3678 3679 3679 /* Prepare update-handlers for known menus: */ … … 3798 3798 updateMenuLogViewerWindow(); 3799 3799 updateMenuLogViewer(); 3800 /* ' Performance' menu: */3801 addMenu(m_mainMenus, action(UIActionIndex_M_ Performance));3800 /* 'Activity' menu: */ 3801 addMenu(m_mainMenus, action(UIActionIndex_M_Activity)); 3802 3802 updateMenuVMActivityMonitor(); 3803 3803 … … 3851 3851 << action(UIActionIndexMN_M_Group_M_Tools_T_Snapshots) 3852 3852 << action(UIActionIndexMN_M_Group_M_Tools_T_Logs) 3853 << action(UIActionIndexMN_M_Group_M_Tools_T_ Performance);3853 << action(UIActionIndexMN_M_Group_M_Tools_T_Activity); 3854 3854 break; 3855 3855 } … … 3892 3892 << action(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots) 3893 3893 << action(UIActionIndexMN_M_Machine_M_Tools_T_Logs) 3894 << action(UIActionIndexMN_M_Machine_M_Tools_T_ Performance);3894 << action(UIActionIndexMN_M_Machine_M_Tools_T_Activity); 3895 3895 break; 3896 3896 } … … 4206 4206 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Snapshots)); 4207 4207 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Logs)); 4208 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_ Performance));4208 pMenu->addAction(action(UIActionIndexMN_M_Group_M_Tools_T_Activity)); 4209 4209 4210 4210 /* Mark menu as valid: */ … … 4224 4224 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Snapshots)); 4225 4225 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Logs)); 4226 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_ Performance));4226 pMenu->addAction(action(UIActionIndexMN_M_Machine_M_Tools_T_Activity)); 4227 4227 4228 4228 /* Mark menu as valid: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.h
r88173 r88242 83 83 UIActionIndexMN_M_Group_M_Tools_T_Snapshots, 84 84 UIActionIndexMN_M_Group_M_Tools_T_Logs, 85 UIActionIndexMN_M_Group_M_Tools_T_ Performance,85 UIActionIndexMN_M_Group_M_Tools_T_Activity, 86 86 UIActionIndexMN_M_Group_S_Discard, 87 87 UIActionIndexMN_M_Group_S_ShowLogDialog, … … 127 127 UIActionIndexMN_M_Machine_M_Tools_T_Snapshots, 128 128 UIActionIndexMN_M_Machine_M_Tools_T_Logs, 129 UIActionIndexMN_M_Machine_M_Tools_T_ Performance,129 UIActionIndexMN_M_Machine_M_Tools_T_Activity, 130 130 UIActionIndexMN_M_Machine_S_Discard, 131 131 UIActionIndexMN_M_Machine_S_ShowLogDialog, -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r88102 r88242 3125 3125 const bool fPerformanceMenuShown = (fMachineMenuShown || fGroupMenuShown) && 3126 3126 m_pWidget->currentMachineTool() == UIToolType_VMActivity; 3127 actionPool()->action(UIActionIndex_M_ Performance)->setVisible(fPerformanceMenuShown);3127 actionPool()->action(UIActionIndex_M_Activity)->setVisible(fPerformanceMenuShown); 3128 3128 3129 3129 /* Hide action shortcuts: */ … … 3299 3299 case UIToolType_VMActivity: 3300 3300 { 3301 actionPool()->action(UIActionIndexMN_M_Group_M_Tools_T_ Performance)->setChecked(true);3302 actionPool()->action(UIActionIndexMN_M_Machine_M_Tools_T_ Performance)->setChecked(true);3301 actionPool()->action(UIActionIndexMN_M_Group_M_Tools_T_Activity)->setChecked(true); 3302 actionPool()->action(UIActionIndexMN_M_Machine_M_Tools_T_Activity)->setChecked(true); 3303 3303 break; 3304 3304 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r88122 r88242 922 922 case UIToolType_VMActivity: 923 923 { 924 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_ Performance_S_Export));925 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_ Performance_S_ToVMActivityOverview));924 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Activity_S_Export)); 925 m_pToolBar->addAction(actionPool()->action(UIActionIndex_M_Activity_S_ToVMActivityOverview)); 926 926 m_pToolBar->addSeparator(); 927 927 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_Machine_S_Settings));
Note:
See TracChangeset
for help on using the changeset viewer.