Changeset 28964 in vbox
- Timestamp:
- May 3, 2010 9:46:46 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60978
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r28800 r28964 27 27 /* Local includes */ 28 28 #include "VBoxGlobal.h" 29 #include "VBoxMiniToolBar.h" 29 #ifndef Q_WS_MAC 30 # include "VBoxMiniToolBar.h" 31 #endif /* Q_WS_MAC */ 30 32 31 33 #include "UIActionsPool.h" … … 44 46 , UIMachineWindow(pMachineLogic, uScreenId) 45 47 , m_pMainMenu(0) 48 #ifndef Q_WS_MAC 46 49 , m_pMiniToolBar(0) 50 #endif /* Q_WS_MAC */ 47 51 { 48 52 /* "This" is machine window: */ … … 72 76 73 77 /* Prepare mini tool-bar: */ 78 #ifndef Q_WS_MAC 74 79 prepareMiniToolBar(); 80 #endif /* Q_WS_MAC */ 75 81 76 82 /* Retranslate fullscreen window finally: */ … … 130 136 } 131 137 138 #ifndef Q_WS_MAC 132 139 void UIMachineWindowSeamless::sltUpdateMiniToolBarMask() 133 140 { … … 135 142 setMask(machineView()->lastVisibleRegion()); 136 143 } 144 #endif /* Q_WS_MAC */ 137 145 138 146 void UIMachineWindowSeamless::sltTryClose() … … 222 230 } 223 231 232 #ifndef Q_WS_MAC 224 233 void UIMachineWindowSeamless::prepareMiniToolBar() 225 234 { … … 250 259 } 251 260 } 261 #endif /* Q_WS_MAC */ 252 262 253 263 void UIMachineWindowSeamless::prepareMachineView() … … 292 302 void UIMachineWindowSeamless::saveWindowSettings() 293 303 { 304 #ifndef Q_WS_MAC 294 305 /* Get machine: */ 295 306 CMachine machine = session().GetConsole().GetMachine(); … … 301 312 machine.SetExtraData(VBoxDefs::GUI_MiniToolBarAutoHide, m_pMiniToolBar->isAutoHide() ? QString() : "off"); 302 313 } 314 #endif /* Q_WS_MAC */ 303 315 } 304 316 … … 325 337 326 338 /* If mini tool-bar is present: */ 339 #ifndef Q_WS_MAC 327 340 if (m_pMiniToolBar) 328 341 { … … 339 352 m_pMiniToolBar->setDisplayText(machine.GetName() + strSnapshotName); 340 353 } 354 #endif /* Q_WS_MAC */ 341 355 } 342 356 … … 369 383 370 384 /* Mini tool-bar: */ 385 #ifndef Q_WS_MAC 371 386 if (m_pMiniToolBar) 372 387 { … … 387 402 region += toolBarRegion; 388 403 } 404 #endif /* Q_WS_MAC */ 389 405 390 406 #if 0 // TODO: Is it really needed now? -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r28800 r28964 55 55 void sltPopupMainMenu(); 56 56 57 #ifndef RT_OS_DARWIN /* Something is *really* broken in regards of the moc here */ 57 58 /* Update mini tool-bar mask: */ 58 59 void sltUpdateMiniToolBarMask(); 60 #endif /* RT_OS_DARWIN */ 59 61 60 62 /* Close window reimplementation: */ … … 78 80 void prepareSeamless(); 79 81 void prepareMenu(); 82 #ifndef Q_WS_MAC 80 83 void prepareMiniToolBar(); 84 #endif /* Q_WS_MAC */ 81 85 void prepareMachineView(); 82 86 #ifdef Q_WS_MAC … … 87 91 void saveWindowSettings(); 88 92 void cleanupMachineView(); 93 #ifndef Q_WS_MAC 89 94 //void cleanupMiniToolBar() {} 95 #endif /* Q_WS_MAC */ 90 96 void cleanupMenu(); 91 97 //void cleanupSeamless() {} … … 100 106 /* Private variables: */ 101 107 QMenu *m_pMainMenu; 108 #ifndef Q_WS_MAC 102 109 VBoxMiniToolBar *m_pMiniToolBar; 110 #endif /* Q_WS_MAC */ 103 111 #ifdef Q_WS_WIN 104 112 QRegion m_prevRegion;
Note:
See TracChangeset
for help on using the changeset viewer.