Changeset 89094 in vbox for trunk/src/VBox
- Timestamp:
- May 17, 2021 11:56:34 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.cpp
r89039 r89094 1541 1541 updateColumnsMenu(); 1542 1542 m_pVMActivityMonitorAction = 1543 m_pActionPool->action(UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachine Performance);1543 m_pActionPool->action(UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachineActivity); 1544 1544 1545 1545 if (m_pVMActivityMonitorAction) … … 1677 1677 if (uMachineId.isNull()) 1678 1678 return; 1679 emit sigSwitchToMachine PerformancePane(uMachineId);1679 emit sigSwitchToMachineActivityPane(uMachineId); 1680 1680 } 1681 1681 -
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.h
r89000 r89094 52 52 signals: 53 53 54 void sigSwitchToMachine PerformancePane(const QUuid &uMachineId);54 void sigSwitchToMachineActivityPane(const QUuid &uMachineId); 55 55 56 56 public: -
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityToolWidget.cpp
r89093 r89094 150 150 m_pActionPool->action(UIActionIndex_M_Activity_S_ToVMActivityOverview); 151 151 if (pToResourcesAction) 152 connect(pToResourcesAction, &QAction::triggered, this, &UIVMActivityToolWidget::sigSwitchTo ResourcesPane);152 connect(pToResourcesAction, &QAction::triggered, this, &UIVMActivityToolWidget::sigSwitchToActivityOverviewPane); 153 153 154 154 m_pExportToFileAction = -
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityToolWidget.h
r89093 r89094 45 45 signals: 46 46 47 void sigSwitchTo ResourcesPane();47 void sigSwitchToActivityOverviewPane(); 48 48 49 49 public: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r88242 r89094 3446 3446 }; 3447 3447 3448 /** Simple action extension, used as 'Switch to Machine Performance' action class. */3449 class UIActionMenuManagerVMActivityOverviewSwitchToMachine Performance: public UIActionSimple3450 { 3451 Q_OBJECT; 3452 3453 public: 3454 3455 /** Constructs action passing @a pParent to the base-class. */ 3456 UIActionMenuManagerVMActivityOverviewSwitchToMachine Performance(UIActionPool *pParent)3448 /** Simple action extension, used as 'Switch to Machine Activity' action class. */ 3449 class UIActionMenuManagerVMActivityOverviewSwitchToMachineActivity : public UIActionSimple 3450 { 3451 Q_OBJECT; 3452 3453 public: 3454 3455 /** Constructs action passing @a pParent to the base-class. */ 3456 UIActionMenuManagerVMActivityOverviewSwitchToMachineActivity(UIActionPool *pParent) 3457 3457 : UIActionSimple(pParent, 3458 3458 ":/resources_monitor_jump_to_vm_32px.png", ":/resources_monitor_jump_to_vm_16px.png", … … 3467 3467 virtual QString shortcutExtraDataID() const /* override */ 3468 3468 { 3469 return QString("VMActivityOverviewSwitchToMachine Performance");3469 return QString("VMActivityOverviewSwitchToMachineActivity"); 3470 3470 } 3471 3471 … … 3652 3652 m_pool[UIActionIndexMN_M_VMActivityOverview] = new UIActionMenuVMActivityOverview(this); 3653 3653 m_pool[UIActionIndexMN_M_VMActivityOverview_M_Columns] = new UIActionMenuManagerVMActivityOverviewColumns(this); 3654 m_pool[UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachine Performance] = new UIActionMenuManagerVMActivityOverviewSwitchToMachinePerformance(this);3654 m_pool[UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachineActivity] = new UIActionMenuManagerVMActivityOverviewSwitchToMachineActivity(this); 3655 3655 3656 3656 /* 'File' action groups: */ … … 4496 4496 pMenu->clear(); 4497 4497 addAction(pMenu, action(UIActionIndexMN_M_VMActivityOverview_M_Columns)); 4498 addAction(pMenu, action(UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachine Performance));4498 addAction(pMenu, action(UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachineActivity)); 4499 4499 } 4500 4500 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.h
r88242 r89094 193 193 UIActionIndexMN_M_VMActivityOverview, 194 194 UIActionIndexMN_M_VMActivityOverview_M_Columns, 195 UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachine Performance,195 UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachineActivity, 196 196 197 197 /* Maximum index: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r88173 r89094 216 216 /* Configure pane: */ 217 217 m_pPaneVMActivityOverview->setProperty("ToolType", QVariant::fromValue(UIToolType_VMActivityOverview)); 218 connect(m_pPaneVMActivityOverview, &UIVMActivityOverviewWidget::sigSwitchToMachine PerformancePane,219 this, &UIToolPaneGlobal::sigSwitchToMachine PerformancePane);218 connect(m_pPaneVMActivityOverview, &UIVMActivityOverviewWidget::sigSwitchToMachineActivityPane, 219 this, &UIToolPaneGlobal::sigSwitchToMachineActivityPane); 220 220 221 221 /* Add into layout: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.h
r88173 r89094 50 50 signals: 51 51 52 /** Notifies listeners about request to switch to Performancepane of machine with @a uMachineId. */53 void sigSwitchToMachine PerformancePane(const QUuid &uMachineId);52 /** Notifies listeners about request to switch to Activity pane of machine with @a uMachineId. */ 53 void sigSwitchToMachineActivityPane(const QUuid &uMachineId); 54 54 55 55 public: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r89036 r89094 208 208 m_pLayout->setCurrentWidget(m_pPaneVMActivityMonitor); 209 209 210 connect(m_pPaneVMActivityMonitor, &UIVMActivityToolWidget::sigSwitchTo ResourcesPane,211 this, &UIToolPaneMachine::sigSwitchTo ResourcesPane);210 connect(m_pPaneVMActivityMonitor, &UIVMActivityToolWidget::sigSwitchToActivityOverviewPane, 211 this, &UIToolPaneMachine::sigSwitchToActivityOverviewPane); 212 212 break; 213 213 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.h
r89036 r89094 62 62 void sigCurrentSnapshotItemChange(); 63 63 64 /** Notifies listeners about request to switch to Resourcespane. */65 void sigSwitchTo ResourcesPane();64 /** Notifies listeners about request to switch to Activity Overview pane. */ 65 void sigSwitchToActivityOverviewPane(); 66 66 67 67 public: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r89037 r89094 532 532 } 533 533 534 void UIVirtualBoxManagerWidget::sltSwitchToMachine PerformancePane(const QUuid &uMachineId)534 void UIVirtualBoxManagerWidget::sltSwitchToMachineActivityPane(const QUuid &uMachineId) 535 535 { 536 536 AssertPtrReturnVoid(m_pPaneChooser); … … 540 540 } 541 541 542 void UIVirtualBoxManagerWidget::sltSwitchTo ResourcesPane()542 void UIVirtualBoxManagerWidget::sltSwitchToActivityOverviewPane() 543 543 { 544 544 AssertPtrReturnVoid(m_pPaneChooser); … … 643 643 if (m_pPaneChooser->isGlobalItemSelected()) 644 644 m_pPaneToolsGlobal->setActive(true); 645 connect(m_pPaneToolsGlobal, &UIToolPaneGlobal::sigSwitchToMachine PerformancePane,646 this, &UIVirtualBoxManagerWidget::sltSwitchToMachine PerformancePane);645 connect(m_pPaneToolsGlobal, &UIToolPaneGlobal::sigSwitchToMachineActivityPane, 646 this, &UIVirtualBoxManagerWidget::sltSwitchToMachineActivityPane); 647 647 648 648 /* Add into stack: */ … … 658 658 connect(m_pPaneToolsMachine, &UIToolPaneMachine::sigCurrentSnapshotItemChange, 659 659 this, &UIVirtualBoxManagerWidget::sigCurrentSnapshotItemChange); 660 connect(m_pPaneToolsMachine, &UIToolPaneMachine::sigSwitchTo ResourcesPane,661 this, &UIVirtualBoxManagerWidget::sltSwitchTo ResourcesPane);660 connect(m_pPaneToolsMachine, &UIToolPaneMachine::sigSwitchToActivityOverviewPane, 661 this, &UIVirtualBoxManagerWidget::sltSwitchToActivityOverviewPane); 662 662 663 663 /* Add into stack: */ … … 873 873 { 874 874 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMActivityOverview_M_Columns)); 875 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachine Performance));875 m_pToolBar->addAction(actionPool()->action(UIActionIndexMN_M_VMActivityOverview_S_SwitchToMachineActivity)); 876 876 QToolButton *pButton = 877 877 qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndexMN_M_VMActivityOverview_M_Columns))); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r88520 r89094 280 280 void sltHandleToolsPaneIndexChange(); 281 281 282 /** Handles signal requesting switch to Performancepane of machine with @a uMachineId. */283 void sltSwitchToMachine PerformancePane(const QUuid &uMachineId);282 /** Handles signal requesting switch to Activity pane of machine with @a uMachineId. */ 283 void sltSwitchToMachineActivityPane(const QUuid &uMachineId); 284 284 /** Handles signal requesting switch to Resources pane. */ 285 void sltSwitchTo ResourcesPane();285 void sltSwitchToActivityOverviewPane(); 286 286 /** @} */ 287 287
Note:
See TracChangeset
for help on using the changeset viewer.