儲存庫 vbox 的更動 63054
- 時間撮記:
- 2016-8-5 下午03:37:38 (8 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src
- 檔案:
-
- 修改 23 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/UIVMLogViewer.cpp
r62493 r63054 42 42 # include "UISpecialControls.h" 43 43 # include "UIVMLogViewer.h" 44 # include "UIDesktopWidgetWatchdog.h" 44 45 # include "VBoxGlobal.h" 45 46 # include "VBoxUtils.h" … … 1013 1014 { 1014 1015 /* Getting available geometry to calculate default geometry: */ 1015 const QRect desktopRect = vboxGlobal().availableGeometry(this);1016 const QRect desktopRect = gpDesktop->availableGeometry(this); 1016 1017 int iDefaultWidth = desktopRect.width() / 2; 1017 1018 int iDefaultHeight = desktopRect.height() * 3 / 4; -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.cpp
r62493 r63054 30 30 # include "QIArrowButtonSwitch.h" 31 31 # include "QIArrowButtonPress.h" 32 # include "UIDesktopWidgetWatchdog.h" 32 33 # include "UIIconPool.h" 33 # include "VBoxGlobal.h"34 34 35 35 /* Other VBox includes: */ … … 83 83 84 84 /* Get 40% of the screen-area to limit the resulting hint: */ 85 const QSize screenGeometryDot4 = vboxGlobal().screenGeometry(this).size() * .4;85 const QSize screenGeometryDot4 = gpDesktop->screenGeometry(this).size() * .4; 86 86 87 87 /* Calculate minimum size-hint which is document-size limited by screen-area: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r62493 r63054 39 39 40 40 /* GUI includes: */ 41 # include "UIDesktopWidgetWatchdog.h" 41 42 # include "UIExtraDataManager.h" 42 43 # include "UIMainEventListener.h" … … 2428 2429 2429 2430 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 2430 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) :2431 vboxGlobal().availableGeometry();2431 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 2432 gpDesktop->availableGeometry(); 2432 2433 2433 2434 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ … … 3640 3641 3641 3642 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 3642 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) :3643 vboxGlobal().availableGeometry();3643 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 3644 gpDesktop->availableGeometry(); 3644 3645 3645 3646 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ … … 3799 3800 3800 3801 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 3801 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) :3802 vboxGlobal().availableGeometry();3802 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 3803 gpDesktop->availableGeometry(); 3803 3804 3804 3805 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ … … 3918 3919 #ifdef VBOX_WS_WIN 3919 3920 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 3920 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) :3921 vboxGlobal().availableGeometry();3921 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 3922 gpDesktop->availableGeometry(); 3922 3923 3923 3924 /* Make sure resulting geometry is within current bounds: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r63044 r63054 339 339 #endif /* VBOX_WS_MAC */ 340 340 341 int VBoxGlobal::screenCount() const342 {343 /* Redirect call to QDesktopWidget: */344 return QApplication::desktop()->screenCount();345 }346 347 int VBoxGlobal::screenNumber(const QWidget *pWidget) const348 {349 /* Redirect call to QDesktopWidget: */350 return QApplication::desktop()->screenNumber(pWidget);351 }352 353 int VBoxGlobal::screenNumber(const QPoint &point) const354 {355 /* Redirect call to QDesktopWidget: */356 return QApplication::desktop()->screenNumber(point);357 }358 359 const QRect VBoxGlobal::screenGeometry(int iHostScreenIndex /* = -1 */) const360 {361 #ifdef VBOX_WS_X11362 /* Make sure desktop-widget watchdog already created: */363 AssertPtrReturn(gpDesktop, QApplication::desktop()->screenGeometry(iHostScreenIndex));364 /* Redirect call to UIDesktopWidgetWatchdog: */365 return gpDesktop->screenGeometry(iHostScreenIndex);366 #endif /* VBOX_WS_X11 */367 368 /* Redirect call to QDesktopWidget: */369 return QApplication::desktop()->screenGeometry(iHostScreenIndex);370 }371 372 const QRect VBoxGlobal::availableGeometry(int iHostScreenIndex /* = -1 */) const373 {374 #ifdef VBOX_WS_X11375 /* Make sure desktop-widget watchdog already created: */376 AssertPtrReturn(gpDesktop, QApplication::desktop()->availableGeometry(iHostScreenIndex));377 /* Redirect call to UIDesktopWidgetWatchdog: */378 return gpDesktop->availableGeometry(iHostScreenIndex);379 #endif /* VBOX_WS_X11 */380 381 /* Redirect call to QDesktopWidget: */382 return QApplication::desktop()->availableGeometry(iHostScreenIndex);383 }384 385 const QRect VBoxGlobal::screenGeometry(const QWidget *pWidget) const386 {387 /* Redirect call to existing wrapper: */388 return screenGeometry(screenNumber(pWidget));389 }390 391 const QRect VBoxGlobal::availableGeometry(const QWidget *pWidget) const392 {393 /* Redirect call to existing wrapper: */394 return availableGeometry(screenNumber(pWidget));395 }396 397 const QRect VBoxGlobal::screenGeometry(const QPoint &point) const398 {399 /* Redirect call to existing wrapper: */400 return screenGeometry(screenNumber(point));401 }402 403 const QRect VBoxGlobal::availableGeometry(const QPoint &point) const404 {405 /* Redirect call to existing wrapper: */406 return availableGeometry(screenNumber(point));407 }408 409 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000410 bool VBoxGlobal::isFakeScreenDetected() const411 {412 // WORKAROUND:413 // In 5.6.1 Qt devs taught the XCB plugin to silently swap last detached screen414 // with a fake one, and there is no API-way to distinguish fake from real one415 // because all they do is erasing output for the last real screen, keeping416 // all other screen attributes stale. Gladly output influencing screen name417 // so we can use that horrible workaround to detect a fake XCB screen.418 return qApp->screens().size() == 0 /* zero-screen case is impossible after 5.6.1 */419 || (qApp->screens().size() == 1 && qApp->screens().first()->name() == ":0.0");420 }421 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */422 423 341 /** 424 342 * Sets the new global settings and saves them to the VirtualBox server. -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r63044 r63054 142 142 /** Returns the thread-pool instance. */ 143 143 UIThreadPool* threadPool() const { return m_pThreadPool; } 144 145 /** @name Host-screen geometry stuff146 * @{ */147 /** Returns the number of host-screens currently available on the system. */148 int screenCount() const;149 150 /** Returns the index of the screen which contains contains @a pWidget. */151 int screenNumber(const QWidget *pWidget) const;152 /** Returns the index of the screen which contains contains @a point. */153 int screenNumber(const QPoint &point) const;154 155 /** Returns the geometry of the host-screen with @a iHostScreenIndex.156 * @note The default screen is used if @a iHostScreenIndex is -1. */157 const QRect screenGeometry(int iHostScreenIndex = -1) const;158 /** Returns the available-geometry of the host-screen with @a iHostScreenIndex.159 * @note The default screen is used if @a iHostScreenIndex is -1. */160 const QRect availableGeometry(int iHostScreenIndex = -1) const;161 162 /** Returns the geometry of the host-screen which contains @a pWidget. */163 const QRect screenGeometry(const QWidget *pWidget) const;164 /** Returns the available-geometry of the host-screen which contains @a pWidget. */165 const QRect availableGeometry(const QWidget *pWidget) const;166 167 /** Returns the geometry of the host-screen which contains @a point. */168 const QRect screenGeometry(const QPoint &point) const;169 /** Returns the available-geometry of the host-screen which contains @a point. */170 const QRect availableGeometry(const QPoint &point) const;171 172 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000173 /** Qt5: X11: Returns whether no or fake screen detected. */174 bool isFakeScreenDetected() const;175 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */176 /** @} */177 144 178 145 VBoxGlobalSettings &settings() { return gset; } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r62493 r63054 29 29 /* GUI includes: */ 30 30 # include "VBoxGlobal.h" 31 # include "UIDesktopWidgetWatchdog.h" 31 32 # include "UIExtraDataManager.h" 32 33 # include "UIMessageCenter.h" … … 1437 1438 { 1438 1439 /* Get current host-screen number: */ 1439 const int iCurrentHostScreenNumber = vboxGlobal().screenNumber(this);1440 const int iCurrentHostScreenNumber = gpDesktop->screenNumber(this); 1440 1441 if (m_iHostScreenNumber != iCurrentHostScreenNumber) 1441 1442 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r62493 r63054 27 27 /* GUI includes: */ 28 28 # include "VBoxGlobal.h" 29 # include "UIDesktopWidgetWatchdog.h" 29 30 # include "UIExtraDataManager.h" 30 31 # include "UIMessageCenter.h" … … 184 185 QPoint visibleRectanglePos = m_views[m_iMouseCaptureViewIndex]->mapToGlobal(m_viewports[m_iMouseCaptureViewIndex]->pos()); 185 186 visibleRectangle.translate(visibleRectanglePos); 186 visibleRectangle = visibleRectangle.intersected( vboxGlobal().availableGeometry(machineLogic()->machineWindows()[m_iMouseCaptureViewIndex]));187 visibleRectangle = visibleRectangle.intersected(gpDesktop->availableGeometry(machineLogic()->machineWindows()[m_iMouseCaptureViewIndex])); 187 188 188 189 #ifdef VBOX_WS_WIN … … 1119 1120 viewportRectangle.translate(viewportRectangleGlobalPos); 1120 1121 /* Trim full-viewport-rectangle by available geometry: */ 1121 viewportRectangle = viewportRectangle.intersected( vboxGlobal().availableGeometry(machineLogic()->machineWindows()[m_iMouseCaptureViewIndex]));1122 viewportRectangle = viewportRectangle.intersected(gpDesktop->availableGeometry(machineLogic()->machineWindows()[m_iMouseCaptureViewIndex])); 1122 1123 /* Trim partial-viewport-rectangle by top-most windows: */ 1123 1124 QRegion viewportRegion(viewportRectangle); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp
r62493 r63054 33 33 # include "UIMessageCenter.h" 34 34 # include "UIExtraDataManager.h" 35 # include "UIDesktopWidgetWatchdog.h" 35 36 # include "VBoxGlobal.h" 36 37 … … 99 100 QPoint topLeftPosition(geo.topLeft()); 100 101 /* Check which host-screen the position belongs to: */ 101 iHostScreen = vboxGlobal().screenNumber(topLeftPosition);102 iHostScreen = gpDesktop->screenNumber(topLeftPosition); 102 103 /* Revalidate: */ 103 104 fValid = iHostScreen >= 0 && iHostScreen < m_cHostScreens /* In the host screen bounds? */ … … 257 258 void UIMultiScreenLayout::calculateHostMonitorCount() 258 259 { 259 m_cHostScreens = vboxGlobal().screenCount();260 m_cHostScreens = gpDesktop->screenCount(); 260 261 } 261 262 … … 296 297 QRect screen; 297 298 if (m_pMachineLogic->visualStateType() == UIVisualStateType_Seamless) 298 screen = vboxGlobal().availableGeometry(screenLayout.value(iGuestScreen, 0));299 screen = gpDesktop->availableGeometry(screenLayout.value(iGuestScreen, 0)); 299 300 else 300 screen = vboxGlobal().screenGeometry(screenLayout.value(iGuestScreen, 0));301 screen = gpDesktop->screenGeometry(screenLayout.value(iGuestScreen, 0)); 301 302 KGuestMonitorStatus monitorStatus = KGuestMonitorStatus_Enabled; 302 303 display.GetScreenResolution(iGuestScreen, width, height, guestBpp, xOrigin, yOrigin, monitorStatus); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r62588 r63054 31 31 /* GUI includes: */ 32 32 # include "VBoxGlobal.h" 33 # include "UIDesktopWidgetWatchdog.h" 33 34 # include "UIExtraDataManager.h" 34 35 # include "UISession.h" … … 841 842 842 843 /* Check if display count changed: */ 843 if ( vboxGlobal().screenCount() != m_hostScreens.size())844 if (gpDesktop->screenCount() != m_hostScreens.size()) 844 845 { 845 846 /* Reset watchdog: */ … … 851 852 { 852 853 /* Check if at least one display geometry changed: */ 853 for (int iScreenIndex = 0; iScreenIndex < vboxGlobal().screenCount(); ++iScreenIndex)854 { 855 if ( vboxGlobal().screenGeometry(iScreenIndex) != m_hostScreens.at(iScreenIndex))854 for (int iScreenIndex = 0; iScreenIndex < gpDesktop->screenCount(); ++iScreenIndex) 855 { 856 if (gpDesktop->screenGeometry(iScreenIndex) != m_hostScreens.at(iScreenIndex)) 856 857 { 857 858 /* Reset watchdog: */ … … 2197 2198 { 2198 2199 m_hostScreens.clear(); 2199 for (int iScreenIndex = 0; iScreenIndex < vboxGlobal().screenCount(); ++iScreenIndex)2200 m_hostScreens << vboxGlobal().screenGeometry(iScreenIndex);2200 for (int iScreenIndex = 0; iScreenIndex < gpDesktop->screenCount(); ++iScreenIndex) 2201 m_hostScreens << gpDesktop->screenGeometry(iScreenIndex); 2201 2202 } 2202 2203 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r62493 r63054 25 25 /* GUI includes: */ 26 26 # include "VBoxGlobal.h" 27 # include "UIDesktopWidgetWatchdog.h" 27 28 # include "UIMessageCenter.h" 28 29 # include "UISession.h" … … 766 767 /* Variables to compare: */ 767 768 const int iWantedHostScreenIndex = hostScreenForGuestScreen((int)uScreenID); 768 const int iCurrentHostScreenIndex = vboxGlobal().screenNumber(pMachineWindow);769 const int iCurrentHostScreenIndex = gpDesktop->screenNumber(pMachineWindow); 769 770 const QSize frameBufferSize((int)uisession()->frameBuffer(uScreenID)->width(), (int)uisession()->frameBuffer(uScreenID)->height()); 770 const QSize screenSize = vboxGlobal().screenGeometry(iWantedHostScreenIndex).size();771 const QSize screenSize = gpDesktop->screenGeometry(iWantedHostScreenIndex).size(); 771 772 772 773 /* If that window -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r62493 r63054 29 29 30 30 /* GUI includes: */ 31 # include "VBoxGlobal.h"32 31 # include "UISession.h" 33 32 # include "UIActionPoolRuntime.h" … … 37 36 # include "UIFrameBuffer.h" 38 37 # include "UIExtraDataManager.h" 38 # include "UIDesktopWidgetWatchdog.h" 39 40 /* Other VBox includes: */ 41 # include "VBox/log.h" 39 42 40 43 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 212 215 int iScreen = static_cast<UIMachineLogicFullscreen*>(machineLogic())->hostScreenForGuestScreen(screenId()); 213 216 /* Return available geometry for that screen: */ 214 return vboxGlobal().screenGeometry(iScreen);217 return gpDesktop->screenGeometry(iScreen); 215 218 } 216 219 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r62493 r63054 31 31 /* GUI includes: */ 32 32 # include "VBoxGlobal.h" 33 # include "UIDesktopWidgetWatchdog.h" 33 34 # include "UIExtraDataManager.h" 34 35 # include "UISession.h" … … 321 322 const int iHostScreen = pFullscreenLogic->hostScreenForGuestScreen(m_uScreenId); 322 323 /* And corresponding working area: */ 323 const QRect workingArea = vboxGlobal().screenGeometry(iHostScreen);324 const QRect workingArea = gpDesktop->screenGeometry(iHostScreen); 324 325 Q_UNUSED(workingArea); 325 326 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r62917 r63054 27 27 /* GUI includes: */ 28 28 # include "VBoxGlobal.h" 29 # include "UIDesktopWidgetWatchdog.h" 29 30 # include "UIMessageCenter.h" 30 31 # include "UISession.h" … … 255 256 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 256 257 /* Prevent handling if fake screen detected: */ 257 if ( vboxGlobal().isFakeScreenDetected())258 if (gpDesktop->isFakeScreenDetected()) 258 259 return; 259 260 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r62493 r63054 28 28 29 29 /* GUI includes: */ 30 # include "VBoxGlobal.h"31 30 # include "UISession.h" 32 31 # include "UIActionPoolRuntime.h" … … 34 33 # include "UIMachineWindow.h" 35 34 # include "UIMachineViewNormal.h" 35 # include "UIFrameBuffer.h" 36 36 # include "UIExtraDataManager.h" 37 # include "UIFrameBuffer.h" 37 # include "UIDesktopWidgetWatchdog.h" 38 39 /* Other VBox includes: */ 40 # include "VBox/log.h" 38 41 39 42 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 255 258 QRect UIMachineViewNormal::workingArea() const 256 259 { 257 return vboxGlobal().availableGeometry(this);260 return gpDesktop->availableGeometry(this); 258 261 } 259 262 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r62917 r63054 29 29 /* GUI includes: */ 30 30 # include "VBoxGlobal.h" 31 # include "UIDesktopWidgetWatchdog.h" 31 32 # include "UIMachineWindowNormal.h" 32 33 # include "UIActionPoolRuntime.h" … … 392 393 { 393 394 /* Get available geometry, for screen with (x,y) coords if possible: */ 394 QRect availableGeo = !geo.isNull() ? vboxGlobal().availableGeometry(QPoint(geo.x(), geo.y())) :395 vboxGlobal().availableGeometry(this);395 QRect availableGeo = !geo.isNull() ? gpDesktop->availableGeometry(QPoint(geo.x(), geo.y())) : 396 gpDesktop->availableGeometry(this); 396 397 397 398 /* Normalize to the optimal size: */ … … 464 465 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 465 466 /* Prevent handling if fake screen detected: */ 466 if ( vboxGlobal().isFakeScreenDetected())467 if (gpDesktop->isFakeScreenDetected()) 467 468 break; 468 469 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ … … 484 485 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 485 486 /* Prevent handling if fake screen detected: */ 486 if ( vboxGlobal().isFakeScreenDetected())487 if (gpDesktop->isFakeScreenDetected()) 487 488 break; 488 489 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ … … 571 572 /* Calculate common bound region: */ 572 573 QRegion region; 573 for (int iScreenIndex = 0; iScreenIndex < vboxGlobal().screenCount(); ++iScreenIndex)574 for (int iScreenIndex = 0; iScreenIndex < gpDesktop->screenCount(); ++iScreenIndex) 574 575 { 575 576 /* Get enumerated screen's available area: */ 576 QRect rect = vboxGlobal().availableGeometry(iScreenIndex);577 QRect rect = gpDesktop->availableGeometry(iScreenIndex); 577 578 #ifdef VBOX_WS_WIN 578 579 /* On Windows host window can exceed the available -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r62917 r63054 27 27 /* GUI includes: */ 28 28 # include "VBoxGlobal.h" 29 # include "UIDesktopWidgetWatchdog.h" 29 30 # include "UIMessageCenter.h" 30 31 # include "UISession.h" … … 79 80 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 80 81 /* Prevent handling if fake screen detected: */ 81 if ( vboxGlobal().isFakeScreenDetected())82 if (gpDesktop->isFakeScreenDetected()) 82 83 return; 83 84 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r62493 r63054 30 30 # include "UIMachineWindow.h" 31 31 # include "UIMachineViewScale.h" 32 # include "UIFrameBuffer.h" 32 33 # include "UIExtraDataManager.h" 33 # include "UI FrameBuffer.h"34 # include "UIDesktopWidgetWatchdog.h" 34 35 35 36 /* COM includes: */ … … 38 39 39 40 /* Other VBox includes: */ 40 #include <VBox/VBoxOGL.h> 41 # include "VBox/log.h" 42 # include <VBox/VBoxOGL.h> 41 43 42 44 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 168 170 QRect UIMachineViewScale::workingArea() const 169 171 { 170 return vboxGlobal().availableGeometry(this);172 return gpDesktop->availableGeometry(this); 171 173 } 172 174 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r62917 r63054 28 28 /* GUI includes: */ 29 29 # include "VBoxGlobal.h" 30 # include "UIDesktopWidgetWatchdog.h" 30 31 # include "UIExtraDataManager.h" 31 32 # include "UISession.h" … … 112 113 { 113 114 /* Get available geometry, for screen with (x,y) coords if possible: */ 114 QRect availableGeo = !geo.isNull() ? vboxGlobal().availableGeometry(QPoint(geo.x(), geo.y())) :115 vboxGlobal().availableGeometry(this);115 QRect availableGeo = !geo.isNull() ? gpDesktop->availableGeometry(QPoint(geo.x(), geo.y())) : 116 gpDesktop->availableGeometry(this); 116 117 117 118 /* Resize to default size: */ … … 182 183 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 183 184 /* Prevent handling if fake screen detected: */ 184 if ( vboxGlobal().isFakeScreenDetected())185 if (gpDesktop->isFakeScreenDetected()) 185 186 break; 186 187 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ … … 201 202 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 202 203 /* Prevent handling if fake screen detected: */ 203 if ( vboxGlobal().isFakeScreenDetected())204 if (gpDesktop->isFakeScreenDetected()) 204 205 break; 205 206 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r62493 r63054 29 29 30 30 /* GUI includes: */ 31 # include "VBoxGlobal.h"32 31 # include "UISession.h" 33 32 # include "UIMachineLogicSeamless.h" … … 36 35 # include "UIFrameBuffer.h" 37 36 # include "UIExtraDataManager.h" 37 # include "UIDesktopWidgetWatchdog.h" 38 38 39 39 /* COM includes: */ 40 40 # include "CConsole.h" 41 41 # include "CDisplay.h" 42 43 /* Other VBox includes: */ 44 # include "VBox/log.h" 42 45 43 46 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 217 220 int iScreen = static_cast<UIMachineLogicSeamless*>(machineLogic())->hostScreenForGuestScreen(screenId()); 218 221 /* Return available geometry for that screen: */ 219 return vboxGlobal().availableGeometry(iScreen);222 return gpDesktop->availableGeometry(iScreen); 220 223 } 221 224 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r62493 r63054 26 26 /* GUI includes: */ 27 27 # include "VBoxGlobal.h" 28 # include "UIDesktopWidgetWatchdog.h" 28 29 # include "UIExtraDataManager.h" 29 30 # include "UISession.h" … … 174 175 const int iHostScreen = qobject_cast<UIMachineLogicSeamless*>(machineLogic())->hostScreenForGuestScreen(m_uScreenId); 175 176 /* And corresponding working area: */ 176 const QRect workingArea = vboxGlobal().availableGeometry(iHostScreen);177 const QRect workingArea = gpDesktop->availableGeometry(iHostScreen); 177 178 178 179 /* Set appropriate geometry for window: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r62929 r63054 67 67 # include "UIVMItem.h" 68 68 # include "UIExtraDataManager.h" 69 # include "UIDesktopWidgetWatchdog.h" 69 70 # include "VBoxGlobal.h" 70 71 # ifdef VBOX_WS_MAC … … 142 143 { 143 144 /* Prevent handling if fake screen detected: */ 144 if ( vboxGlobal().isFakeScreenDetected())145 if (gpDesktop->isFakeScreenDetected()) 145 146 return; 146 147 … … 1084 1085 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 1085 1086 /* Prevent handling if fake screen detected: */ 1086 if ( vboxGlobal().isFakeScreenDetected())1087 if (gpDesktop->isFakeScreenDetected()) 1087 1088 break; 1088 1089 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ … … 1099 1100 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 1100 1101 /* Prevent handling if fake screen detected: */ 1101 if ( vboxGlobal().isFakeScreenDetected())1102 if (gpDesktop->isFakeScreenDetected()) 1102 1103 break; 1103 1104 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r62493 r63054 23 23 # include "QIWidgetValidator.h" 24 24 # include "UIMachineSettingsDisplay.h" 25 # include "UIDesktopWidgetWatchdog.h" 25 26 # include "UIExtraDataManager.h" 26 27 # include "UIConverter.h" … … 763 764 m_iMaxVRAM = sys.GetMaxGuestVRAM(); 764 765 m_iMaxVRAMVisible = m_iMaxVRAM; 765 const uint cHostScreens = vboxGlobal().screenCount();766 const uint cHostScreens = gpDesktop->screenCount(); 766 767 m_pSliderVideoMemorySize->setMinimum(m_iMinVRAM); 767 768 m_pSliderVideoMemorySize->setMaximum(m_iMaxVRAMVisible); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r62493 r63054 42 42 # include "UIAnimationFramework.h" 43 43 # include "UIIconPool.h" 44 # include "UIDesktopWidgetWatchdog.h" 44 45 # include "VBoxGlobal.h" 45 46 # ifdef VBOX_WS_X11 … … 642 643 switch (m_geometryType) 643 644 { 644 case GeometryType_Available: workingArea = vboxGlobal().availableGeometry(iHostScreen); break;645 case GeometryType_Full: workingArea = vboxGlobal().screenGeometry(iHostScreen); break;645 case GeometryType_Available: workingArea = gpDesktop->availableGeometry(iHostScreen); break; 646 case GeometryType_Full: workingArea = gpDesktop->screenGeometry(iHostScreen); break; 646 647 } 647 648 Q_UNUSED(workingArea);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器