Changeset 26938 in vbox for trunk/src/VBox
- Timestamp:
- Mar 2, 2010 11:47:45 AM (15 years ago)
- 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 37 37 #include "VBoxVMSettingsNetwork.h" 38 38 #include "VBoxVMSettingsSF.h" 39 #include "UIFirstRunWzd.h" 40 39 41 //#include "VBoxDownloaderWgt.h" 40 42 … … 601 603 if (isPreventAutoStart()) 602 604 QTimer::singleShot(0, uisession(), SLOT(sltCloseVirtualSession())); 605 } 606 607 void 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 } 603 619 } 604 620 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r26926 r26938 96 96 virtual void prepareActionConnections(); 97 97 virtual void prepareRequiredFeatures(); 98 virtual void prepareConsolePowerUp(); 98 99 99 100 /* Cleanup helpers: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r26937 r26938 30 30 #include "VBoxGlobal.h" 31 31 #include "VBoxProblemReporter.h" 32 33 #include "UIFirstRunWzd.h"34 32 35 33 #include "UISession.h" … … 174 172 if (!uisession()->isRunning() && !uisession()->isPaused()) 175 173 { 174 prepareConsolePowerUp(); 175 176 176 /* Get current machine/console: */ 177 177 CMachine machine = session().GetMachine(); 178 178 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 }190 179 191 180 /* Start VM: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r26926 r26938 30 30 #include "VBoxProblemReporter.h" 31 31 32 #include "UIFirstRunWzd.h"33 34 32 #include "UISession.h" 35 33 #include "UIActionsPool.h" … … 143 141 if (!uisession()->isRunning() && !uisession()->isPaused()) 144 142 { 143 prepareConsolePowerUp(); 144 145 145 /* Get current machine/console: */ 146 146 CMachine machine = session().GetMachine(); 147 147 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 }159 148 160 149 /* Start VM: */
Note:
See TracChangeset
for help on using the changeset viewer.