VirtualBox

Changeset 7282 in vbox


Ignore:
Timestamp:
Mar 4, 2008 4:59:05 PM (17 years ago)
Author:
vboxsync
Message:

Mac OS X: Build on the mac as from now.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r7260 r7282  
    439439        src/darwin/DarwinKeyboard.cpp \
    440440        src/darwin/DarwinCursor.cpp \
    441         src/darwin/VBoxAquaStyle.cpp \
    442441        src/darwin/VBoxUtils-darwin.cpp \
    443442        src/VBoxFBQuartz2D.cpp
     443#       src/darwin/VBoxAquaStyle.cpp \
    444444
    445445ifdef VBOX_WITH_ICHAT_THEATER
     
    522522endif
    523523VirtualBox_LDFLAGS.os2    = -Zlinker /PM:PM -Zno-fork
    524 VirtualBox_LDFLAGS.darwin = -framework IOKit
     524VirtualBox_LDFLAGS.darwin = -framework IOKit -framework AppKit -framework ApplicationServices -framework Foundation -lz
    525525ifdef VBOX_WITH_ICHAT_THEATER
    526  VirtualBox_LDFLAGS.darwin += -framework Foundation -framework AppKit -framework InstantMessage -framework QuartzCore
     526 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
    527527endif
    528528VirtualBox_LIBS.win       = \
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxToolBar.h

    r7246 r7282  
    2626#include <QContextMenuEvent>
    2727#ifdef Q_WS_MAC
    28 # include "VBoxAquaStyle.h"
     28//# include "VBoxAquaStyle.h"
    2929#endif
    3030
     
    7878    {
    7979        /* self */
    80         QStyle *qs = &VBoxAquaStyle::instance();
    81         setStyle(qs);
    82 
    83         /* the buttons */
    84         QObjectList *list = queryList ("QToolButton");
    85         QObjectListIt it (*list);
    86         QObject *obj;
    87         while ((obj = it.current()) != 0)
    88         {
    89             QToolButton *btn = ::qt_cast <QToolButton *> (obj);
    90             btn->setStyle (&VBoxAquaStyle::instance());
    91             ++ it;
    92         }
    93         delete list;
     80//        QStyle *qs = &VBoxAquaStyle::instance();
     81//        setStyle(qs);
     82//
     83//        /* the buttons */
     84//        QObjectList *list = queryList ("QToolButton");
     85//        QObjectListIt it (*list);
     86//        QObject *obj;
     87//        while ((obj = it.current()) != 0)
     88//        {
     89//            QToolButton *btn = ::qt_cast <QToolButton *> (obj);
     90//            btn->setStyle (&VBoxAquaStyle::instance());
     91//            ++ it;
     92//        }
     93//        delete list;
    9494
    9595        /** @todo the separator */
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r7220 r7282  
    25272527        }
    25282528#elif defined (Q_WS_MAC)
    2529         if (aUniKey && aUniKey [0] && !aUniKey [1])
    2530             processed = processHotKey (QKeySequence (Qt::UNICODE_ACCEL +
    2531                                                      QChar (aUniKey [0]).upper().unicode()),
    2532                                        mMainWnd->menuBar());
     2529#warning port me
     2530//        if (aUniKey && aUniKey [0] && !aUniKey [1])
     2531//            processed = processHotKey (QKeySequence (Qt::UNICODE_ACCEL +
     2532//                                                     QChar (aUniKey [0]).upper().unicode()),
     2533//                                       mMainWnd->menuBar());
    25332534
    25342535        /* Don't consider the hot key as pressed since the guest never saw
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r7250 r7282  
    823823    QImage osImg100x75 = vboxGlobal().vmGuestOSTypeIcon (osTypeId).convertToImage().smoothScale (100, 75);
    824824    QImage osImg = QImage (":/dock_1.png");
    825     bitBlt (&osImg, 14, 22,
    826             &osImg100x75, 0, 0,
    827             100, 75, /* conversion_flags */ 0);
    828     QImage VBoxOverlay = QImage (":/VirtualBox_48px.png");
    829     bitBlt (&osImg, osImg.width() - VBoxOverlay.width(), osImg.height() - VBoxOverlay.height(),
    830             &VBoxOverlay, 0, 0,
    831             VBoxOverlay.width(), VBoxOverlay.height(), /* conversion_flags */ 0);
    832     if (dockImgOS)
    833         CGImageRelease (dockImgOS);
     825#warning port me
     826//    bitBlt (&osImg, 14, 22,
     827//            &osImg100x75, 0, 0,
     828//            100, 75, /* conversion_flags */ 0);
     829//    QImage VBoxOverlay = QImage (":/VirtualBox_48px.png");
     830//    bitBlt (&osImg, osImg.width() - VBoxOverlay.width(), osImg.height() - VBoxOverlay.height(),
     831//            &VBoxOverlay, 0, 0,
     832//            VBoxOverlay.width(), VBoxOverlay.height(), /* conversion_flags */ 0);
     833//    if (dockImgOS)
     834//        CGImageRelease (dockImgOS);
    834835    dockImgOS = ::DarwinQImageToCGImage (&osImg);
    835836    SetApplicationDockTileImage (dockImgOS);
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxProblemReporter.cpp

    r7220 r7282  
    20252025    Q3Process openApp (QString("/usr/bin/open"));
    20262026    openApp.addArgument (qApp->applicationDirPath() + "/UserManual.pdf");
    2027     openApp.launch ("");
     2027    openApp.launch (QString(""));
    20282028#endif
    20292029#endif /* VBOX_OSE */
  • trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxUtils-darwin.cpp

    r7235 r7282  
    7676CGImageRef DarwinQImageFromMimeSourceToCGImage (const char *aSource)
    7777{
    78     QImage qim = QImage::fromMimeSource (QString(":/") + aSource);
     78    QImage qim (QString(":/") + aSource);
    7979    Assert (!qim.isNull());
    8080    return DarwinQImageToCGImage (&qim);
     
    102102CGImageRef DarwinQPixmapFromMimeSourceToCGImage (const char *aSource)
    103103{
    104     QPixmap qpm = QPixmap::fromMimeSource (QString(":/" + aSource);
     104    QPixmap qpm (QString(":/") + aSource);
    105105    Assert (!qpm.isNull());
    106106    return DarwinQPixmapToCGImage (&qpm);
     
    126126
    127127    /* load the badge */
    128     QPixmap badge = QPixmap::fromMimeSource (aSource);
     128    QPixmap badge (aSource);
    129129    Assert (!badge.isNull());
    130130
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxNewVMWzd.ui.h

    r7220 r7282  
    185185    /* setup minimum width for the sizeHint to be calculated correctly */
    186186#warning port me: check this
    187     int wid = spacerItem->minimumSize().width();
     187    int wid = 1;
    188188//    int wid = widthSpacer->minimumSize().width();
    189189    txWelcome->setMinimumWidth (wid);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette