VirtualBox

Changeset 75029 in vbox


Ignore:
Timestamp:
Oct 24, 2018 11:41:40 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126070
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Just small reordering.

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

Legend:

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

    r75016 r75029  
    114114}
    115115
     116UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const
     117{
     118    return m_pPaneToolsGlobal->currentTool();
     119}
     120
    116121UIToolType UIVirtualBoxManagerWidget::currentMachineTool() const
    117122{
     
    119124}
    120125
    121 UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const
    122 {
    123     return m_pPaneToolsGlobal->currentTool();
     126bool UIVirtualBoxManagerWidget::isGlobalToolOpened(UIToolType enmType) const
     127{
     128    return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->isToolOpened(enmType) : false;
    124129}
    125130
     
    129134}
    130135
    131 bool UIVirtualBoxManagerWidget::isGlobalToolOpened(UIToolType enmType) const
    132 {
    133     return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->isToolOpened(enmType) : false;
     136void UIVirtualBoxManagerWidget::switchToGlobalTool(UIToolType enmType)
     137{
     138    /* Open corresponding tool: */
     139    m_pPaneToolsGlobal->openTool(enmType);
     140
     141    /* Let the parent know: */
     142    emit sigToolTypeChange();
     143
     144    /* Update toolbar: */
     145    updateToolbar();
    134146}
    135147
     
    156168}
    157169
    158 void UIVirtualBoxManagerWidget::switchToGlobalTool(UIToolType enmType)
    159 {
    160     /* Open corresponding tool: */
    161     m_pPaneToolsGlobal->openTool(enmType);
    162 
    163     /* Let the parent know: */
    164     emit sigToolTypeChange();
    165 
    166     /* Update toolbar: */
    167     updateToolbar();
     170void UIVirtualBoxManagerWidget::closeGlobalTool(UIToolType enmType)
     171{
     172    m_pPaneToolsGlobal->closeTool(enmType);
    168173}
    169174
     
    171176{
    172177    m_pPaneToolsMachine->closeTool(enmType);
    173 }
    174 
    175 void UIVirtualBoxManagerWidget::closeGlobalTool(UIToolType enmType)
    176 {
    177     m_pPaneToolsGlobal->closeTool(enmType);
    178178}
    179179
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h

    r75016 r75029  
    9292        UIToolType toolsType() const;
    9393
     94        /** Returns a type of curent Global tool. */
     95        UIToolType currentGlobalTool() const;
    9496        /** Returns a type of curent Machine tool. */
    9597        UIToolType currentMachineTool() const;
    96         /** Returns a type of curent Global tool. */
    97         UIToolType currentGlobalTool() const;
     98        /** Returns whether Global tool of passed @a enmType is opened. */
     99        bool isGlobalToolOpened(UIToolType enmType) const;
    98100        /** Returns whether Machine tool of passed @a enmType is opened. */
    99101        bool isMachineToolOpened(UIToolType enmType) const;
    100         /** Returns whether Global tool of passed @a enmType is opened. */
    101         bool isGlobalToolOpened(UIToolType enmType) const;
     102        /** Switches to Global tool of passed @a enmType. */
     103        void switchToGlobalTool(UIToolType enmType);
    102104        /** Switches to Machine tool of passed @a enmType. */
    103105        void switchToMachineTool(UIToolType enmType);
    104         /** Switches to Global tool of passed @a enmType. */
    105         void switchToGlobalTool(UIToolType enmType);
     106        /** Closes Global tool of passed @a enmType. */
     107        void closeGlobalTool(UIToolType enmType);
    106108        /** Closes Machine tool of passed @a enmType. */
    107109        void closeMachineTool(UIToolType enmType);
    108         /** Closes Global tool of passed @a enmType. */
    109         void closeGlobalTool(UIToolType enmType);
    110110    /** @} */
    111111
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