- Timestamp:
- Mar 12, 2010 1:29:09 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58722
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r27300 r27310 37 37 #include "VBoxVMSettingsNetwork.h" 38 38 #include "VBoxVMSettingsSF.h" 39 #include "UIFirstRunWzd.h"40 39 #ifdef Q_WS_MAC 41 40 # include "DockIconPreview.h" … … 424 423 , m_pRunningOrPausedActions(0) 425 424 , m_fIsWindowsCreated(false) 426 , m_fIsMachineStarted(false)427 425 , m_fIsPreventAutoStart(false) 428 426 , m_fIsPreventAutoClose(false) … … 472 470 } 473 471 #endif /* Q_WS_MAC */ 474 }475 476 void UIMachineLogic::tryToStartMachine()477 {478 /* If we are started already => just return: */479 if (m_fIsMachineStarted || uisession()->isRunning() || uisession()->isPaused())480 return;481 482 /* Prepare console powerup: */483 prepareConsolePowerUp();484 485 /* Get current machine/console: */486 CMachine machine = session().GetMachine();487 CConsole console = session().GetConsole();488 489 /* Start VM: */490 CProgress progress = vboxGlobal().isStartPausedEnabled() || vboxGlobal().isDebuggerAutoShowEnabled() ?491 console.PowerUpPaused() : console.PowerUp();492 493 #if 0 // TODO: Check immediate failure!494 /* Check for an immediate failure: */495 if (!console.isOk())496 {497 vboxProblem().cannotStartMachine(console);498 machineWindowWrapper()->machineWindow()->close();499 return;500 }501 502 /* Disable auto-closure because we want to have a chance to show the error dialog on startup failure: */503 setPreventAutoClose(true);504 #endif505 506 /* Show "Starting/Restoring" progress dialog: */507 if (uisession()->isSaved())508 vboxProblem().showModalProgressDialog(progress, machine.GetName(), defaultMachineWindow()->machineWindow(), 0);509 else510 vboxProblem().showModalProgressDialog(progress, machine.GetName(), defaultMachineWindow()->machineWindow());511 512 #if 0 // TODO: Check immediate failure!513 /* Check for an progress failure */514 if (progress.GetResultCode() != 0)515 {516 vboxProblem().cannotStartMachine(progress);517 machineWindowWrapper()->machineWindow()->close();518 return;519 }520 521 /* Enable auto-closure again: */522 setPreventAutoClose(false);523 524 /* Check if we missed a really quick termination after successful startup, and process it if we did: */525 if (uisession()->isTurnedOff())526 {527 machineWindowWrapper()->machineWindow()->close();528 return;529 }530 #endif531 532 #if 0 // TODO: Rework debugger logic!533 # ifdef VBOX_WITH_DEBUGGER_GUI534 /* Open the debugger in "full screen" mode requested by the user. */535 else if (vboxGlobal().isDebuggerAutoShowEnabled())536 {537 /* console in upper left corner of the desktop. */538 QRect rct (0, 0, 0, 0);539 QDesktopWidget *desktop = QApplication::desktop();540 if (desktop)541 rct = desktop->availableGeometry(pos());542 move (QPoint (rct.x(), rct.y()));543 544 if (vboxGlobal().isDebuggerAutoShowStatisticsEnabled())545 sltShowDebugStatistics();546 if (vboxGlobal().isDebuggerAutoShowCommandLineEnabled())547 sltShowDebugCommandLine();548 549 if (!vboxGlobal().isStartPausedEnabled())550 machineWindowWrapper()->machineView()->pause (false);551 }552 # endif553 #endif554 555 #ifdef VBOX_WITH_UPDATE_REQUEST556 /* Check for updates if necessary: */557 vboxGlobal().showUpdateDialog(false /* force request? */);558 #endif559 560 /* Remember what machine was started already: */561 m_fIsMachineStarted = true;562 563 /* Warn listeners about machine was started: */564 emit sigMachineStarted();565 472 } 566 473 … … 587 494 #endif /* Q_WS_MAC */ 588 495 589 void UIMachineLogic::prepareConnections() 590 { 591 /* Connect common handlers: */ 592 connect(this, SIGNAL(sigMachineStarted()), this, SLOT(sltCheckRequestedModes())); 593 } 594 595 void UIMachineLogic::prepareConsoleConnections() 596 { 496 void UIMachineLogic::prepareSessionConnections() 497 { 498 /* Machine power-up notifier: */ 499 connect(uisession(), SIGNAL(sigMachineStarted()), this, SLOT(sltCheckRequestedModes())); 500 597 501 /* Machine state-change updater: */ 598 502 connect(uisession(), SIGNAL(sigMachineStateChange()), this, SLOT(sltMachineStateChanged())); … … 611 515 connect(uisession(), SIGNAL(sigRuntimeError(bool, const QString &, const QString &)), 612 516 this, SLOT(sltRuntimeError(bool, const QString &, const QString &))); 613 }614 615 void UIMachineLogic::prepareActionGroups()616 {617 #ifdef Q_WS_MAC618 /* On Mac OS X, all QMenu's are consumed by Qt after they are added to619 * another QMenu or a QMenuBar. This means we have to recreate all QMenus620 * when creating a new QMenuBar. */621 uisession()->actionsPool()->createMenus();622 #endif /* Q_WS_MAC */623 624 /* Create group for all actions that are enabled only when the VM is running.625 * Note that only actions whose enabled state depends exclusively on the626 * execution state of the VM are added to this group. */627 m_pRunningActions = new QActionGroup(this);628 m_pRunningActions->setExclusive(false);629 630 /* Create group for all actions that are enabled when the VM is running or paused.631 * Note that only actions whose enabled state depends exclusively on the632 * execution state of the VM are added to this group. */633 m_pRunningOrPausedActions = new QActionGroup(this);634 m_pRunningOrPausedActions->setExclusive(false);635 636 /* Move actions into running actions group: */637 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Fullscreen));638 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Seamless));639 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize));640 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_AdjustWindow));641 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_TypeCAD));642 #ifdef Q_WS_X11643 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_TypeCABS));644 #endif645 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_Reset));646 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_Shutdown));647 #ifdef VBOX_WITH_DEBUGGER_GUI648 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_Statistics));649 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_CommandLine));650 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Logging));651 #endif652 653 /* Move actions into running-n-paused actions group: */654 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_MouseIntegration));655 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_MouseIntegration));656 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_TakeSnapshot));657 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_InformationDialog));658 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Pause));659 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_Close));660 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_OpticalDevices));661 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_FloppyDevices));662 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_USBDevices));663 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_NetworkAdapters));664 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_NetworkAdaptersDialog));665 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_SharedFolders));666 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_SharedFoldersDialog));667 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_VRDP));668 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_InstallGuestTools));669 517 } 670 518 … … 726 574 } 727 575 576 void UIMachineLogic::prepareActionGroups() 577 { 578 #ifdef Q_WS_MAC 579 /* On Mac OS X, all QMenu's are consumed by Qt after they are added to 580 * another QMenu or a QMenuBar. This means we have to recreate all QMenus 581 * when creating a new QMenuBar. */ 582 uisession()->actionsPool()->createMenus(); 583 #endif /* Q_WS_MAC */ 584 585 /* Create group for all actions that are enabled only when the VM is running. 586 * Note that only actions whose enabled state depends exclusively on the 587 * execution state of the VM are added to this group. */ 588 m_pRunningActions = new QActionGroup(this); 589 m_pRunningActions->setExclusive(false); 590 591 /* Create group for all actions that are enabled when the VM is running or paused. 592 * Note that only actions whose enabled state depends exclusively on the 593 * execution state of the VM are added to this group. */ 594 m_pRunningOrPausedActions = new QActionGroup(this); 595 m_pRunningOrPausedActions->setExclusive(false); 596 597 /* Move actions into running actions group: */ 598 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Fullscreen)); 599 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Seamless)); 600 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)); 601 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_AdjustWindow)); 602 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_TypeCAD)); 603 #ifdef Q_WS_X11 604 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_TypeCABS)); 605 #endif 606 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_Reset)); 607 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_Shutdown)); 608 #ifdef VBOX_WITH_DEBUGGER_GUI 609 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_Statistics)); 610 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Simple_CommandLine)); 611 m_pRunningActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Logging)); 612 #endif 613 614 /* Move actions into running-n-paused actions group: */ 615 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_MouseIntegration)); 616 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_MouseIntegration)); 617 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_TakeSnapshot)); 618 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_InformationDialog)); 619 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_Pause)); 620 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_Close)); 621 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_OpticalDevices)); 622 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_FloppyDevices)); 623 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_USBDevices)); 624 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_NetworkAdapters)); 625 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_NetworkAdaptersDialog)); 626 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_SharedFolders)); 627 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_SharedFoldersDialog)); 628 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_VRDP)); 629 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_InstallGuestTools)); 630 } 631 728 632 #ifdef Q_WS_MAC 729 633 void UIMachineLogic::prepareDock() … … 835 739 if (isPreventAutoStart()) 836 740 QTimer::singleShot(0, uisession(), SLOT(sltCloseVirtualSession())); 837 }838 839 void UIMachineLogic::prepareConsolePowerUp()840 {841 /* Notify user about mouse&keyboard auto-capturing: */842 if (vboxGlobal().settings().autoCapture())843 vboxProblem().remindAboutAutoCapture();844 845 /* Shows first run wizard if necessary: */846 if (uisession()->isFirstTimeStarted())847 {848 UIFirstRunWzd wzd(defaultMachineWindow()->machineWindow(), session().GetMachine());849 wzd.exec();850 }851 741 } 852 742 … … 1023 913 { 1024 914 /* Do not try to enter extended mode if machine was not started yet: */ 1025 if (! m_fIsMachineStarted)915 if (!uisession()->isRunning() && !uisession()->isPaused()) 1026 916 return; 1027 917 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r27300 r27310 83 83 #endif /* Q_WS_MAC */ 84 84 85 signals:86 87 void sigMachineStarted();88 89 85 protected: 90 86 … … 106 102 void addMachineWindow(UIMachineWindow *pMachineWindow); 107 103 void retranslateUi(); 108 void tryToStartMachine();109 104 #ifdef Q_WS_MAC 110 105 bool isDockIconPreviewEnabled() const { return m_fIsDockIconEnabled; } … … 114 109 115 110 /* Prepare helpers: */ 116 virtual void prepare Connections();117 virtual void prepare ConsoleConnections();111 virtual void prepareSessionConnections(); 112 virtual void prepareActionConnections(); 118 113 virtual void prepareActionGroups(); 119 virtual void prepareActionConnections();120 114 #ifdef Q_WS_MAC 121 115 virtual void prepareDock(); 122 116 #endif /* Q_WS_MAC */ 123 117 virtual void prepareRequiredFeatures(); 124 virtual void prepareConsolePowerUp();125 118 126 119 /* Cleanup helpers: */ 127 //virtual void cleanupConsolePowerUp() {}128 120 //virtual void cleanupRequiredFeatures() {} 129 121 #ifdef Q_WS_MAC 130 122 //virtual void cleanupDock() {} 131 123 #endif /* Q_WS_MAC */ 124 //virtual void cleanupActionGroups() {} 132 125 //virtual void cleanupActionConnections() {} 133 //virtual void cleanupActionGroups() {} 134 //virtual void cleanupConsoleConnections() {} 135 //virtual void cleanupConnections() {} 126 //virtual void cleanupSessionConnections() {} 136 127 137 128 protected slots: … … 205 196 206 197 bool m_fIsWindowsCreated : 1; 207 bool m_fIsMachineStarted : 1;208 198 bool m_fIsPreventAutoStart : 1; 209 199 bool m_fIsPreventAutoClose : 1; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r27300 r27310 34 34 #include "UIMachineMenuBar.h" 35 35 #include "VBoxProblemReporter.h" 36 #include "UIFirstRunWzd.h" 36 37 37 38 #ifdef Q_WS_X11 … … 586 587 } 587 588 589 void UISession::powerUp() 590 { 591 /* Do nothing if we had started already: */ 592 if (isRunning() || isPaused()) 593 return; 594 595 /* Prepare powerup: */ 596 preparePowerUp(); 597 598 /* Get current machine/console: */ 599 CMachine machine = session().GetMachine(); 600 CConsole console = session().GetConsole(); 601 602 /* Power UP machine: */ 603 CProgress progress = vboxGlobal().isStartPausedEnabled() || vboxGlobal().isDebuggerAutoShowEnabled() ? 604 console.PowerUpPaused() : console.PowerUp(); 605 606 #if 0 // TODO: Check immediate failure! 607 /* Check for an immediate failure: */ 608 if (!console.isOk()) 609 { 610 vboxProblem().cannotStartMachine(console); 611 machineWindowWrapper()->machineWindow()->close(); 612 return; 613 } 614 615 /* Disable auto-closure because we want to have a chance to show the error dialog on startup failure: */ 616 setPreventAutoClose(true); 617 #endif 618 619 /* Show "Starting/Restoring" progress dialog: */ 620 if (isSaved()) 621 vboxProblem().showModalProgressDialog(progress, machine.GetName(), mainMachineWindow(), 0); 622 else 623 vboxProblem().showModalProgressDialog(progress, machine.GetName(), mainMachineWindow()); 624 625 #if 0 // TODO: Check immediate failure! 626 /* Check for an progress failure */ 627 if (progress.GetResultCode() != 0) 628 { 629 vboxProblem().cannotStartMachine(progress); 630 machineWindowWrapper()->machineWindow()->close(); 631 return; 632 } 633 634 /* Enable auto-closure again: */ 635 setPreventAutoClose(false); 636 637 /* Check if we missed a really quick termination after successful startup, and process it if we did: */ 638 if (uisession()->isTurnedOff()) 639 { 640 machineWindowWrapper()->machineWindow()->close(); 641 return; 642 } 643 #endif 644 645 #if 0 // TODO: Rework debugger logic! 646 # ifdef VBOX_WITH_DEBUGGER_GUI 647 /* Open the debugger in "full screen" mode requested by the user. */ 648 else if (vboxGlobal().isDebuggerAutoShowEnabled()) 649 { 650 /* console in upper left corner of the desktop. */ 651 QRect rct (0, 0, 0, 0); 652 QDesktopWidget *desktop = QApplication::desktop(); 653 if (desktop) 654 rct = desktop->availableGeometry(pos()); 655 move (QPoint (rct.x(), rct.y())); 656 657 if (vboxGlobal().isDebuggerAutoShowStatisticsEnabled()) 658 sltShowDebugStatistics(); 659 if (vboxGlobal().isDebuggerAutoShowCommandLineEnabled()) 660 sltShowDebugCommandLine(); 661 662 if (!vboxGlobal().isStartPausedEnabled()) 663 machineWindowWrapper()->machineView()->pause (false); 664 } 665 # endif 666 #endif 667 668 /* Warn listeners about machine was started: */ 669 emit sigMachineStarted(); 670 } 671 588 672 UIActionsPool* UISession::actionsPool() const 589 673 { 590 674 return m_pMachine->actionsPool(); 675 } 676 677 QWidget* UISession::mainMachineWindow() const 678 { 679 return uimachine()->machineLogic()->mainMachineWindow()->machineWindow(); 591 680 } 592 681 … … 969 1058 WId UISession::winId() const 970 1059 { 971 return uimachine()->machineLogic()->mainMachineWindow()->machineWindow()->winId();1060 return mainMachineWindow()->winId(); 972 1061 } 973 1062 … … 1251 1340 } 1252 1341 1342 void UISession::preparePowerUp() 1343 { 1344 #ifdef VBOX_WITH_UPDATE_REQUEST 1345 /* Check for updates if necessary: */ 1346 vboxGlobal().showUpdateDialog(false /* force request? */); 1347 #endif 1348 1349 /* Notify user about mouse&keyboard auto-capturing: */ 1350 if (vboxGlobal().settings().autoCapture()) 1351 vboxProblem().remindAboutAutoCapture(); 1352 1353 /* Shows first run wizard if necessary: */ 1354 if (isFirstTimeStarted()) 1355 { 1356 UIFirstRunWzd wzd(mainMachineWindow(), session().GetMachine()); 1357 wzd.exec(); 1358 } 1359 } 1360 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r27300 r27310 76 76 virtual ~UISession(); 77 77 78 /* Common members: */ 79 void powerUp(); 80 78 81 /* Common getters: */ 79 82 CSession& session() { return m_session; } 80 83 KMachineState machineState() const { return m_machineState; } 81 84 UIActionsPool* actionsPool() const; 85 QWidget* mainMachineWindow() const; 82 86 QMenu* newMenu(); 83 87 QMenuBar* newMenuBar(); … … 157 161 158 162 /* Session signals: */ 163 void sigMachineStarted(); 159 164 void sigMouseCapturedStatusChanged(); 160 165 … … 184 189 void setPointerShape(const uchar *pShapeData, bool fHasAlpha, uint uXHot, uint uYHot, uint uWidth, uint uHeight); 185 190 void reinitMenuPool(); 191 void preparePowerUp(); 186 192 187 193 /* Private variables: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r27300 r27310 132 132 if (!isPreventAutoStart()) 133 133 { 134 #ifdef Q_WS_MAC 134 135 /* Prepare common connections: */ 135 prepareConnections(); 136 prepareCommonConnections(); 137 #endif /* Q_WS_MAC */ 136 138 137 139 /* Prepare console connections: */ 138 prepareConsoleConnections(); 140 prepareSessionConnections(); 141 142 /* Prepare action connections: */ 143 prepareActionConnections(); 139 144 140 145 /* Prepare action groups: */ 141 146 prepareActionGroups(); 142 147 143 /* Prepare action connections: */144 prepareActionConnections();145 146 148 /* Prepare machine window: */ 147 149 prepareMachineWindows(); … … 151 153 prepareDock(); 152 154 #endif /* Q_WS_MAC */ 155 156 /* Power up machine: */ 157 uisession()->powerUp(); 153 158 154 159 /* Initialization: */ … … 163 168 164 169 #ifdef Q_WS_MAC 165 void UIMachineLogicFullscreen::prepareConsoleConnections() 166 { 167 /* Base class connections: */ 168 UIMachineLogic::prepareConsoleConnections(); 169 170 void UIMachineLogicFullscreen::prepareCommonConnections() 171 { 170 172 /* Presentation mode connection */ 171 173 connect (&vboxGlobal(), SIGNAL(presentationModeChanged(const VBoxChangePresentationModeEvent &)), … … 212 214 /* Remember what machine window(s) created: */ 213 215 setMachineWindowsCreated(true); 214 215 /* Check if we need to start VM: */216 tryToStartMachine();217 216 } 218 217 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r27081 r27310 56 56 /* Prepare helpers: */ 57 57 #ifdef Q_WS_MAC 58 void prepareCo nsoleConnections();58 void prepareCommonConnections(); 59 59 #endif /* Q_WS_MAC */ 60 60 void prepareActionGroups(); … … 64 64 void cleanupMachineWindows(); 65 65 void cleanupActionGroups(); 66 #ifdef Q_WS_MAC 67 //void cleanupCommonConnections() {} 68 #endif /* Q_WS_MAC */ 66 69 67 70 #ifdef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r27300 r27310 57 57 if (!isPreventAutoStart()) 58 58 { 59 /* Prepare common connections: */60 prepare Connections();59 /* Prepare session connections: */ 60 prepareSessionConnections(); 61 61 62 /* Prepare consoleconnections: */63 prepare ConsoleConnections();62 /* Prepare action connections: */ 63 prepareActionConnections(); 64 64 65 65 /* Prepare action groups: */ 66 66 prepareActionGroups(); 67 68 /* Prepare action connections: */69 prepareActionConnections();70 67 71 68 /* Prepare normal machine window: */ … … 76 73 prepareDock(); 77 74 #endif /* Q_WS_MAC */ 75 76 /* Power up machine: */ 77 uisession()->powerUp(); 78 78 79 79 /* Initialization: */ … … 148 148 /* Remember what machine window(s) created: */ 149 149 setMachineWindowsCreated(true); 150 151 /* Check if we need to start VM: */152 tryToStartMachine();153 150 } 154 151 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.h
r26950 r27310 59 59 /* Cleanup helpers: */ 60 60 void cleanupMachineWindow(); 61 void cleanupActionConnections() {}61 //void cleanupActionConnections() {} 62 62 63 63 /* Friend classes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r27300 r27310 125 125 if (!isPreventAutoStart()) 126 126 { 127 /* Prepare common connections: */128 prepareConnections();129 130 127 /* Prepare console connections: */ 131 prepareConsoleConnections(); 128 prepareSessionConnections(); 129 130 /* Prepare action connections: */ 131 prepareActionConnections(); 132 132 133 133 /* Prepare action groups: */ 134 134 prepareActionGroups(); 135 136 /* Prepare action connections: */137 prepareActionConnections();138 135 139 136 /* Prepare normal machine window: */ … … 144 141 prepareDock(); 145 142 #endif /* Q_WS_MAC */ 143 144 /* Power up machine: */ 145 uisession()->powerUp(); 146 146 147 147 /* Initialization: */ … … 198 198 /* Remember what machine window(s) created: */ 199 199 setMachineWindowsCreated(true); 200 201 /* Check if we need to start VM: */202 tryToStartMachine();203 200 } 204 201
Note:
See TracChangeset
for help on using the changeset viewer.