- Timestamp:
- Apr 6, 2016 2:29:17 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 145 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r60252 r60362 113 113 VirtualBox_DEFS.win += UNICODE QT_DLL 114 114 ifdef VBOX_WITH_ICHAT_THEATER 115 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER 116 endif 117 ifdef VBOX_WITH_QTGUI_V5 118 # These important for us Qt4 defines missed in Qt5: 119 VirtualBox_DEFS.linux += Q_WS_X11 120 VirtualBox_DEFS.solaris += Q_WS_X11 121 VirtualBox_DEFS.freebsd += Q_WS_X11 122 VirtualBox_DEFS.darwin += Q_WS_MAC 123 VirtualBox_DEFS.win += Q_WS_WIN 124 endif # VBOX_WITH_QTGUI_V5 125 VirtualBox_DEFS += \ 115 VirtualBox_DEFS.darwin += VBOX_WITH_ICHAT_THEATER 116 endif 117 VirtualBox_DEFS.linux += VBOX_WS_X11 118 VirtualBox_DEFS.solaris += VBOX_WS_X11 119 VirtualBox_DEFS.freebsd += VBOX_WS_X11 120 VirtualBox_DEFS.darwin += VBOX_WS_MAC 121 VirtualBox_DEFS.win += VBOX_WS_WIN 122 VirtualBox_DEFS += \ 126 123 $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \ 127 124 $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \ -
trunk/src/VBox/Frontends/VirtualBox/src/UIMediumTypeChangeDialog.cpp
r52722 r60362 42 42 : QIWithRetranslateUI<QIDialog>(pParent) 43 43 { 44 #ifdef Q_WS_MAC44 #ifdef VBOX_WS_MAC 45 45 setWindowFlags(Qt::Sheet); 46 #else /* Q_WS_MAC */46 #else /* VBOX_WS_MAC */ 47 47 /* Enable size-grip: */ 48 48 setSizeGripEnabled(true); 49 #endif /* Q_WS_MAC */49 #endif /* VBOX_WS_MAC */ 50 50 51 51 /* Search for corresponding medium: */ -
trunk/src/VBox/Frontends/VirtualBox/src/UIVMInfoDialog.cpp
r59200 r60362 341 341 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 342 342 { 343 #ifdef Q_WS_MAC343 #ifdef VBOX_WS_MAC 344 344 QMoveEvent *pMoveEvent = static_cast<QMoveEvent*>(pEvent); 345 345 m_geometry.moveTo(pMoveEvent->pos()); 346 #else /* Q_WS_MAC */346 #else /* VBOX_WS_MAC */ 347 347 m_geometry.moveTo(geometry().x(), geometry().y()); 348 #endif /* ! Q_WS_MAC */348 #endif /* !VBOX_WS_MAC */ 349 349 } 350 350 break; … … 402 402 connect(m_pMachineWindow, SIGNAL(destroyed(QObject*)), this, SLOT(suicide())); 403 403 404 #ifdef Q_WS_MAC404 #ifdef VBOX_WS_MAC 405 405 /* No window-icon on Mac OX X, because it acts as proxy icon which isn't necessary here. */ 406 406 setWindowIcon(QIcon()); 407 #else /* ! Q_WS_MAC */407 #else /* !VBOX_WS_MAC */ 408 408 /* Assign window-icon(s: */ 409 409 setWindowIcon(UIIconPool::iconSetFull(":/session_info_32px.png", ":/session_info_16px.png")); 410 #endif /* ! Q_WS_MAC */410 #endif /* !VBOX_WS_MAC */ 411 411 412 412 /* Prepare central-widget: */ … … 521 521 /* Load geometry: */ 522 522 m_geometry = gEDataManager->informationWindowGeometry(this, m_pMachineWindow, vboxGlobal().managedVMUuid()); 523 #ifdef Q_WS_MAC523 #ifdef VBOX_WS_MAC 524 524 move(m_geometry.topLeft()); 525 525 resize(m_geometry.size()); 526 #else /* Q_WS_MAC */526 #else /* VBOX_WS_MAC */ 527 527 setGeometry(m_geometry); 528 #endif /* ! Q_WS_MAC */528 #endif /* !VBOX_WS_MAC */ 529 529 LogRel2(("GUI: UIVMInfoDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 530 530 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 541 541 { 542 542 /* Save geometry: */ 543 #ifdef Q_WS_MAC543 #ifdef VBOX_WS_MAC 544 544 gEDataManager->setInformationWindowGeometry(m_geometry, ::darwinIsWindowMaximized(this), vboxGlobal().managedVMUuid()); 545 #else /* Q_WS_MAC */545 #else /* VBOX_WS_MAC */ 546 546 gEDataManager->setInformationWindowGeometry(m_geometry, isMaximized(), vboxGlobal().managedVMUuid()); 547 #endif /* ! Q_WS_MAC */547 #endif /* !VBOX_WS_MAC */ 548 548 LogRel2(("GUI: UIVMInfoDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 549 549 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); -
trunk/src/VBox/Frontends/VirtualBox/src/UIVMLogViewer.cpp
r59833 r60362 183 183 m_pNextPrevButtons->setEnabled(0, false); 184 184 m_pNextPrevButtons->setEnabled(1, false); 185 #ifndef Q_WS_MAC185 #ifndef VBOX_WS_MAC 186 186 /* No icons on the Mac: */ 187 187 m_pNextPrevButtons->setIcon(0, UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowBack, this)); 188 188 m_pNextPrevButtons->setIcon(1, UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_ArrowForward, this)); 189 #endif /* ! Q_WS_MAC */189 #endif /* !VBOX_WS_MAC */ 190 190 /* Add Next/Prev button-box to main-layout: */ 191 191 m_pMainLayout->addWidget(m_pNextPrevButtons); … … 1029 1029 /* Load geometry: */ 1030 1030 m_geometry = gEDataManager->logWindowGeometry(this, defaultGeometry); 1031 #ifdef Q_WS_MAC1031 #ifdef VBOX_WS_MAC 1032 1032 move(m_geometry.topLeft()); 1033 1033 resize(m_geometry.size()); 1034 #else /* ! Q_WS_MAC */1034 #else /* !VBOX_WS_MAC */ 1035 1035 setGeometry(m_geometry); 1036 #endif /* ! Q_WS_MAC */1036 #endif /* !VBOX_WS_MAC */ 1037 1037 LogRel2(("GUI: UIVMLogViewer: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 1038 1038 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 1050 1050 /* Save geometry: */ 1051 1051 const QRect saveGeometry = geometry(); 1052 #ifdef Q_WS_MAC1052 #ifdef VBOX_WS_MAC 1053 1053 gEDataManager->setLogWindowGeometry(saveGeometry, ::darwinIsWindowMaximized(this)); 1054 #else /* ! Q_WS_MAC */1054 #else /* !VBOX_WS_MAC */ 1055 1055 gEDataManager->setLogWindowGeometry(saveGeometry, isMaximized()); 1056 #endif /* ! Q_WS_MAC */1056 #endif /* !VBOX_WS_MAC */ 1057 1057 LogRel2(("GUI: UIVMLogViewer: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 1058 1058 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height())); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r58866 r60362 47 47 # include <VBox/VBoxGL2D.h> 48 48 49 #ifdef Q_WS_MAC49 #ifdef VBOX_WS_MAC 50 50 # include "VBoxUtils-darwin.h" 51 #endif /* Q_WS_MAC */51 #endif /* VBOX_WS_MAC */ 52 52 53 53 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 4444 4444 } 4445 4445 4446 #ifdef Q_WS_MAC4446 #ifdef VBOX_WS_MAC 4447 4447 /* Take the backing-scale-factor into account: */ 4448 4448 if (mSizeInfo.useUnscaledHiDPIOutput()) … … 4457 4457 } 4458 4458 } 4459 #endif /* Q_WS_MAC */4459 #endif /* VBOX_WS_MAC */ 4460 4460 4461 4461 /* we do not to miss notify updates, because we have to update bg textures for it, -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.cpp
r55346 r60362 35 35 # include "CVirtualBox.h" 36 36 37 # ifdef Q_WS_MAC37 # ifdef VBOX_WS_MAC 38 38 /* Namespaces: */ 39 39 using namespace UIExtraDataDefs; 40 # endif /* Q_WS_MAC */40 # endif /* VBOX_WS_MAC */ 41 41 42 42 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 52 52 { 53 53 /* default settings */ 54 #if defined ( Q_WS_WIN)54 #if defined (VBOX_WS_WIN) 55 55 hostCombo = "163"; // VK_RCONTROL 56 #elif defined ( Q_WS_X11)56 #elif defined (VBOX_WS_X11) 57 57 hostCombo = "65508"; // XK_Control_R 58 #elif defined ( Q_WS_MAC)58 #elif defined (VBOX_WS_MAC) 59 59 hostCombo = "55"; // QZ_LMETA 60 60 #else -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxLicenseViewer.cpp
r52722 r60362 40 40 , mDisagreeButton (0) 41 41 { 42 #ifndef Q_WS_WIN42 #ifndef VBOX_WS_WIN 43 43 /* Application icon. On Win32, it's built-in to the executable. */ 44 44 setWindowIcon (QIcon (":/VirtualBox_48px.png")); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxTakeSnapshotDlg.cpp
r52722 r60362 27 27 # include "UIMessageCenter.h" 28 28 # include "VBoxUtils.h" 29 # ifdef Q_WS_MAC29 # ifdef VBOX_WS_MAC 30 30 # include "UIMachineWindowNormal.h" 31 31 # include "VBoxSnapshotsWgt.h" 32 # endif /* Q_WS_MAC */32 # endif /* VBOX_WS_MAC */ 33 33 34 34 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h
r60260 r60362 82 82 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(); 83 83 #endif /* VBOX_WITH_DEBUGGER_GUI */ 84 #ifdef Q_WS_MAC84 #ifdef VBOX_WS_MAC 85 85 template<> bool canConvert<UIExtraDataMetaDefs::MenuWindowActionType>(); 86 #endif /* Q_WS_MAC */86 #endif /* VBOX_WS_MAC */ 87 87 template<> bool canConvert<UIVisualStateType>(); 88 88 template<> bool canConvert<DetailsElementType>(); … … 99 99 template<> bool canConvert<ScalingOptimizationType>(); 100 100 template<> bool canConvert<HiDPIOptimizationType>(); 101 #ifndef Q_WS_MAC101 #ifndef VBOX_WS_MAC 102 102 template<> bool canConvert<MiniToolbarAlignment>(); 103 #endif /* ! Q_WS_MAC */103 #endif /* !VBOX_WS_MAC */ 104 104 105 105 /* Declare COM canConvert specializations: */ … … 151 151 template<> UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType); 152 152 #endif /* VBOX_WITH_DEBUGGER_GUI */ 153 #ifdef Q_WS_MAC153 #ifdef VBOX_WS_MAC 154 154 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuWindowActionType &menuWindowActionType); 155 155 template<> UIExtraDataMetaDefs::MenuWindowActionType fromInternalString<UIExtraDataMetaDefs::MenuWindowActionType>(const QString &strMenuWindowActionType); 156 #endif /* Q_WS_MAC */156 #endif /* VBOX_WS_MAC */ 157 157 template<> QString toInternalString(const UIVisualStateType &visualStateType); 158 158 template<> UIVisualStateType fromInternalString<UIVisualStateType>(const QString &strVisualStateType); … … 188 188 template<> QString toInternalString(const HiDPIOptimizationType &optimizationType); 189 189 template<> HiDPIOptimizationType fromInternalString<HiDPIOptimizationType>(const QString &strOptimizationType); 190 #ifndef Q_WS_MAC190 #ifndef VBOX_WS_MAC 191 191 template<> QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment); 192 192 template<> MiniToolbarAlignment fromInternalString<MiniToolbarAlignment>(const QString &strMiniToolbarAlignment); 193 #endif /* ! Q_WS_MAC */193 #endif /* !VBOX_WS_MAC */ 194 194 template<> QString toString(const InformationElementType &informationElementType); 195 195 template<> InformationElementType fromString<InformationElementType>(const QString &strInformationElementType); -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r60260 r60362 49 49 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>() { return true; } 50 50 #endif /* VBOX_WITH_DEBUGGER_GUI */ 51 #ifdef Q_WS_MAC51 #ifdef VBOX_WS_MAC 52 52 template<> bool canConvert<UIExtraDataMetaDefs::MenuWindowActionType>() { return true; } 53 #endif /* Q_WS_MAC */53 #endif /* VBOX_WS_MAC */ 54 54 template<> bool canConvert<UIVisualStateType>() { return true; } 55 55 template<> bool canConvert<DetailsElementType>() { return true; } … … 66 66 template<> bool canConvert<ScalingOptimizationType>() { return true; } 67 67 template<> bool canConvert<HiDPIOptimizationType>() { return true; } 68 #ifndef Q_WS_MAC68 #ifndef VBOX_WS_MAC 69 69 template<> bool canConvert<MiniToolbarAlignment>() { return true; } 70 #endif /* ! Q_WS_MAC */70 #endif /* !VBOX_WS_MAC */ 71 71 72 72 /* QString <= SizeSuffix: */ … … 445 445 switch (menuApplicationActionType) 446 446 { 447 #ifdef Q_WS_MAC447 #ifdef VBOX_WS_MAC 448 448 case UIExtraDataMetaDefs::MenuApplicationActionType_About: strResult = "About"; break; 449 #endif /* Q_WS_MAC */449 #endif /* VBOX_WS_MAC */ 450 450 case UIExtraDataMetaDefs::MenuApplicationActionType_Preferences: strResult = "Preferences"; break; 451 451 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER … … 471 471 * to search through the keys using 'case-insensitive' rule: */ 472 472 QStringList keys; QList<UIExtraDataMetaDefs::MenuApplicationActionType> values; 473 #ifdef Q_WS_MAC473 #ifdef VBOX_WS_MAC 474 474 keys << "About"; values << UIExtraDataMetaDefs::MenuApplicationActionType_About; 475 #endif /* Q_WS_MAC */475 #endif /* VBOX_WS_MAC */ 476 476 keys << "Preferences"; values << UIExtraDataMetaDefs::MenuApplicationActionType_Preferences; 477 477 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER … … 497 497 case UIExtraDataMetaDefs::MenuHelpActionType_Contents: strResult = "Contents"; break; 498 498 case UIExtraDataMetaDefs::MenuHelpActionType_WebSite: strResult = "WebSite"; break; 499 #ifndef Q_WS_MAC499 #ifndef VBOX_WS_MAC 500 500 case UIExtraDataMetaDefs::MenuHelpActionType_About: strResult = "About"; break; 501 #endif /* ! Q_WS_MAC */501 #endif /* !VBOX_WS_MAC */ 502 502 case UIExtraDataMetaDefs::MenuHelpActionType_All: strResult = "All"; break; 503 503 default: … … 518 518 keys << "Contents"; values << UIExtraDataMetaDefs::MenuHelpActionType_Contents; 519 519 keys << "WebSite"; values << UIExtraDataMetaDefs::MenuHelpActionType_WebSite; 520 #ifndef Q_WS_MAC520 #ifndef VBOX_WS_MAC 521 521 keys << "About"; values << UIExtraDataMetaDefs::MenuHelpActionType_About; 522 #endif /* ! Q_WS_MAC */522 #endif /* !VBOX_WS_MAC */ 523 523 keys << "All"; values << UIExtraDataMetaDefs::MenuHelpActionType_All; 524 524 /* Invalid type for unknown words: */ … … 586 586 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless: strResult = "Seamless"; break; 587 587 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale: strResult = "Scale"; break; 588 #ifndef Q_WS_MAC588 #ifndef VBOX_WS_MAC 589 589 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_MinimizeWindow: strResult = "MinimizeWindow"; break; 590 #endif /* ! Q_WS_MAC */590 #endif /* !VBOX_WS_MAC */ 591 591 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow: strResult = "AdjustWindow"; break; 592 592 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize: strResult = "GuestAutoresize"; break; … … 598 598 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_MenuBar: strResult = "MenuBar"; break; 599 599 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_MenuBarSettings: strResult = "MenuBarSettings"; break; 600 #ifndef Q_WS_MAC600 #ifndef VBOX_WS_MAC 601 601 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_ToggleMenuBar: strResult = "ToggleMenuBar"; break; 602 #endif /* ! Q_WS_MAC */602 #endif /* !VBOX_WS_MAC */ 603 603 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar: strResult = "StatusBar"; break; 604 604 case UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBarSettings: strResult = "StatusBarSettings"; break; … … 626 626 keys << "Seamless"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless; 627 627 keys << "Scale"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale; 628 #ifndef Q_WS_MAC628 #ifndef VBOX_WS_MAC 629 629 keys << "MinimizeWindow"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_MinimizeWindow; 630 #endif /* ! Q_WS_MAC */630 #endif /* !VBOX_WS_MAC */ 631 631 keys << "AdjustWindow"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow; 632 632 keys << "GuestAutoresize"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize; … … 638 638 keys << "MenuBar"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_MenuBar; 639 639 keys << "MenuBarSettings"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_MenuBarSettings; 640 #ifndef Q_WS_MAC640 #ifndef VBOX_WS_MAC 641 641 keys << "ToggleMenuBar"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_ToggleMenuBar; 642 #endif /* ! Q_WS_MAC */642 #endif /* !VBOX_WS_MAC */ 643 643 keys << "StatusBar"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar; 644 644 keys << "StatusBarSettings"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBarSettings; … … 664 664 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_KeyboardSettings: strResult = "KeyboardSettings"; break; 665 665 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD: strResult = "TypeCAD"; break; 666 #ifdef Q_WS_X11666 #ifdef VBOX_WS_X11 667 667 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS: strResult = "TypeCABS"; break; 668 #endif /* Q_WS_X11 */668 #endif /* VBOX_WS_X11 */ 669 669 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak: strResult = "TypeCtrlBreak"; break; 670 670 case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert: strResult = "TypeInsert"; break; … … 690 690 keys << "KeyboardSettings"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_KeyboardSettings; 691 691 keys << "TypeCAD"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD; 692 #ifdef Q_WS_X11692 #ifdef VBOX_WS_X11 693 693 keys << "TypeCABS"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS; 694 #endif /* Q_WS_X11 */694 #endif /* VBOX_WS_X11 */ 695 695 keys << "TypeCtrlBreak"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak; 696 696 keys << "TypeInsert"; values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert; … … 805 805 #endif /* VBOX_WITH_DEBUGGER_GUI */ 806 806 807 #ifdef Q_WS_MAC807 #ifdef VBOX_WS_MAC 808 808 /* QString <= UIExtraDataMetaDefs::MenuWindowActionType: */ 809 809 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuWindowActionType &menuWindowActionType) … … 839 839 return values.at(keys.indexOf(QRegExp(strMenuWindowActionType, Qt::CaseInsensitive))); 840 840 } 841 #endif /* Q_WS_MAC */841 #endif /* VBOX_WS_MAC */ 842 842 843 843 /* QString <= UIVisualStateType: */ … … 1544 1544 } 1545 1545 1546 #ifndef Q_WS_MAC1546 #ifndef VBOX_WS_MAC 1547 1547 /* QString <= MiniToolbarAlignment: */ 1548 1548 template<> QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment) … … 1573 1573 return values.at(keys.indexOf(QRegExp(strMiniToolbarAlignment, Qt::CaseInsensitive))); 1574 1574 } 1575 #endif /* ! Q_WS_MAC */1575 #endif /* !VBOX_WS_MAC */ 1576 1576 1577 1577 /* QString <= InformationElementType: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIAdvancedSlider.cpp
r57215 r60362 77 77 /* We want to acquire SC_SliderTickmarks sub-control rectangle 78 78 * and fill it with necessary background colors: */ 79 #ifdef Q_WS_MAC79 #ifdef VBOX_WS_MAC 80 80 /* Under MacOS X SC_SliderTickmarks is not fully reliable 81 81 * source of the information we need, providing us with incorrect width. … … 83 83 QRect ticks = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderTickmarks, this); 84 84 ticks.setRect((s.width() - available) / 2, s.height() - ticks.y(), available, ticks.height()); 85 #else /* Q_WS_MAC */85 #else /* VBOX_WS_MAC */ 86 86 /* Under Windows SC_SliderTickmarks is fully unreliable 87 87 * source of the information we need, providing us with empty rectangle. … … 93 93 style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderGroove, this); 94 94 ticks.setRect((s.width() - available) / 2, ticks.bottom() + 1, available, s.height() - ticks.bottom() - 1); 95 #endif /* Q_WS_MAC */95 #endif /* VBOX_WS_MAC */ 96 96 97 97 if ((m_minOpt != -1 && -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIAdvancedToolBar.cpp
r52733 r60362 79 79 /* Create main-layout: */ 80 80 m_pMainLayout = new QHBoxLayout(this); 81 #if defined ( Q_WS_WIN)81 #if defined (VBOX_WS_WIN) 82 82 m_pMainLayout->setContentsMargins(1, 1, 1, 1); 83 #elif defined ( Q_WS_X11)83 #elif defined (VBOX_WS_X11) 84 84 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 85 85 #else -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.cpp
r54538 r60362 125 125 /* Make sure layout is polished: */ 126 126 adjustSize(); 127 #ifdef Q_WS_MAC127 #ifdef VBOX_WS_MAC 128 128 /* And dialog have fixed size: */ 129 129 setFixedSize(size()); 130 #endif /* Q_WS_MAC */130 #endif /* VBOX_WS_MAC */ 131 131 132 132 /* Explicit centering according to our parent: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.cpp
r59090 r60362 26 26 # include "QIFileDialog.h" 27 27 28 # ifdef Q_WS_WIN28 # ifdef VBOX_WS_WIN 29 29 /* Qt includes */ 30 30 # include <QEvent> … … 34 34 /* WinAPI includes */ 35 35 # include "shlobj.h" 36 # endif /* ! Q_WS_WIN */36 # endif /* !VBOX_WS_WIN */ 37 37 38 38 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 39 39 40 40 41 #ifdef Q_WS_WIN41 #ifdef VBOX_WS_WIN 42 42 43 43 static QString extractFilter (const QString &aRawFilter) … … 210 210 }; 211 211 212 #endif /* Q_WS_WIN */212 #endif /* VBOX_WS_WIN */ 213 213 214 214 QIFileDialog::QIFileDialog (QWidget *aParent, Qt::WindowFlags aFlags) … … 235 235 bool aResolveSymlinks) 236 236 { 237 #if defined( Q_WS_WIN) && (QT_VERSION < 0x050000)237 #if defined(VBOX_WS_WIN) && (QT_VERSION < 0x050000) 238 238 239 239 /** … … 325 325 return loopObject.result(); 326 326 327 #elif defined ( Q_WS_X11) && (QT_VERSION < 0x040400)327 #elif defined (VBOX_WS_X11) && (QT_VERSION < 0x040400) 328 328 329 329 /* Here is workaround for Qt4.3 bug with QFileDialog which crushes when … … 343 343 } 344 344 return dlg.exec() ? dlg.selectedFiles() [0] : QString::null; 345 #elif defined ( Q_WS_MAC) && (QT_VERSION >= 0x040600)345 #elif defined (VBOX_WS_MAC) && (QT_VERSION >= 0x040600) 346 346 347 347 /* After 4.5 exec ignores the Qt::Sheet flag. … … 366 366 367 367 QFileDialog::Options o; 368 # if defined ( Q_WS_X11)368 # if defined (VBOX_WS_X11) 369 369 /** @todo see http://bugs.kde.org/show_bug.cgi?id=210904, make it conditional 370 370 * when this bug is fixed (xtracker 5167). … … 403 403 bool fConfirmOverwrite /* = false */) 404 404 { 405 #if defined( Q_WS_WIN) && (QT_VERSION < 0x050000)405 #if defined(VBOX_WS_WIN) && (QT_VERSION < 0x050000) 406 406 407 407 /* Further code (WinAPI call to GetSaveFileName() in other thread) … … 540 540 return loopObject.result(); 541 541 542 #elif defined ( Q_WS_X11) && (QT_VERSION < 0x040400)542 #elif defined (VBOX_WS_X11) && (QT_VERSION < 0x040400) 543 543 544 544 /* Here is workaround for Qt4.3 bug with QFileDialog which crushes when … … 564 564 return dlg.exec() == QDialog::Accepted ? dlg.selectedFiles().value (0, "") : QString::null; 565 565 566 #elif defined ( Q_WS_MAC) && (QT_VERSION >= 0x040600) && (QT_VERSION < 0x050000)566 #elif defined (VBOX_WS_MAC) && (QT_VERSION >= 0x040600) && (QT_VERSION < 0x050000) 567 567 568 568 /* After 4.5 exec ignores the Qt::Sheet flag. … … 602 602 603 603 QFileDialog::Options o; 604 # if defined ( Q_WS_X11)604 # if defined (VBOX_WS_X11) 605 605 /** @todo see http://bugs.kde.org/show_bug.cgi?id=210904, make it conditional 606 606 * when this bug is fixed (xtracker 5167) … … 671 671 { 672 672 /* It seems, running QFileDialog in separate thread is NOT needed under windows any more: */ 673 #if defined ( Q_WS_WIN) && (QT_VERSION < 0x040403)673 #if defined (VBOX_WS_WIN) && (QT_VERSION < 0x040403) 674 674 675 675 /** … … 796 796 return QStringList() << loopObject.result(); 797 797 798 #elif defined ( Q_WS_X11) && (QT_VERSION < 0x040400)798 #elif defined (VBOX_WS_X11) && (QT_VERSION < 0x040400) 799 799 800 800 /* Here is workaround for Qt4.3 bug with QFileDialog which crushes when … … 821 821 return dlg.exec() == QDialog::Accepted ? dlg.selectedFiles() : QStringList() << QString::null; 822 822 823 #elif defined ( Q_WS_MAC) && (QT_VERSION >= 0x040600) && (QT_VERSION < 0x050000)823 #elif defined (VBOX_WS_MAC) && (QT_VERSION >= 0x040600) && (QT_VERSION < 0x050000) 824 824 825 825 /* After 4.5 exec ignores the Qt::Sheet flag. … … 862 862 if (!aResolveSymlinks) 863 863 o |= QFileDialog::DontResolveSymlinks; 864 # if defined ( Q_WS_X11)864 # if defined (VBOX_WS_X11) 865 865 /** @todo see http://bugs.kde.org/show_bug.cgi?id=210904, make it conditional 866 866 * when this bug is fixed (xtracker 5167) … … 901 901 } 902 902 903 #if defined Q_WS_WIN903 #if defined VBOX_WS_WIN 904 904 #include "QIFileDialog.moc" 905 905 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILineEdit.cpp
r59028 r60362 22 22 /* Qt includes: */ 23 23 # if QT_VERSION < 0x050000 24 # ifdef Q_WS_WIN24 # ifdef VBOX_WS_WIN 25 25 # include <QLibrary> 26 # endif /* Q_WS_WIN */26 # endif /* VBOX_WS_WIN */ 27 27 # endif /* QT_VERSION < 0x050000 */ 28 28 … … 32 32 /* Other VBox includes: */ 33 33 # if QT_VERSION < 0x050000 34 # ifdef Q_WS_WIN34 # ifdef VBOX_WS_WIN 35 35 # include "iprt/ldr.h" 36 # endif /* Q_WS_WIN */36 # endif /* VBOX_WS_WIN */ 37 37 # endif /* QT_VERSION < 0x050000 */ 38 38 39 39 /* External includes: */ 40 40 # if QT_VERSION < 0x050000 41 # ifdef Q_WS_WIN41 # ifdef VBOX_WS_WIN 42 42 # include <Windows.h> 43 # endif /* Q_WS_WIN */43 # endif /* VBOX_WS_WIN */ 44 44 # endif /* QT_VERSION < 0x050000 */ 45 45 … … 49 49 #include <QStyleOptionFrame> 50 50 #if QT_VERSION < 0x050000 51 # ifdef Q_WS_WIN51 # ifdef VBOX_WS_WIN 52 52 # include <QWindowsVistaStyle> 53 # endif /* Q_WS_WIN */53 # endif /* VBOX_WS_WIN */ 54 54 #endif /* QT_VERSION < 0x050000 */ 55 55 … … 81 81 82 82 #if QT_VERSION < 0x050000 83 # ifdef Q_WS_WIN83 # ifdef VBOX_WS_WIN 84 84 /* Vista l&f style has a bug where the last parameter of sizeFromContents 85 85 * function ('widget' what corresponds to 'this' in our class) is ignored. … … 98 98 sa -= QSize(23, 0); 99 99 } 100 # endif /* Q_WS_WIN */100 # endif /* VBOX_WS_WIN */ 101 101 #endif /* QT_VERSION < 0x050000 */ 102 102 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIListView.cpp
r59099 r60362 22 22 /* Qt includes: */ 23 23 # include <QtGlobal> 24 # ifdef Q_WS_MAC24 # ifdef VBOX_WS_MAC 25 25 # include <QApplication> 26 26 # include <QPainter> 27 # endif /* Q_WS_MAC */27 # endif /* VBOX_WS_MAC */ 28 28 29 29 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 30 30 31 31 /* Qt includes: */ 32 #ifdef Q_WS_MAC32 #ifdef VBOX_WS_MAC 33 33 # if QT_VERSION < 0x050000 34 34 # include <qmacstyle_mac.h> 35 35 # endif /* QT_VERSION < 0x050000 */ 36 #endif /* Q_WS_MAC */36 #endif /* VBOX_WS_MAC */ 37 37 38 38 /* GUI includes: */ … … 43 43 :QListView (aParent) 44 44 { 45 #ifdef Q_WS_MAC45 #ifdef VBOX_WS_MAC 46 46 /* Track if the application lost the focus */ 47 47 connect (QCoreApplication::instance(), SIGNAL (focusChanged (QWidget *, QWidget *)), … … 57 57 static_cast<QMacStyle *> (style())->setFocusRectPolicy (this, QMacStyle::FocusDisabled); 58 58 # endif /* QT_VERSION < 0x050000 */ 59 #endif /* Q_WS_MAC */59 #endif /* VBOX_WS_MAC */ 60 60 } 61 61 62 62 void QIListView::focusChanged (QWidget * /* aOld */, QWidget *aNow) 63 63 { 64 #ifdef Q_WS_MAC64 #ifdef VBOX_WS_MAC 65 65 QColor bgColor (212, 221, 229); 66 66 if (aNow == NULL) … … 70 70 viewport()->setPalette (pal); 71 71 viewport()->setAutoFillBackground(true); 72 #else /* ! Q_WS_MAC */72 #else /* !VBOX_WS_MAC */ 73 73 Q_UNUSED (aNow); 74 #endif /* ! Q_WS_MAC */74 #endif /* !VBOX_WS_MAC */ 75 75 } 76 76 … … 80 80 const QModelIndex &aIndex) const 81 81 { 82 #ifdef Q_WS_MAC82 #ifdef VBOX_WS_MAC 83 83 Q_UNUSED (aIndex); 84 84 /* Macify for Leopard */ … … 122 122 aPainter->fillRect(aOption.rect, bgColor); 123 123 } 124 #else /* ! Q_WS_MAC */124 #else /* !VBOX_WS_MAC */ 125 125 QItemDelegate::drawBackground (aPainter, aOption, aIndex); 126 #endif /* ! Q_WS_MAC */126 #endif /* !VBOX_WS_MAC */ 127 127 } 128 128 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMainDialog.cpp
r58853 r60362 230 230 break; 231 231 } 232 #ifdef Q_WS_MAC232 #ifdef VBOX_WS_MAC 233 233 /* Special handling for Period key: */ 234 234 case Qt::Key_Period: … … 241 241 break; 242 242 } 243 #endif /* Q_WS_MAC */243 #endif /* VBOX_WS_MAC */ 244 244 /* Special handling for Return/Enter key: */ 245 245 case Qt::Key_Return: -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMenu.cpp
r52730 r60362 31 31 void QIMenu::sltHighlightFirstAction() 32 32 { 33 #ifdef Q_WS_WIN33 #ifdef VBOX_WS_WIN 34 34 /* Windows host requires window-activation: */ 35 35 activateWindow(); 36 #endif /* Q_WS_WIN */36 #endif /* VBOX_WS_WIN */ 37 37 /* Focus next child: */ 38 38 QMenu::focusNextChild(); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r58867 r60362 171 171 { 172 172 /* Configure main-layout: */ 173 #ifdef Q_WS_MAC173 #ifdef VBOX_WS_MAC 174 174 pMainLayout->setContentsMargins(40, 11, 40, 11); 175 175 pMainLayout->setSpacing(15); 176 #else /* ! Q_WS_MAC */176 #else /* !VBOX_WS_MAC */ 177 177 pMainLayout->setContentsMargins(11, 11, 11, 11); 178 178 pMainLayout->setSpacing(10); 179 #endif /* ! Q_WS_MAC */179 #endif /* !VBOX_WS_MAC */ 180 180 /* Create top-layout: */ 181 181 QHBoxLayout *pTopLayout = new QHBoxLayout; -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIProcess.cpp
r52730 r60362 24 24 25 25 /* External includes: */ 26 #ifdef Q_WS_X1126 #ifdef VBOX_WS_X11 27 27 # include <sys/wait.h> 28 #endif /* Q_WS_X11 */28 #endif /* VBOX_WS_X11 */ 29 29 30 30 … … 49 49 result = process.readAllStandardOutput(); 50 50 process.setProcessState(QProcess::NotRunning); 51 #ifdef Q_WS_X1151 #ifdef VBOX_WS_X11 52 52 int iStatus; 53 53 if (process.pid() > 0) 54 54 waitpid(process.pid(), &iStatus, 0); 55 #endif /* Q_WS_X11 */55 #endif /* VBOX_WS_X11 */ 56 56 return result; 57 57 } -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.cpp
r52730 r60362 146 146 , m_fPolished(false) 147 147 , m_type(Shade) 148 #ifdef Q_WS_MAC148 #ifdef VBOX_WS_MAC 149 149 , m_fHandleGrabbed(false) 150 #endif /* Q_WS_MAC */150 #endif /* VBOX_WS_MAC */ 151 151 { 152 152 qApp->installEventFilter(this); … … 157 157 , m_fPolished(false) 158 158 , m_type(Shade) 159 #ifdef Q_WS_MAC159 #ifdef VBOX_WS_MAC 160 160 , m_fHandleGrabbed(false) 161 #endif /* Q_WS_MAC */161 #endif /* VBOX_WS_MAC */ 162 162 { 163 163 qApp->installEventFilter (this); … … 177 177 } 178 178 } 179 #ifdef Q_WS_MAC179 #ifdef VBOX_WS_MAC 180 180 /* Special handling on the Mac. Cause there the horizontal handle is only 1 181 181 * pixel wide, its hard to catch. Therefor we make some invisible area … … 255 255 } 256 256 } 257 #endif /* Q_WS_MAC */257 #endif /* VBOX_WS_MAC */ 258 258 259 259 return QSplitter::eventFilter(pWatched, pEvent); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.h
r55401 r60362 51 51 bool m_fPolished; 52 52 Type m_type; 53 #ifdef Q_WS_MAC53 #ifdef VBOX_WS_MAC 54 54 bool m_fHandleGrabbed; 55 #endif /* Q_WS_MAC */55 #endif /* VBOX_WS_MAC */ 56 56 57 57 QColor m_color1; -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.cpp
r55917 r60362 27 27 # include <QStyle> 28 28 # include <QLabel> 29 # ifdef Q_WS_MAC29 # ifdef VBOX_WS_MAC 30 30 # include <QContextMenuEvent> 31 # endif /* Q_WS_MAC */31 # endif /* VBOX_WS_MAC */ 32 32 33 33 /* GUI includes: */ … … 45 45 } 46 46 47 #ifdef Q_WS_MAC47 #ifdef VBOX_WS_MAC 48 48 void QIStatusBarIndicator::mousePressEvent(QMouseEvent *pEvent) 49 49 { … … 64 64 QWidget::mousePressEvent(pEvent); 65 65 } 66 #endif /* Q_WS_MAC */66 #endif /* VBOX_WS_MAC */ 67 67 68 68 void QIStatusBarIndicator::mouseDoubleClickEvent(QMouseEvent *pEvent) -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.h
r55401 r60362 49 49 protected: 50 50 51 #ifdef Q_WS_MAC51 #ifdef VBOX_WS_MAC 52 52 /** Mac OS X: Mouse-press-event handler. 53 53 * Make the left button also show the context-menu to make things 54 54 * simpler for users with single mouse button mice (laptops++). */ 55 55 virtual void mousePressEvent(QMouseEvent *pEvent); 56 #endif /* Q_WS_MAC */56 #endif /* VBOX_WS_MAC */ 57 57 /** Mouse-double-click-event handler. */ 58 58 virtual void mouseDoubleClickEvent(QMouseEvent *pEvent); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITabWidget.h
r55401 r60362 33 33 :QTabWidget(pParent) 34 34 { 35 #ifdef Q_WS_MAC35 #ifdef VBOX_WS_MAC 36 36 /* I don't know why, but for some languages there is ElideRight the 37 37 default on Mac OS X. Fix this. */ 38 38 setElideMode(Qt::ElideNone); 39 #endif /* Q_WS_MAC */39 #endif /* VBOX_WS_MAC */ 40 40 } 41 41 }; -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIToolButton.h
r55401 r60362 32 32 : QToolButton(pParent) 33 33 { 34 #ifdef Q_WS_MAC34 #ifdef VBOX_WS_MAC 35 35 /* Keep size-hint alive: */ 36 36 const QSize sh = sizeHint(); 37 37 setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } QToolButton::menu-indicator {image: none;}"); 38 38 setFixedSize(sh); 39 #else /* ! Q_WS_MAC */39 #else /* !VBOX_WS_MAC */ 40 40 setAutoRaise(true); 41 #endif /* ! Q_WS_MAC */41 #endif /* !VBOX_WS_MAC */ 42 42 } 43 43 … … 45 45 virtual void setAutoRaise(bool fEnable) 46 46 { 47 #ifdef Q_WS_MAC47 #ifdef VBOX_WS_MAC 48 48 /* Ignore for Mac OS X: */ 49 49 Q_UNUSED(fEnable); 50 #else /* ! Q_WS_MAC */50 #else /* !VBOX_WS_MAC */ 51 51 /* Call to base-class: */ 52 52 QToolButton::setAutoRaise(fEnable); 53 #endif /* ! Q_WS_MAC */53 #endif /* !VBOX_WS_MAC */ 54 54 } 55 55 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWidgetValidator.h
r55401 r60362 25 25 26 26 /* External includes: */ 27 #ifdef Q_WS_X1127 #ifdef VBOX_WS_X11 28 28 #include <limits.h> 29 #endif /* Q_WS_X11 */29 #endif /* VBOX_WS_X11 */ 30 30 31 31 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r60260 r60362 82 82 const char* UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations"; 83 83 const char* UIExtraDataDefs::GUI_FirstRun = "GUI/FirstRun"; 84 #ifndef Q_WS_MAC84 #ifndef VBOX_WS_MAC 85 85 const char* UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons"; 86 86 const char* UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix"; 87 #endif /* ! Q_WS_MAC */87 #endif /* !VBOX_WS_MAC */ 88 88 const char* UIExtraDataDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition"; 89 89 const char* UIExtraDataDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition"; 90 90 const char* UIExtraDataDefs::GUI_Geometry_State_Max = "max"; 91 #ifndef Q_WS_MAC91 #ifndef VBOX_WS_MAC 92 92 const char* UIExtraDataDefs::GUI_MenuBar_Enabled = "GUI/MenuBar/Enabled"; 93 #endif /* ! Q_WS_MAC */93 #endif /* !VBOX_WS_MAC */ 94 94 const char* UIExtraDataDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus"; 95 95 const char* UIExtraDataDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions"; … … 101 101 const char* UIExtraDataDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions"; 102 102 #endif /* VBOX_WITH_DEBUGGER_GUI */ 103 #ifdef Q_WS_MAC103 #ifdef VBOX_WS_MAC 104 104 const char* UIExtraDataDefs::GUI_RestrictedRuntimeWindowMenuActions = "GUI/RestrictedRuntimeWindowMenuActions"; 105 #endif /* Q_WS_MAC */105 #endif /* VBOX_WS_MAC */ 106 106 const char* UIExtraDataDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions"; 107 107 const char* UIExtraDataDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates"; … … 109 109 const char* UIExtraDataDefs::GUI_Seamless = "GUI/Seamless"; 110 110 const char* UIExtraDataDefs::GUI_Scale = "GUI/Scale"; 111 #ifdef Q_WS_X11111 #ifdef VBOX_WS_X11 112 112 const char* UIExtraDataDefs::GUI_Fullscreen_LegacyMode = "GUI/Fullscreen/LegacyMode"; 113 #endif /* Q_WS_X11 */113 #endif /* VBOX_WS_X11 */ 114 114 const char* UIExtraDataDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest"; 115 115 const char* UIExtraDataDefs::GUI_LastVisibilityStatusForGuestScreen = "GUI/LastVisibilityStatusForGuestScreen"; … … 126 126 const char* UIExtraDataDefs::GUI_HiDPI_UnscaledOutput = "GUI/HiDPI/UnscaledOutput"; 127 127 const char* UIExtraDataDefs::GUI_HiDPI_Optimization = "GUI/HiDPI/Optimization"; 128 #ifndef Q_WS_MAC128 #ifndef VBOX_WS_MAC 129 129 const char* UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar"; 130 130 const char* UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide"; 131 131 const char* UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment"; 132 #endif /* ! Q_WS_MAC */132 #endif /* !VBOX_WS_MAC */ 133 133 const char* UIExtraDataDefs::GUI_StatusBar_Enabled = "GUI/StatusBar/Enabled"; 134 134 const char* UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators"; 135 135 const char* UIExtraDataDefs::GUI_StatusBar_IndicatorOrder = "GUI/StatusBar/IndicatorOrder"; 136 #ifdef Q_WS_MAC136 #ifdef VBOX_WS_MAC 137 137 const char* UIExtraDataDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled"; 138 138 const char* UIExtraDataDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor"; 139 139 const char* UIExtraDataDefs::GUI_DockIconDisableOverlay = "GUI/DockIconDisableOverlay"; 140 #endif /* Q_WS_MAC */140 #endif /* VBOX_WS_MAC */ 141 141 const char* UIExtraDataDefs::GUI_PassCAD = "GUI/PassCAD"; 142 142 const char* UIExtraDataDefs::GUI_MouseCapturePolicy = "GUI/MouseCapturePolicy"; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r60260 r60362 140 140 /** Holds whether this machine is first time started. */ 141 141 extern const char* GUI_FirstRun; 142 #ifndef Q_WS_MAC142 #ifndef VBOX_WS_MAC 143 143 /** Except Mac OS X: Holds redefined machine-window icon names. */ 144 144 extern const char* GUI_MachineWindowIcons; 145 145 /** Except Mac OS X: Holds redefined machine-window name postfix. */ 146 146 extern const char* GUI_MachineWindowNamePostfix; 147 #endif /* ! Q_WS_MAC */147 #endif /* !VBOX_WS_MAC */ 148 148 /** Prefix used by composite extra-data keys, 149 149 * which holds normal machine-window geometry per screen-index. */ … … 154 154 /** Holds machine-window geometry maximized state flag. */ 155 155 extern const char* GUI_Geometry_State_Max; 156 #ifndef Q_WS_MAC156 #ifndef VBOX_WS_MAC 157 157 /** Holds Runtime UI menu-bar availability status. */ 158 158 extern const char* GUI_MenuBar_Enabled; 159 #endif /* ! Q_WS_MAC */159 #endif /* !VBOX_WS_MAC */ 160 160 /** Holds restricted Runtime UI menu types. */ 161 161 extern const char* GUI_RestrictedRuntimeMenus; … … 174 174 extern const char* GUI_RestrictedRuntimeDebuggerMenuActions; 175 175 #endif /* VBOX_WITH_DEBUGGER_GUI */ 176 #ifdef Q_WS_MAC176 #ifdef VBOX_WS_MAC 177 177 /** Mac OS X: Holds restricted Runtime UI action types for 'Window' menu. */ 178 178 extern const char* GUI_RestrictedRuntimeWindowMenuActions; 179 #endif /* Q_WS_MAC */179 #endif /* VBOX_WS_MAC */ 180 180 /** Holds restricted Runtime UI action types for Help menu. */ 181 181 extern const char* GUI_RestrictedRuntimeHelpMenuActions; … … 188 188 /** Holds whether scaled visual-state is requested. */ 189 189 extern const char* GUI_Scale; 190 #ifdef Q_WS_X11190 #ifdef VBOX_WS_X11 191 191 /** Holds whether legacy full-screen mode is requested. */ 192 192 extern const char* GUI_Fullscreen_LegacyMode; 193 #endif /* Q_WS_X11 */193 #endif /* VBOX_WS_X11 */ 194 194 /** Holds whether guest-screen auto-resize according machine-window size is enabled. */ 195 195 extern const char* GUI_AutoresizeGuest; … … 221 221 /** Holds Runtime UI HiDPI optimization type. */ 222 222 extern const char* GUI_HiDPI_Optimization; 223 #ifndef Q_WS_MAC223 #ifndef VBOX_WS_MAC 224 224 /** Holds whether mini-toolbar is enabled for full and seamless screens. */ 225 225 extern const char* GUI_ShowMiniToolBar; … … 228 228 /** Holds mini-toolbar alignment. */ 229 229 extern const char* GUI_MiniToolBarAlignment; 230 #endif /* ! Q_WS_MAC */230 #endif /* !VBOX_WS_MAC */ 231 231 /** Holds Runtime UI status-bar availability status. */ 232 232 extern const char* GUI_StatusBar_Enabled; … … 235 235 /** Holds Runtime UI status-bar indicator order. */ 236 236 extern const char* GUI_StatusBar_IndicatorOrder; 237 #ifdef Q_WS_MAC237 #ifdef VBOX_WS_MAC 238 238 /** Mac OS X: Holds whether Dock icon should be updated at runtime. */ 239 239 extern const char* GUI_RealtimeDockIconUpdateEnabled; … … 242 242 /** Mac OS X: Holds whether Dock icon should have overlay disabled. */ 243 243 extern const char* GUI_DockIconDisableOverlay; 244 #endif /* Q_WS_MAC */244 #endif /* VBOX_WS_MAC */ 245 245 /** Holds whether machine should pass CAD to guest. */ 246 246 extern const char* GUI_PassCAD; … … 426 426 RuntimeMenuInputActionType_KeyboardSettings = RT_BIT(1), 427 427 RuntimeMenuInputActionType_TypeCAD = RT_BIT(2), 428 #ifdef Q_WS_X11428 #ifdef VBOX_WS_X11 429 429 RuntimeMenuInputActionType_TypeCABS = RT_BIT(3), 430 #endif /* Q_WS_X11 */430 #endif /* VBOX_WS_X11 */ 431 431 RuntimeMenuInputActionType_TypeCtrlBreak = RT_BIT(4), 432 432 RuntimeMenuInputActionType_TypeInsert = RT_BIT(5), … … 662 662 }; 663 663 664 #ifndef Q_WS_MAC664 #ifndef VBOX_WS_MAC 665 665 /** Runtime UI: Mini-toolbar alignment. */ 666 666 enum MiniToolbarAlignment … … 669 669 MiniToolbarAlignment_Top 670 670 }; 671 #endif /* ! Q_WS_MAC */671 #endif /* !VBOX_WS_MAC */ 672 672 673 673 /** Runtime UI: Information-element types. */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r60260 r60362 1340 1340 void UIExtraDataManagerWindow::prepareThis() 1341 1341 { 1342 #ifndef Q_WS_MAC1342 #ifndef VBOX_WS_MAC 1343 1343 /* Apply window icons: */ 1344 1344 setWindowIcon(UIIconPool::iconSetFull(":/edataman_32px.png", 1345 1345 ":/edataman_16px.png")); 1346 #endif /* ! Q_WS_MAC */1346 #endif /* !VBOX_WS_MAC */ 1347 1347 1348 1348 /* Apply window title: */ … … 1428 1428 m_pMainLayout == centralWidget()->layout()); 1429 1429 { 1430 #ifdef Q_WS_MAC1430 #ifdef VBOX_WS_MAC 1431 1431 /* No spacing/margins on the Mac: */ 1432 1432 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 1433 1433 m_pMainLayout->insertSpacing(0, 10); 1434 #else /* ! Q_WS_MAC */1434 #else /* !VBOX_WS_MAC */ 1435 1435 /* Set spacing/margin like in the selector window: */ 1436 1436 m_pMainLayout->setSpacing(5); 1437 1437 m_pMainLayout->setContentsMargins(5, 5, 5, 5); 1438 #endif /* ! Q_WS_MAC */1438 #endif /* !VBOX_WS_MAC */ 1439 1439 /* Prepare tool-bar: */ 1440 1440 prepareToolBar(); … … 1466 1466 m_pToolBar->addAction(m_pActionSave); 1467 1467 /* Integrate tool-bar into dialog: */ 1468 #ifdef Q_WS_MAC1468 #ifdef VBOX_WS_MAC 1469 1469 /* Enable unified tool-bars on Mac OS X. Available on Qt >= 4.3: */ 1470 1470 addToolBar(m_pToolBar); 1471 1471 m_pToolBar->enableMacToolbar(); 1472 #else /* ! Q_WS_MAC */1472 #else /* !VBOX_WS_MAC */ 1473 1473 /* Add tool-bar into main-layout: */ 1474 1474 m_pMainLayout->addWidget(m_pToolBar); 1475 #endif /* ! Q_WS_MAC */1475 #endif /* !VBOX_WS_MAC */ 1476 1476 } 1477 1477 } … … 1674 1674 /* Load geometry: */ 1675 1675 m_geometry = gEDataManager->extraDataManagerGeometry(this); 1676 #ifdef Q_WS_MAC1676 #ifdef VBOX_WS_MAC 1677 1677 move(m_geometry.topLeft()); 1678 1678 resize(m_geometry.size()); 1679 #else /* Q_WS_MAC */1679 #else /* VBOX_WS_MAC */ 1680 1680 setGeometry(m_geometry); 1681 #endif /* ! Q_WS_MAC */1681 #endif /* !VBOX_WS_MAC */ 1682 1682 LogRel2(("GUI: UIExtraDataManagerWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 1683 1683 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 1704 1704 { 1705 1705 /* Save geometry: */ 1706 #ifdef Q_WS_MAC1706 #ifdef VBOX_WS_MAC 1707 1707 gEDataManager->setExtraDataManagerGeometry(m_geometry, ::darwinIsWindowMaximized(this)); 1708 #else /* Q_WS_MAC */1708 #else /* VBOX_WS_MAC */ 1709 1709 gEDataManager->setExtraDataManagerGeometry(m_geometry, isMaximized()); 1710 #endif /* ! Q_WS_MAC */1710 #endif /* !VBOX_WS_MAC */ 1711 1711 LogRel2(("GUI: UIExtraDataManagerWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 1712 1712 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 1742 1742 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 1743 1743 { 1744 #ifdef Q_WS_MAC1744 #ifdef VBOX_WS_MAC 1745 1745 QMoveEvent *pMoveEvent = static_cast<QMoveEvent*>(pEvent); 1746 1746 m_geometry.moveTo(pMoveEvent->pos()); 1747 #else /* ! Q_WS_MAC */1747 #else /* !VBOX_WS_MAC */ 1748 1748 m_geometry.moveTo(geometry().x(), geometry().y()); 1749 #endif /* ! Q_WS_MAC */1749 #endif /* !VBOX_WS_MAC */ 1750 1750 } 1751 1751 break; … … 1957 1957 << GUI_PreventReconfiguration << GUI_PreventSnapshotOperations 1958 1958 << GUI_FirstRun 1959 #ifndef Q_WS_MAC1959 #ifndef VBOX_WS_MAC 1960 1960 << GUI_MachineWindowIcons << GUI_MachineWindowNamePostfix 1961 #endif /* ! Q_WS_MAC */1961 #endif /* !VBOX_WS_MAC */ 1962 1962 << GUI_LastNormalWindowPosition << GUI_LastScaleWindowPosition 1963 1963 << GUI_RestrictedRuntimeMenus … … 1970 1970 << GUI_RestrictedRuntimeDebuggerMenuActions 1971 1971 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1972 #ifdef Q_WS_MAC1972 #ifdef VBOX_WS_MAC 1973 1973 << GUI_RestrictedRuntimeWindowMenuActions 1974 #endif /* Q_WS_MAC */1974 #endif /* VBOX_WS_MAC */ 1975 1975 << GUI_RestrictedRuntimeHelpMenuActions 1976 1976 << GUI_RestrictedVisualStates 1977 1977 << GUI_Fullscreen << GUI_Seamless << GUI_Scale 1978 #ifdef Q_WS_X111978 #ifdef VBOX_WS_X11 1979 1979 << GUI_Fullscreen_LegacyMode 1980 #endif /* Q_WS_X11 */1980 #endif /* VBOX_WS_X11 */ 1981 1981 << GUI_AutoresizeGuest << GUI_LastVisibilityStatusForGuestScreen << GUI_LastGuestSizeHint 1982 1982 << GUI_VirtualScreenToHostScreen << GUI_AutomountGuestScreens … … 1988 1988 << GUI_HiDPI_UnscaledOutput 1989 1989 << GUI_HiDPI_Optimization 1990 #ifndef Q_WS_MAC1990 #ifndef VBOX_WS_MAC 1991 1991 << GUI_ShowMiniToolBar << GUI_MiniToolBarAutoHide << GUI_MiniToolBarAlignment 1992 #endif /* ! Q_WS_MAC */1992 #endif /* !VBOX_WS_MAC */ 1993 1993 << GUI_StatusBar_Enabled << GUI_RestrictedStatusBarIndicators << GUI_StatusBar_IndicatorOrder 1994 #ifdef Q_WS_MAC1994 #ifdef VBOX_WS_MAC 1995 1995 << GUI_RealtimeDockIconUpdateEnabled << GUI_RealtimeDockIconUpdateMonitor << GUI_DockIconDisableOverlay 1996 #endif /* Q_WS_MAC */1996 #endif /* VBOX_WS_MAC */ 1997 1997 << GUI_PassCAD 1998 1998 << GUI_MouseCapturePolicy … … 2481 2481 2482 2482 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ 2483 #ifdef Q_WS_WIN2483 #ifdef VBOX_WS_WIN 2484 2484 /* Make sure resulting geometry is within current bounds: */ 2485 2485 if (fOk && !availableGeometry.contains(geometry)) 2486 2486 geometry = VBoxGlobal::getNormalized(geometry, QRegion(availableGeometry)); 2487 #endif /* Q_WS_WIN */2487 #endif /* VBOX_WS_WIN */ 2488 2488 2489 2489 /* As final fallback, move default-geometry to available-geometry' center: */ … … 2712 2712 } 2713 2713 2714 #ifndef Q_WS_MAC2714 #ifndef VBOX_WS_MAC 2715 2715 QStringList UIExtraDataManager::machineWindowIconNames(const QString &strID) 2716 2716 { … … 2722 2722 return extraDataString(GUI_MachineWindowNamePostfix, strID); 2723 2723 } 2724 #endif /* ! Q_WS_MAC */2724 #endif /* !VBOX_WS_MAC */ 2725 2725 2726 2726 QRect UIExtraDataManager::machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) … … 2800 2800 } 2801 2801 2802 #ifndef Q_WS_MAC2802 #ifndef VBOX_WS_MAC 2803 2803 bool UIExtraDataManager::menuBarEnabled(const QString &strID) 2804 2804 { … … 2812 2812 setExtraDataString(GUI_MenuBar_Enabled, toFeatureRestricted(!fEnabled), strID); 2813 2813 } 2814 #endif /* ! Q_WS_MAC */2814 #endif /* !VBOX_WS_MAC */ 2815 2815 2816 2816 UIExtraDataMetaDefs::MenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID) … … 3176 3176 #endif /* VBOX_WITH_DEBUGGER_GUI */ 3177 3177 3178 #ifdef Q_WS_MAC3178 #ifdef VBOX_WS_MAC 3179 3179 UIExtraDataMetaDefs::MenuWindowActionType UIExtraDataManager::restrictedRuntimeMenuWindowActionTypes(const QString &strID) 3180 3180 { … … 3223 3223 setExtraDataStringList(GUI_RestrictedRuntimeWindowMenuActions, result, strID); 3224 3224 } 3225 #endif /* Q_WS_MAC */3225 #endif /* VBOX_WS_MAC */ 3226 3226 3227 3227 UIExtraDataMetaDefs::MenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID) … … 3302 3302 } 3303 3303 3304 #ifdef Q_WS_X113304 #ifdef VBOX_WS_X11 3305 3305 bool UIExtraDataManager::legacyFullscreenModeRequested() 3306 3306 { … … 3308 3308 return isFeatureAllowed(GUI_Fullscreen_LegacyMode); 3309 3309 } 3310 #endif /* Q_WS_X11 */3310 #endif /* VBOX_WS_X11 */ 3311 3311 3312 3312 bool UIExtraDataManager::guestScreenAutoResizeEnabled(const QString &strID) … … 3462 3462 } 3463 3463 3464 #ifndef Q_WS_MAC3464 #ifndef VBOX_WS_MAC 3465 3465 bool UIExtraDataManager::miniToolbarEnabled(const QString &strID) 3466 3466 { … … 3508 3508 setExtraDataString(GUI_MiniToolBarAlignment, QString(), strID); 3509 3509 } 3510 #endif /* Q_WS_MAC */3510 #endif /* VBOX_WS_MAC */ 3511 3511 3512 3512 bool UIExtraDataManager::statusBarEnabled(const QString &strID) … … 3574 3574 } 3575 3575 3576 #ifdef Q_WS_MAC3576 #ifdef VBOX_WS_MAC 3577 3577 bool UIExtraDataManager::realtimeDockIconUpdateEnabled(const QString &strID) 3578 3578 { … … 3608 3608 setExtraDataString(GUI_DockIconDisableOverlay, toFeatureAllowed(fDisabled), strID); 3609 3609 } 3610 #endif /* Q_WS_MAC */3610 #endif /* VBOX_WS_MAC */ 3611 3611 3612 3612 bool UIExtraDataManager::passCADtoGuest(const QString &strID) … … 3693 3693 3694 3694 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ 3695 #ifdef Q_WS_WIN3695 #ifdef VBOX_WS_WIN 3696 3696 /* Make sure resulting geometry is within current bounds: */ 3697 3697 if (fOk && !availableGeometry.contains(geometry)) 3698 3698 geometry = VBoxGlobal::getNormalized(geometry, QRegion(availableGeometry)); 3699 #endif /* Q_WS_WIN */3699 #endif /* VBOX_WS_WIN */ 3700 3700 3701 3701 /* As a fallback, move default-geometry to pParentWidget' geometry center: */ … … 3852 3852 3853 3853 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ 3854 #ifdef Q_WS_WIN3854 #ifdef VBOX_WS_WIN 3855 3855 /* Make sure resulting geometry is within current bounds: */ 3856 3856 if (fOk && !availableGeometry.contains(geometry)) 3857 3857 geometry = VBoxGlobal::getNormalized(geometry, QRegion(availableGeometry)); 3858 #endif /* Q_WS_WIN */3858 #endif /* VBOX_WS_WIN */ 3859 3859 3860 3860 /* As final fallback, move default-geometry to available-geometry' center: */ … … 3965 3965 3966 3966 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ 3967 #ifdef Q_WS_WIN3967 #ifdef VBOX_WS_WIN 3968 3968 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 3969 3969 const QRect availableGeometry = fOk ? vboxGlobal().availableGeometry(QPoint(iX, iY)) : … … 3973 3973 if (!availableGeometry.contains(geometry)) 3974 3974 geometry = VBoxGlobal::getNormalized(geometry, QRegion(availableGeometry)); 3975 #endif /* Q_WS_WIN */3975 #endif /* VBOX_WS_WIN */ 3976 3976 3977 3977 /* Return result: */ … … 4040 4040 if (strKey == GUI_HidLedsSync) 4041 4041 emit sigHidLedsSyncStateChange(!isFeatureRestricted(strKey, strMachineID)); 4042 #ifdef Q_WS_MAC4042 #ifdef VBOX_WS_MAC 4043 4043 /* 'Dock icon' appearance changed (allowed if not restricted)? */ 4044 4044 else if (strKey == GUI_RealtimeDockIconUpdateEnabled || … … 4048 4048 else if (strKey == GUI_DockIconDisableOverlay) 4049 4049 emit sigDockIconOverlayAppearanceChange(isFeatureAllowed(strKey, strMachineID)); 4050 #endif /* Q_WS_MAC */4050 #endif /* VBOX_WS_MAC */ 4051 4051 } 4052 4052 4053 4053 /* Menu-bar configuration change: */ 4054 4054 if ( 4055 #ifndef Q_WS_MAC4055 #ifndef VBOX_WS_MAC 4056 4056 strKey == GUI_MenuBar_Enabled || 4057 #endif /* ! Q_WS_MAC */4057 #endif /* !VBOX_WS_MAC */ 4058 4058 strKey == GUI_RestrictedRuntimeMenus || 4059 4059 strKey == GUI_RestrictedRuntimeApplicationMenuActions || … … 4065 4065 strKey == GUI_RestrictedRuntimeDebuggerMenuActions || 4066 4066 #endif /* VBOX_WITH_DEBUGGER_GUI */ 4067 #ifdef Q_WS_MAC4067 #ifdef VBOX_WS_MAC 4068 4068 strKey == GUI_RestrictedRuntimeWindowMenuActions || 4069 #endif /* Q_WS_MAC */4069 #endif /* VBOX_WS_MAC */ 4070 4070 strKey == GUI_RestrictedRuntimeHelpMenuActions) 4071 4071 emit sigMenuBarConfigurationChange(strMachineID); -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r60260 r60362 298 298 void setMachineFirstTimeStarted(bool fFirstTimeStarted, const QString &strID); 299 299 300 #ifndef Q_WS_MAC300 #ifndef VBOX_WS_MAC 301 301 /** Except Mac OS X: Returns redefined machine-window icon names. */ 302 302 QStringList machineWindowIconNames(const QString &strID); 303 303 /** Except Mac OS X: Returns redefined machine-window name postfix. */ 304 304 QString machineWindowNamePostfix(const QString &strID); 305 #endif /* ! Q_WS_MAC */305 #endif /* !VBOX_WS_MAC */ 306 306 307 307 /** Returns geometry for machine-window with @a uScreenIndex in @a visualStateType. */ … … 312 312 void setMachineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QRect &geometry, bool fMaximized, const QString &strID); 313 313 314 #ifndef Q_WS_MAC314 #ifndef VBOX_WS_MAC 315 315 /** Returns whether Runtime UI menu-bar is enabled. */ 316 316 bool menuBarEnabled(const QString &strID); 317 317 /** Defines whether Runtime UI menu-bar is @a fEnabled. */ 318 318 void setMenuBarEnabled(bool fEnabled, const QString &strID); 319 #endif /* ! Q_WS_MAC */319 #endif /* !VBOX_WS_MAC */ 320 320 321 321 /** Returns restricted Runtime UI menu types. */ … … 356 356 #endif /* VBOX_WITH_DEBUGGER_GUI */ 357 357 358 #ifdef Q_WS_MAC358 #ifdef VBOX_WS_MAC 359 359 /** Mac OS X: Returns restricted Runtime UI action types for Window menu. */ 360 360 UIExtraDataMetaDefs::MenuWindowActionType restrictedRuntimeMenuWindowActionTypes(const QString &strID); 361 361 /** Mac OS X: Defines restricted Runtime UI action types for Window menu. */ 362 362 void setRestrictedRuntimeMenuWindowActionTypes(UIExtraDataMetaDefs::MenuWindowActionType types, const QString &strID); 363 #endif /* Q_WS_MAC */363 #endif /* VBOX_WS_MAC */ 364 364 365 365 /** Returns restricted Runtime UI action types for Help menu. */ … … 376 376 void setRequestedVisualState(UIVisualStateType visualState, const QString &strID); 377 377 378 #ifdef Q_WS_X11378 #ifdef VBOX_WS_X11 379 379 /** Returns whether legacy full-screen mode is requested. */ 380 380 bool legacyFullscreenModeRequested(); 381 #endif /* Q_WS_X11 */381 #endif /* VBOX_WS_X11 */ 382 382 383 383 /** Returns whether guest-screen auto-resize according machine-window size is enabled. */ … … 425 425 HiDPIOptimizationType hiDPIOptimizationType(const QString &strID); 426 426 427 #ifndef Q_WS_MAC427 #ifndef VBOX_WS_MAC 428 428 /** Returns whether mini-toolbar is enabled for full and seamless screens. */ 429 429 bool miniToolbarEnabled(const QString &strID); … … 440 440 /** Returns mini-toolbar @a alignment. */ 441 441 void setMiniToolbarAlignment(Qt::AlignmentFlag alignment, const QString &strID); 442 #endif /* Q_WS_MAC */442 #endif /* VBOX_WS_MAC */ 443 443 444 444 /** Returns whether Runtime UI status-bar is enabled. */ … … 457 457 void setStatusBarIndicatorOrder(const QList<IndicatorType> &list, const QString &strID); 458 458 459 #ifdef Q_WS_MAC459 #ifdef VBOX_WS_MAC 460 460 /** Mac OS X: Returns whether Dock icon should be updated at runtime. */ 461 461 bool realtimeDockIconUpdateEnabled(const QString &strID); … … 472 472 /** Mac OS X: Defines whether Dock icon overlay is @a fDisabled. */ 473 473 void setDockIconDisableOverlay(bool fDisabled, const QString &strID); 474 #endif /* Q_WS_MAC */474 #endif /* VBOX_WS_MAC */ 475 475 476 476 /** Returns whether machine should pass CAD to guest. */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r57880 r60362 66 66 UIMenu::UIMenu() 67 67 : m_fShowToolTip(false) 68 #ifdef Q_WS_MAC68 #ifdef VBOX_WS_MAC 69 69 , m_fConsumable(false) 70 70 , m_fConsumed(false) 71 #endif /* Q_WS_MAC */71 #endif /* VBOX_WS_MAC */ 72 72 { 73 73 } … … 926 926 } 927 927 928 #ifdef Q_WS_MAC928 #ifdef VBOX_WS_MAC 929 929 bool UIActionPool::isAllowedInMenuWindow(UIExtraDataMetaDefs::MenuWindowActionType type) const 930 930 { … … 940 940 m_invalidations << UIActionIndex_M_Window; 941 941 } 942 #endif /* Q_WS_MAC */942 #endif /* VBOX_WS_MAC */ 943 943 944 944 bool UIActionPool::isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType type) const -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r55415 r60362 108 108 void setShowToolTip(bool fShowToolTips) { m_fShowToolTip = fShowToolTips; } 109 109 110 #ifdef Q_WS_MAC110 #ifdef VBOX_WS_MAC 111 111 /** Mac OS X: Returns whether this menu is consumable by the menu-bar. */ 112 112 bool isConsumable() const { return m_fConsumable; } … … 118 118 /** Mac OS X: Defines whether this menu is @a fConsumed by the menu-bar. */ 119 119 void setConsumed(bool fConsumed) { m_fConsumed = fConsumed; } 120 #endif /* Q_WS_MAC */120 #endif /* VBOX_WS_MAC */ 121 121 122 122 protected: … … 130 130 bool m_fShowToolTip; 131 131 132 #ifdef Q_WS_MAC132 #ifdef VBOX_WS_MAC 133 133 /** Mac OS X: Holds whether this menu can be consumed by the menu-bar. */ 134 134 bool m_fConsumable; 135 135 /** Mac OS X: Holds whether this menu is consumed by the menu-bar. */ 136 136 bool m_fConsumed; 137 #endif /* Q_WS_MAC */137 #endif /* VBOX_WS_MAC */ 138 138 }; 139 139 … … 430 430 void setRestrictionForMenuApplication(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuApplicationActionType restriction); 431 431 432 #ifdef Q_WS_MAC432 #ifdef VBOX_WS_MAC 433 433 /** Mac OS X: Returns whether the action with passed @a type is allowed in the 'Window' menu. */ 434 434 bool isAllowedInMenuWindow(UIExtraDataMetaDefs::MenuWindowActionType type) const; 435 435 /** Mac OS X: Defines 'Window' menu @a restriction for passed @a level. */ 436 436 void setRestrictionForMenuWindow(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuWindowActionType restriction); 437 #endif /* Q_WS_MAC */437 #endif /* VBOX_WS_MAC */ 438 438 439 439 /** Returns whether the action with passed @a type is allowed in the 'Help' menu. */ … … 523 523 /** Holds restricted action types of the 'Application' menu. */ 524 524 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuApplicationActionType> m_restrictedActionsMenuApplication; 525 #ifdef Q_WS_MAC525 #ifdef VBOX_WS_MAC 526 526 /** Mac OS X: Holds restricted action types of the 'Window' menu. */ 527 527 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuWindowActionType> m_restrictedActionsMenuWindow; 528 #endif /* Q_WS_MAC */528 #endif /* VBOX_WS_MAC */ 529 529 /** Holds restricted action types of the Help menu. */ 530 530 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuHelpActionType> m_restrictedActionsMenuHelp; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r59094 r60362 59 59 , SetRegionEventType 60 60 , ModifierKeyChangeEventType 61 #ifdef Q_WS_WIN61 #ifdef VBOX_WS_WIN 62 62 , ShellExecuteEventType 63 #endif /* Q_WS_WIN */63 #endif /* VBOX_WS_WIN */ 64 64 , ActivateActionEventType 65 #ifdef Q_WS_MAC65 #ifdef VBOX_WS_MAC 66 66 , ShowWindowEventType 67 #endif /* Q_WS_MAC */67 #endif /* VBOX_WS_MAC */ 68 68 , AddVDMUrlsEventType 69 69 #ifdef VBOX_GUI_USE_QGL … … 90 90 using namespace UIDefs /* if header included */; 91 91 92 #ifdef Q_WS_MAC92 #ifdef VBOX_WS_MAC 93 93 /** Mac OS X: Known OS releases. */ 94 94 enum MacOSXRelease … … 103 103 MacOSXRelease_New, 104 104 }; 105 #endif /* Q_WS_MAC */105 #endif /* VBOX_WS_MAC */ 106 106 107 107 /** Common UI: Size suffixes. */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r58880 r60362 64 64 /* Apply visual and mouse-event mask for that 1 pixel: */ 65 65 setMask(QRect(0, 0, 1, 1)); 66 #ifdef Q_WS_X1166 #ifdef VBOX_WS_X11 67 67 /* For composite WMs make this 1 pixel transparent: */ 68 68 if (vboxGlobal().isCompositingManagerRunning()) 69 69 setAttribute(Qt::WA_TranslucentBackground); 70 #else /* ! Q_WS_X11 */70 #else /* !VBOX_WS_X11 */ 71 71 /* Make this 1 pixel transparent: */ 72 72 setAttribute(Qt::WA_TranslucentBackground); 73 #endif /* ! Q_WS_X11 */73 #endif /* !VBOX_WS_X11 */ 74 74 } 75 75 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
r58603 r60362 175 175 case UIDefaultIconType_MessageBoxWarning: 176 176 { 177 #ifdef Q_WS_MAC177 #ifdef VBOX_WS_MAC 178 178 /* At least in Qt 4.3.4/4.4 RC1 SP_MessageBoxWarning is the application 179 179 * icon. So change this to the critical icon. (Maybe this would be 180 180 * fixed in a later Qt version) */ 181 181 icon = pStyle->standardIcon(QStyle::SP_MessageBoxCritical, 0, pWidget); 182 #else /* Q_WS_MAC */182 #else /* VBOX_WS_MAC */ 183 183 icon = pStyle->standardIcon(QStyle::SP_MessageBoxWarning, 0, pWidget); 184 #endif /* ! Q_WS_MAC */184 #endif /* !VBOX_WS_MAC */ 185 185 break; 186 186 } … … 238 238 icon.addPixmap(pixmap, mode, state); 239 239 240 #ifdef Q_WS_MAC240 #ifdef VBOX_WS_MAC 241 241 # ifdef VBOX_GUI_WITH_HIDPI 242 242 /* Test if HiDPI icons are enabled. Works only with a patched version of Qt 4.x … … 248 248 return; 249 249 # endif /* !VBOX_GUI_WITH_HIDPI */ 250 #endif /* Q_WS_MAC */250 #endif /* VBOX_WS_MAC */ 251 251 252 252 /* Parse name to prefix and suffix: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r59911 r60362 26 26 # include <QThread> 27 27 # include <QProcess> 28 # ifdef Q_WS_MAC28 # ifdef VBOX_WS_MAC 29 29 # include <QPushButton> 30 # endif /* Q_WS_MAC */30 # endif /* VBOX_WS_MAC */ 31 31 32 32 /* GUI includes: */ … … 49 49 # include "VBoxAboutDlg.h" 50 50 # include "UIHostComboEditor.h" 51 # ifdef Q_WS_MAC51 # ifdef VBOX_WS_MAC 52 52 # include "VBoxUtils-darwin.h" 53 # endif /* Q_WS_MAC */54 # ifdef Q_WS_WIN53 # endif /* VBOX_WS_MAC */ 54 # ifdef VBOX_WS_WIN 55 55 # include <Htmlhelp.h> 56 # endif /* Q_WS_WIN */56 # endif /* VBOX_WS_WIN */ 57 57 58 58 /* COM includes: */ … … 2504 2504 errMsg = msg->pszDefine; 2505 2505 2506 #ifdef Q_WS_WIN2506 #ifdef VBOX_WS_WIN 2507 2507 PCRTWINERRMSG winMsg = NULL; 2508 2508 … … 2515 2515 errMsg = winMsg->pszDefine; 2516 2516 } 2517 #endif /* Q_WS_WIN */2517 #endif /* VBOX_WS_WIN */ 2518 2518 2519 2519 if (errMsg != NULL && *errMsg != '\0') … … 2540 2540 errMsg = msg->pszDefine; 2541 2541 2542 #ifdef Q_WS_WIN2542 #ifdef VBOX_WS_WIN 2543 2543 PCRTWINERRMSG winMsg = NULL; 2544 2544 … … 2551 2551 errMsg = winMsg->pszDefine; 2552 2552 } 2553 #endif /* Q_WS_WIN */2553 #endif /* VBOX_WS_WIN */ 2554 2554 2555 2555 if (errMsg != NULL && *errMsg != '\0') … … 2675 2675 void UIMessageCenter::sltShowUserManual(const QString &strLocation) 2676 2676 { 2677 #if defined ( Q_WS_WIN)2677 #if defined (VBOX_WS_WIN) 2678 2678 HtmlHelp(GetDesktopWindow(), strLocation.utf16(), HH_DISPLAY_TOPIC, NULL); 2679 #elif defined ( Q_WS_X11)2679 #elif defined (VBOX_WS_X11) 2680 2680 # ifndef VBOX_OSE 2681 2681 char szViewerPath[RTPATH_MAX]; … … 2687 2687 vboxGlobal().openURL("file://" + strLocation); 2688 2688 # endif /* #ifdef VBOX_OSE */ 2689 #elif defined ( Q_WS_MAC)2689 #elif defined (VBOX_WS_MAC) 2690 2690 vboxGlobal().openURL("file://" + strLocation); 2691 2691 #endif … … 2784 2784 if (info.isBasicAvailable()) 2785 2785 { 2786 #if defined ( Q_WS_WIN)2786 #if defined (VBOX_WS_WIN) 2787 2787 haveResultCode = info.isFullAvailable(); 2788 2788 bool haveComponent = true; 2789 2789 bool haveInterfaceID = true; 2790 #else /* defined ( Q_WS_WIN) */2790 #else /* defined (VBOX_WS_WIN) */ 2791 2791 haveResultCode = true; 2792 2792 bool haveComponent = info.isFullAvailable(); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r60347 r60362 38 38 # include <QLocale> 39 39 # include <QSpinBox> 40 # ifdef Q_WS_WIN40 # ifdef VBOX_WS_WIN 41 41 # include <QEventLoop> 42 # endif /* Q_WS_WIN */43 # ifdef Q_WS_X1142 # endif /* VBOX_WS_WIN */ 43 # ifdef VBOX_WS_X11 44 44 # include <QTextBrowser> 45 45 # include <QScrollBar> 46 46 # include <QX11Info> 47 # endif /* Q_WS_X11 */47 # endif /* VBOX_WS_X11 */ 48 48 # ifdef VBOX_GUI_WITH_PIDFILE 49 49 # include <QTextStream> … … 74 74 # include "UIIconPool.h" 75 75 # include "UIVirtualBoxEventHandler.h" 76 # ifdef Q_WS_X1176 # ifdef VBOX_WS_X11 77 77 # include "UIHostComboEditor.h" 78 78 # include "UIDesktopWidgetWatchdog.h" … … 80 80 # include "VBoxLicenseViewer.h" 81 81 # endif /* VBOX_OSE */ 82 # endif /* Q_WS_X11 */83 # ifdef Q_WS_MAC82 # endif /* VBOX_WS_X11 */ 83 # ifdef VBOX_WS_MAC 84 84 # include "VBoxUtils-darwin.h" 85 85 # include "UIMachineWindowFullscreen.h" 86 86 # include "UIMachineWindowSeamless.h" 87 # endif /* Q_WS_MAC */87 # endif /* VBOX_WS_MAC */ 88 88 # ifdef VBOX_WITH_VIDEOHWACCEL 89 89 # include "VBoxFBOverlay.h" … … 120 120 # include <iprt/system.h> 121 121 # include <iprt/stream.h> 122 # ifdef Q_WS_X11122 # ifdef VBOX_WS_X11 123 123 # include <iprt/mem.h> 124 # endif /* Q_WS_X11 */124 # endif /* VBOX_WS_X11 */ 125 125 # include <VBox/sup.h> 126 126 # include <VBox/com/Guid.h> 127 127 128 128 /* External includes: */ 129 # ifdef Q_WS_WIN129 # ifdef VBOX_WS_WIN 130 130 # include "shlobj.h" 131 # endif /* Q_WS_WIN */131 # endif /* VBOX_WS_WIN */ 132 132 133 133 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 155 155 /* External includes: */ 156 156 # include <math.h> 157 #ifdef Q_WS_MAC157 #ifdef VBOX_WS_MAC 158 158 # include <sys/utsname.h> 159 #endif /* Q_WS_MAC */160 #ifdef Q_WS_X11159 #endif /* VBOX_WS_MAC */ 160 #ifdef VBOX_WS_X11 161 161 # undef BOOL /* typedef CARD8 BOOL in Xmd.h conflicts with #define BOOL PRBool 162 162 * in COMDefs.h. A better fix would be to isolate X11-specific … … 168 168 # include <X11/extensions/Xinerama.h> 169 169 # define BOOL PRBool 170 #endif /* Q_WS_X11 */170 #endif /* VBOX_WS_X11 */ 171 171 172 172 … … 223 223 VBoxGlobal::VBoxGlobal() 224 224 : mValid (false) 225 #ifdef Q_WS_MAC225 #ifdef VBOX_WS_MAC 226 226 , m_osRelease(MacOSXRelease_Old) 227 #endif /* Q_WS_MAC */227 #endif /* VBOX_WS_MAC */ 228 228 , m_fWrappersValid(false) 229 229 , m_fVBoxSVCAvailable(true) 230 230 , m_fSeparateProcess(false) 231 231 , m_pMediumEnumerator(0) 232 #ifdef Q_WS_X11232 #ifdef VBOX_WS_X11 233 233 , m_fCompositingManagerRunning(false) 234 234 , m_enmWindowManagerType(X11WMType_Unknown) 235 235 , m_pDesktopWidgetWatchdog(0) 236 #endif /* Q_WS_X11 */236 #endif /* VBOX_WS_X11 */ 237 237 #if defined(DEBUG_bird) 238 238 , mAgressiveCaching(false) … … 308 308 } 309 309 310 #ifdef Q_WS_MAC310 #ifdef VBOX_WS_MAC 311 311 /* static */ 312 312 MacOSXRelease VBoxGlobal::determineOsRelease() … … 334 334 return MacOSXRelease_Old; 335 335 } 336 #endif /* Q_WS_MAC */336 #endif /* VBOX_WS_MAC */ 337 337 338 338 int VBoxGlobal::screenCount() const … … 356 356 const QRect VBoxGlobal::screenGeometry(int iHostScreenIndex /* = -1 */) const 357 357 { 358 #ifdef Q_WS_X11358 #ifdef VBOX_WS_X11 359 359 /* Make sure desktop-widget watchdog already created: */ 360 360 AssertPtrReturn(m_pDesktopWidgetWatchdog, QApplication::desktop()->screenGeometry(iHostScreenIndex)); 361 361 /* Redirect call to UIDesktopWidgetWatchdog: */ 362 362 return m_pDesktopWidgetWatchdog->screenGeometry(iHostScreenIndex); 363 #endif /* Q_WS_X11 */363 #endif /* VBOX_WS_X11 */ 364 364 365 365 /* Redirect call to QDesktopWidget: */ … … 369 369 const QRect VBoxGlobal::availableGeometry(int iHostScreenIndex /* = -1 */) const 370 370 { 371 #ifdef Q_WS_X11371 #ifdef VBOX_WS_X11 372 372 /* Make sure desktop-widget watchdog already created: */ 373 373 AssertPtrReturn(m_pDesktopWidgetWatchdog, QApplication::desktop()->availableGeometry(iHostScreenIndex)); 374 374 /* Redirect call to UIDesktopWidgetWatchdog: */ 375 375 return m_pDesktopWidgetWatchdog->availableGeometry(iHostScreenIndex); 376 #endif /* Q_WS_X11 */376 #endif /* VBOX_WS_X11 */ 377 377 378 378 /* Redirect call to QDesktopWidget: */ … … 501 501 } 502 502 503 #ifdef Q_WS_X11503 #ifdef VBOX_WS_X11 504 504 QList<QRect> XGetDesktopList() 505 505 { … … 616 616 return result; 617 617 } 618 #endif /* ifdef Q_WS_X11 */618 #endif /* ifdef VBOX_WS_X11 */ 619 619 620 620 /** … … 2200 2200 startMediumEnumeration(); 2201 2201 2202 #ifdef Q_WS_X112202 #ifdef VBOX_WS_X11 2203 2203 /* As X11 do not have functionality for providing human readable key names, 2204 2204 * we keep a table of them, which must be updated when the language is changed. */ 2205 2205 UINativeHotKey::retranslateKeyNames(); 2206 #endif /* Q_WS_X11 */2206 #endif /* VBOX_WS_X11 */ 2207 2207 } 2208 2208 … … 2413 2413 if (fResetToC) 2414 2414 sLoadedLangId = "C"; 2415 #ifdef Q_WS_MAC2415 #ifdef VBOX_WS_MAC 2416 2416 /* Qt doesn't translate the items in the Application menu initially. 2417 2417 * Manually trigger an update. */ 2418 2418 ::darwinRetranslateAppMenu(); 2419 #endif /* Q_WS_MAC */2419 #endif /* VBOX_WS_MAC */ 2420 2420 } 2421 2421 2422 2422 QString VBoxGlobal::helpFile() const 2423 2423 { 2424 #if defined ( Q_WS_WIN)2424 #if defined (VBOX_WS_WIN) 2425 2425 const QString name = "VirtualBox"; 2426 2426 const QString suffix = "chm"; 2427 #elif defined ( Q_WS_MAC)2427 #elif defined (VBOX_WS_MAC) 2428 2428 const QString name = "UserManual"; 2429 2429 const QString suffix = "pdf"; 2430 #elif defined ( Q_WS_X11)2430 #elif defined (VBOX_WS_X11) 2431 2431 # if defined VBOX_OSE 2432 2432 const QString name = "UserManual"; … … 2725 2725 /* ensure the widget is within the available desktop area */ 2726 2726 QRect newGeo = normalizeGeometry (geo, deskGeo, aCanResize); 2727 #ifdef Q_WS_MAC2727 #ifdef VBOX_WS_MAC 2728 2728 /* No idea why, but Qt doesn't respect if there is a unified toolbar on the 2729 2729 * ::move call. So manually add the height of the toolbar before setting … … 2731 2731 if (w) 2732 2732 newGeo.translate (0, ::darwinWindowToolBarHeight (aWidget)); 2733 #endif /* Q_WS_MAC */2733 #endif /* VBOX_WS_MAC */ 2734 2734 2735 2735 aWidget->move (newGeo.topLeft()); … … 3151 3151 QString VBoxGlobal::systemLanguageId() 3152 3152 { 3153 #if defined ( Q_WS_MAC)3153 #if defined (VBOX_WS_MAC) 3154 3154 /* QLocale return the right id only if the user select the format of the 3155 3155 * language also. So we use our own implementation */ … … 3167 3167 } 3168 3168 3169 #if defined ( Q_WS_X11)3169 #if defined (VBOX_WS_X11) 3170 3170 3171 3171 static char *XXGetProperty (Display *aDpy, Window aWnd, … … 3242 3242 bool result = true; 3243 3243 3244 #if defined ( Q_WS_WIN)3244 #if defined (VBOX_WS_WIN) 3245 3245 3246 3246 HWND handle = (HWND)aWId; … … 3253 3253 result &= !!SetForegroundWindow (handle); 3254 3254 3255 #elif defined ( Q_WS_X11)3255 #elif defined (VBOX_WS_X11) 3256 3256 3257 3257 Display *dpy = QX11Info::display(); … … 3307 3307 } 3308 3308 3309 #ifdef Q_WS_X113309 #ifdef VBOX_WS_X11 3310 3310 /* This method tests whether the current X11 window manager supports full-screen mode as we need it. 3311 3311 * Unfortunately the EWMH specification was not fully clear about whether we can expect to find … … 3459 3459 } 3460 3460 } 3461 #endif /* Q_WS_X11 */3461 #endif /* VBOX_WS_X11 */ 3462 3462 3463 3463 /** … … 3501 3501 QString VBoxGlobal::insertKeyToActionText(const QString &strText, const QString &strKey) 3502 3502 { 3503 #ifdef Q_WS_MAC3503 #ifdef VBOX_WS_MAC 3504 3504 QString pattern("%1 (Host+%2)"); 3505 3505 #else … … 3933 3933 if (args.at(i).startsWith("-")) 3934 3934 break; 3935 #ifdef Q_WS_MAC3935 #ifdef VBOX_WS_MAC 3936 3936 QString strArg = ::darwinResolveAlias(args.at(i)); 3937 #else /* Q_WS_MAC */3937 #else /* VBOX_WS_MAC */ 3938 3938 QString strArg = args.at(i); 3939 #endif /* ! Q_WS_MAC */3939 #endif /* !VBOX_WS_MAC */ 3940 3940 if ( !strArg.isEmpty() 3941 3941 && QFile::exists(strArg)) … … 3975 3975 connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(cleanup())); 3976 3976 3977 #ifdef Q_WS_MAC3977 #ifdef VBOX_WS_MAC 3978 3978 /* Determine OS release early: */ 3979 3979 m_osRelease = determineOsRelease(); 3980 #endif /* Q_WS_MAC */3980 #endif /* VBOX_WS_MAC */ 3981 3981 3982 3982 /* Create message-center: */ … … 4056 4056 UIVisualStateType visualStateType = UIVisualStateType_Invalid; 4057 4057 4058 #ifdef Q_WS_X114058 #ifdef VBOX_WS_X11 4059 4059 /* Check whether we have compositing manager running: */ 4060 4060 m_fCompositingManagerRunning = X11IsCompositingManagerRunning(); … … 4065 4065 /* Create desktop-widget watchdog instance: */ 4066 4066 m_pDesktopWidgetWatchdog = new UIDesktopWidgetWatchdog(this); 4067 #endif /* Q_WS_X11 */4067 #endif /* VBOX_WS_X11 */ 4068 4068 4069 4069 #ifdef VBOX_WITH_DEBUGGER_GUI … … 4706 4706 bool VBoxGlobal::switchToMachine(CMachine &machine) 4707 4707 { 4708 #ifdef Q_WS_MAC4708 #ifdef VBOX_WS_MAC 4709 4709 ULONG64 id = machine.ShowConsoleWindow(); 4710 4710 #else … … 4720 4720 return true; 4721 4721 4722 #if defined ( Q_WS_WIN) || defined (Q_WS_X11)4722 #if defined (VBOX_WS_WIN) || defined (VBOX_WS_X11) 4723 4723 4724 4724 return vboxGlobal().activateWindow(id, true); 4725 4725 4726 #elif defined ( Q_WS_MAC)4726 #elif defined (VBOX_WS_MAC) 4727 4727 /* 4728 4728 * This is just for the case were the other process cannot steal … … 4751 4751 return false; 4752 4752 4753 #if defined ( Q_WS_WIN)4753 #if defined (VBOX_WS_WIN) 4754 4754 4755 4755 HWND hwnd = mWinId; … … 4787 4787 return true; 4788 4788 4789 #elif defined ( Q_WS_X11)4789 #elif defined (VBOX_WS_X11) 4790 4790 4791 4791 return false; 4792 4792 4793 #elif defined ( Q_WS_MAC)4793 #elif defined (VBOX_WS_MAC) 4794 4794 4795 4795 ProcessSerialNumber psn; … … 4849 4849 AllowSetForegroundWindow(ASFW_ANY); 4850 4850 #endif /* Q_OS_WIN */ 4851 #ifdef Q_WS_X114851 #ifdef VBOX_WS_X11 4852 4852 /* Make sure VM process will start on the same display as the VM selector: */ 4853 4853 const char *pDisplay = RTEnvGet("DISPLAY"); … … 4857 4857 if (pXauth) 4858 4858 strEnv.append(QString("XAUTHORITY=%1\n").arg(pXauth)); 4859 #endif /* Q_WS_X11 */4859 #endif /* VBOX_WS_X11 */ 4860 4860 QString strType; 4861 4861 switch (enmLaunchMode) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r59887 r60362 27 27 #include <QFileIconProvider> 28 28 #include <QReadWriteLock> 29 #ifdef Q_WS_MAC29 #ifdef VBOX_WS_MAC 30 30 # include <QSet> 31 #endif /* Q_WS_MAC */31 #endif /* VBOX_WS_MAC */ 32 32 33 33 /* GUI includes: */ … … 35 35 #include "UIMediumDefs.h" 36 36 #include "VBoxGlobalSettings.h" 37 #ifdef Q_WS_X1137 #ifdef VBOX_WS_X11 38 38 # include "VBoxX11Helper.h" 39 #endif /* Q_WS_X11 */39 #endif /* VBOX_WS_X11 */ 40 40 41 41 /* COM includes: */ … … 48 48 49 49 /* Other includes: */ 50 #ifdef Q_WS_X1150 #ifdef VBOX_WS_X11 51 51 # include <X11/Xdefs.h> 52 #endif /* Q_WS_X11 */52 #endif /* VBOX_WS_X11 */ 53 53 54 54 /* Forward declarations: */ … … 66 66 class UIIconPoolGeneral; 67 67 class UIThreadPool; 68 #ifdef Q_WS_X1168 #ifdef VBOX_WS_X11 69 69 class UIDesktopWidgetWatchdog; 70 #endif /* Q_WS_X11 */70 #endif /* VBOX_WS_X11 */ 71 71 72 72 // VBoxGlobal class … … 119 119 bool isSeparateProcess() const { return m_fSeparateProcess; } 120 120 121 #ifdef Q_WS_MAC121 #ifdef VBOX_WS_MAC 122 122 /** Mac OS X: Returns #MacOSXRelease determined using <i>uname</i> call. */ 123 123 static MacOSXRelease determineOsRelease(); 124 124 /** Mac OS X: Returns #MacOSXRelease determined during VBoxGlobal prepare routine. */ 125 125 MacOSXRelease osRelease() const { return m_osRelease; } 126 #endif /* Q_WS_MAC */126 #endif /* VBOX_WS_MAC */ 127 127 128 128 /** Try to acquire COM cleanup protection token for reading. */ … … 203 203 QList<QUrl> &argUrlList() { return m_ArgUrlList; } 204 204 205 #ifdef Q_WS_X11205 #ifdef VBOX_WS_X11 206 206 /** X11: Returns whether the Window Manager we are running at is composition one. */ 207 207 bool isCompositingManagerRunning() const { return m_fCompositingManagerRunning; } 208 208 /** X11: Returns the type of the Window Manager we are running under. */ 209 209 X11WMType typeOfWindowManager() const { return m_enmWindowManagerType; } 210 #endif /* Q_WS_X11 */210 #endif /* VBOX_WS_X11 */ 211 211 212 212 /** Returns whether we should restore current snapshot before VM started. */ … … 417 417 static bool activateWindow (WId aWId, bool aSwitchDesktop = true); 418 418 419 #ifdef Q_WS_X11419 #ifdef VBOX_WS_X11 420 420 /** X11: Test whether the current window manager supports full screen mode. */ 421 421 static bool supportsFullScreenMonitorsProtocolX11(); … … 429 429 /** X11: Sets _NET_WM_STATE_FULLSCREEN flag for passed @a pWidget. */ 430 430 static void setFullScreenFlag(QWidget *pWidget); 431 #endif /* Q_WS_X11 */431 #endif /* VBOX_WS_X11 */ 432 432 433 433 static QString removeAccelMark (const QString &aText); … … 528 528 bool mValid; 529 529 530 #ifdef Q_WS_MAC530 #ifdef VBOX_WS_MAC 531 531 /** Mac OS X: Holds the #MacOSXRelease determined using <i>uname</i> call. */ 532 532 MacOSXRelease m_osRelease; 533 #endif /* Q_WS_MAC */533 #endif /* VBOX_WS_MAC */ 534 534 535 535 /** COM cleanup protection token. */ … … 569 569 mutable QReadWriteLock m_mediumEnumeratorDtorRwLock; 570 570 571 #ifdef Q_WS_X11571 #ifdef VBOX_WS_X11 572 572 /** X11: Holds whether the Window Manager we are running at is composition one. */ 573 573 bool m_fCompositingManagerRunning; … … 580 580 UIDesktopWidgetWatchdog *m_pDesktopWidgetWatchdog; 581 581 /** @} */ 582 #endif /* Q_WS_X11 */582 #endif /* VBOX_WS_X11 */ 583 583 584 584 /** The --aggressive-caching / --no-aggressive-caching option. */ … … 630 630 #endif 631 631 632 #if defined ( Q_WS_WIN)632 #if defined (VBOX_WS_WIN) 633 633 DWORD dwHTMLHelpCookie; 634 634 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxUtils.h
r58866 r60362 276 276 }; 277 277 278 #ifdef Q_WS_MAC278 #ifdef VBOX_WS_MAC 279 279 # include "VBoxUtils-darwin.h" 280 #endif /* Q_WS_MAC */280 #endif /* VBOX_WS_MAC */ 281 281 282 282 #endif // !___VBoxUtils_h___ -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r59910 r60362 28 28 # include "UISelectorWindow.h" 29 29 # include "UIModalWindowManager.h" 30 # ifdef Q_WS_MAC30 # ifdef VBOX_WS_MAC 31 31 # include "VBoxUtils.h" 32 32 # include "UICocoaApplication.h" 33 # endif /* Q_WS_MAC */33 # endif /* VBOX_WS_MAC */ 34 34 35 35 /* Other VBox includes: */ … … 41 41 # else /* !VBOX_WITH_HARDENING */ 42 42 # include <iprt/initterm.h> 43 # ifdef Q_WS_MAC43 # ifdef VBOX_WS_MAC 44 44 # include <iprt/asm.h> 45 # endif /* Q_WS_MAC */45 # endif /* VBOX_WS_MAC */ 46 46 # endif /* !VBOX_WITH_HARDENING */ 47 # ifdef Q_WS_X1147 # ifdef VBOX_WS_X11 48 48 # include <iprt/env.h> 49 # endif /* Q_WS_X11 */49 # endif /* VBOX_WS_X11 */ 50 50 51 51 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 52 52 53 53 /* Qt includes: */ 54 #ifdef Q_WS_X1154 #ifdef VBOX_WS_X11 55 55 # ifdef Q_OS_SOLARIS 56 56 # include <QPlastiqueStyle> … … 59 59 # include <QFontDatabase> 60 60 # endif /* !Q_OS_SOLARIS */ 61 #endif /* Q_WS_X11 */61 #endif /* VBOX_WS_X11 */ 62 62 63 63 /* Other VBox includes: */ … … 69 69 70 70 /* Other includes: */ 71 #ifdef Q_WS_MAC71 #ifdef VBOX_WS_MAC 72 72 # include <dlfcn.h> 73 73 # include <sys/mman.h> 74 #endif /* Q_WS_MAC */75 #ifdef Q_WS_X1174 #endif /* VBOX_WS_MAC */ 75 #ifdef VBOX_WS_X11 76 76 # include <dlfcn.h> 77 77 # include <unistd.h> … … 90 90 # endif /* !RT_ARCH_AMD64 */ 91 91 # endif /* RT_OS_LINUX && DEBUG */ 92 #endif /* Q_WS_X11 */92 #endif /* VBOX_WS_X11 */ 93 93 94 94 … … 133 133 134 134 135 #ifdef Q_WS_MAC135 #ifdef VBOX_WS_MAC 136 136 /** 137 137 * Mac OS X: Really ugly hack to bypass a set-uid check in AppKit. … … 151 151 ASMAtomicWriteU32((volatile uint32_t *)pvAddr, 0xccc3c031); /* xor eax, eax; ret; int3 */ 152 152 } 153 #endif /* Q_WS_MAC */154 155 #ifdef Q_WS_X11153 #endif /* VBOX_WS_MAC */ 154 155 #ifdef VBOX_WS_X11 156 156 /** X11: For versions of Xlib which are aware of multi-threaded environments this function 157 157 * calls for XInitThreads() which initializes Xlib support for concurrent threads. … … 224 224 } 225 225 # endif /* RT_OS_LINUX && DEBUG */ 226 #endif /* Q_WS_X11 */226 #endif /* VBOX_WS_X11 */ 227 227 228 228 #if QT_VERSION >= 0x050000 … … 235 235 { 236 236 NOREF(context); 237 # ifndef Q_WS_X11237 # ifndef VBOX_WS_X11 238 238 NOREF(strMessage); 239 # endif /* ! Q_WS_X11 */239 # endif /* !VBOX_WS_X11 */ 240 240 switch (type) 241 241 { … … 245 245 case QtWarningMsg: 246 246 Log(("Qt WARNING: %s\n", strMessage.toUtf8().constData())); 247 # ifdef Q_WS_X11247 # ifdef VBOX_WS_X11 248 248 /* Needed for instance for the message ``cannot connect to X server'': */ 249 249 RTStrmPrintf(g_pStdErr, "Qt WARNING: %s\n", strMessage.toUtf8().constData()); 250 # endif /* Q_WS_X11 */250 # endif /* VBOX_WS_X11 */ 251 251 break; 252 252 case QtCriticalMsg: 253 253 Log(("Qt CRITICAL: %s\n", strMessage.toUtf8().constData())); 254 # ifdef Q_WS_X11254 # ifdef VBOX_WS_X11 255 255 /* Needed for instance for the message ``cannot connect to X server'': */ 256 256 RTStrmPrintf(g_pStdErr, "Qt CRITICAL: %s\n", strMessage.toUtf8().constData()); 257 # endif /* Q_WS_X11 */257 # endif /* VBOX_WS_X11 */ 258 258 break; 259 259 case QtFatalMsg: 260 260 Log(("Qt FATAL: %s\n", strMessage.toUtf8().constData())); 261 # ifdef Q_WS_X11261 # ifdef VBOX_WS_X11 262 262 /* Needed for instance for the message ``cannot connect to X server'': */ 263 263 RTStrmPrintf(g_pStdErr, "Qt FATAL: %s\n", strMessage.toUtf8().constData()); 264 # endif /* Q_WS_X11 */264 # endif /* VBOX_WS_X11 */ 265 265 } 266 266 } … … 272 272 static void QtMessageOutput(QtMsgType type, const char *pMsg) 273 273 { 274 # ifndef Q_WS_X11274 # ifndef VBOX_WS_X11 275 275 NOREF(pMsg); 276 # endif /* ! Q_WS_X11 */276 # endif /* !VBOX_WS_X11 */ 277 277 switch (type) 278 278 { … … 282 282 case QtWarningMsg: 283 283 Log(("Qt WARNING: %s\n", pMsg)); 284 # ifdef Q_WS_X11284 # ifdef VBOX_WS_X11 285 285 /* Needed for instance for the message ``cannot connect to X server'': */ 286 286 RTStrmPrintf(g_pStdErr, "Qt WARNING: %s\n", pMsg); 287 # endif /* Q_WS_X11 */287 # endif /* VBOX_WS_X11 */ 288 288 break; 289 289 case QtCriticalMsg: 290 290 Log(("Qt CRITICAL: %s\n", pMsg)); 291 # ifdef Q_WS_X11291 # ifdef VBOX_WS_X11 292 292 /* Needed for instance for the message ``cannot connect to X server'': */ 293 293 RTStrmPrintf(g_pStdErr, "Qt CRITICAL: %s\n", pMsg); 294 # endif /* Q_WS_X11 */294 # endif /* VBOX_WS_X11 */ 295 295 break; 296 296 case QtFatalMsg: 297 297 Log(("Qt FATAL: %s\n", pMsg)); 298 # ifdef Q_WS_X11298 # ifdef VBOX_WS_X11 299 299 /* Needed for instance for the message ``cannot connect to X server'': */ 300 300 RTStrmPrintf(g_pStdErr, "Qt FATAL: %s\n", pMsg); 301 # endif /* Q_WS_X11 */301 # endif /* VBOX_WS_X11 */ 302 302 } 303 303 } … … 371 371 do 372 372 { 373 #ifdef Q_WS_MAC373 #ifdef VBOX_WS_MAC 374 374 /* Hide setuid root from AppKit: */ 375 375 HideSetUidRootFromAppKit(); 376 #endif /* Q_WS_MAC */377 378 #ifdef Q_WS_X11376 #endif /* VBOX_WS_MAC */ 377 378 #ifdef VBOX_WS_X11 379 379 /* Make sure multi-threaded environment is safe: */ 380 380 if (!MakeSureMultiThreadingIsSafe()) 381 381 break; 382 #endif /* Q_WS_X11 */382 #endif /* VBOX_WS_X11 */ 383 383 384 384 /* Console help preprocessing: */ … … 407 407 #endif /* VBOX_WITH_HARDENING */ 408 408 409 #ifdef Q_WS_MAC409 #ifdef VBOX_WS_MAC 410 410 /* Apply font fixes (before QApplication get created and instantiated font-hints): */ 411 411 switch (VBoxGlobal::determineOsRelease()) … … 419 419 /* Instantiate own NSApplication before QApplication do it for us: */ 420 420 UICocoaApplication::instance(); 421 #endif /* Q_WS_MAC */422 423 #ifdef Q_WS_X11421 #endif /* VBOX_WS_MAC */ 422 423 #ifdef VBOX_WS_X11 424 424 # if defined(RT_OS_LINUX) && defined(DEBUG) 425 425 /* Install signal handler to backtrace the call stack: */ 426 426 InstallSignalHandler(); 427 427 # endif /* RT_OS_LINUX && DEBUG */ 428 #endif /* Q_WS_X11 */428 #endif /* VBOX_WS_X11 */ 429 429 430 430 #if QT_VERSION >= 0x050000 … … 439 439 QApplication a(argc, argv); 440 440 441 #ifdef Q_WS_WIN441 #ifdef VBOX_WS_WIN 442 442 /* Drag in the sound drivers and DLLs early to get rid of the delay taking 443 443 * place when the main menu bar (or any action from that menu bar) is … … 447 447 * thread to several seconds). */ 448 448 PlaySound(NULL, NULL, 0); 449 #endif /* Q_WS_WIN */450 451 #ifdef Q_WS_MAC449 #endif /* VBOX_WS_WIN */ 450 451 #ifdef VBOX_WS_MAC 452 452 # ifdef VBOX_GUI_WITH_HIDPI 453 453 /* Enable HiDPI icons. … … 459 459 /* Disable menu icons on MacOS X host: */ 460 460 ::darwinDisableIconsInMenus(); 461 #endif /* Q_WS_MAC */462 463 #ifdef Q_WS_X11461 #endif /* VBOX_WS_MAC */ 462 463 #ifdef VBOX_WS_X11 464 464 /* Make all widget native. 465 465 * We did it to avoid various Qt crashes while testing widget attributes or acquiring winIds. … … 500 500 break; 501 501 } 502 #endif /* Q_WS_X11 */502 #endif /* VBOX_WS_X11 */ 503 503 504 504 /* Create modal-window manager: */ … … 554 554 int main(int argc, char **argv, char **envp) 555 555 { 556 #ifdef Q_WS_X11556 #ifdef VBOX_WS_X11 557 557 /* Make sure multi-threaded environment is safe: */ 558 558 if (!MakeSureMultiThreadingIsSafe()) 559 559 return 1; 560 #endif /* Q_WS_X11 */560 #endif /* VBOX_WS_X11 */ 561 561 562 562 /* Initialize VBox Runtime. … … 662 662 extern "C" DECLEXPORT(void) TrustedError(const char *pszWhere, SUPINITOP enmWhat, int rc, const char *pszMsgFmt, va_list va) 663 663 { 664 # ifdef Q_WS_MAC664 # ifdef VBOX_WS_MAC 665 665 /* Hide setuid root from AppKit: */ 666 666 HideSetUidRootFromAppKit(); 667 # endif /* Q_WS_MAC */667 # endif /* VBOX_WS_MAC */ 668 668 669 669 char szMsgBuf[_16K]; … … 749 749 } 750 750 751 # ifdef Q_WS_X11751 # ifdef VBOX_WS_X11 752 752 /* We have to to make sure that we display the error-message 753 753 * after the parent displayed its own message. */ 754 754 sleep(2); 755 # endif /* Q_WS_X11 */755 # endif /* VBOX_WS_X11 */ 756 756 757 757 /* Update strText with strDetails: */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r59094 r60362 49 49 # include "CMediumAttachment.h" 50 50 51 # ifdef Q_WS_MAC51 # ifdef VBOX_WS_MAC 52 52 # include "UIWindowMenuManager.h" 53 # endif /* Q_WS_MAC */53 # endif /* VBOX_WS_MAC */ 54 54 55 55 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 1087 1087 } 1088 1088 1089 #ifdef Q_WS_MAC1089 #ifdef VBOX_WS_MAC 1090 1090 /* Prepare 'Window' menu: */ 1091 1091 AssertPtrReturnVoid(gpWindowMenuManager); 1092 1092 menuBar()->addMenu(gpWindowMenuManager->createMenu(this)); 1093 1093 gpWindowMenuManager->addWindow(this); 1094 #endif /* Q_WS_MAC */1094 #endif /* VBOX_WS_MAC */ 1095 1095 } 1096 1096 … … 1154 1154 /* Integrate tool-bar into dialog: */ 1155 1155 QVBoxLayout *pMainLayout = qobject_cast<QVBoxLayout*>(centralWidget()->layout()); 1156 #ifdef Q_WS_MAC1156 #ifdef VBOX_WS_MAC 1157 1157 /* Enable unified tool-bars on Mac OS X. Available on Qt >= 4.3: */ 1158 1158 addToolBar(m_pToolBar); … … 1161 1161 pMainLayout->setContentsMargins(0, 0, 0, 0); 1162 1162 pMainLayout->insertSpacing(0, 10); 1163 #else /* ! Q_WS_MAC */1163 #else /* !VBOX_WS_MAC */ 1164 1164 /* Add the tool-bar: */ 1165 1165 pMainLayout->insertWidget(0, m_pToolBar); … … 1167 1167 pMainLayout->setSpacing(5); 1168 1168 pMainLayout->setContentsMargins(5, 5, 5, 5); 1169 #endif /* ! Q_WS_MAC */1169 #endif /* !VBOX_WS_MAC */ 1170 1170 } 1171 1171 } … … 1395 1395 UIMediumItem *pMediumItem = mediumItem(type); 1396 1396 1397 #ifdef Q_WS_MAC1397 #ifdef VBOX_WS_MAC 1398 1398 /* Set the file for the proxy icon: */ 1399 1399 if (pMediumItem == currentMediumItem()) 1400 1400 setWindowFilePath(pMediumItem ? pMediumItem->location() : QString()); 1401 #endif /* Q_WS_MAC */1401 #endif /* VBOX_WS_MAC */ 1402 1402 1403 1403 /* Make sure current medium-item visible: */ … … 1715 1715 void UIMediumManager::cleanupMenuBar() 1716 1716 { 1717 #ifdef Q_WS_MAC1717 #ifdef VBOX_WS_MAC 1718 1718 /* Cleanup 'Window' menu: */ 1719 1719 AssertPtrReturnVoid(gpWindowMenuManager); 1720 1720 gpWindowMenuManager->removeWindow(this); 1721 1721 gpWindowMenuManager->destroyMenu(this); 1722 #endif /* Q_WS_MAC */1722 #endif /* VBOX_WS_MAC */ 1723 1723 } 1724 1724 … … 1775 1775 1776 1776 /* Translate tool-bar: */ 1777 #ifdef Q_WS_MAC1777 #ifdef VBOX_WS_MAC 1778 1778 /* There is a bug in Qt Cocoa which result in showing a "more arrow" when 1779 1779 the necessary size of the toolbar is increased. Also for some languages … … 1782 1782 if (m_pToolBar) 1783 1783 m_pToolBar->updateLayout(); 1784 #endif /* Q_WS_MAC */1784 #endif /* VBOX_WS_MAC */ 1785 1785 1786 1786 /* Translate tab-widget: */ … … 1853 1853 { 1854 1854 m_pProgressBar->setText(QApplication::translate("VBoxMediaManagerDlg", "Checking accessibility")); 1855 #ifdef Q_WS_MAC1855 #ifdef VBOX_WS_MAC 1856 1856 /* Make sure that the widgets aren't jumping around 1857 1857 * while the progress-bar get visible. */ … … 1860 1860 if (m_pButtonBox) 1861 1861 m_pButtonBox->setMinimumHeight(h + 12); 1862 #endif /* Q_WS_MAC */1862 #endif /* VBOX_WS_MAC */ 1863 1863 } 1864 1864 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxIChatTheaterWrapper.h
r52727 r60362 19 19 #define ___VBoxIChatTheaterWrapper_h 20 20 21 #if defined ( Q_WS_MAC) && defined (VBOX_WITH_ICHAT_THEATER)21 #if defined (VBOX_WS_MAC) && defined (VBOX_WITH_ICHAT_THEATER) 22 22 23 23 # include <ApplicationServices/ApplicationServices.h> -
trunk/src/VBox/Frontends/VirtualBox/src/precomp.h
r59094 r60362 102 102 #include <QListWidget> 103 103 #include <QLocale> 104 #ifdef Q_WS_MAC104 #ifdef VBOX_WS_MAC 105 105 //# include <QMacCocoaViewContainer> - only used once / only used in Objective C++ 106 106 #endif … … 205 205 #include <QWizard> 206 206 #include <QWizardPage> 207 #ifdef Q_WS_X11207 #ifdef VBOX_WS_X11 208 208 # include <QX11Info> 209 209 #endif … … 216 216 * System specific headers. 217 217 */ 218 #ifdef Q_WS_WIN218 #ifdef VBOX_WS_WIN 219 219 # include <shlobj.h> 220 220 # include <Windows.h> … … 669 669 #include "VBoxUtils.h" 670 670 #include "VBoxVersion.h" 671 #ifdef Q_WS_X11671 #ifdef VBOX_WS_X11 672 672 # include "VBoxX11Helper.h" 673 673 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r58674 r60362 298 298 QKeySequence defaultShortcut(UIActionPoolType) const 299 299 { 300 #ifdef Q_WS_MAC300 #ifdef VBOX_WS_MAC 301 301 return QKeySequence("U"); 302 #else /* Q_WS_MAC */302 #else /* VBOX_WS_MAC */ 303 303 return QKeySequence("H"); 304 #endif /* ! Q_WS_MAC */304 #endif /* !VBOX_WS_MAC */ 305 305 } 306 306 … … 1064 1064 }; 1065 1065 1066 #ifdef Q_WS_X111066 #ifdef VBOX_WS_X11 1067 1067 class UIActionSimplePerformTypeCABS : public UIActionSimple 1068 1068 { … … 1099 1099 } 1100 1100 }; 1101 #endif /* Q_WS_X11 */1101 #endif /* VBOX_WS_X11 */ 1102 1102 1103 1103 class UIActionSimplePerformTypeCtrlBreak : public UIActionSimple … … 1861 1861 } 1862 1862 }; 1863 #endif /* Q_WS_MAC */1863 #endif /* VBOX_WS_MAC */ 1864 1864 1865 1865 UIActionPoolRuntime::UIActionPoolRuntime(bool fTemporary /* = false */) … … 2109 2109 m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_Settings] = new UIActionSimpleKeyboardSettings(this); 2110 2110 m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD] = new UIActionSimplePerformTypeCAD(this); 2111 #ifdef Q_WS_X112111 #ifdef VBOX_WS_X11 2112 2112 m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS] = new UIActionSimplePerformTypeCABS(this); 2113 #endif /* Q_WS_X11 */2113 #endif /* VBOX_WS_X11 */ 2114 2114 m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak] = new UIActionSimplePerformTypeCtrlBreak(this); 2115 2115 m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert] = new UIActionSimplePerformTypeInsert(this); … … 2143 2143 #endif /* VBOX_WITH_DEBUGGER_GUI */ 2144 2144 2145 #ifdef Q_WS_MAC2145 #ifdef VBOX_WS_MAC 2146 2146 /* 'Dock' actions: */ 2147 2147 m_pool[UIActionIndexRT_M_Dock] = new UIActionMenuDock(this); … … 2150 2150 m_pool[UIActionIndexRT_M_Dock_M_DockSettings_T_DisableMonitor] = new UIActionToggleDockDisableMonitor(this); 2151 2151 m_pool[UIActionIndexRT_M_Dock_M_DockSettings_T_DisableOverlay] = new UIActionToggleDockIconDisableOverlay(this); 2152 #endif /* Q_WS_MAC */2152 #endif /* VBOX_WS_MAC */ 2153 2153 2154 2154 /* Prepare update-handlers for known menus: */ … … 2205 2205 m_restrictedActionsMenuDebug[UIActionRestrictionLevel_Base] = gEDataManager->restrictedRuntimeMenuDebuggerActionTypes(strMachineID); 2206 2206 #endif /* VBOX_WITH_DEBUGGER_GUI */ 2207 #ifdef Q_WS_MAC2207 #ifdef VBOX_WS_MAC 2208 2208 m_restrictedActionsMenuWindow[UIActionRestrictionLevel_Base] = gEDataManager->restrictedRuntimeMenuWindowActionTypes(strMachineID); 2209 #endif /* Q_WS_MAC */2209 #endif /* VBOX_WS_MAC */ 2210 2210 m_restrictedActionsMenuHelp[UIActionRestrictionLevel_Base] = gEDataManager->restrictedRuntimeMenuHelpActionTypes(strMachineID); 2211 2211 … … 2575 2575 /* 'Menu Bar Settings' action: */ 2576 2576 addAction(pMenu, action(UIActionIndexRT_M_View_M_MenuBar_S_Settings)); 2577 #ifndef Q_WS_MAC2577 #ifndef VBOX_WS_MAC 2578 2578 /* 'Toggle Menu Bar' action: */ 2579 2579 addAction(pMenu, action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)); 2580 #endif /* ! Q_WS_MAC */2580 #endif /* !VBOX_WS_MAC */ 2581 2581 2582 2582 /* Mark menu as valid: */ … … 2823 2823 /* 'Type CAD' action: */ 2824 2824 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD)) || fSeparator; 2825 #ifdef Q_WS_X112825 #ifdef VBOX_WS_X11 2826 2826 /* 'Type CABS' action: */ 2827 2827 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS)) || fSeparator; 2828 #endif /* Q_WS_X11 */2828 #endif /* VBOX_WS_X11 */ 2829 2829 /* 'Type Ctrl-Break' action: */ 2830 2830 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak)) || fSeparator; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h
r58674 r60362 82 82 UIActionIndexRT_M_Input_M_Keyboard_S_Settings, 83 83 UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD, 84 #ifdef Q_WS_X1184 #ifdef VBOX_WS_X11 85 85 UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS, 86 #endif /* Q_WS_X11 */86 #endif /* VBOX_WS_X11 */ 87 87 UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak, 88 88 UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert, … … 116 116 #endif /* VBOX_WITH_DEBUGGER_GUI */ 117 117 118 #ifdef Q_WS_MAC118 #ifdef VBOX_WS_MAC 119 119 /* 'Dock' menu actions: */ 120 120 UIActionIndexRT_M_Dock, … … 123 123 UIActionIndexRT_M_Dock_M_DockSettings_T_DisableMonitor, 124 124 UIActionIndexRT_M_Dock_M_DockSettings_T_DisableOverlay, 125 #endif /* Q_WS_MAC */125 #endif /* VBOX_WS_MAC */ 126 126 127 127 /* Maximum index: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp
r60260 r60362 26 26 # include "VBoxGlobal.h" 27 27 # include "UISession.h" 28 # ifdef Q_WS_MAC28 # ifdef VBOX_WS_MAC 29 29 # include "VBoxUtils.h" 30 # endif /* Q_WS_MAC */30 # endif /* VBOX_WS_MAC */ 31 31 32 32 /* COM includes: */ … … 307 307 void UIConsoleEventHandlerProxy::sltShowWindow(qint64 &winId) 308 308 { 309 #ifdef Q_WS_MAC309 #ifdef VBOX_WS_MAC 310 310 /* First of all, just ask the GUI thread to show the machine-window: */ 311 311 winId = 0; … … 317 317 winId = ::darwinGetCurrentProcessId(); 318 318 } 319 #else /* ! Q_WS_MAC */319 #else /* !VBOX_WS_MAC */ 320 320 /* Return the ID of the top-level machine-window. */ 321 321 winId = (ULONG64)m_pSession->mainMachineWindowId(); 322 #endif /* ! Q_WS_MAC */322 #endif /* !VBOX_WS_MAC */ 323 323 } 324 324 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r59819 r60362 60 60 #include <math.h> 61 61 62 #ifdef Q_WS_X1162 #ifdef VBOX_WS_X11 63 63 /* X11 includes: */ 64 64 # include <QX11Info> … … 67 67 # undef Bool // Qt5 vs Xlib gift.. 68 68 # endif /* QT_VERSION >= 0x050000 */ 69 #endif /* Q_WS_X11 */69 #endif /* VBOX_WS_X11 */ 70 70 71 71 … … 522 522 523 523 /* COM stuff: */ 524 #ifdef Q_WS_WIN524 #ifdef VBOX_WS_WIN 525 525 static CComModule _Module; 526 #else /* ! Q_WS_WIN */526 #else /* !VBOX_WS_WIN */ 527 527 NS_DECL_CLASSINFO(UIFrameBufferPrivate) 528 528 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(UIFrameBufferPrivate, IFramebuffer) 529 #endif /* ! Q_WS_WIN */529 #endif /* !VBOX_WS_WIN */ 530 530 531 531 … … 562 562 m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0; 563 563 564 #ifdef Q_WS_X11564 #ifdef VBOX_WS_X11 565 565 /* Sync Qt and X11 Server (see xTracker #7547). */ 566 566 XSync(QX11Info::display(), false); … … 611 611 m_iWinId = (m_pMachineView && m_pMachineView->viewport()) ? (LONG64)m_pMachineView->viewport()->winId() : 0; 612 612 613 #ifdef Q_WS_X11613 #ifdef VBOX_WS_X11 614 614 /* Sync Qt and X11 Server (see xTracker #7547). */ 615 615 XSync(QX11Info::display(), false); … … 1382 1382 QPainter painter(m_pMachineView->viewport()); 1383 1383 1384 #ifdef Q_WS_MAC1384 #ifdef VBOX_WS_MAC 1385 1385 # if QT_VERSION >= 0x050000 1386 1386 /* Replace translucent background with black one: */ … … 1389 1389 painter.setCompositionMode(QPainter::CompositionMode_SourceAtop); 1390 1390 # endif /* QT_VERSION >= 0x050000 */ 1391 #endif /* Q_WS_MAC */1391 #endif /* VBOX_WS_MAC */ 1392 1392 1393 1393 /* Draw image rectangle: */ … … 1461 1461 1462 1462 #if defined(VBOX_WITH_TRANSLUCENT_SEAMLESS) 1463 # if defined( Q_WS_WIN) || defined(Q_WS_X11) || QT_VERSION >= 0x0500001463 # if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) || QT_VERSION >= 0x050000 1464 1464 /* Replace translucent background with black one: */ 1465 1465 painter.setCompositionMode(QPainter::CompositionMode_Source); 1466 1466 painter.fillRect(paintRect, QColor(Qt::black)); 1467 1467 painter.setCompositionMode(QPainter::CompositionMode_SourceAtop); 1468 # endif /* Q_WS_WIN || Q_WS_X11 || QT_VERSION >= 0x050000 */1468 # endif /* VBOX_WS_WIN || VBOX_WS_X11 || QT_VERSION >= 0x050000 */ 1469 1469 #endif /* VBOX_WITH_TRANSLUCENT_SEAMLESS */ 1470 1470 … … 1509 1509 } 1510 1510 1511 #ifdef Q_WS_MAC1511 #ifdef VBOX_WS_MAC 1512 1512 # ifdef VBOX_GUI_WITH_HIDPI 1513 1513 /* Should we … … 1520 1520 } 1521 1521 # endif /* VBOX_GUI_WITH_HIDPI */ 1522 #endif /* Q_WS_MAC */1522 #endif /* VBOX_WS_MAC */ 1523 1523 } 1524 1524 … … 1569 1569 } 1570 1570 1571 #ifdef Q_WS_MAC1571 #ifdef VBOX_WS_MAC 1572 1572 # ifdef VBOX_GUI_WITH_HIDPI 1573 1573 /* Should we … … 1580 1580 } 1581 1581 # endif /* VBOX_GUI_WITH_HIDPI */ 1582 #endif /* Q_WS_MAC */1582 #endif /* VBOX_WS_MAC */ 1583 1583 } 1584 1584 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r59743 r60362 22 22 /* Qt includes: */ 23 23 # include <QKeyEvent> 24 # ifdef Q_WS_X1124 # ifdef VBOX_WS_X11 25 25 # include <QX11Info> 26 # endif /* Q_WS_X11 */26 # endif /* VBOX_WS_X11 */ 27 27 28 28 /* GUI includes: */ … … 42 42 # include "UIKeyboardHandlerScale.h" 43 43 # include "UIMouseHandler.h" 44 # ifdef Q_WS_MAC44 # ifdef VBOX_WS_MAC 45 45 # include "UICocoaApplication.h" 46 46 # include "VBoxUtils-darwin.h" 47 # endif /* Q_WS_MAC */47 # endif /* VBOX_WS_MAC */ 48 48 49 49 /* COM includes: */ … … 51 51 52 52 /* Other VBox includes: */ 53 # ifdef Q_WS_MAC53 # ifdef VBOX_WS_MAC 54 54 # if QT_VERSION >= 0x050000 55 55 # include "iprt/cpp/utils.h" 56 56 # endif /* QT_VERSION >= 0x050000 */ 57 # endif /* Q_WS_MAC */57 # endif /* VBOX_WS_MAC */ 58 58 59 59 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 65 65 66 66 /* GUI includes: */ 67 #ifdef Q_WS_MAC67 #ifdef VBOX_WS_MAC 68 68 # include "DarwinKeyboard.h" 69 #endif /* Q_WS_MAC */70 #ifdef Q_WS_WIN69 #endif /* VBOX_WS_MAC */ 70 #ifdef VBOX_WS_WIN 71 71 # include "WinKeyboard.h" 72 #endif /* Q_WS_WIN */73 #ifdef Q_WS_X1172 #endif /* VBOX_WS_WIN */ 73 #ifdef VBOX_WS_X11 74 74 # include "XKeyboard.h" 75 #endif /* Q_WS_X11 */75 #endif /* VBOX_WS_X11 */ 76 76 77 77 /* External includes: */ 78 #ifdef Q_WS_MAC78 #ifdef VBOX_WS_MAC 79 79 # include <Carbon/Carbon.h> 80 #endif /* Q_WS_MAC */81 #ifdef Q_WS_X1180 #endif /* VBOX_WS_MAC */ 81 #ifdef VBOX_WS_X11 82 82 # include <X11/XKBlib.h> 83 83 # include <X11/keysym.h> … … 95 95 # include <xcb/xcb.h> 96 96 # endif /* QT_VERSION >= 0x050000 */ 97 #endif /* Q_WS_X11 */97 #endif /* VBOX_WS_X11 */ 98 98 99 99 /* Enums representing different keyboard-states: */ … … 130 130 131 131 132 #ifdef Q_WS_WIN132 #ifdef VBOX_WS_WIN 133 133 UIKeyboardHandler* UIKeyboardHandler::m_spKeyboardHandler = 0; 134 #endif /* Q_WS_WIN */134 #endif /* VBOX_WS_WIN */ 135 135 136 136 /* Factory function to create keyboard-handler: */ … … 160 160 } 161 161 162 #ifdef Q_WS_WIN162 #ifdef VBOX_WS_WIN 163 163 /* It is necessary to have static pointer to created handler 164 164 * because windows keyboard-hook works only with static members: */ 165 165 m_spKeyboardHandler = pKeyboardHandler; 166 #endif /* Q_WS_WIN */166 #endif /* VBOX_WS_WIN */ 167 167 168 168 /* Return prepared keyboard-handler: */ … … 173 173 void UIKeyboardHandler::destroy(UIKeyboardHandler *pKeyboardHandler) 174 174 { 175 #ifdef Q_WS_WIN175 #ifdef VBOX_WS_WIN 176 176 /* It was necessary to have static pointer to created handler 177 177 * because windows keyboard-hook works only with static members: */ 178 178 m_spKeyboardHandler = 0; 179 #endif /* Q_WS_WIN */179 #endif /* VBOX_WS_WIN */ 180 180 181 181 /* Delete keyboard-handler: */ … … 227 227 } 228 228 229 #ifdef Q_WS_X11229 #ifdef VBOX_WS_X11 230 230 # if QT_VERSION < 0x050000 231 231 struct CHECKFORX11FOCUSEVENTSDATA … … 261 261 } 262 262 # endif /* QT_VERSION < 0x050000 */ 263 #endif /* Q_WS_X11 */263 #endif /* VBOX_WS_X11 */ 264 264 265 265 void UIKeyboardHandler::captureKeyboard(ulong uScreenId) … … 272 272 if (m_views.contains(uScreenId)) 273 273 { 274 #if defined( Q_WS_MAC)274 #if defined(VBOX_WS_MAC) 275 275 276 276 /* On Mac, keyboard grabbing is ineffective, … … 287 287 m_views[uScreenId]->grabKeyboard(); 288 288 289 #elif defined( Q_WS_WIN)289 #elif defined(VBOX_WS_WIN) 290 290 291 291 /* On Win, keyboard grabbing is ineffective, … … 294 294 * S.a. UIKeyboardHandler::eventFilter for more information. */ 295 295 296 #elif defined( Q_WS_X11)296 #elif defined(VBOX_WS_X11) 297 297 298 298 /* On X11, we are using passive XGrabKey for normal (windowed) mode … … 371 371 if (m_views.contains(m_iKeyboardCaptureViewIndex)) 372 372 { 373 #if defined( Q_WS_MAC)373 #if defined(VBOX_WS_MAC) 374 374 375 375 /* On Mac, keyboard grabbing is ineffective, … … 386 386 m_views[m_iKeyboardCaptureViewIndex]->releaseKeyboard(); 387 387 388 #elif defined( Q_WS_WIN)388 #elif defined(VBOX_WS_WIN) 389 389 390 390 /* On Win, keyboard grabbing is ineffective, … … 393 393 * S.a. UIKeyboardHandler::eventFilter for more information. */ 394 394 395 #elif defined( Q_WS_X11)395 #elif defined(VBOX_WS_X11) 396 396 397 397 /* On X11, we are using passive XGrabKey for normal (windowed) mode … … 488 488 } 489 489 490 #ifdef Q_WS_MAC490 #ifdef VBOX_WS_MAC 491 491 unsigned int hostComboModifierMask = 0; 492 492 QList<int> hostCombo = UIHostCombo::toKeyCodeList(m_globalSettings.hostCombo()); … … 497 497 alphaLock | kEventKeyModifierNumLockMask | 498 498 (aReleaseHostKey ? 0 : hostComboModifierMask); 499 #endif /* Q_WS_MAC */499 #endif /* VBOX_WS_MAC */ 500 500 501 501 /* Notify all the listeners: */ … … 524 524 #endif /* VBOX_WITH_DEBUGGER_GUI */ 525 525 526 #ifdef Q_WS_WIN526 #ifdef VBOX_WS_WIN 527 527 void UIKeyboardHandler::winSkipKeyboardEvents(bool fSkip) 528 528 { 529 529 m_fSkipKeyboardEvents = fSkip; 530 530 } 531 #endif /* Q_WS_WIN */531 #endif /* VBOX_WS_WIN */ 532 532 533 533 #if QT_VERSION < 0x050000 534 # if defined( Q_WS_MAC)534 # if defined(VBOX_WS_MAC) 535 535 536 536 bool UIKeyboardHandler::macEventFilter(const void *pvCocoaEvent, EventRef event, ulong uScreenId) … … 675 675 } 676 676 677 # elif defined( Q_WS_WIN)677 # elif defined(VBOX_WS_WIN) 678 678 679 679 bool UIKeyboardHandler::winEventFilter(MSG *pMsg, ulong uScreenId) … … 840 840 } 841 841 842 # elif defined( Q_WS_X11)842 # elif defined(VBOX_WS_X11) 843 843 844 844 static Bool UIKeyboardHandlerCompEvent(Display*, XEvent *pEvent, XPointer pvArg) … … 974 974 } 975 975 976 # endif /* Q_WS_X11 */976 # endif /* VBOX_WS_X11 */ 977 977 #else /* QT_VERSION >= 0x050000 */ 978 978 … … 990 990 bool fResult = false; /* Pass to Qt by default. */ 991 991 992 # if defined( Q_WS_MAC)992 # if defined(VBOX_WS_MAC) 993 993 994 994 /* Acquire carbon event reference from the cocoa one: */ … … 1125 1125 } 1126 1126 1127 # elif defined( Q_WS_WIN)1127 # elif defined(VBOX_WS_WIN) 1128 1128 1129 1129 /* Ignore this event if m_fSkipKeyboardEvents is set by winSkipKeyboardEvents(). */ … … 1282 1282 } 1283 1283 1284 # elif defined( Q_WS_X11)1284 # elif defined(VBOX_WS_X11) 1285 1285 1286 1286 /* Cast to XCB event: */ … … 1410 1410 { 1411 1411 /* Capture keyboard: */ 1412 #ifdef Q_WS_WIN1412 #ifdef VBOX_WS_WIN 1413 1413 if (!isAutoCaptureDisabled() && autoCaptureSetGlobally() && 1414 1414 GetAncestor((HWND)m_views[theListOfViewIds[i]]->winId(), GA_ROOT) == GetForegroundWindow()) 1415 #else /* ! Q_WS_WIN */1415 #else /* !VBOX_WS_WIN */ 1416 1416 if (!isAutoCaptureDisabled() && autoCaptureSetGlobally()) 1417 #endif /* ! Q_WS_WIN */1417 #endif /* !VBOX_WS_WIN */ 1418 1418 captureKeyboard(theListOfViewIds[i]); 1419 1419 /* Reset the single-time disable capture flag: */ … … 1450 1450 , m_fDebuggerActive(false) 1451 1451 , m_iKeyboardHookViewIndex(-1) 1452 #if defined( Q_WS_MAC)1452 #if defined(VBOX_WS_MAC) 1453 1453 , m_uDarwinKeyModifiers(0) 1454 #elif defined( Q_WS_WIN)1454 #elif defined(VBOX_WS_WIN) 1455 1455 , m_fIsHostkeyInCapture(false) 1456 1456 , m_fSkipKeyboardEvents(false) 1457 1457 , m_keyboardHook(NULL) 1458 1458 , m_pAltGrMonitor(0) 1459 #endif /* Q_WS_WIN */1459 #endif /* VBOX_WS_WIN */ 1460 1460 #if QT_VERSION >= 0x050000 1461 1461 , m_pPrivateEventFilter(0) … … 1482 1482 void UIKeyboardHandler::prepareCommon() 1483 1483 { 1484 #ifdef Q_WS_WIN1484 #ifdef VBOX_WS_WIN 1485 1485 /* Prepare AltGR monitor: */ 1486 1486 m_pAltGrMonitor = new WinAltGrMonitor; 1487 #endif /* Q_WS_WIN */1487 #endif /* VBOX_WS_WIN */ 1488 1488 1489 1489 /* Machine state-change updater: */ … … 1499 1499 { 1500 1500 /* Global settings: */ 1501 #ifdef Q_WS_X111501 #ifdef VBOX_WS_X11 1502 1502 /* Initialize the X keyboard subsystem: */ 1503 1503 initMappedX11Keyboard(QX11Info::display(), vboxGlobal().settings().publicProperty("GUI/RemapScancodes")); 1504 #endif /* Q_WS_X11 */1504 #endif /* VBOX_WS_X11 */ 1505 1505 1506 1506 /* Extra data settings: */ … … 1513 1513 void UIKeyboardHandler::cleanupCommon() 1514 1514 { 1515 #if defined( Q_WS_MAC)1515 #if defined(VBOX_WS_MAC) 1516 1516 1517 1517 /* Cleanup keyboard-hook: */ … … 1524 1524 } 1525 1525 1526 #elif defined( Q_WS_WIN)1526 #elif defined(VBOX_WS_WIN) 1527 1527 1528 1528 /* Cleanup AltGR monitor: */ … … 1538 1538 } 1539 1539 1540 #endif /* Q_WS_WIN */1540 #endif /* VBOX_WS_WIN */ 1541 1541 1542 1542 #if QT_VERSION >= 0x050000 … … 1592 1592 case QEvent::FocusIn: 1593 1593 { 1594 #if defined( Q_WS_MAC)1594 #if defined(VBOX_WS_MAC) 1595 1595 1596 1596 /* If keyboard-hook is NOT installed; … … 1618 1618 } 1619 1619 1620 #elif defined( Q_WS_WIN)1620 #elif defined(VBOX_WS_WIN) 1621 1621 1622 1622 /* If keyboard-hook is NOT installed; … … 1636 1636 } 1637 1637 1638 #endif /* Q_WS_WIN */1638 #endif /* VBOX_WS_WIN */ 1639 1639 1640 1640 #if QT_VERSION >= 0x050000 1641 # if defined( Q_WS_WIN) || defined(Q_WS_X11)1641 # if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 1642 1642 /* If private event-filter is NOT installed; 1643 1643 * Or installed but NOT for that view: */ … … 1656 1656 qApp->installNativeEventFilter(m_pPrivateEventFilter); 1657 1657 } 1658 # endif /* Q_WS_WIN || Q_WS_X11 */1658 # endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 1659 1659 #endif /* QT_VERSION >= 0x050000 */ 1660 1660 … … 1665 1665 { 1666 1666 /* Capture keyboard: */ 1667 #ifdef Q_WS_WIN1667 #ifdef VBOX_WS_WIN 1668 1668 if (!isAutoCaptureDisabled() && autoCaptureSetGlobally() && 1669 1669 GetAncestor((HWND)pWatchedView->winId(), GA_ROOT) == GetForegroundWindow()) 1670 #else /* ! Q_WS_WIN */1670 #else /* !VBOX_WS_WIN */ 1671 1671 if (!isAutoCaptureDisabled() && autoCaptureSetGlobally()) 1672 #endif /* ! Q_WS_WIN */1672 #endif /* !VBOX_WS_WIN */ 1673 1673 captureKeyboard(uScreenId); 1674 1674 /* Reset the single-time disable capture flag: */ … … 1681 1681 case QEvent::FocusOut: 1682 1682 { 1683 #if defined( Q_WS_MAC)1683 #if defined(VBOX_WS_MAC) 1684 1684 1685 1685 /* If keyboard-hook is installed: */ … … 1692 1692 } 1693 1693 1694 #elif defined( Q_WS_WIN)1694 #elif defined(VBOX_WS_WIN) 1695 1695 1696 1696 /* If keyboard-hook is installed: */ … … 1702 1702 } 1703 1703 1704 #endif /* Q_WS_WIN */1704 #endif /* VBOX_WS_WIN */ 1705 1705 1706 1706 #if QT_VERSION >= 0x050000 1707 # if defined( Q_WS_WIN) || defined(Q_WS_X11)1707 # if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 1708 1708 /* If private event-filter is installed: */ 1709 1709 if (m_pPrivateEventFilter) … … 1714 1714 m_pPrivateEventFilter = 0; 1715 1715 } 1716 # endif /* Q_WS_WIN || Q_WS_X11 */1716 # endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 1717 1717 #endif /* QT_VERSION >= 0x050000 */ 1718 1718 … … 1777 1777 } 1778 1778 1779 #if defined( Q_WS_MAC)1779 #if defined(VBOX_WS_MAC) 1780 1780 1781 1781 /* static */ … … 1818 1818 } 1819 1819 1820 #elif defined( Q_WS_WIN)1820 #elif defined(VBOX_WS_WIN) 1821 1821 1822 1822 /* static */ … … 1884 1884 } 1885 1885 1886 #endif /* Q_WS_WIN */1886 #endif /* VBOX_WS_WIN */ 1887 1887 1888 1888 /** … … 2042 2042 if (!uisession()->isMouseSupportsAbsolute() || !uisession()->isMouseIntegrated()) 2043 2043 { 2044 #ifdef Q_WS_X112044 #ifdef VBOX_WS_X11 2045 2045 /* Make sure that pending FocusOut events from the 2046 2046 * previous message box are handled, otherwise the 2047 2047 * mouse is immediately ungrabbed: */ 2048 2048 qApp->processEvents(); 2049 #endif /* Q_WS_X11 */2049 #endif /* VBOX_WS_X11 */ 2050 2050 if (m_fIsKeyboardCaptured) 2051 2051 { … … 2116 2116 ( m_bIsHostComboPressed && !fIsFullHostComboPresent); 2117 2117 2118 #ifdef Q_WS_WIN2118 #ifdef VBOX_WS_WIN 2119 2119 if (m_bIsHostComboPressed || isHostComboStateChanged) 2120 2120 { … … 2122 2122 m_fIsHostkeyInCapture = m_fIsKeyboardCaptured; 2123 2123 } 2124 #endif /* Q_WS_WIN */2124 #endif /* VBOX_WS_WIN */ 2125 2125 2126 2126 if (keyEventCADHandled(uScan)) … … 2226 2226 bool fWasProcessed = false; 2227 2227 2228 #if defined( Q_WS_MAC)2228 #if defined(VBOX_WS_MAC) 2229 2229 2230 2230 Q_UNUSED(iHotKey); … … 2232 2232 fWasProcessed = actionPool()->processHotKey(QKeySequence(Qt::UNICODE_ACCEL + QChar(pHotKey[0]).toUpper().unicode())); 2233 2233 2234 #elif defined( Q_WS_WIN)2234 #elif defined(VBOX_WS_WIN) 2235 2235 2236 2236 Q_UNUSED(pHotKey); … … 2250 2250 delete[] pList; 2251 2251 2252 #elif defined( Q_WS_X11)2252 #elif defined(VBOX_WS_X11) 2253 2253 2254 2254 Q_UNUSED(pHotKey); … … 2284 2284 * This function will add up to 6 additional keycodes to codes. */ 2285 2285 2286 #if defined( Q_WS_MAC)2286 #if defined(VBOX_WS_MAC) 2287 2287 2288 2288 /* if (uisession()->numLockAdaptionCnt()) ... - NumLock isn't implemented by Mac OS X so ignore it. */ … … 2302 2302 } 2303 2303 2304 #elif defined( Q_WS_WIN)2304 #elif defined(VBOX_WS_WIN) 2305 2305 2306 2306 if (uisession()->numLockAdaptionCnt() && (uisession()->isNumLock() ^ !!(GetKeyState(VK_NUMLOCK)))) … … 2325 2325 } 2326 2326 2327 #elif defined( Q_WS_X11)2327 #elif defined(VBOX_WS_X11) 2328 2328 2329 2329 Window wDummy1, wDummy2; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h
r59743 r60362 30 30 31 31 /* External includes: */ 32 #ifdef Q_WS_MAC32 #ifdef VBOX_WS_MAC 33 33 # include <Carbon/Carbon.h> 34 34 # include <CoreFoundation/CFBase.h> 35 #endif /* Q_WS_MAC */35 #endif /* VBOX_WS_MAC */ 36 36 37 37 /* Forward declarations: */ … … 44 44 class UIMachineView; 45 45 class CKeyboard; 46 #ifdef Q_WS_WIN46 #ifdef VBOX_WS_WIN 47 47 class WinAltGrMonitor; 48 #endif /* Q_WS_WIN */49 #ifdef Q_WS_X1148 #endif /* VBOX_WS_WIN */ 49 #ifdef VBOX_WS_X11 50 50 # if QT_VERSION < 0x050000 51 51 typedef union _XEvent XEvent; 52 52 # endif /* QT_VERSION < 0x050000 */ 53 #endif /* Q_WS_X11 */53 #endif /* VBOX_WS_X11 */ 54 54 #if QT_VERSION >= 0x050000 55 55 class KeyboardHandlerEventFilter; … … 78 78 79 79 /* Commands to capture/release keyboard: */ 80 #ifdef Q_WS_X1180 #ifdef VBOX_WS_X11 81 81 # if QT_VERSION < 0x050000 82 82 bool checkForX11FocusEvents(unsigned long hWindow); 83 83 # endif /* QT_VERSION < 0x050000 */ 84 #endif /* Q_WS_X11 */84 #endif /* VBOX_WS_X11 */ 85 85 void captureKeyboard(ulong uScreenId); 86 86 void releaseKeyboard(); … … 92 92 /* Some getters required by side-code: */ 93 93 bool isHostKeyPressed() const { return m_bIsHostComboPressed; } 94 #ifdef Q_WS_MAC94 #ifdef VBOX_WS_MAC 95 95 bool isHostKeyAlone() const { return m_bIsHostComboAlone; } 96 96 bool isKeyboardGrabbed() const { return m_iKeyboardHookViewIndex != -1; } 97 #endif /* Q_WS_MAC */97 #endif /* VBOX_WS_MAC */ 98 98 99 99 #ifdef VBOX_WITH_DEBUGGER_GUI … … 102 102 #endif 103 103 104 #ifdef Q_WS_WIN104 #ifdef VBOX_WS_WIN 105 105 /** Tells the keyboard event handler to skip host keyboard events. 106 106 * Used for HID LEDs sync when on Windows host a keyboard event 107 107 * is generated in order to change corresponding LED. */ 108 108 void winSkipKeyboardEvents(bool fSkip); 109 #endif /* Q_WS_WIN */109 #endif /* VBOX_WS_WIN */ 110 110 111 111 #if QT_VERSION < 0x050000 112 # if defined( Q_WS_MAC)112 # if defined(VBOX_WS_MAC) 113 113 /** Qt4: Mac: Performs final pre-processing of all the native events. */ 114 114 bool macEventFilter(const void *pvCocoaEvent, EventRef event, ulong uScreenId); 115 # elif defined( Q_WS_WIN)115 # elif defined(VBOX_WS_WIN) 116 116 /** Qt4: Win: Performs final pre-processing of all the native events. */ 117 117 bool winEventFilter(MSG *pMsg, ulong uScreenId); 118 # elif defined( Q_WS_X11)118 # elif defined(VBOX_WS_X11) 119 119 /** Qt4: X11: Performs final pre-processing of all the native events. */ 120 120 bool x11EventFilter(XEvent *pEvent, ulong uScreenId); 121 # endif /* Q_WS_X11 */121 # endif /* VBOX_WS_X11 */ 122 122 #else /* QT_VERSION >= 0x050000 */ 123 123 /** Qt5: Performs pre-processing of all the native events. */ … … 157 157 bool eventFilter(QObject *pWatchedObject, QEvent *pEvent); 158 158 159 #if defined( Q_WS_MAC)159 #if defined(VBOX_WS_MAC) 160 160 /** Mac: Performs initial pre-processing of all the native keyboard events. */ 161 161 static bool macKeyboardProc(const void *pvCocoaEvent, const void *pvCarbonEvent, void *pvUser); 162 162 /** Mac: Performs initial pre-processing of all the native keyboard events. */ 163 163 bool macKeyboardEvent(const void *pvCocoaEvent, EventRef inEvent); 164 #elif defined( Q_WS_WIN)164 #elif defined(VBOX_WS_WIN) 165 165 /** Win: Performs initial pre-processing of all the native keyboard events. */ 166 166 static LRESULT CALLBACK winKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam); 167 167 /** Win: Performs initial pre-processing of all the native keyboard events. */ 168 168 bool winKeyboardEvent(UINT msg, const KBDLLHOOKSTRUCT &event); 169 #endif /* Q_WS_WIN */169 #endif /* VBOX_WS_WIN */ 170 170 171 171 bool keyEventCADHandled(uint8_t uScan); … … 220 220 int m_iKeyboardHookViewIndex; 221 221 222 #if defined( Q_WS_MAC)222 #if defined(VBOX_WS_MAC) 223 223 /** Mac: Holds the current modifiers key mask. */ 224 224 UInt32 m_uDarwinKeyModifiers; 225 #elif defined( Q_WS_WIN)225 #elif defined(VBOX_WS_WIN) 226 226 /** Win: Currently this is used in winKeyboardEvent() only. */ 227 227 bool m_fIsHostkeyInCapture; … … 234 234 /** Win: Holds the keyboard handler reference to be accessible from the keyboard hook. */ 235 235 static UIKeyboardHandler *m_spKeyboardHandler; 236 #endif /* Q_WS_WIN */236 #endif /* VBOX_WS_WIN */ 237 237 238 238 #if QT_VERSION >= 0x050000 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h
r55401 r60362 37 37 UIVisualElement_VideoCapture = RT_BIT(10), 38 38 UIVisualElement_FeaturesStuff = RT_BIT(11), 39 #ifndef Q_WS_MAC39 #ifndef VBOX_WS_MAC 40 40 UIVisualElement_MiniToolBar = RT_BIT(12), 41 #endif /* ! Q_WS_MAC */41 #endif /* !VBOX_WS_MAC */ 42 42 UIVisualElement_AllStuff = 0xFFFF 43 43 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r59911 r60362 27 27 # include <QDateTime> 28 28 # include <QImageWriter> 29 # ifdef Q_WS_MAC29 # ifdef VBOX_WS_MAC 30 30 # include <QMenuBar> 31 # endif /* Q_WS_MAC */32 # ifdef Q_WS_X1131 # endif /* VBOX_WS_MAC */ 32 # ifdef VBOX_WS_X11 33 33 # include <QX11Info> 34 # endif /* Q_WS_X11 */34 # endif /* VBOX_WS_X11 */ 35 35 36 36 /* GUI includes: */ … … 65 65 # include "UIExtraDataManager.h" 66 66 # include "UIAddDiskEncryptionPasswordDialog.h" 67 # ifdef Q_WS_MAC67 # ifdef VBOX_WS_MAC 68 68 # include "DockIconPreview.h" 69 69 # include "UIExtraDataManager.h" 70 # endif /* Q_WS_MAC */70 # endif /* VBOX_WS_MAC */ 71 71 72 72 /* COM includes: */ … … 84 84 # include "CEmulatedUSB.h" 85 85 # include "CNetworkAdapter.h" 86 # ifdef Q_WS_MAC86 # ifdef VBOX_WS_MAC 87 87 # include "CGuest.h" 88 # endif /* Q_WS_MAC */88 # endif /* VBOX_WS_MAC */ 89 89 90 90 /* Other VBox includes: */ … … 105 105 #endif /* VBOX_WITH_XPCOM */ 106 106 107 #ifdef Q_WS_MAC107 #ifdef VBOX_WS_MAC 108 108 # include "DarwinKeyboard.h" 109 #endif /* Q_WS_MAC */110 #ifdef Q_WS_WIN109 #endif /* VBOX_WS_MAC */ 110 #ifdef VBOX_WS_WIN 111 111 # include "WinKeyboard.h" 112 #endif /* Q_WS_WIN */113 #ifdef Q_WS_X11112 #endif /* VBOX_WS_WIN */ 113 #ifdef VBOX_WS_X11 114 114 # include <XKeyboard.h> 115 #endif /* Q_WS_X11 */115 #endif /* VBOX_WS_X11 */ 116 116 117 117 … … 195 195 prepareMachineWindows(); 196 196 197 #ifdef Q_WS_MAC197 #ifdef VBOX_WS_MAC 198 198 /* Prepare dock: */ 199 199 prepareDock(); 200 #endif /* Q_WS_MAC */200 #endif /* VBOX_WS_MAC */ 201 201 202 202 #if 0 /* To early! The debugger needs a VM handle to work. So, must be done after power on. Moved to initializePostPowerUp. */ … … 224 224 #endif /* VBOX_WITH_DEBUGGER_GUI */ 225 225 226 #ifdef Q_WS_MAC226 #ifdef VBOX_WS_MAC 227 227 /* Cleanup dock: */ 228 228 cleanupDock(); 229 #endif /* Q_WS_MAC */229 #endif /* VBOX_WS_MAC */ 230 230 231 231 /* Cleanup menu: */ … … 350 350 } 351 351 352 #ifdef Q_WS_MAC352 #ifdef VBOX_WS_MAC 353 353 void UIMachineLogic::updateDockIcon() 354 354 { … … 384 384 return 0; 385 385 } 386 #endif /* Q_WS_MAC */386 #endif /* VBOX_WS_MAC */ 387 387 388 388 void UIMachineLogic::saveState() … … 634 634 break; 635 635 } 636 #ifdef Q_WS_X11636 #ifdef VBOX_WS_X11 637 637 case KMachineState_Starting: 638 638 case KMachineState_Restoring: … … 649 649 } 650 650 651 #ifdef Q_WS_MAC651 #ifdef VBOX_WS_MAC 652 652 /* Update Dock Overlay: */ 653 653 updateDockOverlay(); 654 #endif /* Q_WS_MAC */654 #endif /* VBOX_WS_MAC */ 655 655 } 656 656 … … 699 699 return; 700 700 701 #if defined( Q_WS_MAC)701 #if defined(VBOX_WS_MAC) 702 702 DarwinHidDevicesBroadcastLeds(m_pHostLedsState, uisession()->isNumLock(), uisession()->isCapsLock(), uisession()->isScrollLock()); 703 #elif defined( Q_WS_WIN)703 #elif defined(VBOX_WS_WIN) 704 704 if (!winHidLedsInSync(uisession()->isNumLock(), uisession()->isCapsLock(), uisession()->isScrollLock())) 705 705 { … … 737 737 } 738 738 739 #ifdef Q_WS_MAC739 #ifdef VBOX_WS_MAC 740 740 void UIMachineLogic::sltShowWindows() 741 741 { … … 754 754 } 755 755 } 756 #endif /* Q_WS_MAC */756 #endif /* VBOX_WS_MAC */ 757 757 758 758 void UIMachineLogic::sltGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect) … … 809 809 , m_pDbgGuiVT(0) 810 810 #endif /* VBOX_WITH_DEBUGGER_GUI */ 811 #ifdef Q_WS_MAC811 #ifdef VBOX_WS_MAC 812 812 , m_fIsDockIconEnabled(true) 813 813 , m_pDockIconPreview(0) 814 814 , m_pDockPreviewSelectMonitorGroup(0) 815 815 , m_DockIconPreviewMonitor(0) 816 #endif /* Q_WS_MAC */816 #endif /* VBOX_WS_MAC */ 817 817 , m_pHostLedsState(NULL) 818 818 , m_fIsHidLedsSyncEnabled(false) … … 874 874 void UIMachineLogic::retranslateUi() 875 875 { 876 #ifdef Q_WS_MAC876 #ifdef VBOX_WS_MAC 877 877 if (m_pDockPreviewSelectMonitorGroup) 878 878 { … … 884 884 } 885 885 } 886 #endif /* Q_WS_MAC */886 #endif /* VBOX_WS_MAC */ 887 887 /* Shared Clipboard actions: */ 888 888 if (m_pSharedClipboardActions) … … 898 898 } 899 899 900 #ifdef Q_WS_MAC900 #ifdef VBOX_WS_MAC 901 901 void UIMachineLogic::updateDockOverlay() 902 902 { … … 920 920 m_pDockIconPreview->updateDockOverlay(); 921 921 } 922 #endif /* Q_WS_MAC */922 #endif /* VBOX_WS_MAC */ 923 923 924 924 void UIMachineLogic::prepareRequiredFeatures() 925 925 { 926 #ifdef Q_WS_MAC926 #ifdef VBOX_WS_MAC 927 927 # ifdef VBOX_WITH_ICHAT_THEATER 928 928 /* Init shared AV manager: */ 929 929 initSharedAVManager(); 930 930 # endif /* VBOX_WITH_ICHAT_THEATER */ 931 #endif /* Q_WS_MAC */931 #endif /* VBOX_WS_MAC */ 932 932 } 933 933 … … 951 951 connect(uisession(), SIGNAL(sigRuntimeError(bool, const QString &, const QString &)), 952 952 this, SLOT(sltRuntimeError(bool, const QString &, const QString &))); 953 #ifdef Q_WS_MAC953 #ifdef VBOX_WS_MAC 954 954 connect(uisession(), SIGNAL(sigShowWindows()), this, SLOT(sltShowWindows())); 955 #endif /* Q_WS_MAC */955 #endif /* VBOX_WS_MAC */ 956 956 connect(uisession(), SIGNAL(sigGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect)), 957 957 this, SLOT(sltGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect))); … … 994 994 m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize)); 995 995 m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD)); 996 #ifdef Q_WS_X11996 #ifdef VBOX_WS_X11 997 997 m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS)); 998 #endif /* Q_WS_X11 */998 #endif /* VBOX_WS_X11 */ 999 999 m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak)); 1000 1000 m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert)); … … 1006 1006 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Machine_S_ShowInformation)); 1007 1007 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Machine_T_Pause)); 1008 #ifndef Q_WS_MAC1008 #ifndef VBOX_WS_MAC 1009 1009 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_S_MinimizeWindow)); 1010 #endif /* ! Q_WS_MAC */1010 #endif /* !VBOX_WS_MAC */ 1011 1011 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_S_AdjustWindow)); 1012 1012 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_S_TakeScreenshot)); … … 1017 1017 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar)); 1018 1018 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_S_Settings)); 1019 #ifndef Q_WS_MAC1019 #ifndef VBOX_WS_MAC 1020 1020 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)); 1021 #endif /* ! Q_WS_MAC */1021 #endif /* !VBOX_WS_MAC */ 1022 1022 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar)); 1023 1023 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)); … … 1042 1042 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)); 1043 1043 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Devices_S_InstallGuestTools)); 1044 #ifdef Q_WS_MAC1044 #ifdef VBOX_WS_MAC 1045 1045 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndex_M_Window)); 1046 1046 m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndex_M_Window_S_Minimize)); 1047 #endif /* Q_WS_MAC */1047 #endif /* VBOX_WS_MAC */ 1048 1048 1049 1049 /* Move actions into running-n-paused-n-stucked actions group: */ … … 1078 1078 1079 1079 /* 'View' actions connections: */ 1080 #ifndef Q_WS_MAC1080 #ifndef VBOX_WS_MAC 1081 1081 connect(actionPool()->action(UIActionIndexRT_M_View_S_MinimizeWindow), SIGNAL(triggered()), 1082 1082 this, SLOT(sltMinimizeActiveMachineWindow()), Qt::QueuedConnection); 1083 #endif /* ! Q_WS_MAC */1083 #endif /* !VBOX_WS_MAC */ 1084 1084 connect(actionPool()->action(UIActionIndexRT_M_View_S_AdjustWindow), SIGNAL(triggered()), 1085 1085 this, SLOT(sltAdjustMachineWindows())); … … 1100 1100 connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD), SIGNAL(triggered()), 1101 1101 this, SLOT(sltTypeCAD())); 1102 #ifdef Q_WS_X111102 #ifdef VBOX_WS_X11 1103 1103 connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS), SIGNAL(triggered()), 1104 1104 this, SLOT(sltTypeCABS())); 1105 #endif /* Q_WS_X11 */1105 #endif /* VBOX_WS_X11 */ 1106 1106 connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak), SIGNAL(triggered()), 1107 1107 this, SLOT(sltTypeCtrlBreak())); … … 1136 1136 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1137 1137 1138 #ifdef Q_WS_MAC1138 #ifdef VBOX_WS_MAC 1139 1139 /* 'Window' action connections: */ 1140 1140 connect(actionPool()->action(UIActionIndex_M_Window_S_Minimize), SIGNAL(triggered()), 1141 1141 this, SLOT(sltMinimizeActiveMachineWindow()), Qt::QueuedConnection); 1142 #endif /* Q_WS_MAC */1142 #endif /* VBOX_WS_MAC */ 1143 1143 } 1144 1144 … … 1156 1156 m_menuUpdateHandlers[UIActionIndexRT_M_Debug] = &UIMachineLogic::updateMenuDebug; 1157 1157 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1158 #ifdef Q_WS_MAC1158 #ifdef VBOX_WS_MAC 1159 1159 m_menuUpdateHandlers[UIActionIndex_M_Window] = &UIMachineLogic::updateMenuWindow; 1160 #endif /* Q_WS_MAC */1160 #endif /* VBOX_WS_MAC */ 1161 1161 1162 1162 /* Create keyboard/mouse handlers: */ … … 1168 1168 } 1169 1169 1170 #ifdef Q_WS_MAC1170 #ifdef VBOX_WS_MAC 1171 1171 void UIMachineLogic::prepareDock() 1172 1172 { … … 1265 1265 updateDockOverlay(); 1266 1266 } 1267 #endif /* Q_WS_MAC */1267 #endif /* VBOX_WS_MAC */ 1268 1268 1269 1269 #ifdef VBOX_WITH_DEBUGGER_GUI … … 1282 1282 void UIMachineLogic::loadSettings() 1283 1283 { 1284 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)1284 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 1285 1285 /* Read cached extra-data value: */ 1286 1286 m_fIsHidLedsSyncEnabled = gEDataManager->hidLedsSyncState(vboxGlobal().managedVMUuid()); 1287 1287 /* Subscribe to extra-data changes to be able to enable/disable feature dynamically: */ 1288 1288 connect(gEDataManager, SIGNAL(sigHidLedsSyncStateChange(bool)), this, SLOT(sltHidLedsSyncStateChanged(bool))); 1289 #endif /* Q_WS_MAC || Q_WS_WIN */1289 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 1290 1290 /* HID LEDs sync initialization: */ 1291 1291 sltSwitchKeyboardLedsToGuestLeds(); … … 1306 1306 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1307 1307 1308 #ifdef Q_WS_MAC1308 #ifdef VBOX_WS_MAC 1309 1309 void UIMachineLogic::cleanupDock() 1310 1310 { … … 1315 1315 } 1316 1316 } 1317 #endif /* Q_WS_MAC */1317 #endif /* VBOX_WS_MAC */ 1318 1318 1319 1319 void UIMachineLogic::cleanupHandlers() … … 1345 1345 disconnect(uisession(), SIGNAL(sigRuntimeError(bool, const QString &, const QString &)), 1346 1346 this, SLOT(sltRuntimeError(bool, const QString &, const QString &))); 1347 #ifdef Q_WS_MAC1347 #ifdef VBOX_WS_MAC 1348 1348 disconnect(uisession(), SIGNAL(sigShowWindows()), this, SLOT(sltShowWindows())); 1349 #endif /* Q_WS_MAC */1349 #endif /* VBOX_WS_MAC */ 1350 1350 disconnect(uisession(), SIGNAL(sigGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect)), 1351 1351 this, SLOT(sltGuestMonitorChange(KGuestMonitorChangedEventType, ulong, QRect))); … … 1373 1373 case QEvent::WindowActivate: 1374 1374 { 1375 #ifdef Q_WS_WIN1375 #ifdef VBOX_WS_WIN 1376 1376 /* We should save current lock states as *previous* and 1377 1377 * set current lock states to guest values we have, … … 1388 1388 QTimer::singleShot(100, this, SLOT(sltSwitchKeyboardLedsToGuestLeds())); 1389 1389 } 1390 #else /* Q_WS_WIN */1390 #else /* VBOX_WS_WIN */ 1391 1391 /* Trigger callback synchronously for now! */ 1392 1392 sltSwitchKeyboardLedsToGuestLeds(); 1393 #endif /* ! Q_WS_WIN */1393 #endif /* !VBOX_WS_WIN */ 1394 1394 break; 1395 1395 } … … 1443 1443 } 1444 1444 1445 #ifdef Q_WS_X111445 #ifdef VBOX_WS_X11 1446 1446 void UIMachineLogic::sltTypeCABS() 1447 1447 { … … 1456 1456 AssertWrapperOk(keyboard()); 1457 1457 } 1458 #endif /* Q_WS_X11 */1458 #endif /* VBOX_WS_X11 */ 1459 1459 1460 1460 void UIMachineLogic::sltTypeCtrlBreak() … … 1718 1718 } 1719 1719 1720 #ifdef Q_WS_WIN1720 #ifdef VBOX_WS_WIN 1721 1721 /* Due to Qt bug, modal QFileDialog appeared above the active machine-window 1722 1722 * does not retreive the focus from the currently focused machine-view, … … 1725 1725 if (activeMachineWindow()) 1726 1726 activeMachineWindow()->machineView()->clearFocus(); 1727 #endif /* Q_WS_WIN */1727 #endif /* VBOX_WS_WIN */ 1728 1728 1729 1729 /* Request the filename from the user: */ … … 1736 1736 true /* confirm overwrite */); 1737 1737 1738 #ifdef Q_WS_WIN1738 #ifdef VBOX_WS_WIN 1739 1739 /* Due to Qt bug, modal QFileDialog appeared above the active machine-window 1740 1740 * does not retreive the focus from the currently focused machine-view, … … 1744 1744 if (activeMachineWindow()) 1745 1745 activeMachineWindow()->machineView()->setFocus(); 1746 #endif /* Q_WS_WIN */1746 #endif /* VBOX_WS_WIN */ 1747 1747 1748 1748 if (!strFilename.isEmpty()) … … 1752 1752 1753 1753 /* On X11 Qt Filedialog returns the filepath without the filetype suffix, so adding it ourselves: */ 1754 #ifdef Q_WS_X111754 #ifdef VBOX_WS_X11 1755 1755 /* Add filetype suffix only if user has not added it explicitly: */ 1756 1756 if (!strFilename.endsWith(QString(".%1").arg(strFormat))) … … 1760 1760 tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)), 1761 1761 strFormat.toUtf8().constData()); 1762 #else /* ! Q_WS_X11 */1762 #else /* !VBOX_WS_X11 */ 1763 1763 tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)), 1764 1764 strFormat.toUtf8().constData()); 1765 #endif /* ! Q_WS_X11 */1765 #endif /* !VBOX_WS_X11 */ 1766 1766 } 1767 1767 QFile::remove(strTempFile); … … 2107 2107 #endif /* VBOX_WITH_DEBUGGER_GUI */ 2108 2108 2109 #ifdef Q_WS_MAC2109 #ifdef VBOX_WS_MAC 2110 2110 void UIMachineLogic::sltSwitchToMachineWindow() 2111 2111 { … … 2184 2184 gEDataManager->setDockIconDisableOverlay(fDisabled, vboxGlobal().managedVMUuid()); 2185 2185 } 2186 #endif /* Q_WS_MAC */2186 #endif /* VBOX_WS_MAC */ 2187 2187 2188 2188 void UIMachineLogic::sltSwitchKeyboardLedsToGuestLeds() … … 2214 2214 return; 2215 2215 2216 #if defined( Q_WS_MAC)2216 #if defined(VBOX_WS_MAC) 2217 2217 if (m_pHostLedsState == NULL) 2218 2218 m_pHostLedsState = DarwinHidDevicesKeepLedsState(); 2219 2219 DarwinHidDevicesBroadcastLeds(m_pHostLedsState, uisession()->isNumLock(), uisession()->isCapsLock(), uisession()->isScrollLock()); 2220 #elif defined( Q_WS_WIN)2220 #elif defined(VBOX_WS_WIN) 2221 2221 if (m_pHostLedsState == NULL) 2222 2222 m_pHostLedsState = WinHidDevicesKeepLedsState(); … … 2249 2249 does dispatch loop fun, that's probably the reason for it. Hopefully not an issue on OS X. */ 2250 2250 m_pHostLedsState = NULL; 2251 #if defined( Q_WS_MAC)2251 #if defined(VBOX_WS_MAC) 2252 2252 DarwinHidDevicesApplyAndReleaseLedsState(pvLedState); 2253 #elif defined( Q_WS_WIN)2253 #elif defined(VBOX_WS_WIN) 2254 2254 keyboardHandler()->winSkipKeyboardEvents(true); 2255 2255 WinHidDevicesApplyAndReleaseLedsState(pvLedState); … … 2522 2522 #endif /* VBOX_WITH_DEBUGGER_GUI */ 2523 2523 2524 #ifdef Q_WS_MAC2524 #ifdef VBOX_WS_MAC 2525 2525 void UIMachineLogic::updateMenuWindow(QMenu *pMenu) 2526 2526 { … … 2545 2545 } 2546 2546 } 2547 #endif /* Q_WS_MAC */2547 #endif /* VBOX_WS_MAC */ 2548 2548 2549 2549 void UIMachineLogic::showGlobalPreferences(const QString &strCategory /* = QString() */, const QString &strControl /* = QString() */) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r58674 r60362 134 134 void openNetworkSettingsDialog() { sltOpenNetworkSettingsDialog(); } 135 135 136 #ifdef Q_WS_MAC136 #ifdef VBOX_WS_MAC 137 137 void updateDockIcon(); 138 138 void updateDockIconSize(int screenId, int width, int height); 139 139 UIMachineView* dockPreviewView() const; 140 #endif /* Q_WS_MAC */140 #endif /* VBOX_WS_MAC */ 141 141 142 142 /** Save VM state, then close Runtime UI. */ … … 206 206 void addMachineWindow(UIMachineWindow *pMachineWindow); 207 207 void retranslateUi(); 208 #ifdef Q_WS_MAC208 #ifdef VBOX_WS_MAC 209 209 bool isDockIconPreviewEnabled() const { return m_fIsDockIconEnabled; } 210 210 void setDockIconPreviewEnabled(bool fIsDockIconPreviewEnabled) { m_fIsDockIconEnabled = fIsDockIconPreviewEnabled; } 211 211 void updateDockOverlay(); 212 #endif /* Q_WS_MAC */212 #endif /* VBOX_WS_MAC */ 213 213 214 214 /* Prepare helpers: */ … … 221 221 virtual void prepareMachineWindows() = 0; 222 222 virtual void prepareMenu() {} 223 #ifdef Q_WS_MAC223 #ifdef VBOX_WS_MAC 224 224 virtual void prepareDock(); 225 #endif /* Q_WS_MAC */225 #endif /* VBOX_WS_MAC */ 226 226 #ifdef VBOX_WITH_DEBUGGER_GUI 227 227 virtual void prepareDebugger(); … … 234 234 virtual void cleanupDebugger(); 235 235 #endif /* VBOX_WITH_DEBUGGER_GUI */ 236 #ifdef Q_WS_MAC236 #ifdef VBOX_WS_MAC 237 237 virtual void cleanupDock(); 238 #endif /* Q_WS_MAC */238 #endif /* VBOX_WS_MAC */ 239 239 virtual void cleanupMenu() {} 240 240 virtual void cleanupMachineWindows() = 0; … … 258 258 void sltToggleMouseIntegration(bool fEnabled); 259 259 void sltTypeCAD(); 260 #ifdef Q_WS_X11260 #ifdef VBOX_WS_X11 261 261 void sltTypeCABS(); 262 #endif /* Q_WS_X11 */262 #endif /* VBOX_WS_X11 */ 263 263 void sltTypeCtrlBreak(); 264 264 void sltTypeInsert(); … … 346 346 void updateMenuDebug(QMenu *pMenu); 347 347 #endif /* VBOX_WITH_DEBUGGER_GUI */ 348 #ifdef Q_WS_MAC348 #ifdef VBOX_WS_MAC 349 349 /** Update 'Window' menu routine. */ 350 350 void updateMenuWindow(QMenu *pMenu); 351 #endif /* Q_WS_MAC */351 #endif /* VBOX_WS_MAC */ 352 352 353 353 /** Show Global Preferences on the page defined by @a strCategory and tab defined by @a strControl. */ … … 395 395 #endif /* VBOX_WITH_DEBUGGER_GUI */ 396 396 397 #ifdef Q_WS_MAC397 #ifdef VBOX_WS_MAC 398 398 bool m_fIsDockIconEnabled; 399 399 UIDockIconPreview *m_pDockIconPreview; 400 400 QActionGroup *m_pDockPreviewSelectMonitorGroup; 401 401 int m_DockIconPreviewMonitor; 402 #endif /* Q_WS_MAC */402 #endif /* VBOX_WS_MAC */ 403 403 404 404 void *m_pHostLedsState; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r59843 r60362 42 42 # include "UIFrameBuffer.h" 43 43 # include "VBoxFBOverlay.h" 44 # ifdef Q_WS_MAC44 # ifdef VBOX_WS_MAC 45 45 # include "UICocoaApplication.h" 46 # endif /* Q_WS_MAC */46 # endif /* VBOX_WS_MAC */ 47 47 # ifdef VBOX_WITH_DRAG_AND_DROP 48 48 # include "UIDnDHandler.h" … … 72 72 73 73 /* GUI includes: */ 74 #ifdef Q_WS_MAC74 #ifdef VBOX_WS_MAC 75 75 # include "DarwinKeyboard.h" 76 76 # include "DockIconPreview.h" 77 #endif /* Q_WS_MAC */77 #endif /* VBOX_WS_MAC */ 78 78 79 79 /* COM includes: */ … … 87 87 #include <VBox/VBoxOGL.h> 88 88 #include <VBox/VBoxVideo.h> 89 #ifdef Q_WS_MAC89 #ifdef VBOX_WS_MAC 90 90 # include <VBox/err.h> 91 #endif /* Q_WS_MAC */91 #endif /* VBOX_WS_MAC */ 92 92 93 93 /* External includes: */ 94 94 #include <math.h> 95 #ifdef Q_WS_MAC95 #ifdef VBOX_WS_MAC 96 96 # include <Carbon/Carbon.h> 97 #endif /* Q_WS_MAC */98 #ifdef Q_WS_X1197 #endif /* VBOX_WS_MAC */ 98 #ifdef VBOX_WS_X11 99 99 # if QT_VERSION < 0x050000 100 100 # include <X11/XKBlib.h> … … 112 112 # include <xcb/xcb.h> 113 113 # endif /* QT_VERSION >= 0x050000 */ 114 #endif /* Q_WS_X11 */114 #endif /* VBOX_WS_X11 */ 115 115 116 116 #ifdef DEBUG_andy … … 371 371 frameBuffer()->performRescale(); 372 372 373 #ifdef Q_WS_MAC373 #ifdef VBOX_WS_MAC 374 374 /* Update MacOS X dock icon size: */ 375 375 machineLogic()->updateDockIconSize(screenId(), iWidth, iHeight); 376 #endif /* Q_WS_MAC */376 #endif /* VBOX_WS_MAC */ 377 377 } 378 378 … … 419 419 rect.translate(-contentsX(), -contentsY()); 420 420 421 #ifdef Q_WS_MAC421 #ifdef VBOX_WS_MAC 422 422 /* Take the backing-scale-factor into account: */ 423 423 if (frameBuffer()->useUnscaledHiDPIOutput()) … … 432 432 } 433 433 } 434 #endif /* Q_WS_MAC */434 #endif /* VBOX_WS_MAC */ 435 435 436 436 /* Limit the resulting part by the viewport rectangle: */ … … 611 611 , m_pFrameBuffer(0) 612 612 , m_previousState(KMachineState_Null) 613 #ifdef Q_WS_MAC613 #ifdef VBOX_WS_MAC 614 614 , m_iHostScreenNumber(0) 615 #endif /* Q_WS_MAC */615 #endif /* VBOX_WS_MAC */ 616 616 , m_maxGuestSizePolicy(MaxGuestSizePolicy_Invalid) 617 617 , m_u64MaxGuestSize(0) … … 693 693 m_pFrameBuffer->setScalingOptimizationType(gEDataManager->scalingOptimizationType(vboxGlobal().managedVMUuid())); 694 694 695 #ifdef Q_WS_MAC695 #ifdef VBOX_WS_MAC 696 696 /* Take backing scale-factor into account: */ 697 697 m_pFrameBuffer->setBackingScaleFactor(darwinBackingScaleFactor(machineWindow())); 698 #endif /* Q_WS_MAC */698 #endif /* VBOX_WS_MAC */ 699 699 700 700 /* Take the scale-factor related attributes into account: */ … … 729 729 QSize size; 730 730 { 731 #ifdef Q_WS_X11731 #ifdef VBOX_WS_X11 732 732 /* Processing pseudo resize-event to synchronize frame-buffer with stored framebuffer size. 733 733 * On X11 this will be additional done when the machine state was 'saved'. */ 734 734 if (machine().GetState() == KMachineState_Saved) 735 735 size = guestScreenSizeHint(); 736 #endif /* Q_WS_X11 */736 #endif /* VBOX_WS_X11 */ 737 737 738 738 /* If there is a preview image saved, … … 1100 1100 /* Finally copy the screen-shot to pause-pixmap: */ 1101 1101 m_pausePixmap = QPixmap::fromImage(screenShot); 1102 #ifdef Q_WS_MAC1102 #ifdef VBOX_WS_MAC 1103 1103 # ifdef VBOX_GUI_WITH_HIDPI 1104 1104 /* Adjust backing-scale-factor if necessary: */ … … 1107 1107 m_pausePixmap.setDevicePixelRatio(dBackingScaleFactor); 1108 1108 # endif /* VBOX_GUI_WITH_HIDPI */ 1109 #endif /* Q_WS_MAC */1109 #endif /* VBOX_WS_MAC */ 1110 1110 1111 1111 /* Update scaled pause pixmap: */ … … 1137 1137 /* Finally copy the screen-shot to pause-pixmap: */ 1138 1138 m_pausePixmap = QPixmap::fromImage(screenShot); 1139 #ifdef Q_WS_MAC1139 #ifdef VBOX_WS_MAC 1140 1140 # ifdef VBOX_GUI_WITH_HIDPI 1141 1141 /* Adjust backing-scale-factor if necessary: */ … … 1144 1144 m_pausePixmap.setDevicePixelRatio(dBackingScaleFactor); 1145 1145 # endif /* VBOX_GUI_WITH_HIDPI */ 1146 #endif /* Q_WS_MAC */1146 #endif /* VBOX_WS_MAC */ 1147 1147 1148 1148 /* Update scaled pause pixmap: */ … … 1163 1163 /* Update pause pixmap finally: */ 1164 1164 m_pausePixmapScaled = pausePixmap().scaled(scaledSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); 1165 #ifdef Q_WS_MAC1165 #ifdef VBOX_WS_MAC 1166 1166 # ifdef VBOX_GUI_WITH_HIDPI 1167 1167 /* Adjust backing-scale-factor if necessary: */ … … 1170 1170 m_pausePixmapScaled.setDevicePixelRatio(dBackingScaleFactor); 1171 1171 # endif /* VBOX_GUI_WITH_HIDPI */ 1172 #endif /* Q_WS_MAC */1172 #endif /* VBOX_WS_MAC */ 1173 1173 } 1174 1174 … … 1193 1193 int yRange = frameBufferSize.height() - curViewportSize.height(); 1194 1194 1195 #ifdef Q_WS_MAC1195 #ifdef VBOX_WS_MAC 1196 1196 /* Due to Qt 4.x doesn't supports HiDPI directly 1197 1197 * we should take the backing-scale-factor into account. … … 1206 1206 } 1207 1207 } 1208 #endif /* Q_WS_MAC */1208 #endif /* VBOX_WS_MAC */ 1209 1209 1210 1210 /* Configure scroll-bars: */ … … 1221 1221 int iContentsY = contentsY(); 1222 1222 1223 #ifdef Q_WS_MAC1223 #ifdef VBOX_WS_MAC 1224 1224 /* Due to Qt 4.x doesn't supports HiDPI directly 1225 1225 * we should take the backing-scale-factor into account. … … 1234 1234 } 1235 1235 } 1236 #endif /* Q_WS_MAC */1236 #endif /* VBOX_WS_MAC */ 1237 1237 1238 1238 /* Return point shifted according scroll-bars: */ … … 1294 1294 1295 1295 1296 #ifdef Q_WS_MAC1296 #ifdef VBOX_WS_MAC 1297 1297 void UIMachineView::updateDockIcon() 1298 1298 { … … 1329 1329 return ir; 1330 1330 } 1331 #endif /* Q_WS_MAC */1331 #endif /* VBOX_WS_MAC */ 1332 1332 1333 1333 UIVisualStateType UIMachineView::visualStateType() const … … 1346 1346 switch (pEvent->type()) 1347 1347 { 1348 #ifdef Q_WS_MAC1348 #ifdef VBOX_WS_MAC 1349 1349 /* Event posted OnShowWindow: */ 1350 1350 case ShowWindowEventType: … … 1359 1359 return true; 1360 1360 } 1361 #endif /* Q_WS_MAC */1361 #endif /* VBOX_WS_MAC */ 1362 1362 1363 1363 #ifdef VBOX_WITH_VIDEOHWACCEL … … 1433 1433 break; 1434 1434 } 1435 #ifdef Q_WS_MAC1435 #ifdef VBOX_WS_MAC 1436 1436 case QEvent::Move: 1437 1437 { … … 1457 1457 break; 1458 1458 } 1459 #endif /* Q_WS_MAC */1459 #endif /* VBOX_WS_MAC */ 1460 1460 default: 1461 1461 break; … … 1494 1494 else 1495 1495 painter.drawPixmap(rect.topLeft(), pausePixmapScaled()); 1496 #ifdef Q_WS_MAC1496 #ifdef VBOX_WS_MAC 1497 1497 /* Update the dock icon: */ 1498 1498 updateDockIcon(); 1499 #endif /* Q_WS_MAC */1499 #endif /* VBOX_WS_MAC */ 1500 1500 return; 1501 1501 } … … 1504 1504 if (m_pFrameBuffer) 1505 1505 m_pFrameBuffer->handlePaintEvent(pPaintEvent); 1506 #ifdef Q_WS_MAC1506 #ifdef VBOX_WS_MAC 1507 1507 /* Update the dock icon if we are in the running state: */ 1508 1508 if (uisession()->isRunning()) 1509 1509 updateDockIcon(); 1510 #endif /* Q_WS_MAC */1510 #endif /* VBOX_WS_MAC */ 1511 1511 } 1512 1512 … … 1692 1692 1693 1693 #if QT_VERSION < 0x050000 1694 # if defined( Q_WS_MAC)1694 # if defined(VBOX_WS_MAC) 1695 1695 1696 1696 bool UIMachineView::macEvent(const void *pvCocoaEvent, EventRef event) … … 1737 1737 } 1738 1738 1739 # elif defined( Q_WS_WIN)1739 # elif defined(VBOX_WS_WIN) 1740 1740 1741 1741 bool UIMachineView::winEvent(MSG *pMsg, long* /* piResult */) … … 1779 1779 } 1780 1780 1781 # elif defined( Q_WS_X11)1781 # elif defined(VBOX_WS_X11) 1782 1782 1783 1783 bool UIMachineView::x11Event(XEvent *pEvent) … … 1817 1817 } 1818 1818 1819 # endif /* Q_WS_X11 */1819 # endif /* VBOX_WS_X11 */ 1820 1820 #else /* QT_VERSION >= 0x050000 */ 1821 1821 1822 1822 bool UIMachineView::nativeEvent(const QByteArray &eventType, void *pMessage) 1823 1823 { 1824 # if defined( Q_WS_MAC)1824 # if defined(VBOX_WS_MAC) 1825 1825 1826 1826 /* Make sure it's generic NSEvent: */ … … 1857 1857 } 1858 1858 1859 # elif defined( Q_WS_WIN)1859 # elif defined(VBOX_WS_WIN) 1860 1860 1861 1861 /* Make sure it's generic MSG event: */ … … 1882 1882 } 1883 1883 1884 # elif defined( Q_WS_X11)1884 # elif defined(VBOX_WS_X11) 1885 1885 1886 1886 /* Make sure it's generic XCB event: */ … … 1924 1924 size = QSize((int)(size.width() * dScaleFactor), (int)(size.height() * dScaleFactor)); 1925 1925 1926 #ifdef Q_WS_MAC1926 #ifdef VBOX_WS_MAC 1927 1927 /* Take the backing-scale-factor into account: */ 1928 1928 if (frameBuffer()->useUnscaledHiDPIOutput()) … … 1932 1932 size = QSize(size.width() / dBackingScaleFactor, size.height() / dBackingScaleFactor); 1933 1933 } 1934 #endif /* Q_WS_MAC */1934 #endif /* VBOX_WS_MAC */ 1935 1935 1936 1936 /* Return result: */ … … 1940 1940 QSize UIMachineView::scaledBackward(QSize size) const 1941 1941 { 1942 #ifdef Q_WS_MAC1942 #ifdef VBOX_WS_MAC 1943 1943 /* Take the backing-scale-factor into account: */ 1944 1944 if (frameBuffer()->useUnscaledHiDPIOutput()) … … 1948 1948 size = QSize(size.width() * dBackingScaleFactor, size.height() * dBackingScaleFactor); 1949 1949 } 1950 #endif /* Q_WS_MAC */1950 #endif /* VBOX_WS_MAC */ 1951 1951 1952 1952 /* Take the scale-factor into account: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r59658 r60362 35 35 /* Other VBox includes: */ 36 36 #include "VBox/com/ptr.h" 37 #ifdef Q_WS_MAC37 #ifdef VBOX_WS_MAC 38 38 # if QT_VERSION >= 0x050000 39 39 # include <ApplicationServices/ApplicationServices.h> 40 40 # endif /* QT_VERSION >= 0x050000 */ 41 #endif /* Q_WS_MAC */41 #endif /* VBOX_WS_MAC */ 42 42 43 43 /* External includes: */ 44 #ifdef Q_WS_MAC44 #ifdef VBOX_WS_MAC 45 45 # include <CoreFoundation/CFBase.h> 46 #endif /* Q_WS_MAC */46 #endif /* VBOX_WS_MAC */ 47 47 48 48 /* Forward declarations: */ … … 57 57 class CMachine; 58 58 class CSession; 59 #ifdef Q_WS_X1159 #ifdef VBOX_WS_X11 60 60 # if QT_VERSION < 0x050000 61 61 typedef union _XEvent XEvent; 62 62 # endif /* QT_VERSION < 0x050000 */ 63 #endif /* Q_WS_X11 */63 #endif /* VBOX_WS_X11 */ 64 64 #ifdef VBOX_WITH_DRAG_AND_DROP 65 65 class CDnDTarget; … … 262 262 static void dimImage(QImage &img); 263 263 void scrollContentsBy(int dx, int dy); 264 #ifdef Q_WS_MAC264 #ifdef VBOX_WS_MAC 265 265 void updateDockIcon(); 266 266 CGImageRef vmContentImage(); 267 267 CGImageRef frameBuffertoCGImageRef(UIFrameBuffer *pFrameBuffer); 268 #endif /* Q_WS_MAC */268 #endif /* VBOX_WS_MAC */ 269 269 /** What view mode (normal, fullscreen etc.) are we in? */ 270 270 UIVisualStateType visualStateType() const; … … 346 346 347 347 #if QT_VERSION < 0x050000 348 # if defined( Q_WS_MAC)348 # if defined(VBOX_WS_MAC) 349 349 /** Qt4: Mac: Performs pre-processing of all the native events. 350 350 * @note Take into account this function is _not_ called by … … 352 352 * only by the keyboard-hook of the keyboard-handler. */ 353 353 virtual bool macEvent(const void *pvCocoaEvent, EventRef event); 354 # elif defined( Q_WS_WIN)354 # elif defined(VBOX_WS_WIN) 355 355 /** Qt4: Win: Performs pre-processing of all the native events. 356 356 * @note Take into account this function is called by … … 358 358 * because it has required signature. */ 359 359 virtual bool winEvent(MSG *pMsg, long *piResult); 360 # elif defined( Q_WS_X11)360 # elif defined(VBOX_WS_X11) 361 361 /** Qt4: X11: Performs pre-processing of all the native events. 362 362 * @note Take into account this function is called by … … 364 364 * because it has required signature. */ 365 365 virtual bool x11Event(XEvent *pEvent); 366 # endif /* Q_WS_X11 */366 # endif /* VBOX_WS_X11 */ 367 367 #else /* QT_VERSION >= 0x050000 */ 368 368 /** Qt5: Performs pre-processing of all the native events. … … 388 388 QSize m_sizeHintOverride; 389 389 390 #ifdef Q_WS_MAC390 #ifdef VBOX_WS_MAC 391 391 /** Holds current host-screen number. */ 392 392 int m_iHostScreenNumber; 393 #endif /* Q_WS_MAC */393 #endif /* VBOX_WS_MAC */ 394 394 395 395 /** The policy for calculating the maximum guest resolution which we wish -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r59911 r60362 56 56 57 57 /* External includes: */ 58 #ifdef Q_WS_X1158 #ifdef VBOX_WS_X11 59 59 # if QT_VERSION < 0x050000 60 60 # include <X11/Xlib.h> 61 61 # endif /* QT_VERSION < 0x050000 */ 62 #endif /* Q_WS_X11 */62 #endif /* VBOX_WS_X11 */ 63 63 64 64 … … 181 181 , m_pRightSpacer(0) 182 182 { 183 #ifndef Q_WS_MAC183 #ifndef VBOX_WS_MAC 184 184 /* On Mac OS X window icon referenced in info.plist is used. */ 185 185 … … 194 194 else 195 195 setWindowIcon(vboxGlobal().vmGuestOSTypeIcon(machine().GetOSTypeId())); 196 #endif /* ! Q_WS_MAC */196 #endif /* !VBOX_WS_MAC */ 197 197 } 198 198 … … 261 261 } 262 262 263 #ifdef Q_WS_X11263 #ifdef VBOX_WS_X11 264 264 # if QT_VERSION < 0x050000 265 265 bool UIMachineWindow::x11Event(XEvent *pEvent) … … 284 284 } 285 285 # endif /* QT_VERSION < 0x050000 */ 286 #endif /* Q_WS_X11 */286 #endif /* VBOX_WS_X11 */ 287 287 288 288 void UIMachineWindow::showEvent(QShowEvent *pShowEvent) … … 558 558 strMachineName += " [" + gpConverter->toString(state) + "]"; 559 559 /* Unusual on the Mac. */ 560 #ifndef Q_WS_MAC560 #ifndef VBOX_WS_MAC 561 561 const QString strUserProductName = uisession()->machineWindowNamePostfix(); 562 562 strMachineName += " - " + (strUserProductName.isEmpty() ? defaultWindowTitle() : strUserProductName); 563 #endif /* ! Q_WS_MAC */563 #endif /* !VBOX_WS_MAC */ 564 564 if (machine().GetMonitorCount() > 1) 565 565 strMachineName += QString(" : %1").arg(m_uScreenId + 1); … … 591 591 } 592 592 593 #ifdef Q_WS_MAC593 #ifdef VBOX_WS_MAC 594 594 void UIMachineWindow::handleStandardWindowButtonCallback(StandardWindowButtonType enmButtonType, bool fWithOptionKey) 595 595 { … … 652 652 } 653 653 } 654 #endif /* Q_WS_MAC */655 654 #endif /* VBOX_WS_MAC */ 655 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r58943 r60362 25 25 #include "QIWithRetranslateUI.h" 26 26 #include "UIExtraDataDefs.h" 27 #ifdef Q_WS_MAC27 #ifdef VBOX_WS_MAC 28 28 # include "VBoxUtils-darwin.h" 29 #endif /* Q_WS_MAC */29 #endif /* VBOX_WS_MAC */ 30 30 31 31 /* COM includes: */ … … 42 42 class UIMachineView; 43 43 class CSession; 44 #ifdef Q_WS_X1144 #ifdef VBOX_WS_X11 45 45 # if QT_VERSION < 0x050000 46 46 typedef union _XEvent XEvent; 47 47 # endif /* QT_VERSION < 0x050000 */ 48 #endif /* Q_WS_X11 */48 #endif /* VBOX_WS_X11 */ 49 49 50 50 … … 122 122 123 123 /* Event handlers: */ 124 #ifdef Q_WS_X11124 #ifdef VBOX_WS_X11 125 125 # if QT_VERSION < 0x050000 126 126 /** X11: Qt4: Handles all native events. */ 127 127 bool x11Event(XEvent *pEvent); 128 128 # endif /* QT_VERSION < 0x050000 */ 129 #endif /* Q_WS_X11 */129 #endif /* VBOX_WS_X11 */ 130 130 131 131 /** Show event handler. */ … … 135 135 void closeEvent(QCloseEvent *pCloseEvent); 136 136 137 #ifdef Q_WS_MAC137 #ifdef VBOX_WS_MAC 138 138 /** Mac OS X: Handles native notifications. 139 139 * @param strNativeNotificationName Native notification name. */ … … 144 144 * @param fWithOptionKey Brings whether the Option key was held. */ 145 145 virtual void handleStandardWindowButtonCallback(StandardWindowButtonType enmButtonType, bool fWithOptionKey); 146 #endif /* Q_WS_MAC */146 #endif /* VBOX_WS_MAC */ 147 147 148 148 /* Prepare helpers: */ … … 176 176 static Qt::Alignment viewAlignment(UIVisualStateType visualStateType); 177 177 178 #ifdef Q_WS_MAC178 #ifdef VBOX_WS_MAC 179 179 /** Mac OS X: Handles native notifications. 180 180 * @param strNativeNotificationName Native notification name. … … 187 187 * @param pWidget Brings widget, callback related to. */ 188 188 static void handleStandardWindowButtonCallback(StandardWindowButtonType enmButtonType, bool fWithOptionKey, QWidget *pWidget); 189 #endif /* Q_WS_MAC */189 #endif /* VBOX_WS_MAC */ 190 190 191 191 /* Variables: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp
r56757 r60362 27 27 # include <QPainter> 28 28 # include <QMenu> 29 # ifndef Q_WS_MAC29 # ifndef VBOX_WS_MAC 30 30 # include <QCheckBox> 31 # endif /* ! Q_WS_MAC */31 # endif /* !VBOX_WS_MAC */ 32 32 33 33 /* GUI includes: */ … … 57 57 , m_pToolBar(0) 58 58 , m_pButtonClose(0) 59 #ifndef Q_WS_MAC59 #ifndef VBOX_WS_MAC 60 60 , m_pCheckBoxEnable(0) 61 #endif /* ! Q_WS_MAC */61 #endif /* !VBOX_WS_MAC */ 62 62 { 63 63 /* Prepare: */ … … 81 81 } 82 82 83 #ifndef Q_WS_MAC83 #ifndef VBOX_WS_MAC 84 84 bool UIMenuBarEditorWidget::isMenuBarEnabled() const 85 85 { … … 101 101 m_pCheckBoxEnable->setChecked(fEnabled); 102 102 } 103 #endif /* ! Q_WS_MAC */103 #endif /* !VBOX_WS_MAC */ 104 104 105 105 void UIMenuBarEditorWidget::setRestrictionsOfMenuBar(UIExtraDataMetaDefs::MenuType restrictions) … … 308 308 #endif /* VBOX_WITH_DEBUGGER_GUI */ 309 309 310 #ifdef Q_WS_MAC310 #ifdef VBOX_WS_MAC 311 311 void UIMenuBarEditorWidget::setRestrictionsOfMenuWindow(UIExtraDataMetaDefs::MenuWindowActionType restrictions) 312 312 { … … 337 337 } 338 338 } 339 #endif /* Q_WS_MAC */339 #endif /* VBOX_WS_MAC */ 340 340 341 341 void UIMenuBarEditorWidget::setRestrictionsOfMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType restrictions) … … 384 384 setRestrictionsOfMenuDebug(gEDataManager->restrictedRuntimeMenuDebuggerActionTypes(machineID())); 385 385 #endif /* VBOX_WITH_DEBUGGER_GUI */ 386 #ifdef Q_WS_MAC386 #ifdef VBOX_WS_MAC 387 387 setRestrictionsOfMenuWindow(gEDataManager->restrictedRuntimeMenuWindowActionTypes(machineID())); 388 #endif /* Q_WS_MAC */388 #endif /* VBOX_WS_MAC */ 389 389 setRestrictionsOfMenuHelp(gEDataManager->restrictedRuntimeMenuHelpActionTypes(machineID())); 390 390 } … … 534 534 } 535 535 #endif /* VBOX_WITH_DEBUGGER_GUI */ 536 #ifdef Q_WS_MAC536 #ifdef VBOX_WS_MAC 537 537 case UIExtraDataMetaDefs::MenuType_Window: 538 538 { … … 554 554 break; 555 555 } 556 #endif /* Q_WS_MAC */556 #endif /* VBOX_WS_MAC */ 557 557 case UIExtraDataMetaDefs::MenuType_Help: 558 558 { … … 602 602 if (iTop >= 5) 603 603 iTop -= 5; 604 #ifndef Q_WS_MAC604 #ifndef VBOX_WS_MAC 605 605 /* Right margin should be bigger for the settings case: */ 606 606 if (m_fStartedFromVMSettings) 607 607 iRight += 5; 608 #endif /* ! Q_WS_MAC */608 #endif /* !VBOX_WS_MAC */ 609 609 /* Apply margins/spacing finally: */ 610 610 m_pMainLayout->setContentsMargins(iLeft, iTop, iRight, iBottom); … … 636 636 } 637 637 } 638 #ifndef Q_WS_MAC638 #ifndef VBOX_WS_MAC 639 639 /* Create enable-checkbox if necessary: */ 640 640 else … … 649 649 } 650 650 } 651 #endif /* ! Q_WS_MAC */651 #endif /* !VBOX_WS_MAC */ 652 652 } 653 653 … … 670 670 prepareMenuDebug(); 671 671 #endif /* VBOX_WITH_DEBUGGER_GUI */ 672 #ifdef Q_WS_MAC672 #ifdef VBOX_WS_MAC 673 673 prepareMenuWindow(); 674 #endif /* Q_WS_MAC */674 #endif /* VBOX_WS_MAC */ 675 675 prepareMenuHelp(); 676 676 … … 687 687 setRestrictionsOfMenuDebug(gEDataManager->restrictedRuntimeMenuDebuggerActionTypes(machineID())); 688 688 #endif /* VBOX_WITH_DEBUGGER_GUI */ 689 #ifdef Q_WS_MAC689 #ifdef VBOX_WS_MAC 690 690 setRestrictionsOfMenuWindow(gEDataManager->restrictedRuntimeMenuWindowActionTypes(machineID())); 691 #endif /* Q_WS_MAC */691 #endif /* VBOX_WS_MAC */ 692 692 setRestrictionsOfMenuHelp(gEDataManager->restrictedRuntimeMenuHelpActionTypes(machineID())); 693 693 /* And listen for the menu-bar configuration changes after that: */ … … 697 697 } 698 698 699 #ifdef Q_WS_MAC699 #ifdef VBOX_WS_MAC 700 700 QMenu* UIMenuBarEditorWidget::prepareNamedMenu(const QString &strName) 701 701 { … … 734 734 return pNamedMenu; 735 735 } 736 #endif /* Q_WS_MAC */736 #endif /* VBOX_WS_MAC */ 737 737 738 738 QMenu* UIMenuBarEditorWidget::prepareCopiedMenu(const UIAction *pAction) … … 843 843 { 844 844 /* Copy menu: */ 845 #ifdef Q_WS_MAC845 #ifdef VBOX_WS_MAC 846 846 QMenu *pMenu = prepareNamedMenu("Application"); 847 #else /* ! Q_WS_MAC */847 #else /* !VBOX_WS_MAC */ 848 848 QMenu *pMenu = prepareCopiedMenu(actionPool()->action(UIActionIndex_M_Application)); 849 #endif /* ! Q_WS_MAC */849 #endif /* !VBOX_WS_MAC */ 850 850 AssertPtrReturnVoid(pMenu); 851 851 { 852 #ifdef Q_WS_MAC852 #ifdef VBOX_WS_MAC 853 853 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndex_M_Application_S_About)); 854 854 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER … … 858 858 pMenu->addSeparator(); 859 859 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndex_M_Application_S_Preferences)); 860 #else /* ! Q_WS_MAC */860 #else /* !VBOX_WS_MAC */ 861 861 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndex_M_Application_S_Preferences)); 862 862 pMenu->addSeparator(); … … 865 865 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 866 866 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndex_M_Application_S_ResetWarnings)); 867 #endif /* ! Q_WS_MAC */867 #endif /* !VBOX_WS_MAC */ 868 868 } 869 869 } … … 966 966 #endif /* VBOX_WITH_DEBUGGER_GUI */ 967 967 968 #ifdef Q_WS_MAC968 #ifdef VBOX_WS_MAC 969 969 void UIMenuBarEditorWidget::prepareMenuWindow() 970 970 { … … 980 980 } 981 981 } 982 #endif /* Q_WS_MAC */982 #endif /* VBOX_WS_MAC */ 983 983 984 984 void UIMenuBarEditorWidget::prepareMenuHelp() … … 991 991 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndex_Simple_WebSite)); 992 992 pMenu->addSeparator(); 993 #ifndef Q_WS_MAC993 #ifndef VBOX_WS_MAC 994 994 prepareCopiedAction(pMenu, actionPool()->action(UIActionIndex_Simple_About)); 995 #endif /* ! Q_WS_MAC */995 #endif /* !VBOX_WS_MAC */ 996 996 } 997 997 } … … 1002 1002 if (!m_fStartedFromVMSettings && m_pButtonClose) 1003 1003 m_pButtonClose->setToolTip(tr("Close")); 1004 #ifndef Q_WS_MAC1004 #ifndef VBOX_WS_MAC 1005 1005 /* Translate enable-checkbox if necessary: */ 1006 1006 if (m_fStartedFromVMSettings && m_pCheckBoxEnable) 1007 1007 m_pCheckBoxEnable->setToolTip(tr("Enable Menu Bar")); 1008 #endif /* ! Q_WS_MAC */1008 #endif /* !VBOX_WS_MAC */ 1009 1009 } 1010 1010 … … 1020 1020 color1.setAlpha(0); 1021 1021 QColor color2 = pal.color(QPalette::Window).darker(200); 1022 #if defined( Q_WS_WIN) || defined(Q_WS_X11)1022 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 1023 1023 QColor color3 = pal.color(QPalette::Window).darker(120); 1024 #endif /* Q_WS_WIN || Q_WS_X11 */1024 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 1025 1025 1026 1026 /* Left corner: */ … … 1063 1063 painter.fillRect(QRect(width() - 5, 0, 5, height() - 5), grad5); // right line 1064 1064 1065 #if defined( Q_WS_WIN) || defined(Q_WS_X11)1065 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 1066 1066 /* Paint frames: */ 1067 1067 painter.save(); … … 1073 1073 painter.drawLine(QLine(QPoint(width() - 1 - 5 - 1, 0), QPoint(5 + 1, 0))); 1074 1074 painter.restore(); 1075 #endif /* Q_WS_WIN || Q_WS_X11 */1075 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 1076 1076 } 1077 1077 1078 1078 1079 1079 UIMenuBarEditorWindow::UIMenuBarEditorWindow(UIMachineWindow *pParent, UIActionPool *pActionPool) 1080 #ifndef Q_WS_MAC1080 #ifndef VBOX_WS_MAC 1081 1081 : UISlidingToolBar(pParent, pParent->menuBar(), new UIMenuBarEditorWidget(0, false, vboxGlobal().managedVMUuid(), pActionPool), UISlidingToolBar::Position_Top) 1082 #else /* Q_WS_MAC */1082 #else /* VBOX_WS_MAC */ 1083 1083 : UISlidingToolBar(pParent, 0, new UIMenuBarEditorWidget(0, false, vboxGlobal().managedVMUuid(), pActionPool), UISlidingToolBar::Position_Top) 1084 #endif /* Q_WS_MAC */1085 { 1086 } 1087 1084 #endif /* VBOX_WS_MAC */ 1085 { 1086 } 1087 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.h
r56757 r60362 33 33 class UIAction; 34 34 class QIToolButton; 35 #ifndef Q_WS_MAC35 #ifndef VBOX_WS_MAC 36 36 class QCheckBox; 37 #endif /* ! Q_WS_MAC */37 #endif /* !VBOX_WS_MAC */ 38 38 class QHBoxLayout; 39 39 class QAction; … … 86 86 void setActionPool(UIActionPool *pActionPool); 87 87 88 #ifndef Q_WS_MAC88 #ifndef VBOX_WS_MAC 89 89 /** Returns whether the menu-bar enabled. */ 90 90 bool isMenuBarEnabled() const; 91 91 /** Defines whether the menu-bar @a fEnabled. */ 92 92 void setMenuBarEnabled(bool fEnabled); 93 #endif /* ! Q_WS_MAC */93 #endif /* !VBOX_WS_MAC */ 94 94 95 95 /** Returns the cached restrictions of menu-bar. */ … … 109 109 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restrictionsOfMenuDebug() const { return m_restrictionsOfMenuDebug; } 110 110 #endif /* VBOX_WITH_DEBUGGER_GUI */ 111 #ifdef Q_WS_MAC111 #ifdef VBOX_WS_MAC 112 112 /** Mac OS X: Returns the cached restrictions of menu 'Window'. */ 113 113 UIExtraDataMetaDefs::MenuWindowActionType restrictionsOfMenuWindow() const { return m_restrictionsOfMenuWindow; } 114 #endif /* Q_WS_MAC */114 #endif /* VBOX_WS_MAC */ 115 115 /** Returns the cached restrictions of menu 'Help'. */ 116 116 UIExtraDataMetaDefs::MenuHelpActionType restrictionsOfMenuHelp() const { return m_restrictionsOfMenuHelp; } … … 132 132 void setRestrictionsOfMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restrictions); 133 133 #endif /* VBOX_WITH_DEBUGGER_GUI */ 134 #ifdef Q_WS_MAC134 #ifdef VBOX_WS_MAC 135 135 /** Mac OS X: Defines the cached @a restrictions of menu 'Window'. */ 136 136 void setRestrictionsOfMenuWindow(UIExtraDataMetaDefs::MenuWindowActionType restrictions); 137 #endif /* Q_WS_MAC */137 #endif /* VBOX_WS_MAC */ 138 138 /** Defines the cached @a restrictions of menu 'Help'. */ 139 139 void setRestrictionsOfMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType restrictions); … … 152 152 void prepare(); 153 153 154 #ifdef Q_WS_MAC154 #ifdef VBOX_WS_MAC 155 155 /** Prepare named menu routine. */ 156 156 QMenu* prepareNamedMenu(const QString &strName); 157 #endif /* Q_WS_MAC */157 #endif /* VBOX_WS_MAC */ 158 158 /** Prepare copied menu routine. */ 159 159 QMenu* prepareCopiedMenu(const UIAction *pAction); … … 184 184 void prepareMenuDebug(); 185 185 #endif /* VBOX_WITH_DEBUGGER_GUI */ 186 #ifdef Q_WS_MAC186 #ifdef VBOX_WS_MAC 187 187 /** Mac OS X: Prepare 'Window' menu routine. */ 188 188 void prepareMenuWindow(); 189 #endif /* Q_WS_MAC */189 #endif /* VBOX_WS_MAC */ 190 190 /** Prepare 'Help' menu routine. */ 191 191 void prepareMenuHelp(); … … 217 217 /** Holds the close-button instance. */ 218 218 QIToolButton *m_pButtonClose; 219 #ifndef Q_WS_MAC219 #ifndef VBOX_WS_MAC 220 220 /** Non Mac OS X: Holds the enable-checkbox instance. */ 221 221 QCheckBox *m_pCheckBoxEnable; 222 #endif /* ! Q_WS_MAC */222 #endif /* !VBOX_WS_MAC */ 223 223 /** Holds tool-bar action references. */ 224 224 QMap<QString, QAction*> m_actions; … … 243 243 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType m_restrictionsOfMenuDebug; 244 244 #endif /* VBOX_WITH_DEBUGGER_GUI */ 245 #ifdef Q_WS_MAC245 #ifdef VBOX_WS_MAC 246 246 /** Mac OS X: Holds the cached restrictions of menu 'Window'. */ 247 247 UIExtraDataMetaDefs::MenuWindowActionType m_restrictionsOfMenuWindow; 248 #endif /* Q_WS_MAC */248 #endif /* VBOX_WS_MAC */ 249 249 /** Holds the cached restrictions of menu 'Help'. */ 250 250 UIExtraDataMetaDefs::MenuHelpActionType m_restrictionsOfMenuHelp; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r59092 r60362 37 37 # include "UIMouseHandler.h" 38 38 # include "UIFrameBuffer.h" 39 # ifdef Q_WS_MAC39 # ifdef VBOX_WS_MAC 40 40 # include "VBoxUtils-darwin.h" 41 # endif /* Q_WS_MAC */42 # ifdef Q_WS_WIN41 # endif /* VBOX_WS_MAC */ 42 # ifdef VBOX_WS_WIN 43 43 # include "VBoxUtils-win.h" 44 # endif /* Q_WS_WIN */44 # endif /* VBOX_WS_WIN */ 45 45 46 46 /* COM includes: */ … … 59 59 60 60 /* External includes: */ 61 #ifdef Q_WS_X1161 #ifdef VBOX_WS_X11 62 62 # if QT_VERSION < 0x050000 63 63 # include <X11/Xlib.h> … … 67 67 # endif /* FocusOut */ 68 68 # endif /* QT_VERSION < 0x050000 */ 69 #endif /* Q_WS_X11 */69 #endif /* VBOX_WS_X11 */ 70 70 71 71 … … 186 186 visibleRectangle = visibleRectangle.intersected(vboxGlobal().availableGeometry(machineLogic()->machineWindows()[m_iMouseCaptureViewIndex])); 187 187 188 #ifdef Q_WS_WIN188 #ifdef VBOX_WS_WIN 189 189 /* Move the mouse to the center of the visible area: */ 190 190 m_lastMousePos = visibleRectangle.center(); … … 192 192 /* Update mouse clipping: */ 193 193 updateMouseCursorClipping(); 194 #elif defined ( Q_WS_MAC)194 #elif defined (VBOX_WS_MAC) 195 195 /* Grab all mouse events: */ 196 196 ::darwinMouseGrab(m_viewports[m_iMouseCaptureViewIndex]); 197 #else /* Q_WS_MAC */197 #else /* VBOX_WS_MAC */ 198 198 /* Remember current mouse position: */ 199 199 m_lastMousePos = QCursor::pos(); 200 200 /* Grab all mouse events: */ 201 201 m_viewports[m_iMouseCaptureViewIndex]->grabMouse(); 202 #endif /* ! Q_WS_MAC */202 #endif /* !VBOX_WS_MAC */ 203 203 204 204 /* Switch guest mouse to the relative mode: */ … … 224 224 /* Return the cursor to where it was when we captured it: */ 225 225 QCursor::setPos(m_capturedMousePos); 226 #ifdef Q_WS_WIN226 #ifdef VBOX_WS_WIN 227 227 /* Update mouse clipping: */ 228 228 updateMouseCursorClipping(); 229 #elif defined( Q_WS_MAC)229 #elif defined(VBOX_WS_MAC) 230 230 /* Releasing grabbed mouse from that view: */ 231 231 ::darwinMouseRelease(m_viewports[m_iMouseCaptureViewIndex]); 232 #else /* Q_WS_MAC */232 #else /* VBOX_WS_MAC */ 233 233 /* Releasing grabbed mouse from that view: */ 234 234 m_viewports[m_iMouseCaptureViewIndex]->releaseMouse(); 235 #endif /* ! Q_WS_MAC */235 #endif /* !VBOX_WS_MAC */ 236 236 /* Reset mouse-capture index: */ 237 237 m_iMouseCaptureViewIndex = -1; … … 264 264 } 265 265 266 #ifdef Q_WS_X11266 #ifdef VBOX_WS_X11 267 267 # if QT_VERSION < 0x050000 268 268 bool UIMouseHandler::x11EventFilter(XEvent *pEvent, ulong /* uScreenId */) … … 294 294 } 295 295 # endif /* QT_VERSION < 0x050000 */ 296 #endif /* Q_WS_X11 */296 #endif /* VBOX_WS_X11 */ 297 297 298 298 /* Machine state-change handler: */ … … 436 436 /* Activate it: */ 437 437 m_pHoveredWindow->activateWindow(); 438 #ifdef Q_WS_X11438 #ifdef VBOX_WS_X11 439 439 /* On X11 its not enough to just activate window if you 440 440 * want to raise it also, so we will make it separately: */ 441 441 m_pHoveredWindow->raise(); 442 #endif /* Q_WS_X11 */442 #endif /* VBOX_WS_X11 */ 443 443 } 444 444 } … … 503 503 if (m_windows.values().contains(pWatchedWidget)) 504 504 { 505 #ifdef Q_WS_WIN505 #ifdef VBOX_WS_WIN 506 506 /* Handle window events: */ 507 507 switch (pEvent->type()) … … 517 517 break; 518 518 } 519 #endif /* Q_WS_WIN */519 #endif /* VBOX_WS_WIN */ 520 520 } 521 521 … … 553 553 switch (pEvent->type()) 554 554 { 555 #ifdef Q_WS_MAC555 #ifdef VBOX_WS_MAC 556 556 case UIGrabMouseEvent::GrabMouseEvent: 557 557 { … … 566 566 break; 567 567 } 568 #endif /* Q_WS_MAC */568 #endif /* VBOX_WS_MAC */ 569 569 case QEvent::MouseMove: 570 570 case QEvent::MouseButtonRelease: … … 604 604 } 605 605 606 #ifdef Q_WS_X11606 #ifdef VBOX_WS_X11 607 607 /* Make sure that we are focused after a click. Rather 608 608 * ugly, but works around a problem with GNOME … … 611 611 if (pEvent->type() == QEvent::MouseButtonRelease) 612 612 pWatchedWidget->window()->activateWindow(); 613 #endif /* Q_WS_X11 */613 #endif /* VBOX_WS_X11 */ 614 614 /* Check if we should activate window under cursor: */ 615 615 if (gEDataManager->activateHoveredMachineWindow() && … … 667 667 if (mouseEvent(pWheelEvent->type(), uScreenId, 668 668 pWheelEvent->pos(), pWheelEvent->globalPos(), 669 #ifdef Q_WS_MAC669 #ifdef VBOX_WS_MAC 670 670 /* Qt Cocoa is buggy. It always reports a left button pressed when the 671 671 * mouse wheel event occurs. A workaround is to ask the application which 672 672 * buttons are pressed currently: */ 673 673 QApplication::mouseButtons(), 674 #else /* ! Q_WS_MAC */674 #else /* !VBOX_WS_MAC */ 675 675 pWheelEvent->buttons(), 676 #endif /* ! Q_WS_MAC */676 #endif /* !VBOX_WS_MAC */ 677 677 iDelta, pWheelEvent->orientation())) 678 678 return true; 679 679 break; 680 680 } 681 #ifdef Q_WS_MAC681 #ifdef VBOX_WS_MAC 682 682 case QEvent::Leave: 683 683 { … … 697 697 break; 698 698 } 699 #endif /* Q_WS_MAC */700 #ifdef Q_WS_WIN699 #endif /* VBOX_WS_MAC */ 700 #ifdef VBOX_WS_WIN 701 701 case QEvent::Resize: 702 702 { … … 705 705 break; 706 706 } 707 #endif /* Q_WS_WIN */707 #endif /* VBOX_WS_WIN */ 708 708 default: 709 709 break; … … 715 715 716 716 /* Try to detect if the mouse event is fake and actually generated by a touch device. */ 717 #ifdef Q_WS_WIN717 #ifdef VBOX_WS_WIN 718 718 #if (WINVER < 0x0601) 719 719 typedef enum tagINPUT_MESSAGE_DEVICE_TYPE { … … 776 776 } 777 777 #else 778 /* Apparently Q_WS_MAC does not generate fake mouse events.778 /* Apparently VBOX_WS_MAC does not generate fake mouse events. 779 779 * Other platforms, which have no known method to detect fake events are handled here too. 780 780 */ … … 817 817 iMouseButtonsState |= KMouseButtonState_XButton2; 818 818 819 #ifdef Q_WS_MAC819 #ifdef VBOX_WS_MAC 820 820 /* Simulate the right click on host-key + left-mouse-button: */ 821 821 if (machineLogic()->keyboardHandler()->isHostKeyPressed() && … … 823 823 iMouseButtonsState == KMouseButtonState_LeftButton) 824 824 iMouseButtonsState = KMouseButtonState_RightButton; 825 #endif /* Q_WS_MAC */825 #endif /* VBOX_WS_MAC */ 826 826 827 827 int iWheelVertical = 0; … … 839 839 if (uisession()->isMouseCaptured()) 840 840 { 841 #ifdef Q_WS_WIN841 #ifdef VBOX_WS_WIN 842 842 /* Send pending WM_PAINT events: */ 843 843 ::UpdateWindow((HWND)m_viewports[uScreenId]->winId()); … … 847 847 iWheelVertical, iWheelHorizontal, iMouseButtonsState); 848 848 849 #ifdef Q_WS_WIN849 #ifdef VBOX_WS_WIN 850 850 /* Bringing mouse to the opposite side to simulate the endless moving: */ 851 851 … … 880 880 else 881 881 m_lastMousePos = globalPos; 882 #else /* Q_WS_WIN */882 #else /* VBOX_WS_WIN */ 883 883 int iWe = QApplication::desktop()->width() - 1; 884 884 int iHe = QApplication::desktop()->height() - 1; … … 897 897 m_lastMousePos = p; 898 898 /* No need for cursor updating on the Mac, there is no one. */ 899 # ifndef Q_WS_MAC899 # ifndef VBOX_WS_MAC 900 900 QCursor::setPos(m_lastMousePos); 901 # endif /* Q_WS_MAC */901 # endif /* VBOX_WS_MAC */ 902 902 } 903 903 else 904 904 m_lastMousePos = globalPos; 905 #endif /* ! Q_WS_WIN */905 #endif /* !VBOX_WS_WIN */ 906 906 return true; /* stop further event handling */ 907 907 } … … 940 940 } 941 941 942 #ifdef Q_WS_MAC942 #ifdef VBOX_WS_MAC 943 943 /* Take the backing-scale-factor into account: */ 944 944 if (pFrameBuffer->useUnscaledHiDPIOutput()) … … 951 951 } 952 952 } 953 #endif /* Q_WS_MAC */953 #endif /* VBOX_WS_MAC */ 954 954 955 955 #ifdef VBOX_WITH_DRAG_AND_DROP … … 1024 1024 if (ok) 1025 1025 { 1026 #ifdef Q_WS_X111026 #ifdef VBOX_WS_X11 1027 1027 /* Make sure that pending FocusOut events from the previous message box are handled, 1028 1028 * otherwise the mouse is immediately ungrabbed again: */ 1029 1029 qApp->processEvents(); 1030 #endif /* Q_WS_X11 */1030 #endif /* VBOX_WS_X11 */ 1031 1031 machineLogic()->keyboardHandler()->captureKeyboard(uScreenId); 1032 1032 const MouseCapturePolicy mcp = gEDataManager->mouseCapturePolicy(vboxGlobal().managedVMUuid()); … … 1101 1101 } 1102 1102 1103 #ifdef Q_WS_WIN1103 #ifdef VBOX_WS_WIN 1104 1104 /* This method is actually required only because under win-host 1105 1105 * we do not really grab the mouse in case of capturing it: */ … … 1148 1148 } 1149 1149 } 1150 #endif /* Q_WS_WIN */1151 1150 #endif /* VBOX_WS_WIN */ 1151 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h
r58943 r60362 38 38 class CDisplay; 39 39 class CMouse; 40 #ifdef Q_WS_X1140 #ifdef VBOX_WS_X11 41 41 # if QT_VERSION < 0x050000 42 42 typedef union _XEvent XEvent; 43 43 # endif /* QT_VERSION < 0x050000 */ 44 #endif /* Q_WS_X11 */44 #endif /* VBOX_WS_X11 */ 45 45 46 46 … … 75 75 int state() const; 76 76 77 #ifdef Q_WS_X1177 #ifdef VBOX_WS_X11 78 78 # if QT_VERSION < 0x050000 79 79 /** X11: Qt4: Handles all native events. */ 80 80 bool x11EventFilter(XEvent *pEvent, ulong uScreenId); 81 81 # endif /* QT_VERSION < 0x050000 */ 82 #endif /* Q_WS_X11 */82 #endif /* VBOX_WS_X11 */ 83 83 84 84 protected slots: … … 123 123 bool multiTouchEvent(QTouchEvent *pTouchEvent, ulong uScreenId); 124 124 125 #ifdef Q_WS_WIN125 #ifdef VBOX_WS_WIN 126 126 /* This method is actually required only because under win-host 127 127 * we do not really grab the mouse in case of capturing it: */ 128 128 void updateMouseCursorClipping(); 129 129 QRect m_mouseCursorClippingRect; 130 #endif /* Q_WS_WIN */130 #endif /* VBOX_WS_WIN */ 131 131 132 132 /* Machine logic parent: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r60226 r60362 24 24 # include <QDesktopWidget> 25 25 # include <QWidget> 26 # ifdef Q_WS_MAC26 # ifdef VBOX_WS_MAC 27 27 # include <QTimer> 28 # endif /* Q_WS_MAC */28 # endif /* VBOX_WS_MAC */ 29 29 30 30 /* GUI includes: */ … … 47 47 # include "VBoxFBOverlay.h" 48 48 # endif /* VBOX_WITH_VIDEOHWACCEL */ 49 # ifdef Q_WS_MAC49 # ifdef VBOX_WS_MAC 50 50 # include "UIMenuBar.h" 51 51 # include "VBoxUtils-darwin.h" 52 # endif /* Q_WS_MAC */52 # endif /* VBOX_WS_MAC */ 53 53 54 54 # ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER … … 73 73 74 74 /* Qt includes: */ 75 #ifdef Q_WS_WIN75 #ifdef VBOX_WS_WIN 76 76 # if QT_VERSION >= 0x050000 77 77 # include <QtWin> 78 78 # endif /* QT_VERSION >= 0x050000 */ 79 #endif /* Q_WS_WIN */80 81 #ifdef Q_WS_X1179 #endif /* VBOX_WS_WIN */ 80 81 #ifdef VBOX_WS_X11 82 82 # include <QX11Info> 83 83 # include <X11/Xlib.h> 84 84 # include <X11/Xutil.h> 85 #endif /* Q_WS_X11 */85 #endif /* VBOX_WS_X11 */ 86 86 87 87 #ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER … … 89 89 #endif 90 90 91 #ifdef Q_WS_MAC91 #ifdef VBOX_WS_MAC 92 92 /** 93 93 * MacOS X: Application Services: Core Graphics: Display reconfiguration callback. … … 124 124 Q_UNUSED(display); 125 125 } 126 #endif /* Q_WS_MAC */126 #endif /* VBOX_WS_MAC */ 127 127 128 128 /* static */ … … 253 253 254 254 /* Log whether HID LEDs sync is enabled: */ 255 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)255 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 256 256 LogRel(("GUI: HID LEDs sync is %s\n", 257 257 uimachine()->machineLogic()->isHidLedsSyncEnabled() 258 258 ? "enabled" : "disabled")); 259 #else /* ! Q_WS_MAC && !Q_WS_WIN */259 #else /* !VBOX_WS_MAC && !VBOX_WS_WIN */ 260 260 LogRel(("GUI: HID LEDs sync is not supported on this platform\n")); 261 #endif /* ! Q_WS_MAC && !Q_WS_WIN */261 #endif /* !VBOX_WS_MAC && !VBOX_WS_WIN */ 262 262 263 263 #ifdef VBOX_GUI_WITH_PIDFILE … … 936 936 , m_pMachine(pMachine) 937 937 , m_pActionPool(0) 938 #ifdef Q_WS_MAC938 #ifdef VBOX_WS_MAC 939 939 , m_pMenuBar(0) 940 #endif /* Q_WS_MAC */940 #endif /* VBOX_WS_MAC */ 941 941 /* Common variables: */ 942 942 , m_machineStatePrevious(KMachineState_Null) 943 943 , m_machineState(KMachineState_Null) 944 #ifndef Q_WS_MAC944 #ifndef VBOX_WS_MAC 945 945 , m_pMachineWindowIcon(0) 946 #endif /* ! Q_WS_MAC */946 #endif /* !VBOX_WS_MAC */ 947 947 , m_requestedVisualStateType(UIVisualStateType_Invalid) 948 #ifdef Q_WS_WIN948 #ifdef VBOX_WS_WIN 949 949 , m_alphaCursor(0) 950 #endif /* Q_WS_WIN */951 #ifdef Q_WS_MAC950 #endif /* VBOX_WS_WIN */ 951 #ifdef VBOX_WS_MAC 952 952 , m_pWatchdogDisplayChange(0) 953 #endif /* Q_WS_MAC */953 #endif /* VBOX_WS_MAC */ 954 954 , m_defaultCloseAction(MachineCloseAction_Invalid) 955 955 , m_restrictedCloseActions(MachineCloseAction_Invalid) … … 1094 1094 updateActionRestrictions(); 1095 1095 1096 #ifdef Q_WS_MAC1096 #ifdef VBOX_WS_MAC 1097 1097 /* Create Mac OS X menu-bar: */ 1098 1098 m_pMenuBar = new UIMenuBar; … … 1105 1105 updateMenu(); 1106 1106 } 1107 #endif /* Q_WS_MAC */1107 #endif /* VBOX_WS_MAC */ 1108 1108 } 1109 1109 } … … 1113 1113 connect(this, SIGNAL(sigInitialized()), this, SLOT(sltMarkInitialized())); 1114 1114 1115 #ifdef Q_WS_MAC1115 #ifdef VBOX_WS_MAC 1116 1116 /* Install native display reconfiguration callback: */ 1117 1117 CGDisplayRegisterReconfigurationCallback(cgDisplayReconfigurationCallback, this); 1118 #else /* ! Q_WS_MAC */1118 #else /* !VBOX_WS_MAC */ 1119 1119 /* Install Qt display reconfiguration callbacks: */ 1120 1120 connect(QApplication::desktop(), SIGNAL(screenCountChanged(int)), … … 1124 1124 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), 1125 1125 this, SLOT(sltHandleHostScreenAvailableAreaChange())); 1126 #endif /* ! Q_WS_MAC */1126 #endif /* !VBOX_WS_MAC */ 1127 1127 } 1128 1128 … … 1175 1175 this, SIGNAL(sigRuntimeError(bool, QString, QString))); 1176 1176 1177 #ifdef Q_WS_MAC1177 #ifdef VBOX_WS_MAC 1178 1178 connect(gConsoleEvents, SIGNAL(sigShowWindow()), 1179 1179 this, SIGNAL(sigShowWindows()), Qt::QueuedConnection); 1180 #endif /* Q_WS_MAC */1180 #endif /* VBOX_WS_MAC */ 1181 1181 1182 1182 connect(gConsoleEvents, SIGNAL(sigCPUExecutionCapChange()), … … 1192 1192 updateHostScreenData(); 1193 1193 1194 #ifdef Q_WS_MAC1194 #ifdef VBOX_WS_MAC 1195 1195 /* Prepare display-change watchdog: */ 1196 1196 m_pWatchdogDisplayChange = new QTimer(this); … … 1201 1201 this, SLOT(sltCheckIfHostDisplayChanged())); 1202 1202 } 1203 #endif /* Q_WS_MAC */1203 #endif /* VBOX_WS_MAC */ 1204 1204 1205 1205 /* Prepare initial screen visibility status: */ … … 1268 1268 const QString strMachineID = vboxGlobal().managedVMUuid(); 1269 1269 1270 #ifndef Q_WS_MAC1270 #ifndef VBOX_WS_MAC 1271 1271 /* Load/prepare user's machine-window icon: */ 1272 1272 QIcon icon; … … 1279 1279 /* Load user's machine-window name postfix: */ 1280 1280 m_strMachineWindowNamePostfix = gEDataManager->machineWindowNamePostfix(strMachineID); 1281 #endif /* ! Q_WS_MAC */1281 #endif /* !VBOX_WS_MAC */ 1282 1282 1283 1283 /* Is there should be First RUN Wizard? */ … … 1288 1288 pGuestAutoresizeSwitch->setChecked(gEDataManager->guestScreenAutoResizeEnabled(strMachineID)); 1289 1289 1290 #ifndef Q_WS_MAC1290 #ifndef VBOX_WS_MAC 1291 1291 /* Menu-bar options: */ 1292 1292 { … … 1301 1301 pActionMenuBarSwitch->blockSignals(false); 1302 1302 } 1303 #endif /* ! Q_WS_MAC */1303 #endif /* !VBOX_WS_MAC */ 1304 1304 1305 1305 /* Status-bar options: */ … … 1345 1345 } 1346 1346 1347 #ifndef Q_WS_MAC1347 #ifndef VBOX_WS_MAC 1348 1348 /* Cleanup user's machine-window icon: */ 1349 1349 delete m_pMachineWindowIcon; 1350 1350 m_pMachineWindowIcon = 0; 1351 #endif /* ! Q_WS_MAC */1351 #endif /* !VBOX_WS_MAC */ 1352 1352 } 1353 1353 } … … 1381 1381 void UISession::cleanupConnections() 1382 1382 { 1383 #ifdef Q_WS_MAC1383 #ifdef VBOX_WS_MAC 1384 1384 /* Remove display reconfiguration callback: */ 1385 1385 CGDisplayRemoveReconfigurationCallback(cgDisplayReconfigurationCallback, this); 1386 #endif /* Q_WS_MAC */1386 #endif /* VBOX_WS_MAC */ 1387 1387 } 1388 1388 1389 1389 void UISession::cleanupActions() 1390 1390 { 1391 #ifdef Q_WS_MAC1391 #ifdef VBOX_WS_MAC 1392 1392 /* Destroy Mac OS X menu-bar: */ 1393 1393 delete m_pMenuBar; 1394 1394 m_pMenuBar = 0; 1395 #endif /* Q_WS_MAC */1395 #endif /* VBOX_WS_MAC */ 1396 1396 1397 1397 /* Destroy action-pool if necessary: */ … … 1440 1440 void UISession::cleanup() 1441 1441 { 1442 #ifdef Q_WS_WIN1442 #ifdef VBOX_WS_WIN 1443 1443 /* Destroy alpha cursor: */ 1444 1444 if (m_alphaCursor) 1445 1445 DestroyIcon(m_alphaCursor); 1446 #endif /* Q_WS_WIN */1446 #endif /* VBOX_WS_WIN */ 1447 1447 1448 1448 /* Save settings: */ … … 1465 1465 } 1466 1466 1467 #ifdef Q_WS_MAC1467 #ifdef VBOX_WS_MAC 1468 1468 void UISession::updateMenu() 1469 1469 { … … 1479 1479 } 1480 1480 } 1481 #endif /* Q_WS_MAC */1481 #endif /* VBOX_WS_MAC */ 1482 1482 1483 1483 /** Generate a BGRA bitmap which approximates a XOR/AND mouse pointer. … … 1589 1589 uint srcShapePtrScan = uWidth * 4; 1590 1590 1591 #if defined ( Q_WS_WIN)1591 #if defined (VBOX_WS_WIN) 1592 1592 1593 1593 BITMAPV5HEADER bi; … … 1719 1719 DeleteObject(hBitmap); 1720 1720 1721 #elif defined( Q_WS_X11) || defined(Q_WS_MAC)1721 #elif defined(VBOX_WS_X11) || defined(VBOX_WS_MAC) 1722 1722 1723 1723 /* Create a ARGB image out of the shape data: */ … … 1737 1737 /* Create cursor-pixmap from the image: */ 1738 1738 QPixmap cursorPixmap = QPixmap::fromImage(image); 1739 # ifdef Q_WS_MAC1739 # ifdef VBOX_WS_MAC 1740 1740 # ifdef VBOX_GUI_WITH_HIDPI 1741 1741 /* Adjust backing-scale-factor: */ … … 1749 1749 cursorPixmap.setDevicePixelRatio(dBackingScaleFactor); 1750 1750 # endif /* VBOX_GUI_WITH_HIDPI */ 1751 # endif /* Q_WS_MAC */1751 # endif /* VBOX_WS_MAC */ 1752 1752 /* Set the new cursor: */ 1753 1753 m_cursor = QCursor(cursorPixmap, uXHot, uYHot); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r60226 r60362 49 49 class CNetworkAdapter; 50 50 class CMediumAttachment; 51 #ifdef Q_WS_MAC51 #ifdef VBOX_WS_MAC 52 52 class QMenuBar; 53 #else /* ! Q_WS_MAC */53 #else /* !VBOX_WS_MAC */ 54 54 class QIcon; 55 #endif /* ! Q_WS_MAC */55 #endif /* !VBOX_WS_MAC */ 56 56 57 57 /* CConsole callback event types: */ … … 127 127 QCursor cursor() const { return m_cursor; } 128 128 129 #ifndef Q_WS_MAC129 #ifndef VBOX_WS_MAC 130 130 /** @name Branding stuff. 131 131 ** @{ */ … … 135 135 QString machineWindowNamePostfix() const { return m_strMachineWindowNamePostfix; } 136 136 /** @} */ 137 #endif /* ! Q_WS_MAC */137 #endif /* !VBOX_WS_MAC */ 138 138 139 139 /** @name Host-screen configuration variables. … … 388 388 void cleanup(); 389 389 390 #ifdef Q_WS_MAC390 #ifdef VBOX_WS_MAC 391 391 /** Mac OS X: Updates menu-bar content. */ 392 392 void updateMenu(); 393 #endif /* Q_WS_MAC */393 #endif /* VBOX_WS_MAC */ 394 394 395 395 /* Common helpers: */ … … 434 434 UIActionPool *m_pActionPool; 435 435 436 #ifdef Q_WS_MAC436 #ifdef VBOX_WS_MAC 437 437 /** Holds the menu-bar instance. */ 438 438 QMenuBar *m_pMenuBar; 439 #endif /* Q_WS_MAC */439 #endif /* VBOX_WS_MAC */ 440 440 441 441 /* Screen visibility vector: */ … … 456 456 QCursor m_cursor; 457 457 458 #ifndef Q_WS_MAC458 #ifndef VBOX_WS_MAC 459 459 /** @name Branding variables. 460 460 ** @{ */ … … 464 464 QString m_strMachineWindowNamePostfix; 465 465 /** @} */ 466 #endif /* ! Q_WS_MAC */466 #endif /* !VBOX_WS_MAC */ 467 467 468 468 /** @name Visual-state configuration variables. … … 472 472 /** @} */ 473 473 474 #if defined( Q_WS_WIN)474 #if defined(VBOX_WS_WIN) 475 475 HCURSOR m_alphaCursor; 476 476 #endif … … 480 480 /** Holds the list of host-screen geometries we currently have. */ 481 481 QList<QRect> m_hostScreens; 482 #ifdef Q_WS_MAC482 #ifdef VBOX_WS_MAC 483 483 /** Mac OS X: Watchdog timer looking for display reconfiguration. */ 484 484 QTimer *m_pWatchdogDisplayChange; 485 #endif /* Q_WS_MAC */485 #endif /* VBOX_WS_MAC */ 486 486 /** @} */ 487 487 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISlidingToolBar.cpp
r58880 r60362 30 30 # include "UIAnimationFramework.h" 31 31 # include "UIMachineWindow.h" 32 # ifdef Q_WS_MAC32 # ifdef VBOX_WS_MAC 33 33 # include "VBoxUtils-darwin.h" 34 # endif /* Q_WS_MAC */34 # endif /* VBOX_WS_MAC */ 35 35 36 36 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 71 71 setAttribute(Qt::WA_DeleteOnClose); 72 72 73 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)73 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 74 74 /* Make sure we have no background 75 75 * until the first one paint-event: */ … … 77 77 /* Use Qt API to enable translucency: */ 78 78 setAttribute(Qt::WA_TranslucentBackground); 79 #elif defined( Q_WS_X11)79 #elif defined(VBOX_WS_X11) 80 80 if (vboxGlobal().isCompositingManagerRunning()) 81 81 { … … 83 83 setAttribute(Qt::WA_TranslucentBackground); 84 84 } 85 #endif /* Q_WS_X11 */85 #endif /* VBOX_WS_X11 */ 86 86 87 87 /* Prepare contents: */ … … 154 154 } 155 155 156 #ifdef Q_WS_X11156 #ifdef VBOX_WS_X11 157 157 if (!vboxGlobal().isCompositingManagerRunning()) 158 158 { … … 160 160 setMask(m_pEmbeddedWidget->geometry()); 161 161 } 162 #endif /* Q_WS_X11 */163 164 #ifdef Q_WS_WIN162 #endif /* VBOX_WS_X11 */ 163 164 #ifdef VBOX_WS_WIN 165 165 /* Raise tool-window for proper z-order. */ 166 166 raise(); 167 #endif /* Q_WS_WIN */167 #endif /* VBOX_WS_WIN */ 168 168 169 169 /* Activate window after it was shown: */ … … 211 211 m_pEmbeddedWidget->setGeometry(0, 0, qMax(width(), sh.width()), sh.height()); 212 212 213 #ifdef Q_WS_X11213 #ifdef VBOX_WS_X11 214 214 if (!vboxGlobal().isCompositingManagerRunning()) 215 215 { … … 217 217 setMask(m_pEmbeddedWidget->geometry()); 218 218 } 219 #endif /* Q_WS_X11 */220 221 #ifdef Q_WS_WIN219 #endif /* VBOX_WS_X11 */ 220 221 #ifdef VBOX_WS_WIN 222 222 /* Raise tool-window for proper z-order. */ 223 223 raise(); 224 #endif /* Q_WS_WIN */224 #endif /* VBOX_WS_WIN */ 225 225 } 226 226 … … 274 274 } 275 275 276 #ifdef Q_WS_MAC276 #ifdef VBOX_WS_MAC 277 277 bool UISlidingToolBar::event(QEvent *pEvent) 278 278 { … … 296 296 return QWidget::event(pEvent); 297 297 } 298 #endif /* Q_WS_MAC */298 #endif /* VBOX_WS_MAC */ 299 299 300 300 void UISlidingToolBar::setWidgetGeometry(const QRect &rect) … … 303 303 m_pEmbeddedWidget->setGeometry(rect); 304 304 305 #ifdef Q_WS_X11305 #ifdef VBOX_WS_X11 306 306 if (!vboxGlobal().isCompositingManagerRunning()) 307 307 { … … 309 309 setMask(m_pEmbeddedWidget->geometry()); 310 310 } 311 #endif /* Q_WS_X11 */311 #endif /* VBOX_WS_X11 */ 312 312 } 313 313 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISlidingToolBar.h
r55401 r60362 94 94 /** Close event handler. */ 95 95 virtual void closeEvent(QCloseEvent *pEvent); 96 #ifdef Q_WS_MAC96 #ifdef VBOX_WS_MAC 97 97 /** Common event handler. */ 98 98 virtual bool event(QEvent *pEvent); 99 #endif /* Q_WS_MAC */99 #endif /* VBOX_WS_MAC */ 100 100 101 101 /** Defines mdi-sub-window geometry. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIStatusBarEditorWindow.cpp
r58867 r60362 532 532 color1.setAlpha(0); 533 533 QColor color2 = pal.color(QPalette::Window).darker(200); 534 #if defined( Q_WS_WIN) || defined(Q_WS_X11)534 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 535 535 QColor color3 = pal.color(QPalette::Window).darker(120); 536 #endif /* Q_WS_WIN || Q_WS_X11 */536 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 537 537 538 538 /* Left corner: */ … … 575 575 painter.fillRect(QRect(width() - 5, 5, 5, height() - 5), grad5); // right line 576 576 577 #if defined( Q_WS_WIN) || defined(Q_WS_X11)577 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 578 578 /* Paint frames: */ 579 579 painter.save(); … … 584 584 painter.drawLine(QLine(QPoint(5 + 1, height() - 1), QPoint(5 + 1, 5 + 1))); 585 585 painter.restore(); 586 #endif /* Q_WS_WIN || Q_WS_X11 */586 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 587 587 588 588 /* Paint drop token: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r56180 r60362 259 259 m_pDiscardCheckBox = new QCheckBox(this); 260 260 /* Configure layout: */ 261 #ifdef Q_WS_MAC261 #ifdef VBOX_WS_MAC 262 262 pChoiceLayout->setSpacing(15); 263 #else /* Q_WS_MAC */263 #else /* VBOX_WS_MAC */ 264 264 pChoiceLayout->setSpacing(6); 265 #endif /* ! Q_WS_MAC */265 #endif /* !VBOX_WS_MAC */ 266 266 pChoiceLayout->setContentsMargins(0, 0, 0, 0); 267 267 pChoiceLayout->addWidget(m_pDetachIcon, 0, 0); … … 276 276 } 277 277 /* Configure layout: */ 278 #ifdef Q_WS_MAC278 #ifdef VBOX_WS_MAC 279 279 pTopRightLayout->setSpacing(15); 280 #else /* Q_WS_MAC */280 #else /* VBOX_WS_MAC */ 281 281 pTopRightLayout->setSpacing(6); 282 #endif /* ! Q_WS_MAC */282 #endif /* !VBOX_WS_MAC */ 283 283 pTopRightLayout->setContentsMargins(0, 0, 0, 0); 284 284 pTopRightLayout->addWidget(m_pLabel); … … 302 302 /* Configure layout: */ 303 303 pMainLayout->setSpacing(20); 304 #ifdef Q_WS_MAC304 #ifdef VBOX_WS_MAC 305 305 pMainLayout->setContentsMargins(40, 20, 40, 20); 306 #endif /* Q_WS_MAC */306 #endif /* VBOX_WS_MAC */ 307 307 pMainLayout->addItem(pTopLayout); 308 308 pMainLayout->addWidget(pButtonBox); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r59079 r60362 34 34 # include "UIMachineView.h" 35 35 # include "QIMenu.h" 36 # ifdef Q_WS_MAC36 # ifdef VBOX_WS_MAC 37 37 # include "UICocoaApplication.h" 38 38 # include "UIExtraDataManager.h" … … 40 40 # include "UIFrameBuffer.h" 41 41 # include <Carbon/Carbon.h> 42 # endif /* Q_WS_MAC */42 # endif /* VBOX_WS_MAC */ 43 43 44 44 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 48 48 : UIMachineLogic(pParent, pSession, UIVisualStateType_Fullscreen) 49 49 , m_pPopupMenu(0) 50 #ifdef Q_WS_MAC50 #ifdef VBOX_WS_MAC 51 51 , m_fScreensHaveSeparateSpaces(darwinScreensHaveSeparateSpaces()) 52 #endif /* Q_WS_MAC */52 #endif /* VBOX_WS_MAC */ 53 53 { 54 54 /* Create multiscreen layout: */ … … 92 92 { 93 93 Q_UNUSED(uScreenId); 94 #ifdef Q_WS_MAC94 #ifdef VBOX_WS_MAC 95 95 return vboxGlobal().osRelease() <= MacOSXRelease_Lion ? Qt::FramelessWindowHint : 96 96 uScreenId == 0 || screensHaveSeparateSpaces() ? Qt::Window : Qt::FramelessWindowHint; 97 #else /* ! Q_WS_MAC */97 #else /* !VBOX_WS_MAC */ 98 98 return Qt::FramelessWindowHint; 99 #endif /* ! Q_WS_MAC */99 #endif /* !VBOX_WS_MAC */ 100 100 } 101 101 … … 107 107 m_pScreenLayout->rebuild(); 108 108 109 #ifdef Q_WS_MAC109 #ifdef VBOX_WS_MAC 110 110 /* For Lion and previous: */ 111 111 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) … … 117 117 /* For ML and next revalidate native fullscreen: */ 118 118 else revalidateNativeFullScreen(); 119 #else /* ! Q_WS_MAC */119 #else /* !VBOX_WS_MAC */ 120 120 /* Make sure all machine-window(s) have proper geometry: */ 121 121 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 122 122 pMachineWindow->showInNecessaryMode(); 123 #endif /* ! Q_WS_MAC */123 #endif /* !VBOX_WS_MAC */ 124 124 } 125 125 … … 396 396 LogRel(("GUI: UIMachineLogicFullscreen::sltScreenLayoutChanged: Multi-screen layout changed\n")); 397 397 398 #ifdef Q_WS_MAC398 #ifdef VBOX_WS_MAC 399 399 /* For Lion and previous: */ 400 400 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) … … 406 406 /* Revalidate native fullscreen for ML and next: */ 407 407 else revalidateNativeFullScreen(); 408 #else /* ! Q_WS_MAC */408 #else /* !VBOX_WS_MAC */ 409 409 /* Make sure all machine-window(s) have proper geometry: */ 410 410 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 411 411 pMachineWindow->showInNecessaryMode(); 412 #endif /* ! Q_WS_MAC */412 #endif /* !VBOX_WS_MAC */ 413 413 } 414 414 … … 420 420 m_pScreenLayout->rebuild(); 421 421 422 #ifdef Q_WS_MAC422 #ifdef VBOX_WS_MAC 423 423 /* Call to base-class for Lion and previous: */ 424 424 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) … … 426 426 /* Revalidate native fullscreen for ML and next: */ 427 427 else revalidateNativeFullScreen(); 428 #else /* ! Q_WS_MAC */428 #else /* !VBOX_WS_MAC */ 429 429 /* Call to base-class: */ 430 430 UIMachineLogic::sltGuestMonitorChange(changeType, uScreenId, screenGeo); 431 #endif /* ! Q_WS_MAC */431 #endif /* !VBOX_WS_MAC */ 432 432 } 433 433 … … 439 439 m_pScreenLayout->rebuild(); 440 440 441 #ifdef Q_WS_MAC441 #ifdef VBOX_WS_MAC 442 442 /* Call to base-class for Lion and previous: */ 443 443 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) … … 445 445 /* Revalidate native fullscreen for ML and next: */ 446 446 else revalidateNativeFullScreen(); 447 #else /* ! Q_WS_MAC */447 #else /* !VBOX_WS_MAC */ 448 448 /* Call to base-class: */ 449 449 UIMachineLogic::sltHostScreenCountChange(); 450 #endif /* ! Q_WS_MAC */450 #endif /* !VBOX_WS_MAC */ 451 451 } 452 452 … … 478 478 UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar | 479 479 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize)); 480 #ifdef Q_WS_MAC480 #ifdef VBOX_WS_MAC 481 481 /* Restrict 'Window' menu: */ 482 482 actionPool()->toRuntime()->setRestrictionForMenuBar(UIActionRestrictionLevel_Logic, 483 483 UIExtraDataMetaDefs::MenuType_Window); 484 #endif /* Q_WS_MAC */484 #endif /* VBOX_WS_MAC */ 485 485 486 486 /* Take care of view-action toggle state: */ … … 514 514 return; 515 515 516 #ifdef Q_WS_MAC516 #ifdef VBOX_WS_MAC 517 517 /* For ML and next: */ 518 518 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) … … 528 528 * This is necessary for Qt versions > 4.3.3: */ 529 529 darwinSetFrontMostProcess(); 530 #endif /* Q_WS_MAC */530 #endif /* VBOX_WS_MAC */ 531 531 532 532 /* Update the multi-screen layout: */ … … 547 547 this, SLOT(sltScreenLayoutChanged())); 548 548 549 #ifdef Q_WS_MAC549 #ifdef VBOX_WS_MAC 550 550 /* For ML and next: */ 551 551 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) … … 579 579 revalidateNativeFullScreen(); 580 580 } 581 #endif /* Q_WS_MAC */581 #endif /* VBOX_WS_MAC */ 582 582 583 583 /* Mark machine-window(s) created: */ 584 584 setMachineWindowsCreated(true); 585 585 586 #ifdef Q_WS_X11586 #ifdef VBOX_WS_X11 587 587 switch (vboxGlobal().typeOfWindowManager()) 588 588 { … … 600 600 break; 601 601 } 602 #endif /* Q_WS_X11 */602 #endif /* VBOX_WS_X11 */ 603 603 } 604 604 … … 628 628 return; 629 629 630 #ifdef Q_WS_MAC630 #ifdef VBOX_WS_MAC 631 631 /* For ML and next: */ 632 632 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) … … 636 636 UICocoaApplication::instance()->unregisterFromNotificationOfWorkspace("NSWorkspaceActiveSpaceDidChangeNotification", this); 637 637 } 638 #endif/* Q_WS_MAC */638 #endif/* VBOX_WS_MAC */ 639 639 640 640 /* Mark machine-window(s) destroyed: */ … … 674 674 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 675 675 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid); 676 #ifdef Q_WS_MAC676 #ifdef VBOX_WS_MAC 677 677 /* Allow 'Window' menu: */ 678 678 actionPool()->toRuntime()->setRestrictionForMenuBar(UIActionRestrictionLevel_Logic, 679 679 UIExtraDataMetaDefs::MenuType_Invalid); 680 #endif /* Q_WS_MAC */680 #endif /* VBOX_WS_MAC */ 681 681 682 682 /* Call to base-class: */ … … 684 684 } 685 685 686 #ifdef Q_WS_MAC686 #ifdef VBOX_WS_MAC 687 687 void UIMachineLogicFullscreen::revalidateNativeFullScreen(UIMachineWindow *pMachineWindow) 688 688 { … … 882 882 revalidateNativeFullScreen(pMachineWindow); 883 883 } 884 #endif /* Q_WS_MAC */885 884 #endif /* VBOX_WS_MAC */ 885 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r59079 r60362 23 23 24 24 /* Other includes: */ 25 #ifdef Q_WS_MAC25 #ifdef VBOX_WS_MAC 26 26 # include <ApplicationServices/ApplicationServices.h> 27 #endif /* Q_WS_MAC */27 #endif /* VBOX_WS_MAC */ 28 28 29 29 /* Forward declarations: */ … … 44 44 #endif /* RT_OS_DARWIN */ 45 45 46 #ifdef Q_WS_MAC46 #ifdef VBOX_WS_MAC 47 47 public: 48 48 49 49 /** Returns whether screens have separate spaces. */ 50 50 bool screensHaveSeparateSpaces() const { return m_fScreensHaveSeparateSpaces; } 51 #endif /* Q_WS_MAC */51 #endif /* VBOX_WS_MAC */ 52 52 53 53 protected: … … 127 127 void cleanupActionGroups(); 128 128 129 #ifdef Q_WS_MAC129 #ifdef VBOX_WS_MAC 130 130 /** Mac OS X: Revalidates 'fullscreen' mode for @a pMachineWindow. */ 131 131 void revalidateNativeFullScreen(UIMachineWindow *pMachineWindow); … … 142 142 /** Mac OS X: Handles native notification about active space change. */ 143 143 void nativeHandlerForActiveSpaceChange(const QMap<QString, QString> &userInfo); 144 #endif /* Q_WS_MAC */144 #endif /* VBOX_WS_MAC */ 145 145 146 146 /** Holds the popup-menu instance. */ … … 150 150 UIMultiScreenLayout *m_pScreenLayout; 151 151 152 #ifdef Q_WS_MAC152 #ifdef VBOX_WS_MAC 153 153 /** Mac OS X: Holds whether screens have separate spaces. */ 154 154 const bool m_fScreensHaveSeparateSpaces; … … 158 158 /** Mac OS X: Contains machine-window(s) marked as 'invalid fullscreen'. */ 159 159 QSet<UIMachineWindow*> m_invalidFullscreenMachineWindows; 160 #endif /* Q_WS_MAC */160 #endif /* VBOX_WS_MAC */ 161 161 162 162 /* Friend classes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r59380 r60362 24 24 # include <QMainWindow> 25 25 # include <QTimer> 26 # ifdef Q_WS_MAC26 # ifdef VBOX_WS_MAC 27 27 # include <QMenuBar> 28 # endif /* Q_WS_MAC */28 # endif /* VBOX_WS_MAC */ 29 29 30 30 /* GUI includes: */ … … 40 40 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 41 41 42 #ifdef Q_WS_X1142 #ifdef VBOX_WS_X11 43 43 # include <limits.h> 44 #endif /* Q_WS_X11 */44 #endif /* VBOX_WS_X11 */ 45 45 46 46 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r59814 r60362 32 32 # include "UIMachineWindowFullscreen.h" 33 33 # include "UIMachineView.h" 34 # if defined( Q_WS_WIN) || defined(Q_WS_X11)34 # if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 35 35 # include "UIMachineDefs.h" 36 36 # include "UIMiniToolBar.h" 37 # elif defined( Q_WS_MAC)37 # elif defined(VBOX_WS_MAC) 38 38 # include "UIFrameBuffer.h" 39 39 # include "VBoxUtils-darwin.h" 40 40 # include "UICocoaApplication.h" 41 # endif /* Q_WS_MAC */41 # endif /* VBOX_WS_MAC */ 42 42 43 43 /* COM includes: */ … … 49 49 UIMachineWindowFullscreen::UIMachineWindowFullscreen(UIMachineLogic *pMachineLogic, ulong uScreenId) 50 50 : UIMachineWindow(pMachineLogic, uScreenId) 51 #if defined( Q_WS_WIN) || defined(Q_WS_X11)51 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 52 52 , m_pMiniToolBar(0) 53 #endif /* Q_WS_WIN || Q_WS_X11 */54 #ifdef Q_WS_MAC53 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 54 #ifdef VBOX_WS_MAC 55 55 , m_fIsInFullscreenTransition(false) 56 #endif /* Q_WS_MAC */57 { 58 } 59 60 #ifdef Q_WS_MAC56 #endif /* VBOX_WS_MAC */ 57 { 58 } 59 60 #ifdef VBOX_WS_MAC 61 61 void UIMachineWindowFullscreen::handleNativeNotification(const QString &strNativeNotificationName) 62 62 { … … 114 114 } 115 115 } 116 #endif /* Q_WS_MAC */117 118 #if defined( Q_WS_WIN) || defined(Q_WS_X11)116 #endif /* VBOX_WS_MAC */ 117 118 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 119 119 void UIMachineWindowFullscreen::sltMachineStateChanged() 120 120 { … … 133 133 134 134 /* Revoke stolen activation: */ 135 #ifdef Q_WS_X11135 #ifdef VBOX_WS_X11 136 136 raise(); 137 #endif /* Q_WS_X11 */137 #endif /* VBOX_WS_X11 */ 138 138 activateWindow(); 139 139 } 140 #endif /* Q_WS_WIN || Q_WS_X11 */141 142 #ifdef Q_WS_MAC140 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 141 142 #ifdef VBOX_WS_MAC 143 143 void UIMachineWindowFullscreen::sltEnterNativeFullscreen(UIMachineWindow *pMachineWindow) 144 144 { … … 189 189 darwinToggleFullscreenMode(this); 190 190 } 191 #endif /* Q_WS_MAC */191 #endif /* VBOX_WS_MAC */ 192 192 193 193 void UIMachineWindowFullscreen::prepareVisualState() … … 203 203 setAutoFillBackground(true); 204 204 205 #if defined( Q_WS_WIN) || defined(Q_WS_X11)205 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 206 206 /* Prepare mini-toolbar: */ 207 207 prepareMiniToolbar(); 208 #endif /* Q_WS_WIN || Q_WS_X11 */209 210 #ifdef Q_WS_MAC208 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 209 210 #ifdef VBOX_WS_MAC 211 211 /* Native fullscreen stuff on ML and next: */ 212 212 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) … … 233 233 UIMachineWindow::handleNativeNotification); 234 234 } 235 #endif /* Q_WS_MAC */236 } 237 238 #if defined( Q_WS_WIN) || defined(Q_WS_X11)235 #endif /* VBOX_WS_MAC */ 236 } 237 238 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 239 239 void UIMachineWindowFullscreen::prepareMiniToolbar() 240 240 { … … 260 260 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutWindowActivationStolen()), 261 261 this, SLOT(sltRevokeWindowActivation()), Qt::QueuedConnection); 262 # ifdef Q_WS_X11262 # ifdef VBOX_WS_X11 263 263 // WORKAROUND: 264 264 // Due to Unity bug we want native full-screen flag to be set … … 267 267 if (vboxGlobal().typeOfWindowManager() == X11WMType_Compiz) 268 268 vboxGlobal().setFullScreenFlag(m_pMiniToolBar); 269 # endif /* Q_WS_X11 */270 } 271 } 272 #endif /* Q_WS_WIN || Q_WS_X11 */273 274 #if defined( Q_WS_WIN) || defined(Q_WS_X11)269 # endif /* VBOX_WS_X11 */ 270 } 271 } 272 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 273 274 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 275 275 void UIMachineWindowFullscreen::cleanupMiniToolbar() 276 276 { … … 285 285 m_pMiniToolBar = 0; 286 286 } 287 #endif /* Q_WS_WIN || Q_WS_X11 */287 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 288 288 289 289 void UIMachineWindowFullscreen::cleanupVisualState() 290 290 { 291 #ifdef Q_WS_MAC291 #ifdef VBOX_WS_MAC 292 292 /* Native fullscreen stuff on ML and next: */ 293 293 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) … … 300 300 UICocoaApplication::instance()->unregisterFromNotificationOfWindow("NSWindowDidFailToEnterFullScreenNotification", this); 301 301 } 302 #endif /* Q_WS_MAC */303 304 #if defined( Q_WS_WIN) || defined(Q_WS_X11)302 #endif /* VBOX_WS_MAC */ 303 304 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 305 305 /* Cleanup mini-toolbar: */ 306 306 cleanupMiniToolbar(); 307 #endif /* Q_WS_WIN || Q_WS_X11 */307 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 308 308 309 309 /* Call to base-class: */ … … 318 318 const QRect workingArea = vboxGlobal().screenGeometry(iHostScreen); 319 319 320 #if defined( Q_WS_WIN) || defined(Q_WS_X11)320 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 321 321 /* Set appropriate geometry for window: */ 322 322 resize(workingArea.size()); … … 330 330 m_pMiniToolBar->move(workingArea.topLeft()); 331 331 } 332 #elif defined( Q_WS_MAC)332 #elif defined(VBOX_WS_MAC) 333 333 /* Make sure this window has fullscreen logic: */ 334 334 UIMachineLogicFullscreen *pFullscreenLogic = qobject_cast<UIMachineLogicFullscreen*>(machineLogic()); … … 362 362 setGeometry(geo); 363 363 } 364 #endif /* Q_WS_MAC */364 #endif /* VBOX_WS_MAC */ 365 365 } 366 366 … … 375 375 !pFullscreenLogic->hasHostScreenForGuestScreen(m_uScreenId)) 376 376 { 377 #if defined( Q_WS_WIN) || defined(Q_WS_X11)377 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 378 378 /* If there is a mini-toolbar: */ 379 379 if (m_pMiniToolBar) … … 382 382 m_pMiniToolBar->hide(); 383 383 } 384 #endif /* Q_WS_WIN || Q_WS_X11 */384 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 385 385 386 386 /* Hide window: */ … … 393 393 return; 394 394 395 #ifdef Q_WS_X11395 #ifdef VBOX_WS_X11 396 396 /* If WM doesn't support native stuff, we need to call for placeOnScreen(): */ 397 397 const bool fSupportsNativeFullScreen = VBoxGlobal::supportsFullScreenMonitorsProtocolX11() && … … 402 402 placeOnScreen(); 403 403 } 404 #else /* ! Q_WS_X11 */404 #else /* !VBOX_WS_X11 */ 405 405 /* Make sure window have appropriate geometry: */ 406 406 placeOnScreen(); 407 #endif /* ! Q_WS_X11 */408 409 #if defined( Q_WS_MAC)407 #endif /* !VBOX_WS_X11 */ 408 409 #if defined(VBOX_WS_MAC) 410 410 /* ML and next using native stuff, so we can call for simple show(), 411 411 * Lion and previous using Qt stuff, so we should call for showFullScreen(): */ … … 421 421 showFullScreen(); 422 422 } 423 #elif defined( Q_WS_WIN) || defined(Q_WS_X11)423 #elif defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 424 424 /* Show window in fullscreen mode: */ 425 425 showFullScreen(); … … 431 431 m_pMiniToolBar->showFullScreen(); 432 432 } 433 #endif /* Q_WS_WIN || Q_WS_X11 */434 435 #ifdef Q_WS_X11433 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 434 435 #ifdef VBOX_WS_X11 436 436 /* If WM supports native stuff, we need to map window to corresponding host-screen. */ 437 437 if (fSupportsNativeFullScreen) … … 447 447 } 448 448 } 449 #endif /* Q_WS_X11 */449 #endif /* VBOX_WS_X11 */ 450 450 451 451 /* Adjust machine-view size if necessary: */ … … 457 457 } 458 458 459 #if defined( Q_WS_WIN) || defined(Q_WS_X11)459 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 460 460 void UIMachineWindowFullscreen::updateAppearanceOf(int iElement) 461 461 { … … 481 481 } 482 482 } 483 #endif /* Q_WS_WIN || Q_WS_X11 */484 485 #ifdef Q_WS_WIN483 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 484 485 #ifdef VBOX_WS_WIN 486 486 # if QT_VERSION >= 0x050000 487 487 void UIMachineWindowFullscreen::showEvent(QShowEvent *pEvent) … … 497 497 } 498 498 # endif /* QT_VERSION >= 0x050000 */ 499 #endif /* Q_WS_WIN */500 499 #endif /* VBOX_WS_WIN */ 500 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r59814 r60362 22 22 #include "UIMachineWindow.h" 23 23 24 #if defined( Q_WS_WIN) || defined(Q_WS_X11)24 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 25 25 /* Forward declarations: */ 26 26 class UIMiniToolBar; 27 #endif /* Q_WS_WIN || Q_WS_X11 */27 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 28 28 29 29 /** UIMachineWindow reimplementation, … … 52 52 UIMachineWindowFullscreen(UIMachineLogic *pMachineLogic, ulong uScreenId); 53 53 54 #ifdef Q_WS_MAC54 #ifdef VBOX_WS_MAC 55 55 /** Mac OS X: Handles native notifications @a strNativeNotificationName for 'fullscreen' window. */ 56 56 void handleNativeNotification(const QString &strNativeNotificationName); 57 57 /** Mac OS X: Returns whether window is in 'fullscreen' transition. */ 58 58 bool isInFullscreenTransition() const { return m_fIsInFullscreenTransition; } 59 #endif /* Q_WS_MAC */59 #endif /* VBOX_WS_MAC */ 60 60 61 61 private slots: 62 62 63 #if defined( Q_WS_WIN) || defined(Q_WS_X11)63 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 64 64 /** Handles machine state change event. */ 65 65 void sltMachineStateChanged(); … … 67 67 /** Revokes window activation. */ 68 68 void sltRevokeWindowActivation(); 69 #endif /* Q_WS_WIN || Q_WS_X11 */69 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 70 70 71 71 #ifdef RT_OS_DARWIN … … 80 80 /** Prepare visual-state routine. */ 81 81 void prepareVisualState(); 82 #if defined( Q_WS_WIN) || defined(Q_WS_X11)82 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 83 83 /** Prepare mini-toolbar routine. */ 84 84 void prepareMiniToolbar(); 85 #endif /* Q_WS_WIN || Q_WS_X11 */85 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 86 86 87 #if defined( Q_WS_WIN) || defined(Q_WS_X11)87 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 88 88 /** Cleanup mini-toolbar routine. */ 89 89 void cleanupMiniToolbar(); 90 #endif /* Q_WS_WIN || Q_WS_X11 */90 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 91 91 /** Cleanup visual-state routine. */ 92 92 void cleanupVisualState(); … … 97 97 void showInNecessaryMode(); 98 98 99 #if defined( Q_WS_WIN) || defined(Q_WS_X11)99 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 100 100 /** Common update routine. */ 101 101 void updateAppearanceOf(int iElement); 102 #endif /* Q_WS_WIN || Q_WS_X11 */102 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 103 103 104 #ifdef Q_WS_WIN104 #ifdef VBOX_WS_WIN 105 105 # if QT_VERSION >= 0x050000 106 106 /** Win: Handles show @a pEvent. */ 107 107 void showEvent(QShowEvent *pEvent); 108 108 # endif /* QT_VERSION >= 0x050000 */ 109 #endif /* Q_WS_WIN */109 #endif /* VBOX_WS_WIN */ 110 110 111 #if defined( Q_WS_WIN) || defined(Q_WS_X11)111 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 112 112 /** Holds the mini-toolbar instance. */ 113 113 UIMiniToolBar *m_pMiniToolBar; 114 #endif /* Q_WS_WIN || Q_WS_X11 */114 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 115 115 116 #ifdef Q_WS_MAC116 #ifdef VBOX_WS_MAC 117 117 /** Mac OS X: Reflects whether window is in 'fullscreen' transition. */ 118 118 bool m_fIsInFullscreenTransition; 119 119 /** Mac OS X: Allows 'fullscreen' API access: */ 120 120 friend class UIMachineLogicFullscreen; 121 #endif /* Q_WS_MAC */121 #endif /* VBOX_WS_MAC */ 122 122 123 123 /** Factory support. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r60021 r60362 139 139 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 140 140 { 141 #ifdef Q_WS_MAC141 #ifdef VBOX_WS_MAC 142 142 QMoveEvent *pMoveEvent = static_cast<QMoveEvent*>(pEvent); 143 143 m_geometry.moveTo(pMoveEvent->pos()); 144 #else /* Q_WS_MAC */144 #else /* VBOX_WS_MAC */ 145 145 m_geometry.moveTo(geometry().x(), geometry().y()); 146 #endif /* ! Q_WS_MAC */146 #endif /* !VBOX_WS_MAC */ 147 147 } 148 148 break; … … 177 177 connect(m_pMachineWindow, SIGNAL(destroyed(QObject*)), this, SLOT(suicide())); 178 178 179 #ifdef Q_WS_MAC179 #ifdef VBOX_WS_MAC 180 180 /* No window-icon on Mac OX X, because it acts as proxy icon which isn't necessary here. */ 181 181 setWindowIcon(QIcon()); 182 #else /* ! Q_WS_MAC */182 #else /* !VBOX_WS_MAC */ 183 183 /* Assign window-icon(s: */ 184 184 setWindowIcon(UIIconPool::iconSetFull(":/session_info_32px.png", ":/session_info_16px.png")); 185 #endif /* ! Q_WS_MAC */185 #endif /* !VBOX_WS_MAC */ 186 186 187 187 /* Prepare central-widget: */ … … 277 277 /* Load geometry: */ 278 278 m_geometry = gEDataManager->informationWindowGeometry(this, m_pMachineWindow, vboxGlobal().managedVMUuid()); 279 #ifdef Q_WS_MAC279 #ifdef VBOX_WS_MAC 280 280 move(m_geometry.topLeft()); 281 281 resize(m_geometry.size()); 282 #else /* Q_WS_MAC */282 #else /* VBOX_WS_MAC */ 283 283 setGeometry(m_geometry); 284 #endif /* ! Q_WS_MAC */284 #endif /* !VBOX_WS_MAC */ 285 285 LogRel2(("GUI: UIVMInformationDialog: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 286 286 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 297 297 { 298 298 /* Save geometry: */ 299 #ifdef Q_WS_MAC299 #ifdef VBOX_WS_MAC 300 300 gEDataManager->setInformationWindowGeometry(m_geometry, ::darwinIsWindowMaximized(this), vboxGlobal().managedVMUuid()); 301 #else /* Q_WS_MAC */301 #else /* VBOX_WS_MAC */ 302 302 gEDataManager->setInformationWindowGeometry(m_geometry, isMaximized(), vboxGlobal().managedVMUuid()); 303 #endif /* ! Q_WS_MAC */303 #endif /* !VBOX_WS_MAC */ 304 304 LogRel2(("GUI: UIVMInformationDialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 305 305 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIKeyboardHandlerNormal.cpp
r58857 r60362 21 21 22 22 /* Qt includes: */ 23 # ifndef Q_WS_MAC23 # ifndef VBOX_WS_MAC 24 24 # include <QMainWindow> 25 25 # include <QMenuBar> 26 26 # include <QKeyEvent> 27 27 # include <QTimer> 28 # endif /* ! Q_WS_MAC */28 # endif /* !VBOX_WS_MAC */ 29 29 30 30 /* GUI includes: */ 31 31 # include "UIKeyboardHandlerNormal.h" 32 # ifndef Q_WS_MAC32 # ifndef VBOX_WS_MAC 33 33 # include "UIMachineLogic.h" 34 34 # include "UIMachineWindow.h" 35 35 # include "UIShortcutPool.h" 36 # endif /* ! Q_WS_MAC */36 # endif /* !VBOX_WS_MAC */ 37 37 38 38 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 40 40 41 41 /* Namespaces: */ 42 #ifndef Q_WS_MAC42 #ifndef VBOX_WS_MAC 43 43 using namespace UIExtraDataDefs; 44 #endif /* ! Q_WS_MAC */44 #endif /* !VBOX_WS_MAC */ 45 45 46 46 UIKeyboardHandlerNormal::UIKeyboardHandlerNormal(UIMachineLogic* pMachineLogic) … … 53 53 } 54 54 55 #ifndef Q_WS_MAC55 #ifndef VBOX_WS_MAC 56 56 bool UIKeyboardHandlerNormal::eventFilter(QObject *pWatchedObject, QEvent *pEvent) 57 57 { … … 91 91 /* Activate 'active' menu-bar action: */ 92 92 pMenuBar->activeAction()->activate(QAction::Trigger); 93 #ifdef Q_WS_WIN93 #ifdef VBOX_WS_WIN 94 94 /* Windows host needs separate 'focus set' 95 95 * to let menubar operate while popped up: */ 96 96 pMenuBar->setFocus(); 97 #endif /* Q_WS_WIN */97 #endif /* VBOX_WS_WIN */ 98 98 } 99 99 } … … 117 117 return UIKeyboardHandler::eventFilter(pWatchedObject, pEvent); 118 118 } 119 #endif /* ! Q_WS_MAC */119 #endif /* !VBOX_WS_MAC */ 120 120 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIKeyboardHandlerNormal.h
r55401 r60362 37 37 private: 38 38 39 #ifndef Q_WS_MAC39 #ifndef VBOX_WS_MAC 40 40 /** General event-filter. */ 41 41 bool eventFilter(QObject *pWatched, QEvent *pEvent); 42 #endif /* ! Q_WS_MAC */42 #endif /* !VBOX_WS_MAC */ 43 43 44 44 /* Friend class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r59079 r60362 21 21 22 22 /* Qt includes: */ 23 # ifndef Q_WS_MAC23 # ifndef VBOX_WS_MAC 24 24 # include <QTimer> 25 # endif /* ! Q_WS_MAC */25 # endif /* !VBOX_WS_MAC */ 26 26 27 27 /* GUI includes: */ … … 36 36 # include "UIExtraDataManager.h" 37 37 # include "UIFrameBuffer.h" 38 # ifndef Q_WS_MAC38 # ifndef VBOX_WS_MAC 39 39 # include "QIMenu.h" 40 # else /* Q_WS_MAC */40 # else /* VBOX_WS_MAC */ 41 41 # include "VBoxUtils.h" 42 # endif /* Q_WS_MAC */42 # endif /* VBOX_WS_MAC */ 43 43 44 44 /* COM includes: */ … … 51 51 UIMachineLogicNormal::UIMachineLogicNormal(QObject *pParent, UISession *pSession) 52 52 : UIMachineLogic(pParent, pSession, UIVisualStateType_Normal) 53 #ifndef Q_WS_MAC53 #ifndef VBOX_WS_MAC 54 54 , m_pPopupMenu(0) 55 #endif /* ! Q_WS_MAC */55 #endif /* !VBOX_WS_MAC */ 56 56 { 57 57 } … … 117 117 AssertReturnVoid(isMachineWindowsCreated()); 118 118 119 #ifndef Q_WS_MAC119 #ifndef VBOX_WS_MAC 120 120 /* Make sure menu-bar is enabled: */ 121 121 const bool fEnabled = actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked(); 122 122 AssertReturnVoid(fEnabled); 123 #endif /* ! Q_WS_MAC */123 #endif /* !VBOX_WS_MAC */ 124 124 125 125 /* Prevent user from opening another one editor or toggle menu-bar: */ 126 126 actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_S_Settings)->setEnabled(false); 127 #ifndef Q_WS_MAC127 #ifndef VBOX_WS_MAC 128 128 actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->setEnabled(false); 129 #endif /* ! Q_WS_MAC */129 #endif /* !VBOX_WS_MAC */ 130 130 /* Create menu-bar editor: */ 131 131 UIMenuBarEditorWindow *pMenuBarEditor = new UIMenuBarEditorWindow(activeMachineWindow(), actionPool()); … … 135 135 connect(pMenuBarEditor, SIGNAL(destroyed(QObject*)), 136 136 this, SLOT(sltMenuBarSettingsClosed())); 137 #ifdef Q_WS_MAC137 #ifdef VBOX_WS_MAC 138 138 connect(this, SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 139 139 pMenuBarEditor, SLOT(sltActivateWindow())); 140 #endif /* Q_WS_MAC */140 #endif /* VBOX_WS_MAC */ 141 141 /* Show window: */ 142 142 pMenuBarEditor->show(); … … 146 146 void UIMachineLogicNormal::sltMenuBarSettingsClosed() 147 147 { 148 #ifndef Q_WS_MAC148 #ifndef VBOX_WS_MAC 149 149 /* Make sure menu-bar is enabled: */ 150 150 const bool fEnabled = actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked(); 151 151 AssertReturnVoid(fEnabled); 152 #endif /* ! Q_WS_MAC */152 #endif /* !VBOX_WS_MAC */ 153 153 154 154 /* Allow user to open editor and toggle menu-bar again: */ 155 155 actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_S_Settings)->setEnabled(true); 156 #ifndef Q_WS_MAC156 #ifndef VBOX_WS_MAC 157 157 actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->setEnabled(true); 158 #endif /* ! Q_WS_MAC */158 #endif /* !VBOX_WS_MAC */ 159 159 } 160 160 … … 190 190 connect(pStatusBarEditor, SIGNAL(destroyed(QObject*)), 191 191 this, SLOT(sltStatusBarSettingsClosed())); 192 #ifdef Q_WS_MAC192 #ifdef VBOX_WS_MAC 193 193 connect(this, SIGNAL(sigNotifyAbout3DOverlayVisibilityChange(bool)), 194 194 pStatusBarEditor, SLOT(sltActivateWindow())); 195 #endif /* Q_WS_MAC */195 #endif /* VBOX_WS_MAC */ 196 196 /* Show window: */ 197 197 pStatusBarEditor->show(); … … 265 265 connect(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_S_Settings), SIGNAL(triggered(bool)), 266 266 this, SLOT(sltOpenMenuBarSettings())); 267 #ifndef Q_WS_MAC267 #ifndef VBOX_WS_MAC 268 268 connect(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility), SIGNAL(triggered(bool)), 269 269 this, SLOT(sltToggleMenuBar())); 270 #endif /* ! Q_WS_MAC */270 #endif /* !VBOX_WS_MAC */ 271 271 connect(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings), SIGNAL(triggered(bool)), 272 272 this, SLOT(sltOpenStatusBarSettings())); … … 285 285 return; 286 286 287 #ifdef Q_WS_MAC // TODO: Is that really need here?287 #ifdef VBOX_WS_MAC // TODO: Is that really need here? 288 288 /* We have to make sure that we are getting the front most process. 289 289 * This is necessary for Qt versions > 4.3.3: */ 290 290 ::darwinSetFrontMostProcess(); 291 #endif /* Q_WS_MAC */291 #endif /* VBOX_WS_MAC */ 292 292 293 293 /* Get monitors count: */ … … 310 310 } 311 311 312 #ifndef Q_WS_MAC312 #ifndef VBOX_WS_MAC 313 313 void UIMachineLogicNormal::prepareMenu() 314 314 { … … 322 322 } 323 323 } 324 #endif /* ! Q_WS_MAC */325 326 #ifndef Q_WS_MAC324 #endif /* !VBOX_WS_MAC */ 325 326 #ifndef VBOX_WS_MAC 327 327 void UIMachineLogicNormal::cleanupMenu() 328 328 { … … 331 331 m_pPopupMenu = 0; 332 332 } 333 #endif /* ! Q_WS_MAC */333 #endif /* !VBOX_WS_MAC */ 334 334 335 335 void UIMachineLogicNormal::cleanupMachineWindows() … … 358 358 disconnect(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_S_Settings), SIGNAL(triggered(bool)), 359 359 this, SLOT(sltOpenMenuBarSettings())); 360 #ifndef Q_WS_MAC360 #ifndef VBOX_WS_MAC 361 361 disconnect(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility), SIGNAL(triggered(bool)), 362 362 this, SLOT(sltToggleMenuBar())); 363 #endif /* ! Q_WS_MAC */363 #endif /* !VBOX_WS_MAC */ 364 364 disconnect(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings), SIGNAL(triggered(bool)), 365 365 this, SLOT(sltOpenStatusBarSettings())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.h
r55401 r60362 74 74 void prepareActionConnections(); 75 75 void prepareMachineWindows(); 76 #ifndef Q_WS_MAC76 #ifndef VBOX_WS_MAC 77 77 void prepareMenu(); 78 #endif /* ! Q_WS_MAC */78 #endif /* !VBOX_WS_MAC */ 79 79 80 80 /* Cleanup helpers: */ 81 #ifndef Q_WS_MAC81 #ifndef VBOX_WS_MAC 82 82 void cleanupMenu(); 83 #endif /* ! Q_WS_MAC */83 #endif /* !VBOX_WS_MAC */ 84 84 void cleanupMachineWindows(); 85 85 void cleanupActionConnections(); 86 86 87 #ifndef Q_WS_MAC87 #ifndef VBOX_WS_MAC 88 88 /** Holds the popup-menu instance. */ 89 89 QMenu *m_pPopupMenu; 90 #endif /* ! Q_WS_MAC */90 #endif /* !VBOX_WS_MAC */ 91 91 92 92 /* Friend classes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r59380 r60362 100 100 UIMachineView::prepareFilters(); 101 101 102 #ifdef Q_WS_WIN102 #ifdef VBOX_WS_WIN 103 103 /* Install menu-bar event-filter: */ 104 104 machineWindow()->menuBar()->installEventFilter(this); 105 #endif /* Q_WS_WIN */105 #endif /* VBOX_WS_WIN */ 106 106 } 107 107 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r59164 r60362 40 40 # include "QIStatusBar.h" 41 41 # include "QIStatusBarIndicator.h" 42 # ifndef Q_WS_MAC42 # ifndef VBOX_WS_MAC 43 43 # include "UIMenuBar.h" 44 # else /* Q_WS_MAC */44 # else /* VBOX_WS_MAC */ 45 45 # include "VBoxUtils.h" 46 46 # include "UIImageTools.h" 47 47 # include "UICocoaApplication.h" 48 # endif /* Q_WS_MAC */48 # endif /* VBOX_WS_MAC */ 49 49 50 50 /* COM includes: */ … … 239 239 } 240 240 241 #ifndef Q_WS_MAC241 #ifndef VBOX_WS_MAC 242 242 void UIMachineWindowNormal::prepareMenu() 243 243 { … … 256 256 } 257 257 } 258 #endif /* ! Q_WS_MAC */258 #endif /* !VBOX_WS_MAC */ 259 259 260 260 void UIMachineWindowNormal::prepareStatusBar() … … 286 286 } 287 287 288 #ifdef Q_WS_MAC288 #ifdef VBOX_WS_MAC 289 289 /* For the status-bar on Cocoa: */ 290 290 setUnifiedTitleAndToolBarOnMac(true); 291 #endif /* Q_WS_MAC */291 #endif /* VBOX_WS_MAC */ 292 292 } 293 293 … … 306 306 #endif /* VBOX_GUI_WITH_CUSTOMIZATIONS1 */ 307 307 308 #ifdef Q_WS_MAC308 #ifdef VBOX_WS_MAC 309 309 /* Beta label? */ 310 310 if (vboxGlobal().isBeta()) … … 324 324 UIMachineWindow::handleStandardWindowButtonCallback); 325 325 } 326 #endif /* Q_WS_MAC */326 #endif /* VBOX_WS_MAC */ 327 327 } 328 328 … … 334 334 /* Load GUI customizations: */ 335 335 { 336 #ifndef Q_WS_MAC336 #ifndef VBOX_WS_MAC 337 337 /* Update menu-bar visibility: */ 338 338 menuBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked()); 339 #endif /* ! Q_WS_MAC */339 #endif /* !VBOX_WS_MAC */ 340 340 /* Update status-bar visibility: */ 341 341 statusBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked()); … … 390 390 391 391 /* Normalize to the optimal size: */ 392 #ifdef Q_WS_X11392 #ifdef VBOX_WS_X11 393 393 QTimer::singleShot(0, this, SLOT(sltNormalizeGeometry())); 394 #else /* ! Q_WS_X11 */394 #else /* !VBOX_WS_X11 */ 395 395 normalizeGeometry(true /* adjust position */); 396 #endif /* ! Q_WS_X11 */396 #endif /* !VBOX_WS_X11 */ 397 397 } 398 398 } … … 413 413 void UIMachineWindowNormal::cleanupVisualState() 414 414 { 415 #ifdef Q_WS_MAC415 #ifdef VBOX_WS_MAC 416 416 /* Unregister 'Zoom' button from using our full-screen since Yosemite: */ 417 417 if (vboxGlobal().osRelease() >= MacOSXRelease_Yosemite) 418 418 UICocoaApplication::instance()->unregisterCallbackForStandardWindowButton(this, StandardWindowButtonType_Zoom); 419 #endif /* Q_WS_MAC */419 #endif /* VBOX_WS_MAC */ 420 420 } 421 421 … … 572 572 } 573 573 574 #ifndef Q_WS_MAC574 #ifndef VBOX_WS_MAC 575 575 void UIMachineWindowNormal::updateMenu() 576 576 { … … 580 580 menuBar()->addMenu(pMenu); 581 581 } 582 #endif /* ! Q_WS_MAC */582 #endif /* !VBOX_WS_MAC */ 583 583 584 584 bool UIMachineWindowNormal::isMaximizedChecked() 585 585 { 586 #ifdef Q_WS_MAC586 #ifdef VBOX_WS_MAC 587 587 /* On the Mac the WindowStateChange signal doesn't seems to be delivered 588 588 * when the user get out of the maximized state. So check this ourself. */ 589 589 return ::darwinIsWindowMaximized(this); 590 #else /* Q_WS_MAC */590 #else /* VBOX_WS_MAC */ 591 591 return isMaximized(); 592 #endif /* ! Q_WS_MAC */593 } 594 592 #endif /* !VBOX_WS_MAC */ 593 } 594 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r59164 r60362 44 44 private slots: 45 45 46 #ifdef Q_WS_X1146 #ifdef VBOX_WS_X11 47 47 /** X11: Performs machine-window async geometry normalization. */ 48 48 void sltNormalizeGeometry() { normalizeGeometry(true /* adjust position */); } 49 #endif /* Q_WS_X11 */49 #endif /* VBOX_WS_X11 */ 50 50 51 51 /** Handles machine state change event. */ … … 86 86 /** Prepare session connections routine. */ 87 87 void prepareSessionConnections(); 88 #ifndef Q_WS_MAC88 #ifndef VBOX_WS_MAC 89 89 /** Prepare menu routine. */ 90 90 void prepareMenu(); 91 #endif /* ! Q_WS_MAC */91 #endif /* !VBOX_WS_MAC */ 92 92 /** Prepare status-bar routine. */ 93 93 void prepareStatusBar(); … … 113 113 void updateAppearanceOf(int aElement); 114 114 115 #ifndef Q_WS_MAC115 #ifndef VBOX_WS_MAC 116 116 /** Updates menu-bar content. */ 117 117 void updateMenu(); 118 #endif /* ! Q_WS_MAC */118 #endif /* !VBOX_WS_MAC */ 119 119 120 120 /** Common @a pEvent handler. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIKeyboardHandlerScale.cpp
r58857 r60362 21 21 22 22 /* Qt includes: */ 23 # ifndef Q_WS_MAC23 # ifndef VBOX_WS_MAC 24 24 # include <QKeyEvent> 25 25 # include <QTimer> 26 # endif /* ! Q_WS_MAC */26 # endif /* !VBOX_WS_MAC */ 27 27 28 28 /* GUI includes: */ 29 29 # include "UIKeyboardHandlerScale.h" 30 # ifndef Q_WS_MAC30 # ifndef VBOX_WS_MAC 31 31 # include "UIMachineLogic.h" 32 32 # include "UIShortcutPool.h" 33 # endif /* ! Q_WS_MAC */33 # endif /* !VBOX_WS_MAC */ 34 34 35 35 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 36 36 37 37 38 #ifndef Q_WS_MAC38 #ifndef VBOX_WS_MAC 39 39 /* Namespaces: */ 40 40 using namespace UIExtraDataDefs; 41 #endif /* ! Q_WS_MAC */41 #endif /* !VBOX_WS_MAC */ 42 42 43 43 UIKeyboardHandlerScale::UIKeyboardHandlerScale(UIMachineLogic* pMachineLogic) … … 50 50 } 51 51 52 #ifndef Q_WS_MAC52 #ifndef VBOX_WS_MAC 53 53 bool UIKeyboardHandlerScale::eventFilter(QObject *pWatchedObject, QEvent *pEvent) 54 54 { … … 84 84 return UIKeyboardHandler::eventFilter(pWatchedObject, pEvent); 85 85 } 86 #endif /* ! Q_WS_MAC */86 #endif /* !VBOX_WS_MAC */ 87 87 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIKeyboardHandlerScale.h
r55401 r60362 37 37 private: 38 38 39 #ifndef Q_WS_MAC39 #ifndef VBOX_WS_MAC 40 40 /** General event-filter. */ 41 41 bool eventFilter(QObject *pWatched, QEvent *pEvent); 42 #endif /* ! Q_WS_MAC */42 #endif /* !VBOX_WS_MAC */ 43 43 44 44 /* Friend class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r54217 r60362 21 21 22 22 /* Qt includes: */ 23 # ifndef Q_WS_MAC23 # ifndef VBOX_WS_MAC 24 24 # include <QTimer> 25 # endif /* ! Q_WS_MAC */25 # endif /* !VBOX_WS_MAC */ 26 26 27 27 /* GUI includes: */ … … 33 33 # include "UIMachineWindow.h" 34 34 # include "UIShortcutPool.h" 35 # ifndef Q_WS_MAC35 # ifndef VBOX_WS_MAC 36 36 # include "QIMenu.h" 37 # else /* Q_WS_MAC */37 # else /* VBOX_WS_MAC */ 38 38 # include "VBoxUtils.h" 39 # endif /* Q_WS_MAC */39 # endif /* VBOX_WS_MAC */ 40 40 41 41 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 44 44 UIMachineLogicScale::UIMachineLogicScale(QObject *pParent, UISession *pSession) 45 45 : UIMachineLogic(pParent, pSession, UIVisualStateType_Scale) 46 #ifndef Q_WS_MAC46 #ifndef VBOX_WS_MAC 47 47 , m_pPopupMenu(0) 48 #endif /* ! Q_WS_MAC */48 #endif /* !VBOX_WS_MAC */ 49 49 { 50 50 } … … 63 63 } 64 64 65 #ifndef Q_WS_MAC65 #ifndef VBOX_WS_MAC 66 66 void UIMachineLogicScale::sltInvokePopupMenu() 67 67 { … … 73 73 } 74 74 } 75 #endif /* ! Q_WS_MAC */75 #endif /* !VBOX_WS_MAC */ 76 76 77 77 void UIMachineLogicScale::prepareActionGroups() … … 120 120 return; 121 121 122 #ifdef Q_WS_MAC // TODO: Is that really need here?122 #ifdef VBOX_WS_MAC // TODO: Is that really need here? 123 123 /* We have to make sure that we are getting the front most process. 124 124 * This is necessary for Qt versions > 4.3.3: */ 125 125 ::darwinSetFrontMostProcess(); 126 #endif /* Q_WS_MAC */126 #endif /* VBOX_WS_MAC */ 127 127 128 128 /* Get monitors count: */ … … 145 145 } 146 146 147 #ifndef Q_WS_MAC147 #ifndef VBOX_WS_MAC 148 148 void UIMachineLogicScale::prepareMenu() 149 149 { … … 157 157 } 158 158 } 159 #endif /* ! Q_WS_MAC */160 161 #ifndef Q_WS_MAC159 #endif /* !VBOX_WS_MAC */ 160 161 #ifndef VBOX_WS_MAC 162 162 void UIMachineLogicScale::cleanupMenu() 163 163 { … … 166 166 m_pPopupMenu = 0; 167 167 } 168 #endif /* ! Q_WS_MAC */168 #endif /* !VBOX_WS_MAC */ 169 169 170 170 void UIMachineLogicScale::cleanupMachineWindows() -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r59335 r60362 33 33 # include "UIMachineWindowScale.h" 34 34 # include "UIMachineView.h" 35 # ifdef Q_WS_MAC35 # ifdef VBOX_WS_MAC 36 36 # include "VBoxUtils.h" 37 37 # include "UIImageTools.h" 38 38 # include "UICocoaApplication.h" 39 # endif /* Q_WS_MAC */39 # endif /* VBOX_WS_MAC */ 40 40 41 41 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 59 59 } 60 60 61 #ifdef Q_WS_MAC61 #ifdef VBOX_WS_MAC 62 62 void UIMachineWindowScale::prepareVisualState() 63 63 { … … 83 83 } 84 84 } 85 #endif /* Q_WS_MAC */85 #endif /* VBOX_WS_MAC */ 86 86 87 87 void UIMachineWindowScale::loadSettings() … … 138 138 } 139 139 140 #ifdef Q_WS_MAC140 #ifdef VBOX_WS_MAC 141 141 void UIMachineWindowScale::cleanupVisualState() 142 142 { … … 145 145 UICocoaApplication::instance()->unregisterCallbackForStandardWindowButton(this, StandardWindowButtonType_Zoom); 146 146 } 147 #endif /* Q_WS_MAC */147 #endif /* VBOX_WS_MAC */ 148 148 149 149 void UIMachineWindowScale::showInNecessaryMode() … … 199 199 } 200 200 201 #ifdef Q_WS_WIN201 #ifdef VBOX_WS_WIN 202 202 # if QT_VERSION < 0x050000 203 203 bool UIMachineWindowScale::winEvent(MSG *pMessage, long *pResult) … … 246 246 } 247 247 # endif /* QT_VERSION < 0x050000 */ 248 #endif /* Q_WS_WIN */248 #endif /* VBOX_WS_WIN */ 249 249 250 250 bool UIMachineWindowScale::isMaximizedChecked() 251 251 { 252 #ifdef Q_WS_MAC252 #ifdef VBOX_WS_MAC 253 253 /* On the Mac the WindowStateChange signal doesn't seems to be delivered 254 254 * when the user get out of the maximized state. So check this ourself. */ 255 255 return ::darwinIsWindowMaximized(this); 256 #else /* Q_WS_MAC */256 #else /* VBOX_WS_MAC */ 257 257 return isMaximized(); 258 #endif /* ! Q_WS_MAC */259 } 260 258 #endif /* !VBOX_WS_MAC */ 259 } 260 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h
r59335 r60362 37 37 /** Prepare main-layout routine. */ 38 38 void prepareMainLayout(); 39 #ifdef Q_WS_MAC39 #ifdef VBOX_WS_MAC 40 40 /** Prepare visual-state routine. */ 41 41 void prepareVisualState(); 42 #endif /* Q_WS_MAC */42 #endif /* VBOX_WS_MAC */ 43 43 /** Load settings routine. */ 44 44 void loadSettings(); … … 46 46 /** Save settings routine. */ 47 47 void saveSettings(); 48 #ifdef Q_WS_MAC48 #ifdef VBOX_WS_MAC 49 49 /** Cleanup visual-state routine. */ 50 50 void cleanupVisualState(); 51 #endif /* Q_WS_MAC */51 #endif /* VBOX_WS_MAC */ 52 52 53 53 /** Updates visibility according to visual-state. */ … … 56 56 /** Common @a pEvent handler. */ 57 57 bool event(QEvent *pEvent); 58 #ifdef Q_WS_WIN58 #ifdef VBOX_WS_WIN 59 59 # if QT_VERSION < 0x050000 60 60 /** Qt4: Win: Handles all native messages. */ 61 61 bool winEvent(MSG *pMessage, long *pResult); 62 62 # endif /* QT_VERSION < 0x050000 */ 63 #endif /* Q_WS_WIN */63 #endif /* VBOX_WS_WIN */ 64 64 65 65 /** Returns whether this window is maximized. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIKeyboardHandlerSeamless.cpp
r58857 r60362 20 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 21 22 # ifndef Q_WS_MAC22 # ifndef VBOX_WS_MAC 23 23 /* Qt includes: */ 24 24 # include <QKeyEvent> 25 25 # include <QTimer> 26 # endif /* ! Q_WS_MAC */26 # endif /* !VBOX_WS_MAC */ 27 27 28 28 /* GUI includes: */ 29 29 # include "UIKeyboardHandlerSeamless.h" 30 # ifndef Q_WS_MAC30 # ifndef VBOX_WS_MAC 31 31 # include "UIMachineLogic.h" 32 32 # include "UIShortcutPool.h" 33 # endif /* ! Q_WS_MAC */33 # endif /* !VBOX_WS_MAC */ 34 34 35 35 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 36 36 37 37 38 #ifndef Q_WS_MAC38 #ifndef VBOX_WS_MAC 39 39 /* Namespaces: */ 40 40 using namespace UIExtraDataDefs; 41 #endif /* ! Q_WS_MAC */41 #endif /* !VBOX_WS_MAC */ 42 42 43 43 UIKeyboardHandlerSeamless::UIKeyboardHandlerSeamless(UIMachineLogic* pMachineLogic) … … 50 50 } 51 51 52 #ifndef Q_WS_MAC52 #ifndef VBOX_WS_MAC 53 53 bool UIKeyboardHandlerSeamless::eventFilter(QObject *pWatchedObject, QEvent *pEvent) 54 54 { … … 84 84 return UIKeyboardHandler::eventFilter(pWatchedObject, pEvent); 85 85 } 86 #endif /* ! Q_WS_MAC */86 #endif /* !VBOX_WS_MAC */ 87 87 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIKeyboardHandlerSeamless.h
r55401 r60362 37 37 private: 38 38 39 #ifndef Q_WS_MAC39 #ifndef VBOX_WS_MAC 40 40 /** General event-filter. */ 41 41 bool eventFilter(QObject *pWatched, QEvent *pEvent); 42 #endif /* ! Q_WS_MAC */42 #endif /* !VBOX_WS_MAC */ 43 43 44 44 /* Friend class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r59079 r60362 21 21 22 22 /* Qt includes: */ 23 # ifndef Q_WS_MAC23 # ifndef VBOX_WS_MAC 24 24 # include <QTimer> 25 # endif /* ! Q_WS_MAC */25 # endif /* !VBOX_WS_MAC */ 26 26 27 27 /* GUI includes: */ … … 35 35 # include "UIMultiScreenLayout.h" 36 36 # include "UIShortcutPool.h" 37 # ifndef Q_WS_MAC37 # ifndef VBOX_WS_MAC 38 38 # include "QIMenu.h" 39 # else /* Q_WS_MAC */39 # else /* VBOX_WS_MAC */ 40 40 # include "VBoxUtils.h" 41 # endif /* Q_WS_MAC */41 # endif /* VBOX_WS_MAC */ 42 42 43 43 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 46 46 UIMachineLogicSeamless::UIMachineLogicSeamless(QObject *pParent, UISession *pSession) 47 47 : UIMachineLogic(pParent, pSession, UIVisualStateType_Seamless) 48 #ifndef Q_WS_MAC48 #ifndef VBOX_WS_MAC 49 49 , m_pPopupMenu(0) 50 #endif /* ! Q_WS_MAC */50 #endif /* !VBOX_WS_MAC */ 51 51 { 52 52 /* Create multiscreen layout: */ … … 164 164 } 165 165 166 #ifndef Q_WS_MAC166 #ifndef VBOX_WS_MAC 167 167 void UIMachineLogicSeamless::sltInvokePopupMenu() 168 168 { … … 174 174 } 175 175 } 176 #endif /* ! Q_WS_MAC */176 #endif /* !VBOX_WS_MAC */ 177 177 178 178 void UIMachineLogicSeamless::sltScreenLayoutChanged() … … 230 230 UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar | 231 231 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize)); 232 #ifdef Q_WS_MAC232 #ifdef VBOX_WS_MAC 233 233 /* Restrict 'Window' menu: */ 234 234 actionPool()->toRuntime()->setRestrictionForMenuBar(UIActionRestrictionLevel_Logic, 235 235 UIExtraDataMetaDefs::MenuType_Window); 236 #endif /* Q_WS_MAC */236 #endif /* VBOX_WS_MAC */ 237 237 238 238 /* Take care of view-action toggle state: */ … … 266 266 return; 267 267 268 #ifdef Q_WS_MAC268 #ifdef VBOX_WS_MAC 269 269 /* We have to make sure that we are getting the front most process. 270 270 * This is necessary for Qt versions > 4.3.3: */ 271 271 darwinSetFrontMostProcess(); 272 #endif /* Q_WS_MAC */272 #endif /* VBOX_WS_MAC */ 273 273 274 274 /* Update the multi-screen layout: */ … … 292 292 setMachineWindowsCreated(true); 293 293 294 #ifdef Q_WS_X11294 #ifdef VBOX_WS_X11 295 295 switch (vboxGlobal().typeOfWindowManager()) 296 296 { … … 308 308 break; 309 309 } 310 #endif /* Q_WS_X11 */311 } 312 313 #ifndef Q_WS_MAC310 #endif /* VBOX_WS_X11 */ 311 } 312 313 #ifndef VBOX_WS_MAC 314 314 void UIMachineLogicSeamless::prepareMenu() 315 315 { … … 323 323 } 324 324 } 325 #endif /* ! Q_WS_MAC */326 327 #ifndef Q_WS_MAC325 #endif /* !VBOX_WS_MAC */ 326 327 #ifndef VBOX_WS_MAC 328 328 void UIMachineLogicSeamless::cleanupMenu() 329 329 { … … 332 332 m_pPopupMenu = 0; 333 333 } 334 #endif /* ! Q_WS_MAC */334 #endif /* !VBOX_WS_MAC */ 335 335 336 336 void UIMachineLogicSeamless::cleanupMachineWindows() … … 376 376 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 377 377 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid); 378 #ifdef Q_WS_MAC378 #ifdef VBOX_WS_MAC 379 379 /* Allow 'Window' menu: */ 380 380 actionPool()->toRuntime()->setRestrictionForMenuBar(UIActionRestrictionLevel_Logic, 381 381 UIExtraDataMetaDefs::MenuType_Invalid); 382 #endif /* Q_WS_MAC */382 #endif /* VBOX_WS_MAC */ 383 383 384 384 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h
r59079 r60362 81 81 void prepareActionConnections(); 82 82 void prepareMachineWindows(); 83 #ifndef Q_WS_MAC83 #ifndef VBOX_WS_MAC 84 84 void prepareMenu(); 85 #endif /* ! Q_WS_MAC */85 #endif /* !VBOX_WS_MAC */ 86 86 87 87 /* Cleanup helpers: */ 88 #ifndef Q_WS_MAC88 #ifndef VBOX_WS_MAC 89 89 void cleanupMenu(); 90 #endif /* ! Q_WS_MAC */90 #endif /* !VBOX_WS_MAC */ 91 91 void cleanupMachineWindows(); 92 92 void cleanupActionConnections(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r59380 r60362 24 24 # include <QMainWindow> 25 25 # include <QTimer> 26 # ifdef Q_WS_MAC26 # ifdef VBOX_WS_MAC 27 27 # include <QMenuBar> 28 # endif /* Q_WS_MAC */28 # endif /* VBOX_WS_MAC */ 29 29 30 30 /* GUI includes: */ … … 44 44 45 45 /* External includes: */ 46 #ifdef Q_WS_X1146 #ifdef VBOX_WS_X11 47 47 # include <limits.h> 48 #endif /* Q_WS_X11 */48 #endif /* VBOX_WS_X11 */ 49 49 50 50 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r59821 r60362 32 32 # include "UIMachineWindowSeamless.h" 33 33 # include "UIMachineView.h" 34 # if defined( Q_WS_WIN) || defined(Q_WS_X11)34 # if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 35 35 # include "UIMachineDefs.h" 36 36 # include "UIMiniToolBar.h" 37 # elif defined( Q_WS_MAC)37 # elif defined(VBOX_WS_MAC) 38 38 # include "VBoxUtils.h" 39 # endif /* Q_WS_MAC */39 # endif /* VBOX_WS_MAC */ 40 40 41 41 /* COM includes: */ … … 47 47 UIMachineWindowSeamless::UIMachineWindowSeamless(UIMachineLogic *pMachineLogic, ulong uScreenId) 48 48 : UIMachineWindow(pMachineLogic, uScreenId) 49 #if defined( Q_WS_WIN) || defined(Q_WS_X11)49 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 50 50 , m_pMiniToolBar(0) 51 #endif /* Q_WS_WIN || Q_WS_X11 */52 { 53 } 54 55 #if defined( Q_WS_WIN) || defined(Q_WS_X11)51 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 52 { 53 } 54 55 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 56 56 void UIMachineWindowSeamless::sltMachineStateChanged() 57 57 { … … 70 70 71 71 /* Revoke stolen activation: */ 72 #ifdef Q_WS_X1172 #ifdef VBOX_WS_X11 73 73 raise(); 74 #endif /* Q_WS_X11 */74 #endif /* VBOX_WS_X11 */ 75 75 activateWindow(); 76 76 } 77 #endif /* Q_WS_WIN || Q_WS_X11 */77 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 78 78 79 79 void UIMachineWindowSeamless::prepareVisualState() … … 87 87 88 88 #ifdef VBOX_WITH_TRANSLUCENT_SEAMLESS 89 # if defined( Q_WS_MAC) && QT_VERSION < 0x05000089 # if defined(VBOX_WS_MAC) && QT_VERSION < 0x050000 90 90 /* Using native API to enable translucent background for the Mac host. 91 91 * - We also want to disable window-shadows which is possible … … 93 93 * while minimum supported version is 4.7.1 for now: */ 94 94 ::darwinSetShowsWindowTransparent(this, true); 95 # else /* ! Q_WS_MAC || QT_VERSION >= 0x050000 */95 # else /* !VBOX_WS_MAC || QT_VERSION >= 0x050000 */ 96 96 /* Using Qt API to enable translucent background: 97 97 * - Under Win host Qt conflicts with 3D stuff (black seamless regions). … … 99 99 * until version 4.8, but minimum supported version is 4.7.1 for now. */ 100 100 setAttribute(Qt::WA_TranslucentBackground); 101 # endif /* ! Q_WS_MAC || QT_VERSION >= 0x050000 */101 # endif /* !VBOX_WS_MAC || QT_VERSION >= 0x050000 */ 102 102 #endif /* VBOX_WITH_TRANSLUCENT_SEAMLESS */ 103 103 … … 108 108 #endif /* VBOX_WITH_MASKED_SEAMLESS */ 109 109 110 #if defined( Q_WS_WIN) || defined(Q_WS_X11)110 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 111 111 /* Prepare mini-toolbar: */ 112 112 prepareMiniToolbar(); 113 #endif /* Q_WS_WIN || Q_WS_X11 */114 } 115 116 #if defined( Q_WS_WIN) || defined(Q_WS_X11)113 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 114 } 115 116 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 117 117 void UIMachineWindowSeamless::prepareMiniToolbar() 118 118 { … … 140 140 } 141 141 } 142 #endif /* Q_WS_WIN || Q_WS_X11 */143 144 #if defined( Q_WS_WIN) || defined(Q_WS_X11)142 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 143 144 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 145 145 void UIMachineWindowSeamless::cleanupMiniToolbar() 146 146 { … … 155 155 m_pMiniToolBar = 0; 156 156 } 157 #endif /* Q_WS_WIN || Q_WS_X11 */157 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 158 158 159 159 void UIMachineWindowSeamless::cleanupVisualState() 160 160 { 161 #if defined( Q_WS_WIN) || defined(Q_WS_X11)161 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 162 162 /* Cleanup mini-toolbar: */ 163 163 cleanupMiniToolbar(); 164 #endif /* Q_WS_WIN || Q_WS_X11 */164 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 165 165 166 166 /* Call to base-class: */ … … 179 179 move(workingArea.topLeft()); 180 180 181 #if defined( Q_WS_WIN) || defined(Q_WS_X11)181 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 182 182 /* If there is a mini-toolbar: */ 183 183 if (m_pMiniToolBar) … … 187 187 m_pMiniToolBar->move(workingArea.topLeft()); 188 188 } 189 #endif /* Q_WS_WIN || Q_WS_X11 */189 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 190 190 } 191 191 … … 200 200 !pSeamlessLogic->hasHostScreenForGuestScreen(m_uScreenId)) 201 201 { 202 #if defined( Q_WS_WIN) || defined(Q_WS_X11)202 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 203 203 /* If there is a mini-toolbar: */ 204 204 if (m_pMiniToolBar) … … 207 207 m_pMiniToolBar->hide(); 208 208 } 209 #endif /* Q_WS_WIN || Q_WS_X11 */209 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 210 210 211 211 /* Hide window: */ … … 224 224 show(); 225 225 226 #if defined( Q_WS_WIN) || defined(Q_WS_X11)226 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 227 227 /* If there is a mini-toolbar: */ 228 228 if (m_pMiniToolBar) … … 231 231 m_pMiniToolBar->show(); 232 232 } 233 #endif /* Q_WS_WIN || Q_WS_X11 */233 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 234 234 235 235 /* Adjust machine-view size if necessary: */ … … 241 241 } 242 242 243 #if defined( Q_WS_WIN) || defined(Q_WS_X11)243 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 244 244 void UIMachineWindowSeamless::updateAppearanceOf(int iElement) 245 245 { … … 265 265 } 266 266 } 267 #endif /* Q_WS_WIN || Q_WS_X11 */268 269 #ifdef Q_WS_WIN267 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 268 269 #ifdef VBOX_WS_WIN 270 270 # if QT_VERSION >= 0x050000 271 271 void UIMachineWindowSeamless::showEvent(QShowEvent *pEvent) … … 281 281 } 282 282 # endif /* QT_VERSION >= 0x050000 */ 283 #endif /* Q_WS_WIN */283 #endif /* VBOX_WS_WIN */ 284 284 285 285 #ifdef VBOX_WITH_MASKED_SEAMLESS -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r59814 r60362 22 22 #include "UIMachineWindow.h" 23 23 24 #if defined( Q_WS_WIN) || defined(Q_WS_X11)24 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 25 25 /* Forward declarations: */ 26 26 class UIMiniToolBar; 27 #endif /* Q_WS_WIN || Q_WS_X11 */27 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 28 28 29 29 /** UIMachineWindow reimplementation, … … 40 40 private slots: 41 41 42 #if defined( Q_WS_WIN) || defined(Q_WS_X11)42 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 43 43 /** Handles machine state change event. */ 44 44 void sltMachineStateChanged(); … … 46 46 /** Revokes window activation. */ 47 47 void sltRevokeWindowActivation(); 48 #endif /* Q_WS_WIN || Q_WS_X11 */48 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 49 49 50 50 private: … … 52 52 /** Prepare visual-state routine. */ 53 53 void prepareVisualState(); 54 #if defined( Q_WS_WIN) || defined(Q_WS_X11)54 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 55 55 /** Prepare mini-toolbar routine. */ 56 56 void prepareMiniToolbar(); 57 #endif /* Q_WS_WIN || Q_WS_X11 */57 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 58 58 59 #if defined( Q_WS_WIN) || defined(Q_WS_X11)59 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 60 60 /** Cleanup mini-toolbar routine. */ 61 61 void cleanupMiniToolbar(); 62 #endif /* Q_WS_WIN || Q_WS_X11 */62 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 63 63 /** Cleanup visual-state routine. */ 64 64 void cleanupVisualState(); … … 69 69 void showInNecessaryMode(); 70 70 71 #if defined( Q_WS_WIN) || defined(Q_WS_X11)71 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 72 72 /** Common update routine. */ 73 73 void updateAppearanceOf(int iElement); 74 #endif /* Q_WS_WIN || Q_WS_X11 */74 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 75 75 76 #ifdef Q_WS_WIN76 #ifdef VBOX_WS_WIN 77 77 # if QT_VERSION >= 0x050000 78 78 /** Win: Handles show @a pEvent. */ 79 79 void showEvent(QShowEvent *pEvent); 80 80 # endif /* QT_VERSION >= 0x050000 */ 81 #endif /* Q_WS_WIN */81 #endif /* VBOX_WS_WIN */ 82 82 83 83 #ifdef VBOX_WITH_MASKED_SEAMLESS … … 86 86 #endif /* VBOX_WITH_MASKED_SEAMLESS */ 87 87 88 #if defined( Q_WS_WIN) || defined(Q_WS_X11)88 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 89 89 /** Holds the mini-toolbar instance. */ 90 90 UIMiniToolBar *m_pMiniToolBar; 91 #endif /* Q_WS_WIN || Q_WS_X11 */91 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 92 92 93 93 #ifdef VBOX_WITH_MASKED_SEAMLESS -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r58362 r60362 46 46 void retranslateUi() 47 47 { 48 #ifdef Q_WS_MAC48 #ifdef VBOX_WS_MAC 49 49 setName(QApplication::translate("UIActionPool", "&File", "Mac OS X version")); 50 #else /* Q_WS_MAC */50 #else /* VBOX_WS_MAC */ 51 51 setName(QApplication::translate("UIActionPool", "&File", "Non Mac OS X version")); 52 #endif /* ! Q_WS_MAC */52 #endif /* !VBOX_WS_MAC */ 53 53 } 54 54 }; … … 831 831 void retranslateUi() 832 832 { 833 #if defined( Q_WS_MAC)833 #if defined(VBOX_WS_MAC) 834 834 setName(QApplication::translate("UIActionPool", "S&how in Finder")); 835 835 setStatusTip(QApplication::translate("UIActionPool", "Show the VirtualBox Machine Definition files in Finder")); 836 #elif defined( Q_WS_WIN)836 #elif defined(VBOX_WS_WIN) 837 837 setName(QApplication::translate("UIActionPool", "S&how in Explorer")); 838 838 setStatusTip(QApplication::translate("UIActionPool", "Show the VirtualBox Machine Definition files in Explorer")); … … 862 862 void retranslateUi() 863 863 { 864 #if defined( Q_WS_MAC)864 #if defined(VBOX_WS_MAC) 865 865 setName(QApplication::translate("UIActionPool", "Cr&eate Alias on Desktop")); 866 866 setStatusTip(QApplication::translate("UIActionPool", "Create alias files to the VirtualBox Machine Definition files on your desktop")); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r59887 r60362 65 65 # include "UIExtraDataManager.h" 66 66 # include "VBoxGlobal.h" 67 # ifdef Q_WS_MAC67 # ifdef VBOX_WS_MAC 68 68 # include "VBoxUtils.h" 69 69 # include "UIWindowMenuManager.h" 70 70 # include "UIImageTools.h" 71 # endif /* Q_WS_MAC */71 # endif /* VBOX_WS_MAC */ 72 72 73 73 /* Other VBox stuff: */ 74 74 # include <iprt/buildconfig.h> 75 75 # include <VBox/version.h> 76 # ifdef Q_WS_X1176 # ifdef VBOX_WS_X11 77 77 # include <iprt/env.h> 78 # endif /* Q_WS_X11 */78 # endif /* VBOX_WS_X11 */ 79 79 80 80 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 115 115 , m_pActionPool(0) 116 116 , m_pSplitter(0) 117 #ifndef Q_WS_MAC117 #ifndef VBOX_WS_MAC 118 118 , m_pBar(0) 119 #endif /* ! Q_WS_MAC */119 #endif /* !VBOX_WS_MAC */ 120 120 , m_pToolBar(0) 121 121 , m_pContainerDetails(0) … … 140 140 QAction *pShowToolBar = new QAction(tr("Show Toolbar"), 0); 141 141 pShowToolBar->setCheckable(true); 142 #ifdef Q_WS_MAC142 #ifdef VBOX_WS_MAC 143 143 pShowToolBar->setChecked(m_pToolBar->isVisible()); 144 #else /* Q_WS_MAC */144 #else /* VBOX_WS_MAC */ 145 145 pShowToolBar->setChecked(m_pBar->isVisible()); 146 #endif /* ! Q_WS_MAC */146 #endif /* !VBOX_WS_MAC */ 147 147 actions << pShowToolBar; 148 148 QAction *pShowStatusBar = new QAction(tr("Show Statusbar"), 0); … … 160 160 if (pResult->isChecked()) 161 161 { 162 #ifdef Q_WS_MAC162 #ifdef VBOX_WS_MAC 163 163 m_pToolBar->show(); 164 #else /* Q_WS_MAC */164 #else /* VBOX_WS_MAC */ 165 165 m_pBar->show(); 166 #endif /* ! Q_WS_MAC */166 #endif /* !VBOX_WS_MAC */ 167 167 } 168 168 else 169 169 { 170 #ifdef Q_WS_MAC170 #ifdef VBOX_WS_MAC 171 171 m_pToolBar->hide(); 172 #else /* Q_WS_MAC */172 #else /* VBOX_WS_MAC */ 173 173 m_pBar->hide(); 174 #endif /* ! Q_WS_MAC */174 #endif /* !VBOX_WS_MAC */ 175 175 } 176 176 } … … 324 324 for (int i = 0; i < list.size(); ++i) 325 325 { 326 #ifdef Q_WS_MAC326 #ifdef VBOX_WS_MAC 327 327 QString strFile = ::darwinResolveAlias(list.at(i).toLocalFile()); 328 #else /* Q_WS_MAC */328 #else /* VBOX_WS_MAC */ 329 329 QString strFile = list.at(i).toLocalFile(); 330 #endif /* ! Q_WS_MAC */330 #endif /* !VBOX_WS_MAC */ 331 331 if (!strFile.isEmpty() && QFile::exists(strFile)) 332 332 { … … 401 401 { 402 402 /* Show Import Appliance wizard: */ 403 #ifdef Q_WS_MAC403 #ifdef VBOX_WS_MAC 404 404 QString strTmpFile = ::darwinResolveAlias(strFileName); 405 #else /* Q_WS_MAC */405 #else /* VBOX_WS_MAC */ 406 406 QString strTmpFile = strFileName; 407 #endif /* ! Q_WS_MAC */407 #endif /* !VBOX_WS_MAC */ 408 408 UISafePointerWizardImportApp pWizard = new UIWizardImportApp(this, strTmpFile); 409 409 pWizard->prepare(); … … 467 467 { 468 468 /* Initialize variables: */ 469 #ifdef Q_WS_MAC469 #ifdef VBOX_WS_MAC 470 470 QString strTmpFile = ::darwinResolveAlias(strFileName); 471 #else /* Q_WS_MAC */471 #else /* VBOX_WS_MAC */ 472 472 QString strTmpFile = strFileName; 473 #endif /* ! Q_WS_MAC */473 #endif /* !VBOX_WS_MAC */ 474 474 CVirtualBox vbox = vboxGlobal().virtualBox(); 475 475 if (strTmpFile.isEmpty()) … … 1025 1025 sltHandleChooserPaneIndexChange(); 1026 1026 1027 #ifdef Q_WS_MAC1027 #ifdef VBOX_WS_MAC 1028 1028 /* Avoid bug in Qt Cocoa which results in showing a "more arrow" on size-hint changes: */ 1029 1029 m_pToolBar->updateLayout(); 1030 #endif /* Q_WS_MAC */1030 #endif /* VBOX_WS_MAC */ 1031 1031 } 1032 1032 … … 1050 1050 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 1051 1051 { 1052 #ifdef Q_WS_MAC1052 #ifdef VBOX_WS_MAC 1053 1053 QMoveEvent *pMoveEvent = static_cast<QMoveEvent*>(pEvent); 1054 1054 m_geometry.moveTo(pMoveEvent->pos()); 1055 #else /* Q_WS_MAC */1055 #else /* VBOX_WS_MAC */ 1056 1056 m_geometry.moveTo(geometry().x(), geometry().y()); 1057 #endif /* ! Q_WS_MAC */1057 #endif /* !VBOX_WS_MAC */ 1058 1058 } 1059 1059 break; … … 1065 1065 break; 1066 1066 } 1067 #ifdef Q_WS_MAC1067 #ifdef VBOX_WS_MAC 1068 1068 case QEvent::ContextMenu: 1069 1069 { … … 1076 1076 break; 1077 1077 } 1078 #endif /* Q_WS_MAC */1078 #endif /* VBOX_WS_MAC */ 1079 1079 default: 1080 1080 break; … … 1106 1106 } 1107 1107 1108 #ifdef Q_WS_MAC1108 #ifdef VBOX_WS_MAC 1109 1109 bool UISelectorWindow::eventFilter(QObject *pObject, QEvent *pEvent) 1110 1110 { … … 1134 1134 return QIWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent); 1135 1135 } 1136 #endif /* Q_WS_MAC */1136 #endif /* VBOX_WS_MAC */ 1137 1137 1138 1138 void UISelectorWindow::prepare() 1139 1139 { 1140 #ifdef Q_WS_MAC1140 #ifdef VBOX_WS_MAC 1141 1141 /* We have to make sure that we are getting the front most process: */ 1142 1142 ::darwinSetFrontMostProcess(); 1143 #endif /* Q_WS_MAC */1143 #endif /* VBOX_WS_MAC */ 1144 1144 1145 1145 /* Cache medium data early if necessary: */ … … 1160 1160 retranslateUi(); 1161 1161 1162 #ifdef Q_WS_MAC1162 #ifdef VBOX_WS_MAC 1163 1163 /* Enable unified toolbar: */ 1164 1164 m_pToolBar->enableMacToolbar(); … … 1173 1173 /* General event filter: */ 1174 1174 qApp->installEventFilter(this); 1175 #endif /* Q_WS_MAC */1175 #endif /* VBOX_WS_MAC */ 1176 1176 } 1177 1177 … … 1182 1182 * On Mac OS X the icon referenced in info.plist is used. 1183 1183 * On X11 we will provide as much icons as we can. */ 1184 #if !(defined ( Q_WS_WIN) || defined (Q_WS_MAC))1184 #if !(defined (VBOX_WS_WIN) || defined (VBOX_WS_MAC)) 1185 1185 QIcon icon(":/VirtualBox.svg"); 1186 1186 icon.addFile(":/VirtualBox_48px.png"); 1187 1187 icon.addFile(":/VirtualBox_64px.png"); 1188 1188 setWindowIcon(icon); 1189 #endif /* ! Q_WS_WIN && !Q_WS_MAC */1189 #endif /* !VBOX_WS_WIN && !VBOX_WS_MAC */ 1190 1190 } 1191 1191 … … 1219 1219 m_pMachineMenuAction = menuBar()->addMenu(actionPool()->action(UIActionIndexST_M_Machine)->menu()); 1220 1220 1221 #ifdef Q_WS_MAC1221 #ifdef VBOX_WS_MAC 1222 1222 /* Prepare 'Window' menu: */ 1223 1223 UIWindowMenuManager::create(); 1224 1224 menuBar()->addMenu(gpWindowMenuManager->createMenu(this)); 1225 1225 gpWindowMenuManager->addWindow(this); 1226 #endif /* Q_WS_MAC */1226 #endif /* VBOX_WS_MAC */ 1227 1227 1228 1228 /* Prepare Help-menu: */ … … 1241 1241 /* The Application / 'File' menu contents is very different depending on host type. */ 1242 1242 1243 #ifdef Q_WS_MAC1243 #ifdef VBOX_WS_MAC 1244 1244 /* 'About' action goes to Application menu: */ 1245 1245 pMenu->addAction(actionPool()->action(UIActionIndex_M_Application_S_About)); … … 1268 1268 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_ShowMediumManager)); 1269 1269 1270 #else /* ! Q_WS_MAC */1270 #else /* !VBOX_WS_MAC */ 1271 1271 1272 1272 /* 'Preferences' action goes to 'File' menu: */ … … 1298 1298 /* 'Close' action goes to 'File' menu: */ 1299 1299 pMenu->addAction(actionPool()->action(UIActionIndexST_M_File_S_Close)); 1300 #endif /* ! Q_WS_MAC */1300 #endif /* !VBOX_WS_MAC */ 1301 1301 } 1302 1302 … … 1475 1475 /* Prepare splitter: */ 1476 1476 m_pSplitter = new QISplitter(this); 1477 #ifdef Q_WS_X111477 #ifdef VBOX_WS_X11 1478 1478 m_pSplitter->setHandleType(QISplitter::Native); 1479 #endif /* Q_WS_X11 */1479 #endif /* VBOX_WS_X11 */ 1480 1480 1481 1481 /* Prepare tool-bar: */ … … 1511 1511 1512 1512 /* Layout all the widgets: */ 1513 #ifdef Q_WS_MAC1513 #ifdef VBOX_WS_MAC 1514 1514 addToolBar(m_pToolBar); 1515 1515 /* Central widget @ horizontal layout: */ 1516 1516 setCentralWidget(m_pSplitter); 1517 1517 m_pSplitter->addWidget(m_pPaneChooser); 1518 #else /* ! Q_WS_MAC */1518 #else /* !VBOX_WS_MAC */ 1519 1519 QWidget *pCentralWidget = new QWidget(this); 1520 1520 setCentralWidget(pCentralWidget); … … 1527 1527 pCentralLayout->addWidget(m_pSplitter); 1528 1528 m_pSplitter->addWidget(m_pPaneChooser); 1529 #endif /* ! Q_WS_MAC */1529 #endif /* !VBOX_WS_MAC */ 1530 1530 m_pSplitter->addWidget(m_pContainerDetails); 1531 1531 … … 1612 1612 1613 1613 /* Tool-bar connections: */ 1614 #ifndef Q_WS_MAC1614 #ifndef VBOX_WS_MAC 1615 1615 connect(m_pToolBar, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(sltShowSelectorWindowContextMenu(const QPoint&))); 1616 #else /* Q_WS_MAC */1616 #else /* VBOX_WS_MAC */ 1617 1617 /* We want to receive right click notifications on the title bar, so register our own handler: */ 1618 1618 ::darwinRegisterForUnifiedToolbarContextMenuEvents(this); 1619 #endif /* Q_WS_MAC */1619 #endif /* VBOX_WS_MAC */ 1620 1620 1621 1621 /* VM desktop connections: */ … … 1639 1639 /* Load geometry: */ 1640 1640 m_geometry = gEDataManager->selectorWindowGeometry(this); 1641 #ifdef Q_WS_MAC1641 #ifdef VBOX_WS_MAC 1642 1642 move(m_geometry.topLeft()); 1643 1643 resize(m_geometry.size()); 1644 #else /* Q_WS_MAC */1644 #else /* VBOX_WS_MAC */ 1645 1645 setGeometry(m_geometry); 1646 #endif /* ! Q_WS_MAC */1646 #endif /* !VBOX_WS_MAC */ 1647 1647 LogRel2(("GUI: UISelectorWindow: Geometry loaded to: Origin=%dx%d, Size=%dx%d\n", 1648 1648 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 1670 1670 /* Restore toolbar and statusbar visibility: */ 1671 1671 { 1672 #ifdef Q_WS_MAC1672 #ifdef VBOX_WS_MAC 1673 1673 m_pToolBar->setHidden(!gEDataManager->selectorWindowToolBarVisible()); 1674 #else /* Q_WS_MAC */1674 #else /* VBOX_WS_MAC */ 1675 1675 m_pBar->setHidden(!gEDataManager->selectorWindowToolBarVisible()); 1676 #endif /* ! Q_WS_MAC */1676 #endif /* !VBOX_WS_MAC */ 1677 1677 statusBar()->setHidden(!gEDataManager->selectorWindowStatusBarVisible()); 1678 1678 } … … 1683 1683 /* Save toolbar and statusbar visibility: */ 1684 1684 { 1685 #ifdef Q_WS_MAC1685 #ifdef VBOX_WS_MAC 1686 1686 gEDataManager->setSelectorWindowToolBarVisible(!m_pToolBar->isHidden()); 1687 #else /* Q_WS_MAC */1687 #else /* VBOX_WS_MAC */ 1688 1688 gEDataManager->setSelectorWindowToolBarVisible(!m_pBar->isHidden()); 1689 #endif /* ! Q_WS_MAC */1689 #endif /* !VBOX_WS_MAC */ 1690 1690 gEDataManager->setSelectorWindowStatusBarVisible(!statusBar()->isHidden()); 1691 1691 } … … 1698 1698 /* Save window geometry: */ 1699 1699 { 1700 #ifdef Q_WS_MAC1700 #ifdef VBOX_WS_MAC 1701 1701 gEDataManager->setSelectorWindowGeometry(m_geometry, ::darwinIsWindowMaximized(this)); 1702 #else /* Q_WS_MAC */1702 #else /* VBOX_WS_MAC */ 1703 1703 gEDataManager->setSelectorWindowGeometry(m_geometry, isMaximized()); 1704 #endif /* ! Q_WS_MAC */1704 #endif /* !VBOX_WS_MAC */ 1705 1705 LogRel2(("GUI: UISelectorWindow: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 1706 1706 m_geometry.x(), m_geometry.y(), m_geometry.width(), m_geometry.height())); … … 1710 1710 void UISelectorWindow::cleanupConnections() 1711 1711 { 1712 #ifdef Q_WS_MAC1712 #ifdef VBOX_WS_MAC 1713 1713 /* Tool-bar connections: */ 1714 1714 ::darwinUnregisterForUnifiedToolbarContextMenuEvents(this); 1715 #endif /* Q_WS_MAC */1715 #endif /* VBOX_WS_MAC */ 1716 1716 } 1717 1717 1718 1718 void UISelectorWindow::cleanupMenuBar() 1719 1719 { 1720 #ifdef Q_WS_MAC1720 #ifdef VBOX_WS_MAC 1721 1721 /* Cleanup 'Window' menu: */ 1722 1722 UIWindowMenuManager::destroy(); 1723 #endif /* Q_WS_MAC */1723 #endif /* VBOX_WS_MAC */ 1724 1724 1725 1725 /* Destroy action-pool: */ … … 1833 1833 actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->blockSignals(false); 1834 1834 1835 #ifdef Q_WS_MAC1835 #ifdef VBOX_WS_MAC 1836 1836 /* Avoid bug in Qt Cocoa which results in showing a "more arrow" on size-hint changes: */ 1837 1837 m_pToolBar->updateLayout(); 1838 #endif /* Q_WS_MAC */1838 #endif /* VBOX_WS_MAC */ 1839 1839 } 1840 1840 … … 2013 2013 foreach (UIVMItem *pItem, items) 2014 2014 if (pItem->accessible() 2015 #ifdef Q_WS_MAC2015 #ifdef VBOX_WS_MAC 2016 2016 /* On Mac OS X this are real alias files, which don't work with the old legacy xml files. */ 2017 2017 && pItem->settingsFile().endsWith(".vbox", Qt::CaseInsensitive) 2018 #endif /* Q_WS_MAC */2018 #endif /* VBOX_WS_MAC */ 2019 2019 ) 2020 2020 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r57897 r60362 179 179 /** Handles first Qt show @a pEvent. */ 180 180 virtual void polishEvent(QShowEvent *pEvent); 181 #ifdef Q_WS_MAC181 #ifdef VBOX_WS_MAC 182 182 /** Mac OS X: Preprocesses any Qt @a pEvent for passed @a pObject. */ 183 183 virtual bool eventFilter(QObject *pObject, QEvent *pEvent); 184 #endif /* Q_WS_MAC */184 #endif /* VBOX_WS_MAC */ 185 185 /** @} */ 186 186 … … 271 271 QISplitter *m_pSplitter; 272 272 273 #ifndef Q_WS_MAC273 #ifndef VBOX_WS_MAC 274 274 /** Holds the main bar instance. */ 275 275 UIMainBar *m_pBar; 276 #endif /* ! Q_WS_MAC */276 #endif /* !VBOX_WS_MAC */ 277 277 /** Holds the main toolbar instance. */ 278 278 UIToolBar *m_pToolBar; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
r54055 r60362 24 24 # include <QStackedWidget> 25 25 # include <QToolButton> 26 # ifdef Q_WS_MAC26 # ifdef VBOX_WS_MAC 27 27 # include <QTimer> 28 # endif /* Q_WS_MAC */28 # endif /* VBOX_WS_MAC */ 29 29 30 30 /* GUI includes */ … … 47 47 48 48 49 //#ifdef Q_WS_MAC49 //#ifdef VBOX_WS_MAC 50 50 # define USE_TOOLBAR 51 //#endif /* Q_WS_MAC */52 53 #ifdef Q_WS_MAC51 //#endif /* VBOX_WS_MAC */ 52 53 #ifdef VBOX_WS_MAC 54 54 static const int gsLeftMargin = 5; 55 55 static const int gsTopMargin = 5; 56 56 static const int gsRightMargin = 5; 57 57 static const int gsBottomMargin = 5; 58 #else /* Q_WS_MAC */58 #else /* VBOX_WS_MAC */ 59 59 static const int gsLeftMargin = 0; 60 60 static const int gsTopMargin = 5; 61 61 static const int gsRightMargin = 5; 62 62 static const int gsBottomMargin = 5; 63 #endif /* ! Q_WS_MAC */63 #endif /* !VBOX_WS_MAC */ 64 64 65 65 /* Container to store VM desktop panes. */ … … 255 255 } 256 256 257 #ifdef Q_WS_MAC257 #ifdef VBOX_WS_MAC 258 258 /* Cocoa stuff should be async... 259 259 * Do not ask me why but otherwise 260 260 * it conflicts with native handlers. */ 261 261 QTimer::singleShot(0, this, SLOT(sltInit())); 262 #else /* ! Q_WS_MAC */262 #else /* !VBOX_WS_MAC */ 263 263 sltInit(); 264 #endif /* ! Q_WS_MAC */264 #endif /* !VBOX_WS_MAC */ 265 265 266 266 /* Prepare main layout: */ … … 282 282 pSpace->setFixedSize(10, 1); 283 283 pToolBar->addWidget(pSpace); 284 #ifdef Q_WS_MAC284 #ifdef VBOX_WS_MAC 285 285 pToolBar->updateLayout(); 286 #endif /* Q_WS_MAC */286 #endif /* VBOX_WS_MAC */ 287 287 } 288 288 else -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMItem.cpp
r59031 r60362 29 29 # include "UIConverter.h" 30 30 # include "UIExtraDataManager.h" 31 # ifdef Q_WS_MAC31 # ifdef VBOX_WS_MAC 32 32 # include <ApplicationServices/ApplicationServices.h> 33 # endif /* Q_WS_MAC */33 # endif /* VBOX_WS_MAC */ 34 34 35 35 /* COM includes: */ … … 45 45 #if 0 46 46 47 #if defined ( Q_WS_WIN)47 #if defined (VBOX_WS_WIN) 48 48 49 49 struct EnumWindowsProcData … … 112 112 static WId FindWindowIdFromPid(ULONG aPid) 113 113 { 114 #if defined ( Q_WS_WIN)114 #if defined (VBOX_WS_WIN) 115 115 116 116 EnumWindowsProcData d = { aPid, (WId) ~0 }; … … 119 119 return d.wid; 120 120 121 #elif defined ( Q_WS_X11)121 #elif defined (VBOX_WS_X11) 122 122 123 123 NOREF(aPid); 124 124 return (WId) ~0; 125 125 126 #elif defined ( Q_WS_MAC)126 #elif defined (VBOX_WS_MAC) 127 127 128 128 /** @todo Figure out how to get access to another windows of another process... … … 321 321 bool UIVMItem::switchTo() 322 322 { 323 #ifdef Q_WS_MAC323 #ifdef VBOX_WS_MAC 324 324 ULONG64 id = m_machine.ShowConsoleWindow(); 325 325 #else … … 335 335 return true; 336 336 337 #if defined ( Q_WS_WIN) || defined (Q_WS_X11)337 #if defined (VBOX_WS_WIN) || defined (VBOX_WS_X11) 338 338 339 339 return vboxGlobal().activateWindow(id, true); 340 340 341 #elif defined ( Q_WS_MAC)341 #elif defined (VBOX_WS_MAC) 342 342 /* 343 343 * This is just for the case were the other process cannot steal … … 366 366 return false; 367 367 368 #if defined ( Q_WS_WIN)368 #if defined (VBOX_WS_WIN) 369 369 370 370 HWND hwnd = mWinId; … … 402 402 return true; 403 403 404 #elif defined ( Q_WS_X11)404 #elif defined (VBOX_WS_X11) 405 405 406 406 return false; 407 407 408 #elif defined ( Q_WS_MAC)408 #elif defined (VBOX_WS_MAC) 409 409 410 410 ProcessSerialNumber psn; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserHandlerKeyboard.cpp
r52730 r60362 74 74 75 75 /* Was control modifier pressed? */ 76 #ifdef Q_WS_MAC76 #ifdef VBOX_WS_MAC 77 77 if (pEvent->modifiers() & Qt::ControlModifier && 78 78 pEvent->modifiers() & Qt::KeypadModifier) 79 #else /* Q_WS_MAC */79 #else /* VBOX_WS_MAC */ 80 80 if (pEvent->modifiers() == Qt::ControlModifier) 81 #endif /* ! Q_WS_MAC */81 #endif /* !VBOX_WS_MAC */ 82 82 { 83 83 /* Shift item up: */ … … 87 87 88 88 /* Was shift modifier pressed? */ 89 #ifdef Q_WS_MAC89 #ifdef VBOX_WS_MAC 90 90 else if (pEvent->modifiers() & Qt::ShiftModifier && 91 91 pEvent->modifiers() & Qt::KeypadModifier) 92 #else /* Q_WS_MAC */92 #else /* VBOX_WS_MAC */ 93 93 else if (pEvent->modifiers() == Qt::ShiftModifier) 94 #endif /* ! Q_WS_MAC */94 #endif /* !VBOX_WS_MAC */ 95 95 { 96 96 /* Determine focus item position: */ … … 131 131 132 132 /* There is no modifiers pressed? */ 133 #ifdef Q_WS_MAC133 #ifdef VBOX_WS_MAC 134 134 else if (pEvent->modifiers() == Qt::KeypadModifier) 135 #else /* Q_WS_MAC */135 #else /* VBOX_WS_MAC */ 136 136 else if (pEvent->modifiers() == Qt::NoModifier) 137 #endif /* ! Q_WS_MAC */137 #endif /* !VBOX_WS_MAC */ 138 138 { 139 139 /* Determine focus item position: */ … … 171 171 172 172 /* Was control modifier pressed? */ 173 #ifdef Q_WS_MAC173 #ifdef VBOX_WS_MAC 174 174 if (pEvent->modifiers() & Qt::ControlModifier && 175 175 pEvent->modifiers() & Qt::KeypadModifier) 176 #else /* Q_WS_MAC */176 #else /* VBOX_WS_MAC */ 177 177 if (pEvent->modifiers() == Qt::ControlModifier) 178 #endif /* ! Q_WS_MAC */178 #endif /* !VBOX_WS_MAC */ 179 179 { 180 180 /* Shift item down: */ … … 184 184 185 185 /* Was shift modifier pressed? */ 186 #ifdef Q_WS_MAC186 #ifdef VBOX_WS_MAC 187 187 else if (pEvent->modifiers() & Qt::ShiftModifier && 188 188 pEvent->modifiers() & Qt::KeypadModifier) 189 #else /* Q_WS_MAC */189 #else /* VBOX_WS_MAC */ 190 190 else if (pEvent->modifiers() == Qt::ShiftModifier) 191 #endif /* ! Q_WS_MAC */191 #endif /* !VBOX_WS_MAC */ 192 192 { 193 193 /* Determine focus item position: */ … … 228 228 229 229 /* There is no modifiers pressed? */ 230 #ifdef Q_WS_MAC230 #ifdef VBOX_WS_MAC 231 231 else if (pEvent->modifiers() == Qt::KeypadModifier) 232 #else /* Q_WS_MAC */232 #else /* VBOX_WS_MAC */ 233 233 else if (pEvent->modifiers() == Qt::NoModifier) 234 #endif /* ! Q_WS_MAC */234 #endif /* !VBOX_WS_MAC */ 235 235 { 236 236 /* Determine focus item position: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r56012 r60362 1105 1105 1106 1106 /* Colors: */ 1107 #ifdef Q_WS_MAC1107 #ifdef VBOX_WS_MAC 1108 1108 m_iHighlightLightness = 115; 1109 1109 m_iHoverLightness = 110; 1110 1110 m_iHoverHighlightLightness = 120; 1111 #else /* Q_WS_MAC */1111 #else /* VBOX_WS_MAC */ 1112 1112 m_iHighlightLightness = 130; 1113 1113 m_iHoverLightness = 155; 1114 1114 m_iHoverHighlightLightness = 175; 1115 #endif /* ! Q_WS_MAC */1115 #endif /* !VBOX_WS_MAC */ 1116 1116 1117 1117 /* Fonts: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp
r58866 r60362 404 404 } 405 405 406 #ifdef Q_WS_MAC406 #ifdef VBOX_WS_MAC 407 407 /* Get 'Unscaled HiDPI Video Output' mode value: */ 408 408 const QString strUnscaledHiDPIMode = machine.GetExtraData(UIExtraDataDefs::GUI_HiDPI_UnscaledOutput); … … 418 418 QApplication::translate("UIGDetails", "Enabled", "details (display/Unscaled HiDPI Video Output)")); 419 419 } 420 #endif /* Q_WS_MAC */420 #endif /* VBOX_WS_MAC */ 421 421 422 422 QStringList acceleration; … … 855 855 if (machine.GetAccessible()) 856 856 { 857 #ifndef Q_WS_MAC857 #ifndef VBOX_WS_MAC 858 858 /* Get menu-bar availability status: */ 859 859 const QString strMenubarEnabled = machine.GetExtraData(UIExtraDataDefs::GUI_MenuBar_Enabled); … … 869 869 QApplication::translate("UIGDetails", "Disabled", "details (user interface/menu-bar)")); 870 870 } 871 #endif /* ! Q_WS_MAC */871 #endif /* !VBOX_WS_MAC */ 872 872 873 873 /* Get status-bar availability status: */ … … 885 885 } 886 886 887 #ifndef Q_WS_MAC887 #ifndef VBOX_WS_MAC 888 888 /* Get mini-toolbar availability status: */ 889 889 const QString strMiniToolbarEnabled = machine.GetExtraData(UIExtraDataDefs::GUI_ShowMiniToolBar); … … 921 921 QApplication::translate("UIGDetails", "Disabled", "details (user interface/mini-toolbar)")); 922 922 } 923 #endif /* ! Q_WS_MAC */923 #endif /* !VBOX_WS_MAC */ 924 924 } 925 925 else -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp
r59727 r60362 41 41 # include "UIIconPool.h" 42 42 # include "UIConverter.h" 43 # ifdef Q_WS_MAC43 # ifdef VBOX_WS_MAC 44 44 # include "VBoxUtils.h" 45 # endif /* Q_WS_MAC */45 # endif /* VBOX_WS_MAC */ 46 46 47 47 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 48 48 49 #ifdef Q_WS_MAC49 #ifdef VBOX_WS_MAC 50 50 # define VBOX_GUI_WITH_TOOLBAR_SETTINGS 51 #endif /* Q_WS_MAC */51 #endif /* VBOX_WS_MAC */ 52 52 53 53 /* Settings Dialog Constructor: */ … … 184 184 { 185 185 int index = m_pages[cId]; 186 #ifdef Q_WS_MAC186 #ifdef VBOX_WS_MAC 187 187 # if QT_VERSION < 0x050000 188 188 QSize cs = size(); … … 619 619 620 620 int iMinWidth = m_pSelector->minWidth(); 621 #ifdef Q_WS_MAC621 #ifdef VBOX_WS_MAC 622 622 /* Remove all title bar buttons (Buggy Qt): */ 623 623 ::darwinSetHidesAllTitleButtons(this); … … 689 689 690 690 sltCategoryChanged(m_pSelector->currentId()); 691 #else /* Q_WS_MAC */691 #else /* VBOX_WS_MAC */ 692 692 /* Resize to the minimum possible size: */ 693 693 QSize s = minimumSize(); … … 695 695 s.setWidth(iMinWidth); 696 696 resize(s); 697 #endif /* Q_WS_MAC */697 #endif /* VBOX_WS_MAC */ 698 698 } 699 699 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h
r55742 r60362 165 165 166 166 QMap<int, int> m_pages; 167 #ifdef Q_WS_MAC167 #ifdef VBOX_WS_MAC 168 168 QList<QSize> m_sizeList; 169 #endif /* Q_WS_MAC */169 #endif /* VBOX_WS_MAC */ 170 170 }; 171 171 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r59094 r60362 61 61 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 62 62 63 #ifdef Q_WS_MAC63 #ifdef VBOX_WS_MAC 64 64 # define VBOX_GUI_WITH_TOOLBAR_SETTINGS 65 #endif /* Q_WS_MAC */65 #endif /* VBOX_WS_MAC */ 66 66 67 67 UISettingsDialogGlobal::UISettingsDialogGlobal(QWidget *pParent, … … 71 71 { 72 72 /* Window icon: */ 73 #ifndef Q_WS_MAC73 #ifndef VBOX_WS_MAC 74 74 setWindowIcon(QIcon(":/global_settings_16px.png")); 75 #endif /* ! Q_WS_MAC */75 #endif /* !VBOX_WS_MAC */ 76 76 77 77 /* Creating settings pages: */ … … 323 323 { 324 324 /* Window icon: */ 325 #ifndef Q_WS_MAC325 #ifndef VBOX_WS_MAC 326 326 setWindowIcon(QIcon(":/vm_settings_16px.png")); 327 #endif /* Q_WS_MAC */327 #endif /* VBOX_WS_MAC */ 328 328 329 329 /* Allow to reset first-run flag just when medium enumeration was finished: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/VBoxSettingsSelector.cpp
r56217 r60362 393 393 mTbSelector->setUseTextLabels (true); 394 394 mTbSelector->setIconSize (QSize (32, 32)); 395 #ifdef Q_WS_MAC395 #ifdef VBOX_WS_MAC 396 396 mTbSelector->setShowToolBarButton (false); 397 #endif /* Q_WS_MAC */397 #endif /* VBOX_WS_MAC */ 398 398 /* Init the action group for house keeping */ 399 399 mActionGroup = new QActionGroup (this); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r58856 r60362 202 202 */ 203 203 QString displayInfo; 204 #ifdef Q_WS_WIN204 #ifdef VBOX_WS_WIN 205 205 if (pParent) 206 206 displayInfo.sprintf("hwnd=%#llx", (uint64_t)(uintptr_t)pParent->winId()); 207 #endif /* Q_WS_WIN */207 #endif /* VBOX_WS_WIN */ 208 208 /* Prepare installation progress: */ 209 209 CProgress progress = extPackFile.Install(fReplaceIt, displayInfo); … … 420 420 /** @todo Refuse this if any VMs are running. */ 421 421 QString displayInfo; 422 #ifdef Q_WS_WIN422 #ifdef VBOX_WS_WIN 423 423 displayInfo.sprintf("hwnd=%#llx", (uint64_t)(uintptr_t)this->winId()); 424 #endif /* Q_WS_WIN */424 #endif /* VBOX_WS_WIN */ 425 425 /* Prepare uninstallation progress: */ 426 426 CProgress progress = manager.Uninstall(strSelectedPackageName, false /* forced removal? */, displayInfo); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
r59076 r60362 67 67 m_pSelectorModel, SLOT(sltHandleFilterTextChange(const QString &))); 68 68 QVBoxLayout *pSelectorLayout = new QVBoxLayout(pSelectorTab); 69 #ifndef Q_WS_WIN69 #ifndef VBOX_WS_WIN 70 70 /* On Windows host that looks ugly, but 71 71 * On Mac OS X and X11 that deserves it's place. */ 72 72 pSelectorLayout->setContentsMargins(0, 0, 0, 0); 73 #endif /* ! Q_WS_WIN */73 #endif /* !VBOX_WS_WIN */ 74 74 pSelectorLayout->setSpacing(1); 75 75 pSelectorLayout->addWidget(m_pSelectorFilterEditor); … … 87 87 m_pMachineModel, SLOT(sltHandleFilterTextChange(const QString &))); 88 88 QVBoxLayout *pMachineLayout = new QVBoxLayout(pMachineTab); 89 #ifndef Q_WS_WIN89 #ifndef VBOX_WS_WIN 90 90 /* On Windows host that looks ugly, but 91 91 * On Mac OS X and X11 that deserves it's place. */ 92 92 pMachineLayout->setContentsMargins(0, 0, 0, 0); 93 #endif /* ! Q_WS_WIN */93 #endif /* !VBOX_WS_WIN */ 94 94 pMachineLayout->setSpacing(1); 95 95 pMachineLayout->addWidget(m_pMachineFilterEditor); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r58866 r60362 489 489 } 490 490 491 #ifndef Q_WS_WIN491 #ifndef VBOX_WS_WIN 492 492 /* On Windows host that looks ugly, but 493 493 * On Mac OS X and X11 that deserves it's place. */ 494 494 m_pLayoutNAT->setContentsMargins(0, 0, 0, 0); 495 495 m_pLayoutHostOnly->setContentsMargins(0, 0, 0, 0); 496 #endif /* ! Q_WS_WIN */496 #endif /* !VBOX_WS_WIN */ 497 497 498 498 /* Apply language settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsHost.cpp
r58455 r60362 43 43 m_pIPv6Editor->setFixedWidthByText(QString().fill('X', 32) + QString().fill(':', 7)); 44 44 45 #if 0 /* defined ( Q_WS_WIN) */45 #if 0 /* defined (VBOX_WS_WIN) */ 46 46 QStyleOption options1; 47 47 options1.initFrom(m_pEnableManualCheckbox); … … 98 98 /* Host Interface: */ 99 99 m_pEnableManualCheckbox->setChecked(!m_data.m_interface.m_fDhcpClientEnabled); 100 #if !0 /* !defined ( Q_WS_WIN) */100 #if !0 /* !defined (VBOX_WS_WIN) */ 101 101 /* Disable automatic for all hosts for now: */ 102 102 m_pEnableManualCheckbox->setChecked(true); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r57591 r60362 101 101 displayData.m_cGuestScreenCount = m_machine.GetMonitorCount(); 102 102 displayData.m_dScaleFactor = gEDataManager->scaleFactor(m_machine.GetId()); 103 #ifdef Q_WS_MAC103 #ifdef VBOX_WS_MAC 104 104 displayData.m_fUseUnscaledHiDPIOutput = gEDataManager->useUnscaledHiDPIOutput(m_machine.GetId()); 105 #endif /* Q_WS_MAC */105 #endif /* VBOX_WS_MAC */ 106 106 displayData.m_f3dAccelerationEnabled = m_machine.GetAccelerate3DEnabled(); 107 107 #ifdef VBOX_WITH_VIDEOHWACCEL … … 152 152 m_pEditorVideoScreenCount->setValue(displayData.m_cGuestScreenCount); 153 153 m_pEditorGuestScreenScale->setValue((int)(displayData.m_dScaleFactor * 100)); 154 #ifdef Q_WS_MAC154 #ifdef VBOX_WS_MAC 155 155 m_pCheckBoxUnscaledHiDPIOutput->setChecked(displayData.m_fUseUnscaledHiDPIOutput); 156 #endif /* Q_WS_MAC */156 #endif /* VBOX_WS_MAC */ 157 157 m_pCheckbox3D->setChecked(displayData.m_f3dAccelerationEnabled); 158 158 #ifdef VBOX_WITH_VIDEOHWACCEL … … 201 201 displayData.m_cGuestScreenCount = m_pEditorVideoScreenCount->value(); 202 202 displayData.m_dScaleFactor = (double)m_pEditorGuestScreenScale->value() / 100; 203 #ifdef Q_WS_MAC203 #ifdef VBOX_WS_MAC 204 204 displayData.m_fUseUnscaledHiDPIOutput = m_pCheckBoxUnscaledHiDPIOutput->isChecked(); 205 #endif /* Q_WS_MAC */205 #endif /* VBOX_WS_MAC */ 206 206 displayData.m_f3dAccelerationEnabled = m_pCheckbox3D->isChecked(); 207 207 #ifdef VBOX_WITH_VIDEOHWACCEL … … 259 259 { 260 260 gEDataManager->setScaleFactor(displayData.m_dScaleFactor, m_machine.GetId()); 261 #ifdef Q_WS_MAC261 #ifdef VBOX_WS_MAC 262 262 gEDataManager->setUseUnscaledHiDPIOutput(displayData.m_fUseUnscaledHiDPIOutput, m_machine.GetId()); 263 #endif /* Q_WS_MAC */263 #endif /* VBOX_WS_MAC */ 264 264 } 265 265 … … 537 537 m_pLabelGuestScreenScaleMax->setEnabled(isMachineInValidMode()); 538 538 m_pEditorGuestScreenScale->setEnabled(isMachineInValidMode()); 539 #ifdef Q_WS_MAC539 #ifdef VBOX_WS_MAC 540 540 m_pLabelHiDPI->setEnabled(isMachineInValidMode()); 541 541 m_pCheckBoxUnscaledHiDPIOutput->setEnabled(isMachineInValidMode()); 542 #else /* ! Q_WS_MAC */542 #else /* !VBOX_WS_MAC */ 543 543 m_pLabelHiDPI->hide(); 544 544 m_pCheckBoxUnscaledHiDPIOutput->hide(); 545 #endif /* ! Q_WS_MAC */545 #endif /* !VBOX_WS_MAC */ 546 546 m_pLabelVideoOptions->setEnabled(isMachineOffline()); 547 547 m_pCheckbox3D->setEnabled(isMachineOffline()); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r55719 r60362 37 37 , m_cGuestScreenCount(0) 38 38 , m_dScaleFactor(1.0) 39 #ifdef Q_WS_MAC39 #ifdef VBOX_WS_MAC 40 40 , m_fUseUnscaledHiDPIOutput(false) 41 #endif /* Q_WS_MAC */41 #endif /* VBOX_WS_MAC */ 42 42 , m_f3dAccelerationEnabled(false) 43 43 #ifdef VBOX_WITH_VIDEOHWACCEL … … 65 65 (m_cGuestScreenCount == other.m_cGuestScreenCount) && 66 66 (m_dScaleFactor == other.m_dScaleFactor) && 67 #ifdef Q_WS_MAC67 #ifdef VBOX_WS_MAC 68 68 (m_fUseUnscaledHiDPIOutput == other.m_fUseUnscaledHiDPIOutput) && 69 #endif /* Q_WS_MAC */69 #endif /* VBOX_WS_MAC */ 70 70 (m_f3dAccelerationEnabled == other.m_f3dAccelerationEnabled) && 71 71 #ifdef VBOX_WITH_VIDEOHWACCEL … … 95 95 int m_cGuestScreenCount; 96 96 double m_dScaleFactor; 97 #ifdef Q_WS_MAC97 #ifdef VBOX_WS_MAC 98 98 bool m_fUseUnscaledHiDPIOutput; 99 #endif /* Q_WS_MAC */99 #endif /* VBOX_WS_MAC */ 100 100 bool m_f3dAccelerationEnabled; 101 101 #ifdef VBOX_WITH_VIDEOHWACCEL -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r60125 r60362 553 553 { 554 554 /* Configure Description text editor: */ 555 #ifdef Q_WS_MAC555 #ifdef VBOX_WS_MAC 556 556 mTeDescription->setMinimumHeight(150); 557 #endif /* Q_WS_MAC */557 #endif /* VBOX_WS_MAC */ 558 558 } 559 559 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp
r56757 r60362 58 58 interfaceData.m_statusBarRestrictions = gEDataManager->restrictedStatusBarIndicators(m_machine.GetId()); 59 59 interfaceData.m_statusBarOrder = gEDataManager->statusBarIndicatorOrder(m_machine.GetId()); 60 #ifndef Q_WS_MAC60 #ifndef VBOX_WS_MAC 61 61 interfaceData.m_fMenuBarEnabled = gEDataManager->menuBarEnabled(m_machine.GetId()); 62 #endif /* ! Q_WS_MAC */62 #endif /* !VBOX_WS_MAC */ 63 63 interfaceData.m_restrictionsOfMenuBar = gEDataManager->restrictedRuntimeMenuTypes(m_machine.GetId()); 64 64 interfaceData.m_restrictionsOfMenuApplication = gEDataManager->restrictedRuntimeMenuApplicationActionTypes(m_machine.GetId()); … … 70 70 interfaceData.m_restrictionsOfMenuDebug = gEDataManager->restrictedRuntimeMenuDebuggerActionTypes(m_machine.GetId()); 71 71 #endif /* VBOX_WITH_DEBUGGER_GUI */ 72 #ifdef Q_WS_MAC72 #ifdef VBOX_WS_MAC 73 73 interfaceData.m_restrictionsOfMenuWindow = gEDataManager->restrictedRuntimeMenuWindowActionTypes(m_machine.GetId()); 74 #endif /* Q_WS_MAC */74 #endif /* VBOX_WS_MAC */ 75 75 interfaceData.m_restrictionsOfMenuHelp = gEDataManager->restrictedRuntimeMenuHelpActionTypes(m_machine.GetId()); 76 #ifndef Q_WS_MAC76 #ifndef VBOX_WS_MAC 77 77 interfaceData.m_fShowMiniToolBar = gEDataManager->miniToolbarEnabled(m_machine.GetId()); 78 78 interfaceData.m_fMiniToolBarAtTop = gEDataManager->miniToolbarAlignment(m_machine.GetId()) == Qt::AlignTop; 79 #endif /* ! Q_WS_MAC */79 #endif /* !VBOX_WS_MAC */ 80 80 81 81 /* Cache interface data: */ … … 97 97 m_pStatusBarEditor->setStatusBarConfiguration(interfaceData.m_statusBarRestrictions, 98 98 interfaceData.m_statusBarOrder); 99 #ifndef Q_WS_MAC99 #ifndef VBOX_WS_MAC 100 100 m_pMenuBarEditor->setMenuBarEnabled(interfaceData.m_fMenuBarEnabled); 101 #endif /* ! Q_WS_MAC */101 #endif /* !VBOX_WS_MAC */ 102 102 m_pMenuBarEditor->setRestrictionsOfMenuBar(interfaceData.m_restrictionsOfMenuBar); 103 103 m_pMenuBarEditor->setRestrictionsOfMenuApplication(interfaceData.m_restrictionsOfMenuApplication); … … 109 109 m_pMenuBarEditor->setRestrictionsOfMenuDebug(interfaceData.m_restrictionsOfMenuDebug); 110 110 #endif /* VBOX_WITH_DEBUGGER_GUI */ 111 #ifdef Q_WS_MAC111 #ifdef VBOX_WS_MAC 112 112 m_pMenuBarEditor->setRestrictionsOfMenuWindow(interfaceData.m_restrictionsOfMenuWindow); 113 #endif /* Q_WS_MAC */113 #endif /* VBOX_WS_MAC */ 114 114 m_pMenuBarEditor->setRestrictionsOfMenuHelp(interfaceData.m_restrictionsOfMenuHelp); 115 #ifndef Q_WS_MAC115 #ifndef VBOX_WS_MAC 116 116 m_pCheckBoxShowMiniToolBar->setChecked(interfaceData.m_fShowMiniToolBar); 117 117 m_pComboToolBarAlignment->setChecked(interfaceData.m_fMiniToolBarAtTop); 118 #endif /* ! Q_WS_MAC */118 #endif /* !VBOX_WS_MAC */ 119 119 120 120 /* Polish page finally: */ … … 136 136 interfaceData.m_statusBarRestrictions = m_pStatusBarEditor->statusBarIndicatorRestrictions(); 137 137 interfaceData.m_statusBarOrder = m_pStatusBarEditor->statusBarIndicatorOrder(); 138 #ifndef Q_WS_MAC138 #ifndef VBOX_WS_MAC 139 139 interfaceData.m_fMenuBarEnabled = m_pMenuBarEditor->isMenuBarEnabled(); 140 #endif /* ! Q_WS_MAC */140 #endif /* !VBOX_WS_MAC */ 141 141 interfaceData.m_restrictionsOfMenuBar = m_pMenuBarEditor->restrictionsOfMenuBar(); 142 142 interfaceData.m_restrictionsOfMenuApplication = m_pMenuBarEditor->restrictionsOfMenuApplication(); … … 148 148 interfaceData.m_restrictionsOfMenuDebug = m_pMenuBarEditor->restrictionsOfMenuDebug(); 149 149 #endif /* VBOX_WITH_DEBUGGER_GUI */ 150 #ifdef Q_WS_MAC150 #ifdef VBOX_WS_MAC 151 151 interfaceData.m_restrictionsOfMenuWindow = m_pMenuBarEditor->restrictionsOfMenuWindow(); 152 #endif /* Q_WS_MAC */152 #endif /* VBOX_WS_MAC */ 153 153 interfaceData.m_restrictionsOfMenuHelp = m_pMenuBarEditor->restrictionsOfMenuHelp(); 154 #ifndef Q_WS_MAC154 #ifndef VBOX_WS_MAC 155 155 interfaceData.m_fShowMiniToolBar = m_pCheckBoxShowMiniToolBar->isChecked(); 156 156 interfaceData.m_fMiniToolBarAtTop = m_pComboToolBarAlignment->isChecked(); 157 #endif /* ! Q_WS_MAC */157 #endif /* !VBOX_WS_MAC */ 158 158 159 159 /* Cache interface data: */ … … 180 180 gEDataManager->setRestrictedStatusBarIndicators(interfaceData.m_statusBarRestrictions, m_machine.GetId()); 181 181 gEDataManager->setStatusBarIndicatorOrder(interfaceData.m_statusBarOrder, m_machine.GetId()); 182 #ifndef Q_WS_MAC182 #ifndef VBOX_WS_MAC 183 183 gEDataManager->setMenuBarEnabled(interfaceData.m_fMenuBarEnabled, m_machine.GetId()); 184 #endif /* ! Q_WS_MAC */184 #endif /* !VBOX_WS_MAC */ 185 185 gEDataManager->setRestrictedRuntimeMenuTypes(interfaceData.m_restrictionsOfMenuBar, m_machine.GetId()); 186 186 gEDataManager->setRestrictedRuntimeMenuApplicationActionTypes(interfaceData.m_restrictionsOfMenuApplication, m_machine.GetId()); … … 192 192 gEDataManager->setRestrictedRuntimeMenuDebuggerActionTypes(interfaceData.m_restrictionsOfMenuDebug, m_machine.GetId()); 193 193 #endif /* VBOX_WITH_DEBUGGER_GUI */ 194 #ifdef Q_WS_MAC194 #ifdef VBOX_WS_MAC 195 195 gEDataManager->setRestrictedRuntimeMenuWindowActionTypes(interfaceData.m_restrictionsOfMenuWindow, m_machine.GetId()); 196 #endif /* Q_WS_MAC */196 #endif /* VBOX_WS_MAC */ 197 197 gEDataManager->setRestrictedRuntimeMenuHelpActionTypes(interfaceData.m_restrictionsOfMenuHelp, m_machine.GetId()); 198 #ifndef Q_WS_MAC198 #ifndef VBOX_WS_MAC 199 199 gEDataManager->setMiniToolbarEnabled(interfaceData.m_fShowMiniToolBar, m_machine.GetId()); 200 200 gEDataManager->setMiniToolbarAlignment(interfaceData.m_fMiniToolBarAtTop ? Qt::AlignTop : Qt::AlignBottom, m_machine.GetId()); 201 #endif /* ! Q_WS_MAC */201 #endif /* !VBOX_WS_MAC */ 202 202 } 203 203 } … … 224 224 /* Polish interface availability: */ 225 225 m_pMenuBarEditor->setEnabled(isMachineInValidMode()); 226 #ifdef Q_WS_MAC226 #ifdef VBOX_WS_MAC 227 227 m_pLabelMiniToolBar->hide(); 228 228 m_pCheckBoxShowMiniToolBar->hide(); 229 229 m_pComboToolBarAlignment->hide(); 230 #else /* ! Q_WS_MAC */230 #else /* !VBOX_WS_MAC */ 231 231 m_pLabelMiniToolBar->setEnabled(isMachineInValidMode()); 232 232 m_pCheckBoxShowMiniToolBar->setEnabled(isMachineInValidMode()); 233 233 m_pComboToolBarAlignment->setEnabled(isMachineInValidMode() && m_pCheckBoxShowMiniToolBar->isChecked()); 234 #endif /* ! Q_WS_MAC */234 #endif /* !VBOX_WS_MAC */ 235 235 m_pStatusBarEditor->setEnabled(isMachineInValidMode()); 236 236 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r56757 r60362 32 32 UIDataSettingsMachineInterface() 33 33 : m_fStatusBarEnabled(false) 34 #ifndef Q_WS_MAC34 #ifndef VBOX_WS_MAC 35 35 , m_fMenuBarEnabled(false) 36 #endif /* ! Q_WS_MAC */36 #endif /* !VBOX_WS_MAC */ 37 37 , m_restrictionsOfMenuBar(UIExtraDataMetaDefs::MenuType_Invalid) 38 38 , m_restrictionsOfMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_Invalid) … … 44 44 , m_restrictionsOfMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Invalid) 45 45 #endif /* VBOX_WITH_DEBUGGER_GUI */ 46 #ifdef Q_WS_MAC46 #ifdef VBOX_WS_MAC 47 47 , m_restrictionsOfMenuWindow(UIExtraDataMetaDefs::MenuWindowActionType_Invalid) 48 #endif /* Q_WS_MAC */48 #endif /* VBOX_WS_MAC */ 49 49 , m_restrictionsOfMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_Invalid) 50 #ifndef Q_WS_MAC50 #ifndef VBOX_WS_MAC 51 51 , m_fShowMiniToolBar(false) 52 52 , m_fMiniToolBarAtTop(false) 53 #endif /* ! Q_WS_MAC */53 #endif /* !VBOX_WS_MAC */ 54 54 {} 55 55 … … 60 60 && (m_statusBarRestrictions == other.m_statusBarRestrictions) 61 61 && (m_statusBarOrder == other.m_statusBarOrder) 62 #ifndef Q_WS_MAC62 #ifndef VBOX_WS_MAC 63 63 && (m_fMenuBarEnabled == other.m_fMenuBarEnabled) 64 #endif /* ! Q_WS_MAC */64 #endif /* !VBOX_WS_MAC */ 65 65 && (m_restrictionsOfMenuBar == other.m_restrictionsOfMenuBar) 66 66 && (m_restrictionsOfMenuApplication == other.m_restrictionsOfMenuApplication) … … 72 72 && (m_restrictionsOfMenuDebug == other.m_restrictionsOfMenuDebug) 73 73 #endif /* VBOX_WITH_DEBUGGER_GUI */ 74 #ifdef Q_WS_MAC74 #ifdef VBOX_WS_MAC 75 75 && (m_restrictionsOfMenuWindow == other.m_restrictionsOfMenuWindow) 76 #endif /* Q_WS_MAC */76 #endif /* VBOX_WS_MAC */ 77 77 && (m_restrictionsOfMenuHelp == other.m_restrictionsOfMenuHelp) 78 #ifndef Q_WS_MAC78 #ifndef VBOX_WS_MAC 79 79 && (m_fShowMiniToolBar == other.m_fShowMiniToolBar) 80 80 && (m_fMiniToolBarAtTop == other.m_fMiniToolBarAtTop) 81 #endif /* ! Q_WS_MAC */81 #endif /* !VBOX_WS_MAC */ 82 82 ; 83 83 } … … 91 91 QList<IndicatorType> m_statusBarRestrictions; 92 92 QList<IndicatorType> m_statusBarOrder; 93 #ifndef Q_WS_MAC93 #ifndef VBOX_WS_MAC 94 94 bool m_fMenuBarEnabled; 95 #endif /* ! Q_WS_MAC */95 #endif /* !VBOX_WS_MAC */ 96 96 UIExtraDataMetaDefs::MenuType m_restrictionsOfMenuBar; 97 97 UIExtraDataMetaDefs::MenuApplicationActionType m_restrictionsOfMenuApplication; … … 103 103 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType m_restrictionsOfMenuDebug; 104 104 #endif /* VBOX_WITH_DEBUGGER_GUI */ 105 #ifdef Q_WS_MAC105 #ifdef VBOX_WS_MAC 106 106 UIExtraDataMetaDefs::MenuWindowActionType m_restrictionsOfMenuWindow; 107 #endif /* Q_WS_MAC */107 #endif /* VBOX_WS_MAC */ 108 108 UIExtraDataMetaDefs::MenuHelpActionType m_restrictionsOfMenuHelp; 109 #ifndef Q_WS_MAC109 #ifndef VBOX_WS_MAC 110 110 bool m_fShowMiniToolBar; 111 111 bool m_fMiniToolBarAtTop; 112 #endif /* ! Q_WS_MAC */112 #endif /* !VBOX_WS_MAC */ 113 113 }; 114 114 typedef UISettingsCache<UIDataSettingsMachineInterface> UICacheSettingsMachineInterface; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.cpp
r52730 r60362 64 64 adjustSize(); 65 65 66 #ifdef Q_WS_MAC66 #ifdef VBOX_WS_MAC 67 67 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 68 68 setFixedSize(minimumSize()); 69 #endif /* Q_WS_MAC */69 #endif /* VBOX_WS_MAC */ 70 70 } 71 71 … … 156 156 157 157 QString strFolderName(mPsPath->path()); 158 #if defined ( Q_WS_WIN) || defined (Q_OS_OS2)158 #if defined (VBOX_WS_WIN) || defined (Q_OS_OS2) 159 159 if (strFolderName[0].isLetter() && strFolderName[1] == ':' && strFolderName[2] == 0) 160 160 { … … 164 164 mPsPath->setPath(strFolderName); 165 165 } 166 #endif /* Q_WS_WIN || Q_OS_OS2 */166 #endif /* VBOX_WS_WIN || Q_OS_OS2 */ 167 167 QDir folder(strFolderName); 168 168 if (!folder.isRoot()) … … 174 174 { 175 175 /* Processing root folder: */ 176 #if defined ( Q_WS_WIN) || defined (Q_OS_OS2)176 #if defined (VBOX_WS_WIN) || defined (Q_OS_OS2) 177 177 mLeName->setText(strFolderName.toUpper()[0] + "_DRIVE"); 178 #elif defined ( Q_WS_X11)178 #elif defined (VBOX_WS_X11) 179 179 mLeName->setText("ROOT"); 180 180 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r58968 r60362 2075 2075 mTbStorageBar->addAction (mDelCtrAction); 2076 2076 2077 #ifdef Q_WS_MAC2077 #ifdef VBOX_WS_MAC 2078 2078 /* We need a little more space for the focus rect. */ 2079 2079 mLtStorage->setContentsMargins (3, 0, 3, 0); 2080 2080 mLtStorage->setSpacing (3); 2081 #endif /* Q_WS_MAC */2081 #endif /* VBOX_WS_MAC */ 2082 2082 2083 2083 /* Setup choose-medium button: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r58968 r60362 20 20 21 21 /* Qt includes: */ 22 #include <QtGlobal> /* for Q_WS_MAC */23 #ifdef Q_WS_MAC22 #include <QtGlobal> /* for VBOX_WS_MAC */ 23 #ifdef VBOX_WS_MAC 24 24 /* Somewhere Carbon.h includes AssertMacros.h which defines the macro "check". 25 25 * In QItemDelegate a class method is called "check" also. As we not used the 26 26 * macro undefine it here. */ 27 27 # undef check 28 #endif /* Q_WS_MAC */28 #endif /* VBOX_WS_MAC */ 29 29 #include <QItemDelegate> 30 30 #include <QPointer> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r59877 r60362 617 617 mTbBootItemUp->setIcon(UIIconPool::iconSet(":/list_moveup_16px.png", ":/list_moveup_disabled_16px.png")); 618 618 mTbBootItemDown->setIcon(UIIconPool::iconSet(":/list_movedown_16px.png", ":/list_movedown_disabled_16px.png")); 619 #ifdef Q_WS_MAC619 #ifdef VBOX_WS_MAC 620 620 /* We need a little space for the focus rect: */ 621 621 m_pLayoutBootOrder->setContentsMargins(3, 3, 3, 3); 622 622 m_pLayoutBootOrder->setSpacing(3); 623 #endif /* Q_WS_MAC */623 #endif /* VBOX_WS_MAC */ 624 624 /* Install global event filter 625 625 * to handle boot-table focus in/out events: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r59092 r60362 397 397 * the button hasn't a rectangle shape. This prevents the 398 398 * display of parts from the current text on the Mac. */ 399 #ifdef Q_WS_MAC399 #ifdef VBOX_WS_MAC 400 400 /* Use the palette from the tree view, not the one from the 401 401 * editor. */ … … 403 403 p.setBrush(QPalette::Highlight, pParent->palette().brush(QPalette::Highlight)); 404 404 e->setPalette(p); 405 #endif /* Q_WS_MAC */405 #endif /* VBOX_WS_MAC */ 406 406 e->setAutoFillBackground(true); 407 407 e->setBackgroundRole(QPalette::Highlight); … … 999 999 } 1000 1000 1001 #ifdef Q_WS_MAC1001 #ifdef VBOX_WS_MAC 1002 1002 bool VirtualSystemDelegate::eventFilter(QObject *pObject, QEvent *pEvent) 1003 1003 { … … 1018 1018 return QItemDelegate::eventFilter(pObject, pEvent); 1019 1019 } 1020 #endif /* Q_WS_MAC */1020 #endif /* VBOX_WS_MAC */ 1021 1021 1022 1022 //////////////////////////////////////////////////////////////////////////////// -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.h
r59092 r60362 210 210 { 211 211 QSize size = QItemDelegate::sizeHint(styleOption, idx); 212 #ifdef Q_WS_MAC212 #ifdef VBOX_WS_MAC 213 213 int h = 28; 214 #else /* Q_WS_MAC */214 #else /* VBOX_WS_MAC */ 215 215 int h = 24; 216 #endif /* Q_WS_MAC */216 #endif /* VBOX_WS_MAC */ 217 217 size.setHeight(RT_MAX(h, size.height())); 218 218 return size; … … 221 221 protected: 222 222 223 #ifdef Q_WS_MAC223 #ifdef VBOX_WS_MAC 224 224 bool eventFilter(QObject *pObject, QEvent *pEvent); 225 #endif /* Q_WS_MAC */225 #endif /* VBOX_WS_MAC */ 226 226 227 227 private: -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIBar.cpp
r52730 r60362 68 68 painter.setClipRect(pEvent->rect()); 69 69 70 #ifdef Q_WS_MAC70 #ifdef VBOX_WS_MAC 71 71 paintContentDarwin(&painter); 72 #else /* Q_WS_MAC */72 #else /* VBOX_WS_MAC */ 73 73 paintContent(&painter); 74 #endif /* ! Q_WS_MAC */74 #endif /* !VBOX_WS_MAC */ 75 75 } 76 76 77 #ifdef Q_WS_MAC77 #ifdef VBOX_WS_MAC 78 78 79 79 void UIBar::paintContentDarwin(QPainter *pPainter) … … 92 92 } 93 93 94 #else /* Q_WS_MAC */94 #else /* VBOX_WS_MAC */ 95 95 96 96 void UIBar::paintContent(QPainter *pPainter) … … 113 113 } 114 114 115 #endif /* ! Q_WS_MAC */115 #endif /* !VBOX_WS_MAC */ 116 116 117 117 UIMainBar::UIMainBar(QWidget *pParent /* = 0 */) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIBar.h
r55401 r60362 38 38 void paintEvent(QPaintEvent *pEvent); 39 39 40 #ifdef Q_WS_MAC40 #ifdef VBOX_WS_MAC 41 41 void paintContentDarwin(QPainter *pPainter); 42 #else /* Q_WS_MAC */42 #else /* VBOX_WS_MAC */ 43 43 void paintContent(QPainter *pPainter); 44 #endif /* ! Q_WS_MAC */44 #endif /* !VBOX_WS_MAC */ 45 45 46 46 private: -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.cpp
r56108 r60362 167 167 168 168 /* Configure layout: */ 169 #ifdef Q_WS_MAC169 #ifdef VBOX_WS_MAC 170 170 m_pMainLayout->setContentsMargins(10, 10, 15, 10); 171 #else /* Q_WS_MAC */171 #else /* VBOX_WS_MAC */ 172 172 m_pMainLayout->setContentsMargins(10, 10, 10, 10); 173 #endif /* ! Q_WS_MAC */173 #endif /* !VBOX_WS_MAC */ 174 174 175 175 /* Add strech: */ … … 185 185 /* Configure font: */ 186 186 QFont currentFont = m_pCheckBox->font(); 187 #ifdef Q_WS_MAC187 #ifdef VBOX_WS_MAC 188 188 currentFont.setPointSize(currentFont.pointSize() - 2); 189 #else /* Q_WS_MAC */189 #else /* VBOX_WS_MAC */ 190 190 currentFont.setPointSize(currentFont.pointSize() - 1); 191 #endif /* ! Q_WS_MAC */191 #endif /* !VBOX_WS_MAC */ 192 192 m_pCheckBox->setFont(currentFont); 193 193 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp
r60077 r60362 26 26 # include <QStylePainter> 27 27 # include <QTimer> 28 # ifdef Q_WS_X1128 # ifdef VBOX_WS_X11 29 29 # include <QX11Info> 30 # endif /* Q_WS_X11 */30 # endif /* VBOX_WS_X11 */ 31 31 32 32 /* GUI includes: */ … … 36 36 # include "VBoxGlobal.h" 37 37 # include "QIToolButton.h" 38 # ifdef Q_WS_MAC38 # ifdef VBOX_WS_MAC 39 39 # include "UICocoaApplication.h" 40 40 # include "VBoxUtils-darwin.h" 41 # endif /* Q_WS_MAC */41 # endif /* VBOX_WS_MAC */ 42 42 43 43 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 44 44 45 45 /* Qt includes: */ 46 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)46 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 47 47 # if QT_VERSION >= 0x050000 48 48 # include <QAbstractNativeEventFilter> 49 49 # endif /* QT_VERSION >= 0x050000 */ 50 #endif /* Q_WS_MAC || Q_WS_WIN */50 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 51 51 52 52 /* GUI includes: */ 53 #if defined( Q_WS_MAC)53 #if defined(VBOX_WS_MAC) 54 54 # include "DarwinKeyboard.h" 55 #elif defined( Q_WS_WIN)55 #elif defined(VBOX_WS_WIN) 56 56 # include "WinKeyboard.h" 57 #elif defined( Q_WS_X11)57 #elif defined(VBOX_WS_X11) 58 58 # include "XKeyboard.h" 59 #endif /* Q_WS_X11 */59 #endif /* VBOX_WS_X11 */ 60 60 61 61 /* External includes: */ 62 #if defined( Q_WS_MAC)62 #if defined(VBOX_WS_MAC) 63 63 # include <Carbon/Carbon.h> 64 #elif defined( Q_WS_X11)64 #elif defined(VBOX_WS_X11) 65 65 # include <X11/Xlib.h> 66 66 # include <X11/Xutil.h> … … 76 76 # endif /* KeyPress */ 77 77 # endif /* QT_VERSION < 0x050000 */ 78 #endif /* Q_WS_X11 */78 #endif /* VBOX_WS_X11 */ 79 79 80 80 /* Namespaces: */ … … 82 82 83 83 84 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)84 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 85 85 # if QT_VERSION >= 0x050000 86 86 /** QAbstractNativeEventFilter extension … … 115 115 }; 116 116 # endif /* QT_VERSION >= 0x050000 */ 117 #endif /* Q_WS_MAC || Q_WS_WIN */117 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 118 118 119 119 … … 122 122 *********************************************************************************************************************************/ 123 123 124 #ifdef Q_WS_X11124 #ifdef VBOX_WS_X11 125 125 namespace UINativeHotKey 126 126 { 127 127 QMap<QString, QString> m_keyNames; 128 128 } 129 #endif /* Q_WS_X11 */129 #endif /* VBOX_WS_X11 */ 130 130 131 131 QString UINativeHotKey::toString(int iKeyCode) … … 133 133 QString strKeyName; 134 134 135 #if defined( Q_WS_MAC)135 #if defined(VBOX_WS_MAC) 136 136 137 137 UInt32 modMask = DarwinKeyCodeToDarwinModifierMask(iKeyCode); … … 173 173 } 174 174 175 #elif defined( Q_WS_WIN)175 #elif defined(VBOX_WS_WIN) 176 176 177 177 /* MapVirtualKey doesn't distinguish between right and left vkeys, … … 206 206 delete[] pKeyName; 207 207 208 #elif defined( Q_WS_X11)208 #elif defined(VBOX_WS_X11) 209 209 210 210 if (char *pNativeKeyName = ::XKeysymToString((KeySym)iKeyCode)) … … 230 230 bool UINativeHotKey::isValidKey(int iKeyCode) 231 231 { 232 #if defined( Q_WS_MAC)232 #if defined(VBOX_WS_MAC) 233 233 234 234 UInt32 modMask = ::DarwinKeyCodeToDarwinModifierMask(iKeyCode); … … 248 248 } 249 249 250 #elif defined( Q_WS_WIN)250 #elif defined(VBOX_WS_WIN) 251 251 252 252 return ((iKeyCode >= VK_SHIFT && iKeyCode <= VK_CAPITAL) || … … 258 258 iKeyCode == VK_PRINT); 259 259 260 #elif defined( Q_WS_X11)260 #elif defined(VBOX_WS_X11) 261 261 262 262 return (IsModifierKey(iKeyCode) /* allow modifiers */ || … … 276 276 } 277 277 278 #if defined( Q_WS_WIN)278 #if defined(VBOX_WS_WIN) 279 279 280 280 int UINativeHotKey::distinguishModifierVKey(int wParam, int lParam) … … 317 317 } 318 318 319 #elif defined( Q_WS_X11)319 #elif defined(VBOX_WS_X11) 320 320 321 321 void UINativeHotKey::retranslateKeyNames() … … 335 335 } 336 336 337 #endif /* Q_WS_X11 */337 #endif /* VBOX_WS_X11 */ 338 338 339 339 … … 470 470 : m_pReleaseTimer(0) 471 471 , m_fStartNewSequence(true) 472 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)472 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 473 473 # if QT_VERSION >= 0x050000 474 474 , m_pPrivateEventFilter(0) 475 475 # endif /* QT_VERSION >= 0x050000 */ 476 #endif /* Q_WS_MAC || Q_WS_WIN */477 #ifdef Q_WS_WIN476 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 477 #ifdef VBOX_WS_WIN 478 478 , m_pAltGrMonitor(0) 479 #endif /* Q_WS_WIN */479 #endif /* VBOX_WS_WIN */ 480 480 { 481 481 /* Configure widget: */ … … 490 490 connect(m_pReleaseTimer, SIGNAL(timeout()), this, SLOT(sltReleasePendingKeys())); 491 491 492 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)492 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 493 493 # if QT_VERSION >= 0x050000 494 494 /* Prepare private event filter: */ … … 496 496 qApp->installNativeEventFilter(m_pPrivateEventFilter); 497 497 # endif /* QT_VERSION >= 0x050000 */ 498 #endif /* Q_WS_MAC || Q_WS_WIN */499 500 #if defined( Q_WS_MAC)498 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 499 500 #if defined(VBOX_WS_MAC) 501 501 m_uDarwinKeyModifiers = 0; 502 502 # if QT_VERSION < 0x050000 … … 504 504 ::DarwinGrabKeyboard(false /* just modifiers */); 505 505 # endif /* QT_VERSION < 0x050000 */ 506 #elif defined( Q_WS_WIN)506 #elif defined(VBOX_WS_WIN) 507 507 /* Prepare AltGR monitor: */ 508 508 m_pAltGrMonitor = new WinAltGrMonitor; 509 #elif defined( Q_WS_X11)509 #elif defined(VBOX_WS_X11) 510 510 /* Initialize the X keyboard subsystem: */ 511 511 initMappedX11Keyboard(QX11Info::display(), vboxGlobal().settings().publicProperty("GUI/RemapScancodes")); 512 #endif /* Q_WS_X11 */512 #endif /* VBOX_WS_X11 */ 513 513 } 514 514 515 515 UIHostComboEditorPrivate::~UIHostComboEditorPrivate() 516 516 { 517 #if defined( Q_WS_MAC)517 #if defined(VBOX_WS_MAC) 518 518 # if QT_VERSION < 0x050000 519 519 ::DarwinReleaseKeyboard(); 520 520 UICocoaApplication::instance()->unregisterForNativeEvents(RT_BIT_32(10) | RT_BIT_32(11) | RT_BIT_32(12) /* NSKeyDown | NSKeyUp | | NSFlagsChanged */, UIHostComboEditorPrivate::darwinEventHandlerProc, this); 521 521 # endif /* QT_VERSION < 0x050000 */ 522 #elif defined( Q_WS_WIN)522 #elif defined(VBOX_WS_WIN) 523 523 /* Cleanup AltGR monitor: */ 524 524 delete m_pAltGrMonitor; 525 525 m_pAltGrMonitor = 0; 526 #endif /* Q_WS_WIN */527 528 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)526 #endif /* VBOX_WS_WIN */ 527 528 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 529 529 # if QT_VERSION >= 0x050000 530 530 /* Cleanup private event filter: */ … … 533 533 m_pPrivateEventFilter = 0; 534 534 # endif /* QT_VERSION >= 0x050000 */ 535 #endif /* Q_WS_MAC || Q_WS_WIN */535 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 536 536 } 537 537 … … 581 581 bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult) 582 582 { 583 # if defined( Q_WS_MAC)583 # if defined(VBOX_WS_MAC) 584 584 585 585 /* Make sure it's generic NSEvent: */ … … 637 637 } 638 638 639 # elif defined( Q_WS_WIN)639 # elif defined(VBOX_WS_WIN) 640 640 641 641 /* Make sure it's generic MSG event: */ … … 685 685 } 686 686 687 # elif defined( Q_WS_X11)687 # elif defined(VBOX_WS_X11) 688 688 //# pragma GCC diagnostic push 689 689 //# pragma GCC diagnostic ignored "-Wdeprecated-declarations" … … 728 728 #else /* QT_VERSION < 0x050000 */ 729 729 730 # if defined( Q_WS_MAC)730 # if defined(VBOX_WS_MAC) 731 731 732 732 /* static */ … … 786 786 } 787 787 788 # elif defined( Q_WS_WIN)788 # elif defined(VBOX_WS_WIN) 789 789 790 790 bool UIHostComboEditorPrivate::winEvent(MSG *pMsg, long* /* pResult */) … … 830 830 } 831 831 832 # elif defined( Q_WS_X11)832 # elif defined(VBOX_WS_X11) 833 833 # if RT_GNUC_PREREQ(4, 6) 834 834 # pragma GCC diagnostic push … … 862 862 # pragma GCC diagnostic pop 863 863 # endif 864 # endif /* Q_WS_X11 */864 # endif /* VBOX_WS_X11 */ 865 865 866 866 #endif /* QT_VERSION < 0x050000 */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.h
r59743 r60362 31 31 class QIToolButton; 32 32 class UIHostComboEditorPrivate; 33 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)33 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 34 34 # if QT_VERSION >= 0x050000 35 35 class ComboEditorEventFilter; 36 36 # endif /* QT_VERSION >= 0x050000 */ 37 #endif /* Q_WS_MAC || Q_WS_WIN */38 #ifdef Q_WS_WIN37 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 38 #ifdef VBOX_WS_WIN 39 39 class WinAltGrMonitor; 40 #endif /* Q_WS_WIN */40 #endif /* VBOX_WS_WIN */ 41 41 42 42 … … 47 47 QString toString(int iKeyCode); 48 48 bool isValidKey(int iKeyCode); 49 #if defined( Q_WS_WIN)49 #if defined(VBOX_WS_WIN) 50 50 int distinguishModifierVKey(int wParam, int lParam); 51 #elif defined( Q_WS_X11)51 #elif defined(VBOX_WS_X11) 52 52 void retranslateKeyNames(); 53 #endif /* Q_WS_X11 */53 #endif /* VBOX_WS_X11 */ 54 54 } 55 55 … … 152 152 bool nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult); 153 153 #else /* QT_VERSION < 0x050000 */ 154 # if defined( Q_WS_MAC)154 # if defined(VBOX_WS_MAC) 155 155 /** Mac: Qt4: Handles all native events (static callback). */ 156 156 static bool darwinEventHandlerProc(const void *pvCocoaEvent, const void *pvCarbonEvent, void *pvUser); 157 157 /** Mac: Qt4: Handles all native events. */ 158 158 bool darwinKeyboardEvent(const void *pvCocoaEvent, EventRef inEvent); 159 # elif defined( Q_WS_WIN)159 # elif defined(VBOX_WS_WIN) 160 160 /** Win: Qt4: Handles all native events. */ 161 161 bool winEvent(MSG *pMsg, long *pResult); 162 # elif defined( Q_WS_X11)162 # elif defined(VBOX_WS_X11) 163 163 /** X11: Qt4: Handles all native events. */ 164 164 bool x11Event(XEvent *pEvent); 165 # endif /* Q_WS_X11 */165 # endif /* VBOX_WS_X11 */ 166 166 #endif /* QT_VERSION < 0x050000 */ 167 167 … … 187 187 bool m_fStartNewSequence; 188 188 189 #if defined( Q_WS_MAC) || defined(Q_WS_WIN)189 #if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN) 190 190 # if QT_VERSION >= 0x050000 191 191 /** Mac, Win: Holds the native event filter instance. */ … … 195 195 friend class ComboEditorEventFilter; 196 196 # endif /* QT_VERSION >= 0x050000 */ 197 #endif /* Q_WS_MAC || Q_WS_WIN */198 199 #if defined( Q_WS_MAC)197 #endif /* VBOX_WS_MAC || VBOX_WS_WIN */ 198 199 #if defined(VBOX_WS_MAC) 200 200 /** Mac: Holds the current modifier key mask. Used to figure out which modifier 201 201 * key was pressed when we get a kEventRawKeyModifiersChanged event. */ 202 202 uint32_t m_uDarwinKeyModifiers; 203 #elif defined( Q_WS_WIN)203 #elif defined(VBOX_WS_WIN) 204 204 /** Win: Holds the object monitoring key event 205 205 * stream for problematic AltGr events. */ 206 206 WinAltGrMonitor *m_pAltGrMonitor; 207 #endif /* Q_WS_WIN */207 #endif /* VBOX_WS_WIN */ 208 208 }; 209 209 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r58880 r60362 272 272 273 273 /* Left margin: */ 274 #ifdef Q_WS_X11274 #ifdef VBOX_WS_X11 275 275 if (vboxGlobal().isCompositingManagerRunning()) 276 276 m_spacings << widgetForAction(addWidget(new QWidget)); 277 #else /* ! Q_WS_X11 */277 #else /* !VBOX_WS_X11 */ 278 278 m_spacings << widgetForAction(addWidget(new QWidget)); 279 #endif /* ! Q_WS_X11 */279 #endif /* !VBOX_WS_X11 */ 280 280 281 281 /* Prepare push-pin: */ … … 327 327 328 328 /* Right margin: */ 329 #ifdef Q_WS_X11329 #ifdef VBOX_WS_X11 330 330 if (vboxGlobal().isCompositingManagerRunning()) 331 331 m_spacings << widgetForAction(addWidget(new QWidget)); 332 #else /* ! Q_WS_X11 */332 #else /* !VBOX_WS_X11 */ 333 333 m_spacings << widgetForAction(addWidget(new QWidget)); 334 #endif /* ! Q_WS_X11 */334 #endif /* !VBOX_WS_X11 */ 335 335 336 336 /* Resize to sizehint: */ … … 340 340 void UIMiniToolBarPrivate::rebuildShape() 341 341 { 342 #ifdef Q_WS_X11342 #ifdef VBOX_WS_X11 343 343 if (!vboxGlobal().isCompositingManagerRunning()) 344 344 return; 345 #endif /* Q_WS_X11 */345 #endif /* VBOX_WS_X11 */ 346 346 347 347 /* Rebuild shape: */ … … 496 496 m_pEmbeddedToolbar->move(m_hiddenToolbarPosition); 497 497 498 #ifdef Q_WS_X11498 #ifdef VBOX_WS_X11 499 499 /* Adjust window mask: */ 500 500 setMask(m_pEmbeddedToolbar->geometry()); 501 #endif /* Q_WS_X11 */501 #endif /* VBOX_WS_X11 */ 502 502 503 503 /* Simulate toolbar auto-hiding: */ … … 543 543 installEventFilter(this); 544 544 545 #if defined( Q_WS_WIN)545 #if defined(VBOX_WS_WIN) 546 546 /* No background until first paint-event: */ 547 547 setAttribute(Qt::WA_NoSystemBackground); 548 548 /* Enable translucency through Qt API: */ 549 549 setAttribute(Qt::WA_TranslucentBackground); 550 #elif defined( Q_WS_X11)550 #elif defined(VBOX_WS_X11) 551 551 /* Enable translucency through Qt API if supported: */ 552 552 if (vboxGlobal().isCompositingManagerRunning()) 553 553 setAttribute(Qt::WA_TranslucentBackground); 554 #endif /* Q_WS_X11 */554 #endif /* VBOX_WS_X11 */ 555 555 556 556 /* Make sure we have no focus: */ … … 676 676 if (pWatched == this && pEvent->type() == QEvent::WindowActivate) 677 677 { 678 #if defined( Q_WS_WIN)678 #if defined(VBOX_WS_WIN) 679 679 emit sigNotifyAboutWindowActivationStolen(); 680 #elif defined( Q_WS_X11)680 #elif defined(VBOX_WS_X11) 681 681 switch (vboxGlobal().typeOfWindowManager()) 682 682 { … … 698 698 } 699 699 } 700 #endif /* Q_WS_X11 */700 #endif /* VBOX_WS_X11 */ 701 701 } 702 702 … … 725 725 m_pEmbeddedToolbar->move(point); 726 726 727 #ifdef Q_WS_X11727 #ifdef VBOX_WS_X11 728 728 /* Update window mask: */ 729 729 setMask(m_pEmbeddedToolbar->geometry()); 730 #endif /* Q_WS_X11 */730 #endif /* VBOX_WS_X11 */ 731 731 } 732 732 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.cpp
r56039 r60362 30 30 /* GUI includes: */ 31 31 # include "UIPopupBox.h" 32 # ifdef Q_WS_MAC32 # ifdef VBOX_WS_MAC 33 33 # include "UIImageTools.h" 34 # endif /* Q_WS_MAC */34 # endif /* VBOX_WS_MAC */ 35 35 36 36 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneTextPane.cpp
r52730 r60362 198 198 QFont UIPopupPaneTextPane::tuneFont(QFont font) 199 199 { 200 #if defined( Q_WS_MAC)200 #if defined(VBOX_WS_MAC) 201 201 font.setPointSize(font.pointSize() - 2); 202 #elif defined( Q_WS_X11)202 #elif defined(VBOX_WS_X11) 203 203 font.setPointSize(font.pointSize() - 1); 204 204 #endif -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp
r57880 r60362 187 187 /* Configure background: */ 188 188 setAutoFillBackground(false); 189 #if defined( Q_WS_WIN) || defined (Q_WS_MAC)189 #if defined(VBOX_WS_WIN) || defined (VBOX_WS_MAC) 190 190 /* Using Qt API to enable translucent background for the Win/Mac host. 191 191 * - Under x11 host Qt 4.8.3 has it broken wih KDE 4.9 for now: */ 192 192 setAttribute(Qt::WA_TranslucentBackground); 193 #endif /* Q_WS_WIN || Q_WS_MAC */194 195 #ifdef Q_WS_MAC193 #endif /* VBOX_WS_WIN || VBOX_WS_MAC */ 194 195 #ifdef VBOX_WS_MAC 196 196 /* Do not hide popup-stack 197 197 * and actually the seamless machine-window too 198 198 * due to Qt bug on window deactivation... */ 199 199 setAttribute(Qt::WA_MacAlwaysShowToolWindow); 200 #endif /* Q_WS_MAC */200 #endif /* VBOX_WS_MAC */ 201 201 202 202 /* Prepare content: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp
r60171 r60362 580 580 { 581 581 /* Configure layout: */ 582 #ifndef Q_WS_WIN582 #ifndef VBOX_WS_WIN 583 583 /* On Windows host that looks ugly, but 584 584 * On Mac OS X and X11 that deserves it's place. */ 585 585 pMainLayout->setContentsMargins(0, 0, 0, 0); 586 #endif /* ! Q_WS_WIN */586 #endif /* !VBOX_WS_WIN */ 587 587 pMainLayout->setSpacing(3); 588 588 /* Create model: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp
r56495 r60362 36 36 # include "QILabel.h" 37 37 # include "VBoxGlobal.h" 38 # ifdef Q_WS_MAC38 # ifdef VBOX_WS_MAC 39 39 # include "VBoxUtils-darwin.h" 40 # endif /* Q_WS_MAC */40 # endif /* VBOX_WS_MAC */ 41 41 42 42 /* COM includes: */ … … 68 68 QHBoxLayout *pMainLayout = new QHBoxLayout(this); 69 69 70 #ifdef Q_WS_MAC70 #ifdef VBOX_WS_MAC 71 71 ::darwinSetHidesAllTitleButtons(this); 72 72 if (pImage) … … 74 74 else 75 75 pMainLayout->setContentsMargins(6, 6, 6, 6); 76 #endif /* Q_WS_MAC */76 #endif /* VBOX_WS_MAC */ 77 77 78 78 /* Create image: */ … … 159 159 * Apple there is no busy window behavior. A window should always be 160 160 * responsive and it is in our case (We show the progress dialog bar). */ 161 #ifndef Q_WS_MAC161 #ifndef VBOX_WS_MAC 162 162 if (m_fCancelEnabled) 163 163 QApplication::setOverrideCursor(QCursor(Qt::BusyCursor)); 164 164 else 165 165 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 166 #endif /* Q_WS_MAC */166 #endif /* VBOX_WS_MAC */ 167 167 168 168 /* Create a local event-loop: */ … … 183 183 killTimer(id); 184 184 185 #ifndef Q_WS_MAC185 #ifndef VBOX_WS_MAC 186 186 /* Reset the busy cursor */ 187 187 QApplication::restoreOverrideCursor(); 188 #endif /* Q_WS_MAC */188 #endif /* VBOX_WS_MAC */ 189 189 190 190 return result(); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.cpp
r54539 r60362 149 149 : QIWithRetranslateUI<QPushButton>(pParent) 150 150 { 151 #ifdef Q_WS_MAC151 #ifdef VBOX_WS_MAC 152 152 m_pButtonPressed = false; 153 153 m_pNormalPixmap = new QPixmap(":/help_button_normal_mac_22px.png"); … … 159 159 m_size.width(), 160 160 m_size.height()); 161 #endif /* Q_WS_MAC */161 #endif /* VBOX_WS_MAC */ 162 162 /* Applying language settings */ 163 163 retranslateUi(); … … 183 183 } 184 184 185 #ifdef Q_WS_MAC185 #ifdef VBOX_WS_MAC 186 186 UIHelpButton::~UIHelpButton() 187 187 { … … 233 233 update(); 234 234 } 235 #endif /* Q_WS_MAC */235 #endif /* VBOX_WS_MAC */ 236 236 237 237 /******************************************************************************** -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.h
r55401 r60362 187 187 public: 188 188 UIHelpButton(QWidget *pParent = 0); 189 #ifdef Q_WS_MAC189 #ifdef VBOX_WS_MAC 190 190 ~UIHelpButton(); 191 191 QSize sizeHint() const; 192 #endif /* Q_WS_MAC */192 #endif /* VBOX_WS_MAC */ 193 193 194 194 void initFrom(QPushButton *pOther); … … 197 197 void retranslateUi(); 198 198 199 #ifdef Q_WS_MAC199 #ifdef VBOX_WS_MAC 200 200 void paintEvent(QPaintEvent *pEvent); 201 201 … … 215 215 QImage *m_pMask; 216 216 QRect m_BRect; 217 #endif /* Q_WS_MAC */217 #endif /* VBOX_WS_MAC */ 218 218 }; 219 219 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.cpp
r59100 r60362 26 26 /* GUI includes: */ 27 27 # include "UIToolBar.h" 28 # ifdef Q_WS_MAC28 # ifdef VBOX_WS_MAC 29 29 # include "VBoxUtils.h" 30 30 # endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 31 31 32 #endif /* Q_WS_MAC */32 #endif /* VBOX_WS_MAC */ 33 33 34 34 /* Qt includes: */ … … 59 59 } 60 60 61 #ifdef Q_WS_MAC61 #ifdef VBOX_WS_MAC 62 62 void UIToolBar::enableMacToolbar() 63 63 { … … 85 85 layout()->activate(); 86 86 } 87 #endif /* Q_WS_MAC */87 #endif /* VBOX_WS_MAC */ 88 88 89 89 void UIToolBar::prepare() … … 100 100 setStyleSheet("QToolBar { border: 0px none black; }"); 101 101 #else /* QT_VERSION >= 0x050000 */ 102 # ifdef Q_WS_MAC102 # ifdef VBOX_WS_MAC 103 103 setStyleSheet("QToolBar { border: 0px none black; }"); 104 # endif /* Q_WS_MAC */104 # endif /* VBOX_WS_MAC */ 105 105 #endif /* QT_VERSION >= 0x050000 */ 106 106 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.h
r55401 r60362 40 40 void setUseTextLabels(bool fEnable); 41 41 42 #ifdef Q_WS_MAC42 #ifdef VBOX_WS_MAC 43 43 /** Mac OS X: Defines whether native tool-bar should be used. */ 44 44 void enableMacToolbar(); … … 47 47 /** Mac OS X: Updates native tool-bar layout. */ 48 48 void updateLayout(); 49 #endif /* Q_WS_MAC */49 #endif /* VBOX_WS_MAC */ 50 50 51 51 private: -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxOSTypeSelectorButton.cpp
r56040 r60362 57 57 CGuestOSType type = vboxGlobal().vmGuestOSType (aOSTypeId); 58 58 /* Looks ugly on the Mac */ 59 #ifndef Q_WS_MAC59 #ifndef VBOX_WS_MAC 60 60 setIcon (vboxGlobal().vmGuestOSTypeIcon (type.GetId())); 61 #endif /* Q_WS_MAC */61 #endif /* VBOX_WS_MAC */ 62 62 setText (type.GetDescription()); 63 63 } -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.cpp
r52730 r60362 107 107 QPalette pal = palette(); 108 108 QColor buttonColor = pal.color(m_fParentSelected ? QPalette::HighlightedText : QPalette::Mid); 109 #ifdef Q_WS_MAC109 #ifdef VBOX_WS_MAC 110 110 /* Mac is using only light standard highlight colors, keeping highlight-text color always black. 111 111 * User can choose a darker (non-standard) highlight color but it will be his visibility problem. … … 114 114 if (m_fParentSelected) 115 115 buttonColor = pal.color(QPalette::Highlight).darker(150); 116 #endif /* Q_WS_MAC */116 #endif /* VBOX_WS_MAC */ 117 117 118 118 /* Setup: */ … … 145 145 QPalette pal = palette(); 146 146 QColor buttonColor = pal.color(m_fParentSelected ? QPalette::HighlightedText : QPalette::Mid); 147 #ifdef Q_WS_MAC147 #ifdef VBOX_WS_MAC 148 148 /* Mac is using only light standard highlight colors, keeping highlight-text color always black. 149 149 * User can choose a darker (non-standard) highlight color but it will be his visibility problem. … … 152 152 if (m_fParentSelected) 153 153 buttonColor = pal.color(QPalette::Highlight).darker(150); 154 #endif /* Q_WS_MAC */154 #endif /* VBOX_WS_MAC */ 155 155 156 156 /* Setup: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp
r53237 r60362 78 78 , m_mode(mode == WizardMode_Auto ? gEDataManager->modeForWizardType(m_type) : mode) 79 79 { 80 #ifdef Q_WS_WIN80 #ifdef VBOX_WS_WIN 81 81 /* Hide window icon: */ 82 82 setWindowIcon(QIcon()); 83 #endif /* Q_WS_WIN */84 85 #ifdef Q_WS_MAC83 #endif /* VBOX_WS_WIN */ 84 85 #ifdef VBOX_WS_MAC 86 86 /* Since wizards are now represented as Mac OS X Sheets 87 87 * we would like to have possibility to cancel them. */ … … 90 90 * This prevents the using of Enter to jump to the next page. */ 91 91 setOptions(options() ^ QWizard::NoDefaultButton); 92 #endif /* Q_WS_MAC */92 #endif /* VBOX_WS_MAC */ 93 93 94 94 /* All our wizards would like to have window-modality, … … 170 170 } 171 171 172 #ifndef Q_WS_MAC172 #ifndef VBOX_WS_MAC 173 173 /* Cleanup watermark: */ 174 174 if (!m_strWatermarkName.isEmpty()) 175 175 setPixmap(QWizard::WatermarkPixmap, QPixmap()); 176 #endif /* ! Q_WS_MAC */176 #endif /* !VBOX_WS_MAC */ 177 177 } 178 178 … … 247 247 int iCurrentWizardWidth = width(); 248 248 int iCurrentWizardHeight = height(); 249 #ifndef Q_WS_MAC249 #ifndef VBOX_WS_MAC 250 250 /* We should take into account watermark like its assigned already: */ 251 251 QPixmap watermarkPixmap(m_strWatermarkName); 252 252 int iWatermarkWidth = watermarkPixmap.width(); 253 253 iCurrentWizardWidth += iWatermarkWidth; 254 #endif /* ! Q_WS_MAC */254 #endif /* !VBOX_WS_MAC */ 255 255 /* Calculating nearest to 'golden ratio' label width: */ 256 256 int iGoldenRatioWidth = (int)qSqrt(ratio() * iCurrentWizardWidth * iCurrentWizardHeight); 257 257 int iProposedLabelWidth = iGoldenRatioWidth - iMarginsLength; 258 #ifndef Q_WS_MAC258 #ifndef VBOX_WS_MAC 259 259 /* We should take into account watermark like its assigned already: */ 260 260 iProposedLabelWidth -= iWatermarkWidth; 261 #endif /* ! Q_WS_MAC */261 #endif /* !VBOX_WS_MAC */ 262 262 263 263 /* Choose maximum between current and proposed label width: */ … … 269 269 } 270 270 271 #ifndef Q_WS_MAC271 #ifndef VBOX_WS_MAC 272 272 /* Really assign watermark: */ 273 273 if (!m_strWatermarkName.isEmpty()) 274 274 assignWatermarkHelper(); 275 #endif /* ! Q_WS_MAC */276 } 277 278 #ifndef Q_WS_MAC275 #endif /* !VBOX_WS_MAC */ 276 } 277 278 #ifndef VBOX_WS_MAC 279 279 void UIWizard::assignWatermark(const QString &strWatermark) 280 280 { 281 281 if (wizardStyle() != QWizard::AeroStyle 282 # ifdef Q_WS_WIN282 # ifdef VBOX_WS_WIN 283 283 /* There is a Qt bug about Windows7 do NOT match conditions for 'aero' wizard-style, 284 284 * so its silently fallbacks to 'modern' one without any notification, 285 285 * so QWizard::wizardStyle() returns QWizard::ModernStyle, while using aero, at least partially. */ 286 286 && QSysInfo::windowsVersion() != QSysInfo::WV_WINDOWS7 287 # endif /* Q_WS_WIN */287 # endif /* VBOX_WS_WIN */ 288 288 ) 289 289 m_strWatermarkName = strWatermark; … … 373 373 double dRatio = 1.6; 374 374 375 #ifdef Q_WS_WIN375 #ifdef VBOX_WS_WIN 376 376 switch (wizardStyle()) 377 377 { … … 392 392 break; 393 393 } 394 #endif /* Q_WS_WIN */394 #endif /* VBOX_WS_WIN */ 395 395 396 396 switch (m_type) … … 417 417 } 418 418 419 #ifndef Q_WS_MAC419 #ifndef VBOX_WS_MAC 420 420 int UIWizard::proposedWatermarkHeight() 421 421 { … … 516 516 setPixmap(QWizard::WatermarkPixmap, pixWatermarkNew); 517 517 } 518 #endif /* ! Q_WS_MAC */519 518 #endif /* !VBOX_WS_MAC */ 519 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.h
r55401 r60362 67 67 68 68 /* Design stuff: */ 69 #ifndef Q_WS_MAC69 #ifndef VBOX_WS_MAC 70 70 void assignWatermark(const QString &strWaterMark); 71 71 #else … … 82 82 void resizeAccordingLabelWidth(int iLabelWidth); 83 83 double ratio(); 84 #ifndef Q_WS_MAC84 #ifndef VBOX_WS_MAC 85 85 int proposedWatermarkHeight(); 86 86 void assignWatermarkHelper(); 87 #endif /* ! Q_WS_MAC */87 #endif /* !VBOX_WS_MAC */ 88 88 89 89 /* Variables: */ 90 90 WizardType m_type; 91 91 WizardMode m_mode; 92 #ifndef Q_WS_MAC92 #ifndef VBOX_WS_MAC 93 93 QString m_strWatermarkName; 94 #endif /* ! Q_WS_MAC */94 #endif /* !VBOX_WS_MAC */ 95 95 }; 96 96 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.cpp
r56180 r60362 43 43 , m_sourceVirtualDisk(sourceVirtualDisk) 44 44 { 45 #ifndef Q_WS_MAC45 #ifndef VBOX_WS_MAC 46 46 /* Assign watermark: */ 47 47 assignWatermark(":/vmw_new_harddisk.png"); 48 #else /* Q_WS_MAC */48 #else /* VBOX_WS_MAC */ 49 49 /* Assign background image: */ 50 50 assignBackground(":/vmw_new_harddisk_bg.png"); 51 #endif /* Q_WS_MAC */51 #endif /* VBOX_WS_MAC */ 52 52 } 53 53 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.cpp
r55977 r60362 40 40 , m_snapshot(snapshot) 41 41 { 42 #ifndef Q_WS_MAC42 #ifndef VBOX_WS_MAC 43 43 /* Assign watermark: */ 44 44 assignWatermark(":/vmw_clone.png"); 45 #else /* Q_WS_MAC */45 #else /* VBOX_WS_MAC */ 46 46 /* Assign background image: */ 47 47 assignBackground(":/vmw_clone_bg.png"); 48 #endif /* Q_WS_MAC */48 #endif /* VBOX_WS_MAC */ 49 49 } 50 50 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r55509 r60362 47 47 , m_selectedVMNames(selectedVMNames) 48 48 { 49 #ifndef Q_WS_MAC49 #ifndef VBOX_WS_MAC 50 50 /* Assign watermark: */ 51 51 assignWatermark(":/vmw_ovf_export.png"); 52 #else /* Q_WS_MAC */52 #else /* VBOX_WS_MAC */ 53 53 /* Assign background image: */ 54 54 assignBackground(":/vmw_ovf_export_bg.png"); 55 #endif /* Q_WS_MAC */55 #endif /* VBOX_WS_MAC */ 56 56 } 57 57 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRun.cpp
r52730 r60362 39 39 , m_fHardDiskWasSet(isBootHardDiskAttached(m_machine)) 40 40 { 41 #ifndef Q_WS_MAC41 #ifndef VBOX_WS_MAC 42 42 /* Assign watermark: */ 43 43 assignWatermark(":/vmw_first_run.png"); 44 #else /* Q_WS_MAC */44 #else /* VBOX_WS_MAC */ 45 45 /* Assign background image: */ 46 46 assignBackground(":/vmw_first_run_bg.png"); 47 #endif /* Q_WS_MAC */47 #endif /* VBOX_WS_MAC */ 48 48 } 49 49 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp
r52733 r60362 145 145 , m_strFileName(strFileName) 146 146 { 147 #ifndef Q_WS_MAC147 #ifndef VBOX_WS_MAC 148 148 /* Assign watermark: */ 149 149 assignWatermark(":/vmw_ovf_import.png"); 150 #else /* Q_WS_MAC */150 #else /* VBOX_WS_MAC */ 151 151 /* Assign background image: */ 152 152 assignBackground(":/vmw_ovf_import_bg.png"); 153 #endif /* Q_WS_MAC */153 #endif /* VBOX_WS_MAC */ 154 154 } 155 155 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r56180 r60362 48 48 , m_uDefaultSize(uDefaultSize) 49 49 { 50 #ifndef Q_WS_MAC50 #ifndef VBOX_WS_MAC 51 51 /* Assign watermark: */ 52 52 assignWatermark(":/vmw_new_harddisk.png"); 53 #else /* Q_WS_MAC */53 #else /* VBOX_WS_MAC */ 54 54 /* Assign background image: */ 55 55 assignBackground(":/vmw_new_harddisk_bg.png"); 56 #endif /* Q_WS_MAC */56 #endif /* VBOX_WS_MAC */ 57 57 } 58 58 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r58684 r60362 53 53 , m_iUSBCount(0) 54 54 { 55 #ifndef Q_WS_MAC55 #ifndef VBOX_WS_MAC 56 56 /* Assign watermark: */ 57 57 assignWatermark(":/vmw_new_welcome.png"); 58 #else /* Q_WS_MAC */58 #else /* VBOX_WS_MAC */ 59 59 /* Assign background image: */ 60 60 assignBackground(":/vmw_new_welcome_bg.png"); 61 #endif /* Q_WS_MAC */61 #endif /* VBOX_WS_MAC */ 62 62 } 63 63
Note:
See TracChangeset
for help on using the changeset viewer.