Changeset 27015 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 4, 2010 12:25:45 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r27012 r27015 159 159 virtual void sltMousePointerShapeChanged(); 160 160 virtual void sltMouseCapabilityChanged(); 161 virtual void sltPerformGuestResize(const QSize & /* toSize */) {}; 161 162 162 163 /* Session callback handlers: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r26961 r27015 54 54 /* Cleanup machine window: */ 55 55 cleanupMachineWindow(); 56 57 /* Cleanup action related stuff */ 58 cleanupActionGroups(); 56 59 } 57 60 … … 109 112 } 110 113 114 /* Take the toggle hot key from the menu item. Since 115 * VBoxGlobal::extractKeyFromActionText gets exactly the 116 * linked key without the 'Host+' part we are adding it here. */ 117 QString hotKey = QString ("Host+%1") 118 .arg (VBoxGlobal::extractKeyFromActionText(actionsPool()->action(UIActionIndex_Toggle_Fullscreen)->text())); 119 Assert (!hotKey.isEmpty()); 120 121 /* Show the info message. */ 122 if (!vboxProblem().confirmGoingFullscreen(hotKey)) 123 return false; 124 111 125 return true; 112 126 } … … 161 175 menu->clear(); 162 176 menu->addAction(actionsPool()->action(UIActionIndex_Toggle_MouseIntegration)); 177 } 178 179 void UIMachineLogicFullscreen::prepareActionGroups() 180 { 181 UIMachineLogic::prepareActionGroups(); 182 183 /* Adjust window isn't allowed in fullscreen */ 184 actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setEnabled(false); 163 185 } 164 186 … … 303 325 } 304 326 327 void UIMachineLogicFullscreen::cleanupActionGroups() 328 { 329 /* Reenable adjust window */ 330 actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setEnabled(true); 331 } 332 305 333 #ifdef Q_WS_MAC 306 334 # ifdef QT_MAC_USE_COCOA -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r26955 r27015 55 55 56 56 /* Prepare helpers: */ 57 void prepareActionGroups(); 57 58 void prepareActionConnections(); 58 59 void prepareMachineWindows(); … … 61 62 void cleanupMachineWindow(); 62 63 void cleanupActionConnections() {} 64 void cleanupActionGroups(); 63 65 64 66 #ifdef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r27012 r27015 50 50 #endif 51 51 , uMonitor) 52 52 , m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked()) 53 53 , m_fShouldWeDoResize(false) 54 54 { … … 189 189 maybeRestrictMinimumSize(); 190 190 191 if (uisession()->isGuestSupportsGraphics() && m_bIsGuestAutoresizeEnabled) 192 sltPerformGuestResize(); 191 sltPerformGuestResize(); 193 192 } 194 193 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r27008 r27015 277 277 } 278 278 279 //#include "UIMachineViewFullscreen.h"280 279 void UIMachineWindowFullscreen::loadWindowSettings() 281 280 { 282 /* Load normal window settings: */283 // CMachine machine = session().GetMachine();284 285 281 /* Toggle console to manual resize mode. */ 286 // m_pMachineView->setMachineWindowResizeIgnored(true);287 282 m_pMachineView->setFrameBufferResizeIgnored(true); 288 283 … … 290 285 QPalette palette(centralWidget()->palette()); 291 286 palette.setColor(centralWidget()->backgroundRole(), Qt::black); 292 centralWidget()->setPalette 293 centralWidget()->setAutoFillBackground 294 setAutoFillBackground 287 centralWidget()->setPalette(palette); 288 centralWidget()->setAutoFillBackground(true); 289 setAutoFillBackground(true); 295 290 296 291 /* Here we are going really fullscreen */ … … 301 296 /* Make sure it is really on the right place (especially on the Mac) */ 302 297 move(0, 0); 303 304 // m_pMachineView->normalizeGeometry(true);305 // ((UIMachineViewFullscreen*)m_pMachineView)->sltPerformGuestResize(maximumSize());306 307 // QRect r = geometry();308 /* Load global settings: */309 {310 // VBoxGlobalSettings settings = vboxGlobal().settings();311 // menuBar()->setHidden(settings.isFeatureActive("noMenuBar"));312 }313 298 } 314 299 315 300 void UIMachineWindowFullscreen::saveWindowSettings() 316 301 { 317 // CMachine machine = session().GetMachine();318 319 /* Save extra-data settings: */320 {321 }322 302 } 323 303
Note:
See TracChangeset
for help on using the changeset viewer.