VirtualBox

Changeset 26938 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 2, 2010 11:47:45 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: this stuff has do be done from all modes

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

Legend:

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

    r26926 r26938  
    3737#include "VBoxVMSettingsNetwork.h"
    3838#include "VBoxVMSettingsSF.h"
     39#include "UIFirstRunWzd.h"
     40
    3941//#include "VBoxDownloaderWgt.h"
    4042
     
    601603    if (isPreventAutoStart())
    602604        QTimer::singleShot(0, uisession(), SLOT(sltCloseVirtualSession()));
     605}
     606
     607void UIMachineLogic::prepareConsolePowerUp()
     608{
     609    /* Notify user about mouse&keyboard auto-capturing: */
     610    if (vboxGlobal().settings().autoCapture())
     611        vboxProblem().remindAboutAutoCapture();
     612
     613    /* Shows first run wizard if necessary: */
     614    if (uisession()->isFirstTimeStarted())
     615    {
     616        UIFirstRunWzd wzd(defaultMachineWindow()->machineWindow(), session().GetMachine());
     617        wzd.exec();
     618    }
    603619}
    604620
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r26926 r26938  
    9696    virtual void prepareActionConnections();
    9797    virtual void prepareRequiredFeatures();
     98    virtual void prepareConsolePowerUp();
    9899
    99100    /* Cleanup helpers: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r26937 r26938  
    3030#include "VBoxGlobal.h"
    3131#include "VBoxProblemReporter.h"
    32 
    33 #include "UIFirstRunWzd.h"
    3432
    3533#include "UISession.h"
     
    174172    if (!uisession()->isRunning() && !uisession()->isPaused())
    175173    {
     174        prepareConsolePowerUp();
     175
    176176        /* Get current machine/console: */
    177177        CMachine machine = session().GetMachine();
    178178        CConsole console = session().GetConsole();
    179 
    180         /* Notify user about mouse&keyboard auto-capturing: */
    181         if (vboxGlobal().settings().autoCapture())
    182             vboxProblem().remindAboutAutoCapture();
    183 
    184         /* Shows first run wizard if necessary: */
    185         if (uisession()->isFirstTimeStarted())
    186         {
    187             UIFirstRunWzd wzd(defaultMachineWindow()->machineWindow(), machine);
    188             wzd.exec();
    189         }
    190179
    191180        /* Start VM: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp

    r26926 r26938  
    3030#include "VBoxProblemReporter.h"
    3131
    32 #include "UIFirstRunWzd.h"
    33 
    3432#include "UISession.h"
    3533#include "UIActionsPool.h"
     
    143141    if (!uisession()->isRunning() && !uisession()->isPaused())
    144142    {
     143        prepareConsolePowerUp();
     144
    145145        /* Get current machine/console: */
    146146        CMachine machine = session().GetMachine();
    147147        CConsole console = session().GetConsole();
    148 
    149         /* Notify user about mouse&keyboard auto-capturing: */
    150         if (vboxGlobal().settings().autoCapture())
    151             vboxProblem().remindAboutAutoCapture();
    152 
    153         /* Shows first run wizard if necessary: */
    154         if (uisession()->isFirstTimeStarted())
    155         {
    156             UIFirstRunWzd wzd(defaultMachineWindow()->machineWindow(), machine);
    157             wzd.exec();
    158         }
    159148
    160149        /* Start VM: */
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