Changeset 75029 in vbox
- Timestamp:
- Oct 24, 2018 11:41:40 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126070
- 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 114 114 } 115 115 116 UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const 117 { 118 return m_pPaneToolsGlobal->currentTool(); 119 } 120 116 121 UIToolType UIVirtualBoxManagerWidget::currentMachineTool() const 117 122 { … … 119 124 } 120 125 121 UIToolType UIVirtualBoxManagerWidget::currentGlobalTool() const122 { 123 return m_pPaneToolsGlobal ->currentTool();126 bool UIVirtualBoxManagerWidget::isGlobalToolOpened(UIToolType enmType) const 127 { 128 return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->isToolOpened(enmType) : false; 124 129 } 125 130 … … 129 134 } 130 135 131 bool UIVirtualBoxManagerWidget::isGlobalToolOpened(UIToolType enmType) const 132 { 133 return m_pPaneToolsGlobal ? m_pPaneToolsGlobal->isToolOpened(enmType) : false; 136 void 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(); 134 146 } 135 147 … … 156 168 } 157 169 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(); 170 void UIVirtualBoxManagerWidget::closeGlobalTool(UIToolType enmType) 171 { 172 m_pPaneToolsGlobal->closeTool(enmType); 168 173 } 169 174 … … 171 176 { 172 177 m_pPaneToolsMachine->closeTool(enmType); 173 }174 175 void UIVirtualBoxManagerWidget::closeGlobalTool(UIToolType enmType)176 {177 m_pPaneToolsGlobal->closeTool(enmType);178 178 } 179 179 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r75016 r75029 92 92 UIToolType toolsType() const; 93 93 94 /** Returns a type of curent Global tool. */ 95 UIToolType currentGlobalTool() const; 94 96 /** Returns a type of curent Machine tool. */ 95 97 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; 98 100 /** Returns whether Machine tool of passed @a enmType is opened. */ 99 101 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); 102 104 /** Switches to Machine tool of passed @a enmType. */ 103 105 void switchToMachineTool(UIToolType enmType); 104 /** Switches toGlobal tool of passed @a enmType. */105 void switchToGlobalTool(UIToolType enmType);106 /** Closes Global tool of passed @a enmType. */ 107 void closeGlobalTool(UIToolType enmType); 106 108 /** Closes Machine tool of passed @a enmType. */ 107 109 void closeMachineTool(UIToolType enmType); 108 /** Closes Global tool of passed @a enmType. */109 void closeGlobalTool(UIToolType enmType);110 110 /** @} */ 111 111
Note:
See TracChangeset
for help on using the changeset viewer.