Changeset 98419 in vbox for trunk/src/VBox
- Timestamp:
- Feb 2, 2023 9:13:56 AM (23 months ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3:79645-79692 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488 22 22 /trunk/src:92342,154921
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2/src/VBox:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3/src/VBox:79645-79692 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends
- Property svn:mergeinfo
-
old new 16 16 /branches/dsen/gui2/src/VBox/Frontends:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 17 17 /branches/dsen/gui3/src/VBox/Frontends:79645-79692 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98404 r98419 422 422 void UIMachineLogic::sltChangeVisualStateToNormal() 423 423 { 424 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);425 ui session()->changeVisualState(UIVisualStateType_Normal);424 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 425 uimachine()->asyncChangeVisualState(UIVisualStateType_Normal); 426 426 } 427 427 428 428 void UIMachineLogic::sltChangeVisualStateToFullscreen() 429 429 { 430 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);431 ui session()->changeVisualState(UIVisualStateType_Fullscreen);430 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 431 uimachine()->asyncChangeVisualState(UIVisualStateType_Fullscreen); 432 432 } 433 433 434 434 void UIMachineLogic::sltChangeVisualStateToSeamless() 435 435 { 436 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);437 ui session()->changeVisualState(UIVisualStateType_Seamless);436 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 437 uimachine()->asyncChangeVisualState(UIVisualStateType_Seamless); 438 438 } 439 439 440 440 void UIMachineLogic::sltChangeVisualStateToScale() 441 441 { 442 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);443 ui session()->changeVisualState(UIVisualStateType_Scale);442 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 443 uimachine()->asyncChangeVisualState(UIVisualStateType_Scale); 444 444 } 445 445 … … 585 585 /* Update action states: */ 586 586 LogRel3(("GUI: UIMachineLogic::sltAdditionsStateChanged: Adjusting actions availability according to GA state.\n")); 587 actionPool()->action(UIActionIndexRT_M_View_T_Seamless)->setEnabled(ui session()->isVisualStateAllowed(UIVisualStateType_Seamless) &&587 actionPool()->action(UIActionIndexRT_M_View_T_Seamless)->setEnabled(uimachine()->isVisualStateAllowed(UIVisualStateType_Seamless) && 588 588 uisession()->isGuestSupportsSeamless()); 589 589 } … … 2706 2706 * but is not entered because we're waiting for a guest addition permission. */ 2707 2707 if ( visualStateType() != enmRequestedState 2708 && ui session()->requestedVisualState() != enmRequestedState)2708 && uimachine()->requestedVisualState() != enmRequestedState) 2709 2709 { 2710 2710 switch (enmRequestedState) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r98404 r98419 687 687 { 688 688 /* Enter 'full-screen' mode: */ 689 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);690 ui session()->changeVisualState(UIVisualStateType_Fullscreen);689 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 690 uimachine()->asyncChangeVisualState(UIVisualStateType_Fullscreen); 691 691 } 692 692 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98404 r98419 265 265 { 266 266 return machineLogic() ? machineLogic()->activeMachineWindow() : 0; 267 }268 269 bool UISession::isVisualStateAllowed(UIVisualStateType state) const270 {271 return uimachine()->isVisualStateAllowed(state);272 }273 274 void UISession::changeVisualState(UIVisualStateType visualStateType)275 {276 uimachine()->asyncChangeVisualState(visualStateType);277 }278 279 void UISession::setRequestedVisualState(UIVisualStateType visualStateType)280 {281 uimachine()->setRequestedVisualState(visualStateType);282 }283 284 UIVisualStateType UISession::requestedVisualState() const285 {286 return uimachine()->requestedVisualState();287 267 } 288 268 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98404 r98419 176 176 UIMachineWindow *activeMachineWindow() const; 177 177 178 /** Returns whether visual @a state is allowed. */179 bool isVisualStateAllowed(UIVisualStateType state) const;180 /** Requests visual-state change. */181 void changeVisualState(UIVisualStateType visualStateType);182 /** Requests visual-state to be entered when possible. */183 void setRequestedVisualState(UIVisualStateType visualStateType);184 /** Returns requested visual-state to be entered when possible. */185 UIVisualStateType requestedVisualState() const;186 187 178 bool isSaved() const { return machineState() == KMachineState_Saved || 188 179 machineState() == KMachineState_AbortedSaved; } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r98404 r98419 246 246 247 247 /* Change visual-state to requested: */ 248 UIVisualStateType type = ui session()->requestedVisualState();248 UIVisualStateType type = uimachine()->requestedVisualState(); 249 249 if (type == UIVisualStateType_Invalid) 250 250 type = UIVisualStateType_Normal; 251 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);252 ui session()->changeVisualState(type);251 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 252 uimachine()->asyncChangeVisualState(type); 253 253 } 254 254 } … … 286 286 287 287 /* Ask session to change 'fullscreen' mode to 'normal': */ 288 ui session()->setRequestedVisualState(UIVisualStateType_Normal);288 uimachine()->setRequestedVisualState(UIVisualStateType_Normal); 289 289 290 290 /* If session already initialized => push mode-change directly: */ … … 303 303 { 304 304 /* Request 'normal' (window) visual-state: */ 305 ui session()->setRequestedVisualState(UIVisualStateType_Normal);305 uimachine()->setRequestedVisualState(UIVisualStateType_Normal); 306 306 /* Ask window(s) to exit 'fullscreen' mode: */ 307 307 emit sigNotifyAboutNativeFullscreenShouldBeExited(); … … 318 318 { 319 319 /* Request 'seamless' visual-state: */ 320 ui session()->setRequestedVisualState(UIVisualStateType_Seamless);320 uimachine()->setRequestedVisualState(UIVisualStateType_Seamless); 321 321 /* Ask window(s) to exit 'fullscreen' mode: */ 322 322 emit sigNotifyAboutNativeFullscreenShouldBeExited(); … … 333 333 { 334 334 /* Request 'scale' visual-state: */ 335 ui session()->setRequestedVisualState(UIVisualStateType_Scale);335 uimachine()->setRequestedVisualState(UIVisualStateType_Scale); 336 336 /* Ask window(s) to exit 'fullscreen' mode: */ 337 337 emit sigNotifyAboutNativeFullscreenShouldBeExited(); … … 342 342 { 343 343 LogRel(("GUI: UIMachineLogicFullscreen::sltCheckForRequestedVisualStateType: Requested-state=%d, Machine-state=%d\n", 344 ui session()->requestedVisualState(), uisession()->machineState()));344 uimachine()->requestedVisualState(), uisession()->machineState())); 345 345 346 346 /* Do not try to change visual-state type if machine was not started yet: */ … … 353 353 354 354 /* Check requested visual-state types: */ 355 switch (ui session()->requestedVisualState())355 switch (uimachine()->requestedVisualState()) 356 356 { 357 357 /* If 'normal' visual-state type is requested: */ … … 360 360 LogRel(("GUI: UIMachineLogicFullscreen::sltCheckForRequestedVisualStateType: " 361 361 "Going 'normal' as requested...\n")); 362 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);363 ui session()->changeVisualState(UIVisualStateType_Normal);362 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 363 uimachine()->asyncChangeVisualState(UIVisualStateType_Normal); 364 364 break; 365 365 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r98404 r98419 73 73 { 74 74 LogRel(("GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=%d, Machine-state=%d\n", 75 ui session()->requestedVisualState(), uisession()->machineState()));75 uimachine()->requestedVisualState(), uisession()->machineState())); 76 76 77 77 /* Do not try to change visual-state type if machine was not started yet: */ … … 84 84 85 85 /* Check requested visual-state types: */ 86 switch (ui session()->requestedVisualState())86 switch (uimachine()->requestedVisualState()) 87 87 { 88 88 /* If 'seamless' visual-state type is requested: */ … … 94 94 LogRel(("GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: " 95 95 "Going 'seamless' as requested...\n")); 96 ui session()->setRequestedVisualState(UIVisualStateType_Invalid);97 ui session()->changeVisualState(UIVisualStateType_Seamless);96 uimachine()->setRequestedVisualState(UIVisualStateType_Invalid); 97 uimachine()->asyncChangeVisualState(UIVisualStateType_Seamless); 98 98 } 99 99 else -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r98386 r98419 150 150 { 151 151 /* Skip if another visual representation mode requested: */ 152 if (ui session()->requestedVisualState() == UIVisualStateType_Seamless) // Seamless only for now.152 if (uimachine()->requestedVisualState() == UIVisualStateType_Seamless) // Seamless only for now. 153 153 return; 154 154 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r98404 r98419 39 39 #include "UIMachineWindow.h" 40 40 #include "UIMessageCenter.h" 41 #include "UISession.h"42 41 #include "UIShortcutPool.h" 43 42 #ifndef VBOX_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r98386 r98419 39 39 #include "UIMachineViewScale.h" 40 40 #include "UIMachineWindow.h" 41 #include "UISession.h"42 41 43 42 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r98386 r98419 44 44 #include "UIMachineView.h" 45 45 #include "UINotificationCenter.h" 46 #include "UISession.h"47 46 #ifdef VBOX_WS_MAC 48 47 # include "VBoxUtils.h" -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r98404 r98419 118 118 { 119 119 LogRel(("GUI: UIMachineLogicSeamless::sltCheckForRequestedVisualStateType: Requested-state=%d, Machine-state=%d\n", 120 ui session()->requestedVisualState(), uisession()->machineState()));120 uimachine()->requestedVisualState(), uisession()->machineState())); 121 121 122 122 /* Do not try to change visual-state type if machine was not started yet: */ … … 133 133 LogRel(("GUI: UIMachineLogicSeamless::sltCheckForRequestedVisualStateType: " 134 134 "Leaving 'seamless' as it is no more supported...\n")); 135 ui session()->setRequestedVisualState(UIVisualStateType_Seamless);136 ui session()->changeVisualState(UIVisualStateType_Normal);135 uimachine()->setRequestedVisualState(UIVisualStateType_Seamless); 136 uimachine()->asyncChangeVisualState(UIVisualStateType_Normal); 137 137 } 138 138 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r98386 r98419 40 40 #include "UIMachineView.h" 41 41 #include "UIMachineWindowSeamless.h" 42 #include "UISession.h"43 42 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 44 43 # include "UIMachineDefs.h"
Note:
See TracChangeset
for help on using the changeset viewer.