VirtualBox

Changeset 107331 in vbox for trunk


Ignore:
Timestamp:
Dec 16, 2024 1:23:16 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166365
Message:

FE/Qt: bugref:10814: VBox Manager: Machine Manager tool connections cleanup; Removing all connections which are not handled directly in the class code, only passed above.

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  
    242242}
    243243
     244void 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
    244252bool UIMachineManagerWidget::isCurrentStateItemSelected() const
    245253{
     
    423431    // smaller size often being ignored until it is actually shown.
    424432    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);
    433433}
    434434
     
    489489                    if (m_pPaneTools)
    490490                    {
     491                        /// @todo make sure it's used properly
    491492                        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);
    498493
    499494                        /* Add into layout: */
     
    546541    connect(m_pPaneChooser, &UIChooser::sigSelectionInvalidated,
    547542            this, &UIMachineManagerWidget::sltHandleChooserPaneSelectionInvalidated);
     543    connect(m_pPaneChooser, &UIChooser::sigToolMenuRequested,
     544            this, &UIMachineManagerWidget::sltHandleToolMenuRequested);
     545    connect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange,
     546            this, &UIMachineManagerWidget::sltHandleCloudMachineStateChange);
    548547    connect(m_pPaneChooser, &UIChooser::sigToggleStarted,
    549548            m_pPaneTools, &UIToolPaneMachine::sigToggleStarted);
    550549    connect(m_pPaneChooser, &UIChooser::sigToggleFinished,
    551550            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: */
    568553    connect(m_pPaneTools, &UIToolPaneMachine::sigLinkClicked,
    569554            this, &UIMachineManagerWidget::sigMachineSettingsLinkClicked);
    570555
    571     /* Tools-pane connections: */
     556    /* Tools-menu connections: */
    572557    connect(m_pMenuTools, &UITools::sigSelectionChanged,
    573558            this, &UIMachineManagerWidget::sltHandleToolsMenuIndexChange);
     
    601586    disconnect(m_pPaneChooser, &UIChooser::sigSelectionInvalidated,
    602587               this, &UIMachineManagerWidget::sltHandleChooserPaneSelectionInvalidated);
     588    disconnect(m_pPaneChooser, &UIChooser::sigToolMenuRequested,
     589               this, &UIMachineManagerWidget::sltHandleToolMenuRequested);
     590    disconnect(m_pPaneChooser, &UIChooser::sigCloudMachineStateChange,
     591               this, &UIMachineManagerWidget::sltHandleCloudMachineStateChange);
    603592    disconnect(m_pPaneChooser, &UIChooser::sigToggleStarted,
    604593               m_pPaneTools, &UIToolPaneMachine::sigToggleStarted);
    605594    disconnect(m_pPaneChooser, &UIChooser::sigToggleFinished,
    606595               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: */
    623598    disconnect(m_pPaneTools, &UIToolPaneMachine::sigLinkClicked,
    624599               this, &UIMachineManagerWidget::sigMachineSettingsLinkClicked);
    625600
    626     /* Tools-pane connections: */
     601    /* Tools-menu connections: */
    627602    disconnect(m_pMenuTools, &UITools::sigSelectionChanged,
    628603               this, &UIMachineManagerWidget::sltHandleToolsMenuIndexChange);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.h

    r107302 r107331  
    7272        /** Notifies about Chooser-pane selection change. */
    7373        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
    8475        /** Notifies about state change for cloud machine with certain @a uId. */
    8576        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);
    9177    /** @} */
    9278
     
    9783    /** @} */
    9884
    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 
    10585    /** @name Tools / Details pane stuff.
    10686      * @{ */
    10787        /** Notifies aboud Details-pane link clicked. */
    10888        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();
    12189    /** @} */
    12290
     
    214182        /** Closes pane tool of passed @a enmType. */
    215183        void closeTool(UIToolType enmType);
     184
     185        /** Switches to VM Activity pane of machine with @a uMachineId. */
     186        void switchToVMActivityPane(const QUuid &uMachineId);
    216187    /** @} */
    217188
     
    282253          * @param  enmType  Brings current tool type. */
    283254        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);
    287255    /** @} */
    288256
Note: See TracChangeset for help on using the changeset viewer.

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