- Timestamp:
- Aug 1, 2017 4:04:00 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r68212 r68221 258 258 if (pItem && pItem->accessible()) 259 259 { 260 /* Make sure Machine Tools-pane raised: */ 261 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details)) 262 m_pPaneToolsMachine->openTool(ToolTypeMachine_Details); 263 else 264 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots)) 265 m_pPaneToolsMachine->openTool(ToolTypeMachine_Snapshots); 260 /* If Desktop pane is chosen currently: */ 261 if (m_pPaneToolsMachine->currentTool() == ToolTypeMachine_Desktop) 262 { 263 /* Make sure Details or Snapshot pane is chosen if opened: */ 264 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details)) 265 m_pPaneToolsMachine->openTool(ToolTypeMachine_Details); 266 else 267 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots)) 268 m_pPaneToolsMachine->openTool(ToolTypeMachine_Snapshots); 269 } 266 270 267 271 /* Refresh Machine Tools-pane if requested: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.cpp
r68200 r68221 52 52 /* Cleanup: */ 53 53 cleanup(); 54 } 55 56 ToolTypeGlobal UIToolsPaneGlobal::currentTool() const 57 { 58 return m_pLayout->currentWidget()->property("ToolType").value<ToolTypeGlobal>(); 54 59 } 55 60 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneGlobal.h
r68200 r68221 59 59 virtual ~UIToolsPaneGlobal() /* override */; 60 60 61 /** Returns type of tool currently opened. */ 62 ToolTypeGlobal currentTool() const; 61 63 /** Returns whether tool of particular @a enmType is opened. */ 62 64 bool isToolOpened(ToolTypeGlobal enmType) const; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.cpp
r68175 r68221 52 52 /* Cleanup: */ 53 53 cleanup(); 54 } 55 56 ToolTypeMachine UIToolsPaneMachine::currentTool() const 57 { 58 return m_pLayout->currentWidget()->property("ToolType").value<ToolTypeMachine>(); 54 59 } 55 60 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPaneMachine.h
r68175 r68221 70 70 virtual ~UIToolsPaneMachine() /* override */; 71 71 72 /** Returns type of tool currently opened. */ 73 ToolTypeMachine currentTool() const; 72 74 /** Returns whether tool of particular @a enmType is opened. */ 73 75 bool isToolOpened(ToolTypeMachine enmType) const;
Note:
See TracChangeset
for help on using the changeset viewer.