- Timestamp:
- Oct 7, 2013 1:02:45 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r48832 r48920 80 80 /* Common variables: */ 81 81 , m_pMenuPool(0) 82 , m_machineStatePrevious(KMachineState_Null) 82 83 , m_machineState(session().GetMachine().GetState()) 83 84 #ifdef Q_WS_WIN … … 724 725 { 725 726 /* Store new data: */ 727 m_machineStatePrevious = m_machineState; 726 728 m_machineState = state; 727 729 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r48832 r48920 97 97 /* Common getters: */ 98 98 CSession& session() { return m_session; } 99 KMachineState machineStatePrevious() const { return m_machineStatePrevious; } 99 100 KMachineState machineState() const { return m_machineState; } 100 101 UIMachineLogic* machineLogic() const; … … 120 121 machineState() == KMachineState_LiveSnapshotting; } 121 122 bool isStuck() const { return machineState() == KMachineState_Stuck; } 123 bool wasPaused() const { return machineStatePrevious() == KMachineState_Paused || 124 machineStatePrevious() == KMachineState_TeleportingPausedVM; } 122 125 bool isFirstTimeStarted() const { return m_fIsFirstTimeStarted; } 123 126 bool isIgnoreRuntimeMediumsChanging() const { return m_fIsIgnoreRuntimeMediumsChanging; } … … 280 283 281 284 /* Common variables: */ 285 KMachineState m_machineStatePrevious; 282 286 KMachineState m_machineState; 283 287 QCursor m_cursor; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r46924 r48920 87 87 { 88 88 return m_pScreenLayout->hasHostScreenForGuestScreen(iScreenId); 89 } 90 91 void UIMachineLogicFullscreen::sltMachineStateChanged() 92 { 93 /* Call to base-class: */ 94 UIMachineLogic::sltMachineStateChanged(); 95 96 /* If machine-state changed from 'paused' to 'running': */ 97 if (uisession()->isRunning() && uisession()->wasPaused()) 98 { 99 /* We should rebuild screen-layout: */ 100 m_pScreenLayout->rebuild(); 101 /* We should update machine-windows sizes: */ 102 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 103 pMachineWindow->handleScreenResize(); 104 } 89 105 } 90 106 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r44982 r48920 46 46 private slots: 47 47 48 /* Handler: Console callback stuff: */ 49 void sltMachineStateChanged(); 50 48 51 #ifdef Q_WS_MAC 49 52 void sltChangePresentationMode(bool fEnabled); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r47523 r48920 101 101 } 102 102 103 void UIMachineLogicSeamless::sltMachineStateChanged() 104 { 105 /* Call to base-class: */ 106 UIMachineLogic::sltMachineStateChanged(); 107 108 /* If machine-state changed from 'paused' to 'running': */ 109 if (uisession()->isRunning() && uisession()->wasPaused()) 110 { 111 /* We should rebuild screen-layout: */ 112 m_pScreenLayout->rebuild(); 113 /* We should update machine-windows sizes: */ 114 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 115 pMachineWindow->handleScreenResize(); 116 } 117 } 118 103 119 void UIMachineLogicSeamless::sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo) 104 120 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h
r47523 r48920 49 49 private slots: 50 50 51 /* Handler: Console callback stuff: */ 52 void sltMachineStateChanged(); 53 51 54 void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo); 52 55 void sltHostScreenCountChanged(int cScreenCount);
Note:
See TracChangeset
for help on using the changeset viewer.