Ticket #1: frontends.diff

File frontends.diff, 21.0 KB (added by Valery V. Sedletski, 9 years ago)

Frontends

  • \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  
    172172        ./src/globals \
    173173        ./src/medium \
    174174        ./src/objects \
    175         ./src/platform \
    176         ./src/platform/darwin \
    177         ./src/platform/win \
    178         ./src/platform/x11 \
     175        ./src/platform
     176
     177ifeq ($(KBUILD_TARGET),win)
     178 VBOX_GUI_INC_DIRS += \
     179        ./src/platform/win
     180else ifeq ($(KBUILD_TARGET),os2)
     181 VBOX_GUI_INC_DIRS += \
     182        ./src/platform/os2
     183else ifeq ($(KBUILD_TARGET),darwin)
     184 VBOX_GUI_INC_DIRS += \
     185        ./src/platform/darwin
     186else
     187 VBOX_GUI_INC_DIRS += \
     188        ./src/platform/x11
     189endif
     190
     191VBOX_GUI_INC_DIRS += \
    179192        ./src/runtime \
    180193        ./src/runtime/fullscreen \
    181194        ./src/runtime/normal \
     
    265278 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
    266279endif
    267280
     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#
    268304
    269305# Headers containing definitions of classes that use the Q_OBJECT macro.
    270306VirtualBox_QT_MOCHDRS = \
     
    794830        src/platform/win/VBoxUtils-win.cpp \
    795831        src/platform/win/WinKeyboard.cpp
    796832
     833VirtualBox_SOURCES.os2 = \
     834        src/platform/os2/UIDesktopServices_os2.cpp
     835
    797836VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS
    798837VirtualBox_SOURCES.darwin += \
    799838        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  
    5555   internally in plevent.c. Because moc doesn't seems to respect
    5656   #ifdefs, we still have to include the definition of the class.
    5757   very silly. */
    58 # if !defined (Q_OS_MAC) && !defined (Q_OS_OS2)
     58# if !defined (Q_OS_MAC) // && !defined (Q_OS_OS2)
    5959XPCOMEventQSocketListener *COMBase::sSocketListener = 0;
    6060
    6161# endif
     
    107107
    108108#if defined (VBOX_WITH_XPCOM)
    109109
    110 # if !defined (RT_OS_DARWIN) && !defined (RT_OS_OS2)
     110# if !defined (RT_OS_DARWIN) // && !defined (RT_OS_OS2)
    111111
    112112    if (NS_SUCCEEDED (rc))
    113113    {
     
    166166            rc = eventQ->IsOnCurrentThread (&isOnMainThread);
    167167            if (NS_SUCCEEDED (rc) && isOnMainThread)
    168168            {
    169 # if !defined (RT_OS_DARWIN) && !defined (RT_OS_OS2)
     169# if !defined (RT_OS_DARWIN) // && !defined (RT_OS_OS2)
    170170                if (sSocketListener)
    171171                {
    172172                    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  
    5454# ifdef Q_WS_WIN
    5555#  include <Htmlhelp.h>
    5656# endif /* Q_WS_WIN */
     57# ifdef Q_WS_PM
     58# include <UIDesktopServices.h>
     59# endif /* Q_WS_PM  */
    5760
    5861/* COM includes: */
    5962# include "CConsole.h"
     
    26872690# endif /* #ifdef VBOX_OSE */
    26882691#elif defined (Q_WS_MAC)
    26892692    vboxGlobal().openURL("file://" + strLocation);
     2693#elif defined (Q_WS_PM)
     2694    UIDesktopServices::openObject(strLocation);
    26902695#endif
    26912696}
    26922697
  • \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  
    24292429#if defined (Q_WS_WIN32)
    24302430    const QString name = "VirtualBox";
    24312431    const QString suffix = "chm";
     2432#elif defined (Q_WS_PM)
     2433    const QString name = "VirtualBox";
     2434    const QString suffix = "pdf";
    24322435#elif defined (Q_WS_MAC)
    24332436    const QString name = "UserManual";
    24342437    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 */
     39bool 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 */
     66bool 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 */
     81bool 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  
    2626public:
    2727    static bool createMachineShortcut(const QString &strSrcFile, const QString &strDstPath, const QString &strName, const QString &strUuid);
    2828    static bool openInFileManager(const QString &strFile);
     29#ifdef RT_OS_OS2 // Q_WS_PM
     30    static bool openObject(const QString &strFile);
     31#endif
    2932};
    3033
    3134#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  
    10191019    QColor color1 = pal.color(QPalette::Window).lighter(110);
    10201020    color1.setAlpha(0);
    10211021    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)
    10231023    QColor color3 = pal.color(QPalette::Window).darker(120);
    10241024#endif /* Q_WS_WIN || Q_WS_X11 */
    10251025
     
    10621062    painter.fillRect(QRect(0,           0, 5, height() - 5), grad4); // left line
    10631063    painter.fillRect(QRect(width() - 5, 0, 5, height() - 5), grad5); // right line
    10641064
    1065 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
     1065#if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_PM)
    10661066    /* Paint frames: */
    10671067    painter.save();
    10681068    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  
    2626# ifdef Q_WS_MAC
    2727#  include <QTimer>
    2828# endif /* Q_WS_MAC */
     29# ifdef Q_WS_PM
     30#  define INCL_GPIBITMAPS
     31#  define INCL_WINPOINTERS
     32#  include <os2.h>
     33# endif
    2934
    3035/* GUI includes: */
    3136# include "VBoxGlobal.h"
     
    923928#ifdef Q_WS_WIN
    924929    , m_alphaCursor(0)
    925930#endif /* Q_WS_WIN */
     931#ifdef Q_WS_PM
     932    , m_alphaCursor(0)
     933#endif /* Q_WS_PM */
    926934#ifdef Q_WS_MAC
    927935    , m_pWatchdogDisplayChange(0)
    928936#endif /* Q_WS_MAC */
     
    14061414    if (m_alphaCursor)
    14071415        DestroyIcon(m_alphaCursor);
    14081416#endif /* Q_WS_WIN */
     1417#ifdef Q_WS_PM
     1418    if (m_alphaCursor)
     1419        WinDestroyPointer(m_alphaCursor);
     1420#endif /* Q_WS_PM */
    14091421
    14101422    /* Save settings: */
    14111423    saveSessionSettings();
     
    16371649        XcursorImageDestroy(img);
    16381650    }
    16391651
     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
    16401859#elif defined(Q_WS_MAC)
    16411860
    16421861    /* 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  
    447447#if defined(Q_WS_WIN)
    448448    HCURSOR m_alphaCursor;
    449449#endif
     450#if defined(Q_WS_PM)
     451    HPOINTER m_alphaCursor;
     452#endif
    450453
    451454    /** @name Host-screen configuration variables.
    452455     * @{ */
  • \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  
    531531    QColor color1 = pal.color(QPalette::Window).lighter(110);
    532532    color1.setAlpha(0);
    533533    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)
    535535    QColor color3 = pal.color(QPalette::Window).darker(120);
    536536#endif /* Q_WS_WIN || Q_WS_X11 */
    537537
     
    574574    painter.fillRect(QRect(0,           5, 5, height() - 5), grad4); // left line
    575575    painter.fillRect(QRect(width() - 5, 5, 5, height() - 5), grad5); // right line
    576576
    577 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
     577#if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_PM)
    578578    /* Paint frames: */
    579579    painter.save();
    580580    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  
    238238    retranslateUi();
    239239
    240240#ifndef VBOX_WITH_EHCI
    241     mCbUSB2->setHidden(true);
     241    //mCbUSB2->setHidden(true);
     242    mGbUSB->setHidden(true);
    242243#endif /* VBOX_WITH_EHCI */
    243244}
    244245
  • \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  
    5353    /* default settings */
    5454#if defined (Q_WS_WIN)
    5555    hostCombo = "163"; // VK_RCONTROL
     56#elif defined (Q_WS_PM)
     57    hostCombo = "10";  // VK_CTRL (?), 10
    5658#elif defined (Q_WS_X11)
    5759    hostCombo = "65508"; // XK_Control_R
    5860#elif defined (Q_WS_MAC)