Ticket #1: frontends.diff
File frontends.diff, 21.0 KB (added by , 9 years ago) |
---|
-
\src\VBox\Frontends/VirtualBox/Makefile.kmk
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/Makefile.kmk vbox-trunk\src\VBox\Frontends/VirtualBox/Makefile.kmk
old new 172 172 ./src/globals \ 173 173 ./src/medium \ 174 174 ./src/objects \ 175 ./src/platform \ 176 ./src/platform/darwin \ 177 ./src/platform/win \ 178 ./src/platform/x11 \ 175 ./src/platform 176 177 ifeq ($(KBUILD_TARGET),win) 178 VBOX_GUI_INC_DIRS += \ 179 ./src/platform/win 180 else ifeq ($(KBUILD_TARGET),os2) 181 VBOX_GUI_INC_DIRS += \ 182 ./src/platform/os2 183 else ifeq ($(KBUILD_TARGET),darwin) 184 VBOX_GUI_INC_DIRS += \ 185 ./src/platform/darwin 186 else 187 VBOX_GUI_INC_DIRS += \ 188 ./src/platform/x11 189 endif 190 191 VBOX_GUI_INC_DIRS += \ 179 192 ./src/runtime \ 180 193 ./src/runtime/fullscreen \ 181 194 ./src/runtime/normal \ … … 265 278 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB) 266 279 endif 267 280 281 # ifeq ($(BUILD_TARGET),os2) 282 # DLLS += VBoxHlp 283 # ifneq ($(strip $(VBOX_DLL_QT)),) 284 # INSTALLS += qt.dll 285 # qt.dll_INST = $(INST_BIN) 286 # qt.dll_SOURCES += \ 287 # $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT)) 288 # endif 289 # endif 290 # 291 # 292 # VBoxHlp - helper DLL for OS/2. 293 # 294 # VBoxHlp_ASTOOL = NASM 295 # VBoxHlp_ASFLAGS = -f obj 296 # VBoxHlp_DEFS = IN_RING3 IN_VBOXHLP 297 # VBoxHlp_CXXFLAGS = -fno-exceptions 298 # VBoxHlp_LDFLAGS = -nostdlib -los2 299 # VBoxHlp_LDFLAGS += -Zlinker option -Zlinker manyautodata 300 # VBoxHlp_SOURCES = \ 301 # src/platform/os2/VBoxHlp.asm \ 302 # src/platform/os2/VBoxHlp.cpp 303 # 268 304 269 305 # Headers containing definitions of classes that use the Q_OBJECT macro. 270 306 VirtualBox_QT_MOCHDRS = \ … … 794 830 src/platform/win/VBoxUtils-win.cpp \ 795 831 src/platform/win/WinKeyboard.cpp 796 832 833 VirtualBox_SOURCES.os2 = \ 834 src/platform/os2/UIDesktopServices_os2.cpp 835 797 836 VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 798 837 VirtualBox_SOURCES.darwin += \ 799 838 src/platform/darwin/CocoaEventHelper.mm \ -
\src\VBox\Frontends/VirtualBox/src/globals/COMDefs.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/globals/COMDefs.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/globals/COMDefs.cpp
old new 55 55 internally in plevent.c. Because moc doesn't seems to respect 56 56 #ifdefs, we still have to include the definition of the class. 57 57 very silly. */ 58 # if !defined (Q_OS_MAC) && !defined (Q_OS_OS2)58 # if !defined (Q_OS_MAC) // && !defined (Q_OS_OS2) 59 59 XPCOMEventQSocketListener *COMBase::sSocketListener = 0; 60 60 61 61 # endif … … 107 107 108 108 #if defined (VBOX_WITH_XPCOM) 109 109 110 # if !defined (RT_OS_DARWIN) && !defined (RT_OS_OS2)110 # if !defined (RT_OS_DARWIN) // && !defined (RT_OS_OS2) 111 111 112 112 if (NS_SUCCEEDED (rc)) 113 113 { … … 166 166 rc = eventQ->IsOnCurrentThread (&isOnMainThread); 167 167 if (NS_SUCCEEDED (rc) && isOnMainThread) 168 168 { 169 # if !defined (RT_OS_DARWIN) && !defined (RT_OS_OS2)169 # if !defined (RT_OS_DARWIN) // && !defined (RT_OS_OS2) 170 170 if (sSocketListener) 171 171 { 172 172 delete sSocketListener; -
\src\VBox\Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/globals/UIMessageCenter.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
old new 54 54 # ifdef Q_WS_WIN 55 55 # include <Htmlhelp.h> 56 56 # endif /* Q_WS_WIN */ 57 # ifdef Q_WS_PM 58 # include <UIDesktopServices.h> 59 # endif /* Q_WS_PM */ 57 60 58 61 /* COM includes: */ 59 62 # include "CConsole.h" … … 2687 2690 # endif /* #ifdef VBOX_OSE */ 2688 2691 #elif defined (Q_WS_MAC) 2689 2692 vboxGlobal().openURL("file://" + strLocation); 2693 #elif defined (Q_WS_PM) 2694 UIDesktopServices::openObject(strLocation); 2690 2695 #endif 2691 2696 } 2692 2697 -
\src\VBox\Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/globals/VBoxGlobal.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
old new 2429 2429 #if defined (Q_WS_WIN32) 2430 2430 const QString name = "VirtualBox"; 2431 2431 const QString suffix = "chm"; 2432 #elif defined (Q_WS_PM) 2433 const QString name = "VirtualBox"; 2434 const QString suffix = "pdf"; 2432 2435 #elif defined (Q_WS_MAC) 2433 2436 const QString name = "UserManual"; 2434 2437 const QString suffix = "pdf"; -
\src\VBox\Frontends/VirtualBox/src/platform/os2/UIDesktopServices_os2.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/platform/os2/UIDesktopServices_os2.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/platform/os2/UIDesktopServices_os2.cpp
old new 1 /* $Id: UIDesktopServices_os2.cpp 3 2015-07-31 15:39:00Z dmik $ */ 2 /** @file 3 * VBox Qt GUI - Qt GUI - Utility Classes and Functions specific to OS/2... 4 */ 5 6 /* 7 * Copyright (C) 2010 Oracle Corporation 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 */ 17 18 #ifdef VBOX_WITH_PRECOMPILED_HEADERS 19 # include <precomp.h> 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 22 /* VBox includes */ 23 # include "UIDesktopServices.h" 24 25 /* Qt includes */ 26 # include <QDir> 27 # include <QCoreApplication> 28 29 /* WPS includes */ 30 # define INCL_WINWORKPLACE 31 # include <os2.h> 32 33 # define OPEN_DEFAULT 0 34 # define OPEN_DETAILS 102 35 36 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 37 38 /* Create a VM shadow on the Desktop */ 39 bool UIDesktopServices::createMachineShortcut(const QString &strSrcFile, const QString &strDstPath, const QString &strName, const QString &strUuid) 40 { 41 QString strVBox = QDir::toNativeSeparators(QCoreApplication::applicationFilePath()); 42 QFileInfo fiVBox(strVBox); 43 QFileInfo fiDst(strDstPath); 44 QString strVBoxDir = QDir::toNativeSeparators(fiVBox.absolutePath()); 45 QString strDst = QDir::toNativeSeparators(strDstPath); 46 QString strSetup = QString("EXENAME=%1;STARTUPDIR=%2;PARAMETERS=--comment %3 " 47 "--startvm %4;PROGTYPE=WINDOWABLEVIO;MINIMIZED=YES;ICONFILE=%5\\%6;") 48 .arg(strVBox) 49 .arg(strVBoxDir) 50 .arg(strName) 51 .arg(strUuid) 52 .arg(strVBoxDir) 53 .arg("VirtualBox.ico"); 54 55 if (WinCreateObject((PCSZ)"WPProgram", 56 (PCSZ)strName.toLocal8Bit().constData(), 57 (PCSZ)strSetup.toLocal8Bit().constData(), 58 (PCSZ)strDst.toLocal8Bit().constData(), 59 CO_UPDATEIFEXISTS)) 60 return true; 61 62 return false; 63 } 64 65 /* Open a WPS folder with a given object */ 66 bool UIDesktopServices::openInFileManager(const QString &strFile) 67 { 68 QFileInfo fi(strFile); 69 QString str = QDir::toNativeSeparators(fi.absolutePath()); 70 71 HOBJECT hObj = WinQueryObject((PCSZ)str.toLocal8Bit().constData()); 72 73 if ((hObj != NULL) && 74 WinOpenObject(hObj, OPEN_DETAILS, FALSE)) 75 return true; 76 77 return false; 78 } 79 80 /* Open a WPS object */ 81 bool UIDesktopServices::openObject(const QString &strFile) 82 { 83 QFileInfo fi(strFile); 84 QString str = QDir::toNativeSeparators(fi.absoluteFilePath()); 85 HOBJECT hObj; 86 87 if ((hObj = WinQueryObject((PCSZ)str.toLocal8Bit().constData())) != NULL) 88 return WinOpenObject(hObj, OPEN_DEFAULT, TRUE); 89 90 return false; 91 } -
\src\VBox\Frontends/VirtualBox/src/platform/UIDesktopServices.h
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/platform/UIDesktopServices.h vbox-trunk\src\VBox\Frontends/VirtualBox/src/platform/UIDesktopServices.h
old new 26 26 public: 27 27 static bool createMachineShortcut(const QString &strSrcFile, const QString &strDstPath, const QString &strName, const QString &strUuid); 28 28 static bool openInFileManager(const QString &strFile); 29 #ifdef RT_OS_OS2 // Q_WS_PM 30 static bool openObject(const QString &strFile); 31 #endif 29 32 }; 30 33 31 34 #endif /* !___UIDesktopServices_h___ */ -
\src\VBox\Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp
old new 1019 1019 QColor color1 = pal.color(QPalette::Window).lighter(110); 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(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_PM) 1023 1023 QColor color3 = pal.color(QPalette::Window).darker(120); 1024 1024 #endif /* Q_WS_WIN || Q_WS_X11 */ 1025 1025 … … 1062 1062 painter.fillRect(QRect(0, 0, 5, height() - 5), grad4); // left line 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(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_PM) 1066 1066 /* Paint frames: */ 1067 1067 painter.save(); 1068 1068 painter.setPen(color3); -
\src\VBox\Frontends/VirtualBox/src/runtime/UISession.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/runtime/UISession.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/runtime/UISession.cpp
old new 26 26 # ifdef Q_WS_MAC 27 27 # include <QTimer> 28 28 # endif /* Q_WS_MAC */ 29 # ifdef Q_WS_PM 30 # define INCL_GPIBITMAPS 31 # define INCL_WINPOINTERS 32 # include <os2.h> 33 # endif 29 34 30 35 /* GUI includes: */ 31 36 # include "VBoxGlobal.h" … … 923 928 #ifdef Q_WS_WIN 924 929 , m_alphaCursor(0) 925 930 #endif /* Q_WS_WIN */ 931 #ifdef Q_WS_PM 932 , m_alphaCursor(0) 933 #endif /* Q_WS_PM */ 926 934 #ifdef Q_WS_MAC 927 935 , m_pWatchdogDisplayChange(0) 928 936 #endif /* Q_WS_MAC */ … … 1406 1414 if (m_alphaCursor) 1407 1415 DestroyIcon(m_alphaCursor); 1408 1416 #endif /* Q_WS_WIN */ 1417 #ifdef Q_WS_PM 1418 if (m_alphaCursor) 1419 WinDestroyPointer(m_alphaCursor); 1420 #endif /* Q_WS_PM */ 1409 1421 1410 1422 /* Save settings: */ 1411 1423 saveSessionSettings(); … … 1637 1649 XcursorImageDestroy(img); 1638 1650 } 1639 1651 1652 #elif 0 //defined(Q_WS_PM) 1653 1654 //BITMAPV5HEADER bi; 1655 BITMAPINFOHEADER2 bmih2; 1656 BITMAPINFO2 bi; 1657 HBITMAP hBitmap; 1658 HBITMAP hMonoBitmap; 1659 void *lpBits; 1660 1661 /* 1662 ::ZeroMemory(&bi, sizeof (BITMAPV5HEADER)); 1663 bi.bV5Size = sizeof(BITMAPV5HEADER); 1664 bi.bV5Width = uWidth; 1665 bi.bV5Height = - (LONG)uHeight; 1666 bi.bV5Planes = 1; 1667 bi.bV5BitCount = 32; 1668 bi.bV5Compression = BI_BITFIELDS; 1669 bi.bV5RedMask = 0x00FF0000; 1670 bi.bV5GreenMask = 0x0000FF00; 1671 bi.bV5BlueMask = 0x000000FF; */ 1672 1673 printf("000\n"); 1674 1675 memset(&bmih2, 0, sizeof(BITMAPINFOHEADER2)); 1676 bmih2.cbFix = sizeof(BITMAPINFOHEADER2); 1677 bmih2.cx = uWidth; 1678 bmih2.cy = uHeight; 1679 bmih2.cPlanes = 1; 1680 bmih2.cBitCount = 32; 1681 1682 /* if (fHasAlpha) 1683 bi.bV5AlphaMask = 0xFF000000; 1684 else 1685 bi.bV5AlphaMask = 0; */ 1686 1687 //HDC hdc = GetDC(NULL); 1688 HPS hps = WinGetPS(HWND_DESKTOP); 1689 1690 /* Create the DIB section with an alpha channel: */ 1691 printf("001\n"); 1692 //hBitmap = CreateDIBSection(hdc, (BITMAPINFO *)&bi, DIB_RGB_COLORS, (void **)&lpBits, NULL, (DWORD) 0); 1693 hBitmap = GpiCreateBitmap(hps, &bmih2, 0L, NULL, &bi); 1694 printf("002\n"); 1695 lpBits = (void *)&bi.argbColor; 1696 printf("003\n"); 1697 1698 //ReleaseDC(NULL, hdc); 1699 1700 hMonoBitmap = NULL; 1701 if (fHasAlpha) 1702 { 1703 printf("004\n"); 1704 BITMAPINFOHEADER2 bmih; 1705 memset(&bmih, 0, sizeof(BITMAPINFOHEADER2)); 1706 bmih.cbFix = sizeof(BITMAPINFOHEADER2); 1707 bmih.cx = uWidth; 1708 bmih.cy = uHeight; 1709 bmih.cPlanes = 1; 1710 bmih.cBitCount = 1; 1711 1712 /* Create an empty mask bitmap: */ 1713 printf("005\n"); 1714 //hMonoBitmap = CreateBitmap(uWidth, uHeight, 1, 1, NULL); 1715 hMonoBitmap = GpiCreateBitmap(hps, &bmih, 0L, NULL, NULL); 1716 printf("006\n"); 1717 } 1718 else 1719 { 1720 /* Word aligned AND mask. Will be allocated and created if necessary. */ 1721 printf("007\n"); 1722 uint8_t *pu8AndMaskWordAligned = NULL; 1723 1724 /* Width in bytes of the original AND mask scan line. */ 1725 uint32_t cbAndMaskScan = (uWidth + 7) / 8; 1726 1727 if (cbAndMaskScan & 1) 1728 { 1729 /* Original AND mask is not word aligned. */ 1730 1731 /* Allocate memory for aligned AND mask. */ 1732 printf("008\n"); 1733 pu8AndMaskWordAligned = (uint8_t *)RTMemTmpAllocZ((cbAndMaskScan + 1) * uHeight); 1734 1735 Assert(pu8AndMaskWordAligned); 1736 1737 if (pu8AndMaskWordAligned) 1738 { 1739 /* According to MSDN the padding bits must be 0. 1740 * Compute the bit mask to set padding bits to 0 in the last byte of original AND mask. */ 1741 printf("009\n"); 1742 uint32_t u32PaddingBits = cbAndMaskScan * 8 - uWidth; 1743 Assert(u32PaddingBits < 8); 1744 uint8_t u8LastBytesPaddingMask = (uint8_t)(0xFF << u32PaddingBits); 1745 1746 Log(("u8LastBytesPaddingMask = %02X, aligned w = %d, width = %d, cbAndMaskScan = %d\n", 1747 u8LastBytesPaddingMask, (cbAndMaskScan + 1) * 8, uWidth, cbAndMaskScan)); 1748 1749 uint8_t *src = (uint8_t *)srcAndMaskPtr; 1750 uint8_t *dst = pu8AndMaskWordAligned; 1751 1752 unsigned i; 1753 printf("010\n"); 1754 for (i = 0; i < uHeight; i++) 1755 { 1756 memcpy(dst, src, cbAndMaskScan); 1757 1758 dst[cbAndMaskScan - 1] &= u8LastBytesPaddingMask; 1759 1760 src += cbAndMaskScan; 1761 dst += cbAndMaskScan + 1; 1762 } 1763 printf("011\n"); 1764 } 1765 } 1766 1767 BITMAPINFOHEADER2 bmih; 1768 memset(&bmih, 0, sizeof(BITMAPINFOHEADER2)); 1769 bmih.cbFix = sizeof(BITMAPINFOHEADER2); 1770 bmih.cx = uWidth; 1771 bmih.cy = uHeight; 1772 bmih.cPlanes = 1; 1773 bmih.cBitCount = 1; 1774 1775 /* Create the AND mask bitmap: */ 1776 printf("012\n"); 1777 hMonoBitmap = GpiCreateBitmap(hps, &bmih, 0L, NULL, NULL); 1778 //hMonoBitmap = ::CreateBitmap(uWidth, uHeight, 1, 1, 1779 // pu8AndMaskWordAligned? pu8AndMaskWordAligned: srcAndMaskPtr); 1780 1781 printf("013\n"); 1782 if (pu8AndMaskWordAligned) 1783 { 1784 RTMemTmpFree(pu8AndMaskWordAligned); 1785 } 1786 } 1787 1788 printf("014\n"); 1789 WinReleasePS(hps); 1790 1791 Assert(hBitmap); 1792 Assert(hMonoBitmap); 1793 1794 printf("015\n"); 1795 if (hBitmap && hMonoBitmap) 1796 { 1797 ULONG *dstShapePtr = (ULONG *) lpBits; 1798 //DWORD *dstShapePtr = (DWORD *) lpBits; 1799 1800 printf("016\n"); 1801 for (uint y = 0; y < uHeight; y ++) 1802 { 1803 memcpy(dstShapePtr, srcShapePtr, srcShapePtrScan); 1804 srcShapePtr += srcShapePtrScan; 1805 dstShapePtr += uWidth; 1806 } 1807 1808 //ICONINFO ii; 1809 //ii.fIcon = FALSE; 1810 //ii.xHotspot = uXHot; 1811 //ii.yHotspot = uYHot; 1812 //ii.hbmMask = hMonoBitmap; 1813 //ii.hbmColor = hBitmap; 1814 1815 printf("hMonoBitmap=%lx, hBitmap=%lx\n", hMonoBitmap, hBitmap); 1816 1817 POINTERINFO ptri; 1818 ptri.fPointer = TRUE; /* size indicator */ 1819 ptri.xHotspot = uXHot; /* hotspot X */ 1820 ptri.yHotspot = uYHot; /* hotspot Y */ 1821 ptri.hbmPointer = hMonoBitmap; /* and/xor */ 1822 ptri.hbmColor = hBitmap; /* color */ 1823 1824 printf("017\n"); 1825 //HCURSOR hAlphaCursor = CreateIconIndirect(&ii); 1826 HPOINTER hAlphaCursor = WinCreatePointerIndirect(HWND_DESKTOP, &ptri); 1827 printf("018\n"); 1828 Assert(hAlphaCursor); 1829 printf("019\n"); 1830 if (hAlphaCursor) 1831 { 1832 /* Set the new cursor: */ 1833 printf("020\n"); 1834 m_cursor = QCursor(hAlphaCursor); 1835 printf("021\n"); 1836 if (m_alphaCursor) 1837 WinDestroyPointer(m_alphaCursor); 1838 //DestroyIcon(m_alphaCursor); 1839 printf("022\n"); 1840 m_alphaCursor = hAlphaCursor; 1841 m_fIsValidPointerShapePresent = true; 1842 } 1843 } 1844 1845 //if (hMonoBitmap) 1846 // DeleteObject(hMonoBitmap); 1847 //if (hBitmap) 1848 // DeleteObject(hBitmap); 1849 1850 printf("023\n"); 1851 if (hMonoBitmap) 1852 GpiDeleteBitmap(hMonoBitmap); 1853 printf("024\n"); 1854 if (hBitmap) 1855 GpiDeleteBitmap(hBitmap); 1856 1857 printf("025\n"); 1858 1640 1859 #elif defined(Q_WS_MAC) 1641 1860 1642 1861 /* Create a ARGB image out of the shape data. */ -
\src\VBox\Frontends/VirtualBox/src/runtime/UISession.h
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/runtime/UISession.h vbox-trunk\src\VBox\Frontends/VirtualBox/src/runtime/UISession.h
old new 447 447 #if defined(Q_WS_WIN) 448 448 HCURSOR m_alphaCursor; 449 449 #endif 450 #if defined(Q_WS_PM) 451 HPOINTER m_alphaCursor; 452 #endif 450 453 451 454 /** @name Host-screen configuration variables. 452 455 * @{ */ -
\src\VBox\Frontends/VirtualBox/src/runtime/UIStatusBarEditorWindow.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/runtime/UIStatusBarEditorWindow.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/runtime/UIStatusBarEditorWindow.cpp
old new 531 531 QColor color1 = pal.color(QPalette::Window).lighter(110); 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(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_PM) 535 535 QColor color3 = pal.color(QPalette::Window).darker(120); 536 536 #endif /* Q_WS_WIN || Q_WS_X11 */ 537 537 … … 574 574 painter.fillRect(QRect(0, 5, 5, height() - 5), grad4); // left line 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(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_PM) 578 578 /* Paint frames: */ 579 579 painter.save(); 580 580 painter.setPen(color3); -
\src\VBox\Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
old new 238 238 retranslateUi(); 239 239 240 240 #ifndef VBOX_WITH_EHCI 241 mCbUSB2->setHidden(true); 241 //mCbUSB2->setHidden(true); 242 mGbUSB->setHidden(true); 242 243 #endif /* VBOX_WITH_EHCI */ 243 244 } 244 245 -
\src\VBox\Frontends/VirtualBox/src/VBoxGlobalSettings.cpp
diff -urN vbox-trunk-bk\src\VBox\Frontends/VirtualBox/src/VBoxGlobalSettings.cpp vbox-trunk\src\VBox\Frontends/VirtualBox/src/VBoxGlobalSettings.cpp
old new 53 53 /* default settings */ 54 54 #if defined (Q_WS_WIN) 55 55 hostCombo = "163"; // VK_RCONTROL 56 #elif defined (Q_WS_PM) 57 hostCombo = "10"; // VK_CTRL (?), 10 56 58 #elif defined (Q_WS_X11) 57 59 hostCombo = "65508"; // XK_Control_R 58 60 #elif defined (Q_WS_MAC)