VirtualBox

Changeset 28964 in vbox


Ignore:
Timestamp:
May 3, 2010 9:46:46 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60978
Message:

FE/Qt4: new core: no mini toolbar in seamless on Mac OS X

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp

    r28800 r28964  
    2727/* Local includes */
    2828#include "VBoxGlobal.h"
    29 #include "VBoxMiniToolBar.h"
     29#ifndef Q_WS_MAC
     30# include "VBoxMiniToolBar.h"
     31#endif /* Q_WS_MAC */
    3032
    3133#include "UIActionsPool.h"
     
    4446    , UIMachineWindow(pMachineLogic, uScreenId)
    4547    , m_pMainMenu(0)
     48#ifndef Q_WS_MAC
    4649    , m_pMiniToolBar(0)
     50#endif /* Q_WS_MAC */
    4751{
    4852    /* "This" is machine window: */
     
    7276
    7377    /* Prepare mini tool-bar: */
     78#ifndef Q_WS_MAC
    7479    prepareMiniToolBar();
     80#endif /* Q_WS_MAC */
    7581
    7682    /* Retranslate fullscreen window finally: */
     
    130136}
    131137
     138#ifndef Q_WS_MAC
    132139void UIMachineWindowSeamless::sltUpdateMiniToolBarMask()
    133140{
     
    135142        setMask(machineView()->lastVisibleRegion());
    136143}
     144#endif /* Q_WS_MAC */
    137145
    138146void UIMachineWindowSeamless::sltTryClose()
     
    222230}
    223231
     232#ifndef Q_WS_MAC
    224233void UIMachineWindowSeamless::prepareMiniToolBar()
    225234{
     
    250259    }
    251260}
     261#endif /* Q_WS_MAC */
    252262
    253263void UIMachineWindowSeamless::prepareMachineView()
     
    292302void UIMachineWindowSeamless::saveWindowSettings()
    293303{
     304#ifndef Q_WS_MAC
    294305    /* Get machine: */
    295306    CMachine machine = session().GetConsole().GetMachine();
     
    301312            machine.SetExtraData(VBoxDefs::GUI_MiniToolBarAutoHide, m_pMiniToolBar->isAutoHide() ? QString() : "off");
    302313    }
     314#endif /* Q_WS_MAC */
    303315}
    304316
     
    325337
    326338    /* If mini tool-bar is present: */
     339#ifndef Q_WS_MAC
    327340    if (m_pMiniToolBar)
    328341    {
     
    339352        m_pMiniToolBar->setDisplayText(machine.GetName() + strSnapshotName);
    340353    }
     354#endif /* Q_WS_MAC */
    341355}
    342356
     
    369383
    370384    /* Mini tool-bar: */
     385#ifndef Q_WS_MAC
    371386    if (m_pMiniToolBar)
    372387    {
     
    387402        region += toolBarRegion;
    388403    }
     404#endif /* Q_WS_MAC */
    389405
    390406#if 0 // TODO: Is it really needed now?
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h

    r28800 r28964  
    5555    void sltPopupMainMenu();
    5656
     57#ifndef RT_OS_DARWIN /* Something is *really* broken in regards of the moc here */
    5758    /* Update mini tool-bar mask: */
    5859    void sltUpdateMiniToolBarMask();
     60#endif /* RT_OS_DARWIN */
    5961
    6062    /* Close window reimplementation: */
     
    7880    void prepareSeamless();
    7981    void prepareMenu();
     82#ifndef Q_WS_MAC
    8083    void prepareMiniToolBar();
     84#endif /* Q_WS_MAC */
    8185    void prepareMachineView();
    8286#ifdef Q_WS_MAC
     
    8791    void saveWindowSettings();
    8892    void cleanupMachineView();
     93#ifndef Q_WS_MAC
    8994    //void cleanupMiniToolBar() {}
     95#endif /* Q_WS_MAC */
    9096    void cleanupMenu();
    9197    //void cleanupSeamless() {}
     
    100106    /* Private variables: */
    101107    QMenu *m_pMainMenu;
     108#ifndef Q_WS_MAC
    102109    VBoxMiniToolBar *m_pMiniToolBar;
     110#endif /* Q_WS_MAC */
    103111#ifdef Q_WS_WIN
    104112    QRegion m_prevRegion;
Note: See TracChangeset for help on using the changeset viewer.

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