Changeset 50490 in vbox
- Timestamp:
- Feb 18, 2014 9:38:41 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92331
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r50354 r50490 397 397 popupCenter().showPopupStack(activeMachineWindow()); 398 398 } 399 } 400 401 void UIMachineLogic::sltChangeVisualStateToNormal() 402 { 403 uisession()->setRequestedVisualState(UIVisualStateType_Invalid); 404 uisession()->changeVisualState(UIVisualStateType_Normal); 405 } 406 407 void UIMachineLogic::sltChangeVisualStateToFullscreen() 408 { 409 uisession()->setRequestedVisualState(UIVisualStateType_Invalid); 410 uisession()->changeVisualState(UIVisualStateType_Fullscreen); 411 } 412 413 void UIMachineLogic::sltChangeVisualStateToSeamless() 414 { 415 uisession()->setRequestedVisualState(UIVisualStateType_Invalid); 416 uisession()->changeVisualState(UIVisualStateType_Seamless); 417 } 418 419 void UIMachineLogic::sltChangeVisualStateToScale() 420 { 421 uisession()->setRequestedVisualState(UIVisualStateType_Invalid); 422 uisession()->changeVisualState(UIVisualStateType_Scale); 399 423 } 400 424 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r50309 r50490 105 105 /** Checks if some visual-state type was requested. */ 106 106 virtual void sltCheckForRequestedVisualStateType() {} 107 108 /** Requests visual-state change to 'normal' (window). */ 109 virtual void sltChangeVisualStateToNormal(); 110 /** Requests visual-state change to 'fullscreen'. */ 111 virtual void sltChangeVisualStateToFullscreen(); 112 /** Requests visual-state change to 'seamless'. */ 113 virtual void sltChangeVisualStateToSeamless(); 114 /** Requests visual-state change to 'scale'. */ 115 virtual void sltChangeVisualStateToScale(); 107 116 108 117 /* Console callback handlers: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r50309 r50490 665 665 } 666 666 667 void UISession::sltChangeVisualStateToNormal()668 {669 /* Reset requests: */670 setRequestedVisualState(UIVisualStateType_Invalid);671 /* Request change: */672 m_pMachine->asyncChangeVisualState(UIVisualStateType_Normal);673 }674 675 void UISession::sltChangeVisualStateToFullscreen()676 {677 /* Reset requests: */678 setRequestedVisualState(UIVisualStateType_Invalid);679 /* Request change: */680 m_pMachine->asyncChangeVisualState(UIVisualStateType_Fullscreen);681 }682 683 void UISession::sltChangeVisualStateToSeamless()684 {685 /* Reset requests: */686 setRequestedVisualState(UIVisualStateType_Invalid);687 /* Request change: */688 m_pMachine->asyncChangeVisualState(UIVisualStateType_Seamless);689 }690 691 void UISession::sltChangeVisualStateToScale()692 {693 /* Reset requests: */694 setRequestedVisualState(UIVisualStateType_Invalid);695 /* Request change: */696 m_pMachine->asyncChangeVisualState(UIVisualStateType_Scale);697 }698 699 667 void UISession::sltCloseRuntimeUI() 700 668 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r50042 r50490 256 256 private slots: 257 257 258 /** Requests visual-state change to 'normal' (window). */259 void sltChangeVisualStateToNormal();260 /** Requests visual-state change to 'fullscreen'. */261 void sltChangeVisualStateToFullscreen();262 /** Requests visual-state change to 'seamless'. */263 void sltChangeVisualStateToSeamless();264 /** Requests visual-state change to 'scale'. */265 void sltChangeVisualStateToScale();266 267 258 /* Handler: Close Runtime UI stuff: */ 268 259 void sltCloseRuntimeUI(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r49698 r50490 181 181 /* "View" actions connections: */ 182 182 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 183 uisession(), SLOT(sltChangeVisualStateToNormal()));183 this, SLOT(sltChangeVisualStateToNormal())); 184 184 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 185 uisession(), SLOT(sltChangeVisualStateToSeamless()));185 this, SLOT(sltChangeVisualStateToSeamless())); 186 186 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 187 uisession(), SLOT(sltChangeVisualStateToScale()));187 this, SLOT(sltChangeVisualStateToScale())); 188 188 } 189 189 … … 266 266 /* "View" actions disconnections: */ 267 267 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 268 uisession(), SLOT(sltChangeVisualStateToNormal()));268 this, SLOT(sltChangeVisualStateToNormal())); 269 269 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 270 uisession(), SLOT(sltChangeVisualStateToSeamless()));270 this, SLOT(sltChangeVisualStateToSeamless())); 271 271 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 272 uisession(), SLOT(sltChangeVisualStateToScale()));272 this, SLOT(sltChangeVisualStateToScale())); 273 273 274 274 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r50309 r50490 107 107 /* "View" actions connections: */ 108 108 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 109 uisession(), SLOT(sltChangeVisualStateToFullscreen()));109 this, SLOT(sltChangeVisualStateToFullscreen())); 110 110 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 111 uisession(), SLOT(sltChangeVisualStateToSeamless()));111 this, SLOT(sltChangeVisualStateToSeamless())); 112 112 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 113 uisession(), SLOT(sltChangeVisualStateToScale()));113 this, SLOT(sltChangeVisualStateToScale())); 114 114 115 115 /* "Device" actions connections: */ … … 167 167 /* "View" actions disconnections: */ 168 168 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 169 uisession(), SLOT(sltChangeVisualStateToFullscreen()));169 this, SLOT(sltChangeVisualStateToFullscreen())); 170 170 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 171 uisession(), SLOT(sltChangeVisualStateToSeamless()));171 this, SLOT(sltChangeVisualStateToSeamless())); 172 172 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 173 uisession(), SLOT(sltChangeVisualStateToScale()));173 this, SLOT(sltChangeVisualStateToScale())); 174 174 175 175 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r49596 r50490 76 76 /* "View" actions connections: */ 77 77 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 78 uisession(), SLOT(sltChangeVisualStateToNormal()));78 this, SLOT(sltChangeVisualStateToNormal())); 79 79 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 80 uisession(), SLOT(sltChangeVisualStateToFullscreen()));80 this, SLOT(sltChangeVisualStateToFullscreen())); 81 81 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 82 uisession(), SLOT(sltChangeVisualStateToSeamless()));82 this, SLOT(sltChangeVisualStateToSeamless())); 83 83 } 84 84 … … 126 126 /* "View" actions disconnections: */ 127 127 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 128 uisession(), SLOT(sltChangeVisualStateToNormal()));128 this, SLOT(sltChangeVisualStateToNormal())); 129 129 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 130 uisession(), SLOT(sltChangeVisualStateToFullscreen()));130 this, SLOT(sltChangeVisualStateToFullscreen())); 131 131 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 132 uisession(), SLOT(sltChangeVisualStateToSeamless()));132 this, SLOT(sltChangeVisualStateToSeamless())); 133 133 134 134 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r49698 r50490 200 200 /* "View" actions connections: */ 201 201 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 202 uisession(), SLOT(sltChangeVisualStateToNormal()));202 this, SLOT(sltChangeVisualStateToNormal())); 203 203 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 204 uisession(), SLOT(sltChangeVisualStateToFullscreen()));204 this, SLOT(sltChangeVisualStateToFullscreen())); 205 205 connect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 206 uisession(), SLOT(sltChangeVisualStateToScale()));206 this, SLOT(sltChangeVisualStateToScale())); 207 207 } 208 208 … … 263 263 /* "View" actions disconnections: */ 264 264 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Seamless), SIGNAL(triggered(bool)), 265 uisession(), SLOT(sltChangeVisualStateToNormal()));265 this, SLOT(sltChangeVisualStateToNormal())); 266 266 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Fullscreen), SIGNAL(triggered(bool)), 267 uisession(), SLOT(sltChangeVisualStateToFullscreen()));267 this, SLOT(sltChangeVisualStateToFullscreen())); 268 268 disconnect(gActionPool->action(UIActionIndexRuntime_Toggle_Scale), SIGNAL(triggered(bool)), 269 uisession(), SLOT(sltChangeVisualStateToScale()));269 this, SLOT(sltChangeVisualStateToScale())); 270 270 271 271 /* Call to base-class: */
Note:
See TracChangeset
for help on using the changeset viewer.