VirtualBox

Changeset 27015 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 4, 2010 12:25:45 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: fs updates

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r27012 r27015  
    159159    virtual void sltMousePointerShapeChanged();
    160160    virtual void sltMouseCapabilityChanged();
     161    virtual void sltPerformGuestResize(const QSize & /* toSize */) {};
    161162
    162163    /* Session callback handlers: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r26961 r27015  
    5454    /* Cleanup machine window: */
    5555    cleanupMachineWindow();
     56
     57    /* Cleanup action related stuff */
     58    cleanupActionGroups();
    5659}
    5760
     
    109112    }
    110113
     114    /* Take the toggle hot key from the menu item. Since
     115     * VBoxGlobal::extractKeyFromActionText gets exactly the
     116     * linked key without the 'Host+' part we are adding it here. */
     117    QString hotKey = QString ("Host+%1")
     118        .arg (VBoxGlobal::extractKeyFromActionText(actionsPool()->action(UIActionIndex_Toggle_Fullscreen)->text()));
     119    Assert (!hotKey.isEmpty());
     120
     121    /* Show the info message. */
     122    if (!vboxProblem().confirmGoingFullscreen(hotKey))
     123        return false;
     124
    111125    return true;
    112126}
     
    161175    menu->clear();
    162176    menu->addAction(actionsPool()->action(UIActionIndex_Toggle_MouseIntegration));
     177}
     178
     179void UIMachineLogicFullscreen::prepareActionGroups()
     180{
     181    UIMachineLogic::prepareActionGroups();
     182
     183    /* Adjust window isn't allowed in fullscreen */
     184    actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setEnabled(false);
    163185}
    164186
     
    303325}
    304326
     327void UIMachineLogicFullscreen::cleanupActionGroups()
     328{
     329    /* Reenable adjust window */
     330    actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setEnabled(true);
     331}
     332
    305333#ifdef Q_WS_MAC
    306334# ifdef QT_MAC_USE_COCOA
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h

    r26955 r27015  
    5555
    5656    /* Prepare helpers: */
     57    void prepareActionGroups();
    5758    void prepareActionConnections();
    5859    void prepareMachineWindows();
     
    6162    void cleanupMachineWindow();
    6263    void cleanupActionConnections() {}
     64    void cleanupActionGroups();
    6365
    6466#ifdef Q_WS_MAC
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r27012 r27015  
    5050#endif
    5151                    , uMonitor)
    52     , m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked())
     52, m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked())
    5353    , m_fShouldWeDoResize(false)
    5454{
     
    189189        maybeRestrictMinimumSize();
    190190
    191         if (uisession()->isGuestSupportsGraphics() && m_bIsGuestAutoresizeEnabled)
    192             sltPerformGuestResize();
     191        sltPerformGuestResize();
    193192    }
    194193}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r27008 r27015  
    277277}
    278278
    279 //#include "UIMachineViewFullscreen.h"
    280279void UIMachineWindowFullscreen::loadWindowSettings()
    281280{
    282     /* Load normal window settings: */
    283 //    CMachine machine = session().GetMachine();
    284 
    285281    /* Toggle console to manual resize mode. */
    286 //    m_pMachineView->setMachineWindowResizeIgnored(true);
    287282    m_pMachineView->setFrameBufferResizeIgnored(true);
    288283
     
    290285    QPalette palette(centralWidget()->palette());
    291286    palette.setColor(centralWidget()->backgroundRole(), Qt::black);
    292     centralWidget()->setPalette (palette);
    293     centralWidget()->setAutoFillBackground (true);
    294     setAutoFillBackground (true);
     287    centralWidget()->setPalette(palette);
     288    centralWidget()->setAutoFillBackground(true);
     289    setAutoFillBackground(true);
    295290
    296291    /* Here we are going really fullscreen */
     
    301296    /* Make sure it is really on the right place (especially on the Mac) */
    302297    move(0, 0);
    303 
    304 //    m_pMachineView->normalizeGeometry(true);
    305 //    ((UIMachineViewFullscreen*)m_pMachineView)->sltPerformGuestResize(maximumSize());
    306 
    307 //    QRect r = geometry();
    308     /* Load global settings: */
    309     {
    310 //        VBoxGlobalSettings settings = vboxGlobal().settings();
    311 //        menuBar()->setHidden(settings.isFeatureActive("noMenuBar"));
    312     }
    313298}
    314299
    315300void UIMachineWindowFullscreen::saveWindowSettings()
    316301{
    317 //    CMachine machine = session().GetMachine();
    318 
    319     /* Save extra-data settings: */
    320     {
    321     }
    322302}
    323303
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