VirtualBox

Changeset 73673 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 14, 2018 6:43:35 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager UI: Update actions on startup and on current tool type change.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r73602 r73673  
    372372}
    373373
     374void UIVirtualBoxManager::sltHandleToolTypeChange()
     375{
     376    updateActionsVisibility();
     377    updateActionsAppearance();
     378}
     379
    374380void UIVirtualBoxManager::sltHandleStateChange(const QString &)
    375381{
     
    11521158    prepareWidgets();
    11531159    prepareConnections();
     1160
     1161    /* Update actions initially: */
     1162    updateActionsVisibility();
     1163    updateActionsAppearance();
    11541164
    11551165    /* Load settings: */
     
    16251635    connect(m_pWidget, &UIVirtualBoxManagerWidget::sigMachineSettingsLinkClicked,
    16261636            this, &UIVirtualBoxManager::sltOpenMachineSettingsDialogDefault);
     1637    connect(m_pWidget, &UIVirtualBoxManagerWidget::sigToolTypeChange,
     1638            this, &UIVirtualBoxManager::sltHandleToolTypeChange);
    16271639    connect(menuBar(), &QMenuBar::customContextMenuRequested,
    16281640            m_pWidget, &UIVirtualBoxManagerWidget::sltHandleContextMenuRequest);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h

    r73492 r73673  
    112112        /** Handles signal about group saving progress change. */
    113113        void sltHandleGroupSavingProgressChange();
     114
     115        /** Handles singal about Tool type change.  */
     116        void sltHandleToolTypeChange();
    114117    /** @} */
    115118
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r73632 r73673  
    321321        m_pPaneToolsMachine->setMachine(pItem ? pItem->machine() : CMachine());
    322322    }
     323
     324    /* Let the parent know: */
     325    emit sigToolTypeChange();
    323326}
    324327
     
    332335    /* Open corresponding tool: */
    333336    m_pPaneToolsGlobal->openTool(enmType);
     337
     338    /* Let the parent know: */
     339    emit sigToolTypeChange();
    334340}
    335341
     
    338344    /* Close corresponding tool: */
    339345    m_pPaneToolsMachine->closeTool(enmType);
     346
     347    /* Let the parent know: */
     348    emit sigToolTypeChange();
    340349}
    341350
     
    344353    /* Close corresponding tool: */
    345354    m_pPaneToolsGlobal->closeTool(enmType);
     355
     356    /* Let the parent know: */
     357    emit sigToolTypeChange();
    346358}
    347359
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h

    r73631 r73673  
    5353    void sigMachineSettingsLinkClicked(const QString &strCategory, const QString &strControl, const QString &strId);
    5454
    55     /** Notifies about Tool type switch. */
    56     void sigToolsTypeSwitch();
     55    /** Notifies about Tool type change. */
     56    void sigToolTypeChange();
    5757
    5858public:
Note: See TracChangeset for help on using the changeset viewer.

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