- Timestamp:
- Dec 16, 2024 1:23:16 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 166365
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.cpp
r107302 r107331 242 242 } 243 243 244 void UIMachineManagerWidget::switchToVMActivityPane(const QUuid &uMachineId) 245 { 246 AssertPtrReturnVoid(m_pPaneChooser); 247 AssertPtrReturnVoid(m_pMenuTools); 248 m_pPaneChooser->setCurrentMachine(uMachineId); 249 m_pMenuTools->setToolsType(UIToolType_VMActivity); 250 } 251 244 252 bool UIMachineManagerWidget::isCurrentStateItemSelected() const 245 253 { … … 423 431 // smaller size often being ignored until it is actually shown. 424 432 pMenu->resize(ourGeo.size()); 425 }426 427 void UIMachineManagerWidget::sltSwitchToVMActivityPane(const QUuid &uMachineId)428 {429 AssertPtrReturnVoid(m_pPaneChooser);430 AssertPtrReturnVoid(m_pMenuTools);431 m_pPaneChooser->setCurrentMachine(uMachineId);432 m_pMenuTools->setToolsType(UIToolType_VMActivity);433 433 } 434 434 … … 489 489 if (m_pPaneTools) 490 490 { 491 /// @todo make sure it's used properly 491 492 m_pPaneTools->setActive(true); 492 connect(m_pPaneTools, &UIToolPaneMachine::sigDetachToolPane,493 this, &UIMachineManagerWidget::sigDetachToolPane);494 connect(m_pPaneTools, &UIToolPaneMachine::sigCurrentSnapshotItemChange,495 this, &UIMachineManagerWidget::sigCurrentSnapshotItemChange);496 connect(m_pPaneTools, &UIToolPaneMachine::sigSwitchToActivityOverviewPane,497 this, &UIMachineManagerWidget::sigSwitchToActivityOverviewPane);498 493 499 494 /* Add into layout: */ … … 546 541 connect(m_pPaneChooser, &UIChooser::sigSelectionInvalidated, 547 542 this, &UIMachineManagerWidget::sltHandleChooserPaneSelectionInvalidated); 543 connect(m_pPaneChooser, &UIChooser::sigToolMenuRequested, 544 this, &UIMachineManagerWidget::sltHandleToolMenuRequested); 545 connect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 546 this, &UIMachineManagerWidget::sltHandleCloudMachineStateChange); 548 547 connect(m_pPaneChooser, &UIChooser::sigToggleStarted, 549 548 m_pPaneTools, &UIToolPaneMachine::sigToggleStarted); 550 549 connect(m_pPaneChooser, &UIChooser::sigToggleFinished, 551 550 m_pPaneTools, &UIToolPaneMachine::sigToggleFinished); 552 connect(m_pPaneChooser, &UIChooser::sigGroupSavingStateChanged, 553 this, &UIMachineManagerWidget::sigGroupSavingStateChanged); 554 connect(m_pPaneChooser, &UIChooser::sigCloudUpdateStateChanged, 555 this, &UIMachineManagerWidget::sigCloudUpdateStateChanged); 556 connect(m_pPaneChooser, &UIChooser::sigToolMenuRequested, 557 this, &UIMachineManagerWidget::sltHandleToolMenuRequested); 558 connect(m_pPaneChooser, &UIChooser::sigCloudProfileStateChange, 559 this, &UIMachineManagerWidget::sigCloudProfileStateChange); 560 connect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 561 this, &UIMachineManagerWidget::sltHandleCloudMachineStateChange); 562 connect(m_pPaneChooser, &UIChooser::sigStartOrShowRequest, 563 this, &UIMachineManagerWidget::sigStartOrShowRequest); 564 connect(m_pPaneChooser, &UIChooser::sigMachineSearchWidgetVisibilityChanged, 565 this, &UIMachineManagerWidget::sigMachineSearchWidgetVisibilityChanged); 566 567 /* Details-pane connections: */ 551 552 /* Tools-pane connections: */ 568 553 connect(m_pPaneTools, &UIToolPaneMachine::sigLinkClicked, 569 554 this, &UIMachineManagerWidget::sigMachineSettingsLinkClicked); 570 555 571 /* Tools- paneconnections: */556 /* Tools-menu connections: */ 572 557 connect(m_pMenuTools, &UITools::sigSelectionChanged, 573 558 this, &UIMachineManagerWidget::sltHandleToolsMenuIndexChange); … … 601 586 disconnect(m_pPaneChooser, &UIChooser::sigSelectionInvalidated, 602 587 this, &UIMachineManagerWidget::sltHandleChooserPaneSelectionInvalidated); 588 disconnect(m_pPaneChooser, &UIChooser::sigToolMenuRequested, 589 this, &UIMachineManagerWidget::sltHandleToolMenuRequested); 590 disconnect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 591 this, &UIMachineManagerWidget::sltHandleCloudMachineStateChange); 603 592 disconnect(m_pPaneChooser, &UIChooser::sigToggleStarted, 604 593 m_pPaneTools, &UIToolPaneMachine::sigToggleStarted); 605 594 disconnect(m_pPaneChooser, &UIChooser::sigToggleFinished, 606 595 m_pPaneTools, &UIToolPaneMachine::sigToggleFinished); 607 disconnect(m_pPaneChooser, &UIChooser::sigGroupSavingStateChanged, 608 this, &UIMachineManagerWidget::sigGroupSavingStateChanged); 609 disconnect(m_pPaneChooser, &UIChooser::sigCloudUpdateStateChanged, 610 this, &UIMachineManagerWidget::sigCloudUpdateStateChanged); 611 disconnect(m_pPaneChooser, &UIChooser::sigToolMenuRequested, 612 this, &UIMachineManagerWidget::sltHandleToolMenuRequested); 613 disconnect(m_pPaneChooser, &UIChooser::sigCloudProfileStateChange, 614 this, &UIMachineManagerWidget::sigCloudProfileStateChange); 615 disconnect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange, 616 this, &UIMachineManagerWidget::sltHandleCloudMachineStateChange); 617 disconnect(m_pPaneChooser, &UIChooser::sigStartOrShowRequest, 618 this, &UIMachineManagerWidget::sigStartOrShowRequest); 619 disconnect(m_pPaneChooser, &UIChooser::sigMachineSearchWidgetVisibilityChanged, 620 this, &UIMachineManagerWidget::sigMachineSearchWidgetVisibilityChanged); 621 622 /* Details-pane connections: */ 596 597 /* Tools-pane connections: */ 623 598 disconnect(m_pPaneTools, &UIToolPaneMachine::sigLinkClicked, 624 599 this, &UIMachineManagerWidget::sigMachineSettingsLinkClicked); 625 600 626 /* Tools- paneconnections: */601 /* Tools-menu connections: */ 627 602 disconnect(m_pMenuTools, &UITools::sigSelectionChanged, 628 603 this, &UIMachineManagerWidget::sltHandleToolsMenuIndexChange); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.h
r107302 r107331 72 72 /** Notifies about Chooser-pane selection change. */ 73 73 void sigChooserPaneSelectionChange(); 74 /** Notifies about Chooser-pane group saving change. */ 75 void sigGroupSavingStateChanged(); 76 /** Notifies about Chooser-pane cloud update change. */ 77 void sigCloudUpdateStateChanged(); 78 79 /** Notifies listeners about cloud profile state change. 80 * @param strProviderShortName Brings the cloud provider short name. 81 * @param strProfileName Brings the cloud profile name. */ 82 void sigCloudProfileStateChange(const QString &strProviderShortName, 83 const QString &strProfileName); 74 84 75 /** Notifies about state change for cloud machine with certain @a uId. */ 85 76 void sigCloudMachineStateChange(const QUuid &uId); 86 87 /** Notify listeners about start or show request. */88 void sigStartOrShowRequest();89 /** Notifies listeners about machine search widget visibility changed to @a fVisible. */90 void sigMachineSearchWidgetVisibilityChanged(bool fVisible);91 77 /** @} */ 92 78 … … 97 83 /** @} */ 98 84 99 /** @name Tools / Generic pane stuff.100 * @{ */101 /** Notifies listeners about request to detach pane with tool type @p enmToolType. */102 void sigDetachToolPane(UIToolType enmToolType);103 /** @} */104 105 85 /** @name Tools / Details pane stuff. 106 86 * @{ */ 107 87 /** Notifies aboud Details-pane link clicked. */ 108 88 void sigMachineSettingsLinkClicked(const QString &strCategory, const QString &strControl, const QUuid &uId); 109 /** @} */110 111 /** @name Tools / Snapshots pane stuff.112 * @{ */113 /** Notifies listeners about current Snapshots pane item change. */114 void sigCurrentSnapshotItemChange();115 /** @} */116 117 /** @name Tools / VM Activity pane stuff.118 * @{ */119 /** Notifies listeners about request to switch to Activity Overview pane. */120 void sigSwitchToActivityOverviewPane();121 89 /** @} */ 122 90 … … 214 182 /** Closes pane tool of passed @a enmType. */ 215 183 void closeTool(UIToolType enmType); 184 185 /** Switches to VM Activity pane of machine with @a uMachineId. */ 186 void switchToVMActivityPane(const QUuid &uMachineId); 216 187 /** @} */ 217 188 … … 282 253 * @param enmType Brings current tool type. */ 283 254 void sltHandleToolsMenuIndexChange(UIToolType enmType) { switchToolTo(enmType); } 284 285 /** Handles signal requesting switch to VM Activity pane of machine with @a uMachineId. */286 void sltSwitchToVMActivityPane(const QUuid &uMachineId);287 255 /** @} */ 288 256
Note:
See TracChangeset
for help on using the changeset viewer.