Changeset 75081 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 25, 2018 3:47:25 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r75054 r75081 585 585 } 586 586 587 /* Open tool currently chosen in Tools-pane: */ 588 sltHandleToolsPaneIndexChange(); 587 /* Open tools last chosen in Tools-pane: */ 588 switchToGlobalTool(m_pPaneTools->lastSelectedToolGlobal()); 589 switchToMachineTool(m_pPaneTools->lastSelectedToolMachine()); 589 590 } 590 591 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
r75016 r75081 73 73 { 74 74 return m_pToolsModel->toolsType(); 75 } 76 77 UIToolType UITools::lastSelectedToolGlobal() const 78 { 79 return m_pToolsModel->lastSelectedToolGlobal(); 80 } 81 82 UIToolType UITools::lastSelectedToolMachine() const 83 { 84 return m_pToolsModel->lastSelectedToolMachine(); 75 85 } 76 86 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.h
r75016 r75081 81 81 UIToolType toolsType() const; 82 82 83 /** Returns last selected global tool. */ 84 UIToolType lastSelectedToolGlobal() const; 85 /** Returns last selected machine tool. */ 86 UIToolType lastSelectedToolMachine() const; 87 83 88 /** Defines whether certain @a enmClass of tools is @a fEnabled.*/ 84 89 void setToolsEnabled(UIToolClass enmClass, bool fEnabled); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r75070 r75081 155 155 } 156 156 157 UIToolType UIToolsModel::lastSelectedToolGlobal() const 158 { 159 return m_pLastItemGlobal->itemType(); 160 } 161 162 UIToolType UIToolsModel::lastSelectedToolMachine() const 163 { 164 return m_pLastItemMachine->itemType(); 165 } 166 157 167 void UIToolsModel::setToolsEnabled(UIToolClass enmClass, bool fEnabled) 158 168 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h
r75017 r75081 106 106 /** Returns current tools type. */ 107 107 UIToolType toolsType() const; 108 109 /** Returns last selected global tool. */ 110 UIToolType lastSelectedToolGlobal() const; 111 /** Returns last selected machine tool. */ 112 UIToolType lastSelectedToolMachine() const; 108 113 109 114 /** Defines whether certain @a enmClass of tools is @a fEnabled.*/
Note:
See TracChangeset
for help on using the changeset viewer.