- Timestamp:
- Mar 14, 2023 11:27:12 AM (19 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
-
UIMachineLogic.cpp (modified) (4 diffs)
-
UIMachineLogic.h (modified) (2 diffs)
-
UISession.cpp (modified) (1 diff)
-
normal/UIMachineWindowNormal.cpp (modified) (2 diffs)
-
normal/UIMachineWindowNormal.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98875 r98952 249 249 } 250 250 251 void UIMachineLogic::initializePostPowerUp()252 {253 #ifdef VBOX_WITH_DEBUGGER_GUI254 prepareDebugger();255 #endif /* VBOX_WITH_DEBUGGER_GUI */256 sltMachineStateChanged();257 sltAdditionsStateChanged();258 sltMouseCapabilityChanged();259 }260 261 251 UIActionPool *UIMachineLogic::actionPool() const 262 252 { … … 361 351 LogRel(("GUI: Request to power VM off due to VBoxSVC is unavailable.\n")); 362 352 uimachine()->powerOff(false /* do NOT restore current snapshot */); 353 } 354 355 void UIMachineLogic::sltHandleMachineInitialized() 356 { 357 #ifdef VBOX_WITH_DEBUGGER_GUI 358 prepareDebugger(); 359 #endif 360 sltMachineStateChanged(); 361 sltAdditionsStateChanged(); 362 sltMouseCapabilityChanged(); 363 363 } 364 364 … … 857 857 this, &UIMachineLogic::sltHandleVBoxSVCAvailabilityChange); 858 858 859 /* We should watch for machine UI initialization signal: */ 860 connect(uimachine(), &UIMachine::sigInitialized, this, &UIMachineLogic::sltHandleMachineInitialized); 861 859 862 /* We should watch for requested modes: */ 860 863 connect(uimachine(), &UIMachine::sigInitialized, this, &UIMachineLogic::sltCheckForRequestedVisualStateType, Qt::QueuedConnection); … … 1405 1408 this, &UIMachineLogic::sltHandleVBoxSVCAvailabilityChange); 1406 1409 1410 /* We should stop watching for machine UI initialization signal: */ 1411 disconnect(uimachine(), &UIMachine::sigInitialized, this, &UIMachineLogic::sltHandleMachineInitialized); 1412 1407 1413 /* We should stop watching for requested modes: */ 1408 1414 disconnect(uimachine(), &UIMachine::sigInitialized, this, &UIMachineLogic::sltCheckForRequestedVisualStateType); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r98855 r98952 87 87 virtual void cleanup(); 88 88 89 void initializePostPowerUp();90 91 89 /** Returns machine UI reference. */ 92 90 UIMachine *uimachine() const { return m_pMachine; } … … 125 123 /** Handles the VBoxSVC availability change. */ 126 124 void sltHandleVBoxSVCAvailabilityChange(); 125 126 /** Handles Machine UI initialized event. */ 127 void sltHandleMachineInitialized(); 127 128 128 129 /** Checks if some visual-state type was requested. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98944 r98952 194 194 /* Fetch corresponding states: */ 195 195 if (uiCommon().isSeparateProcess()) 196 {197 196 sltAdditionsChange(); 198 }199 machineLogic()->initializePostPowerUp();200 197 201 198 #ifdef VBOX_GUI_WITH_PIDFILE -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r98885 r98952 137 137 } 138 138 139 void UIMachineWindowNormal::sltHandle SessionInitialized()139 void UIMachineWindowNormal::sltHandleMachineInitialized() 140 140 { 141 141 /* Update virtualization stuff: */ … … 272 272 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); 273 273 274 /* Watch for UIMachinesignals: */274 /* Watch for machine UI signals: */ 275 275 connect(machineLogic()->uimachine(), &UIMachine::sigInitialized, 276 this, &UIMachineWindowNormal::sltHandle SessionInitialized);276 this, &UIMachineWindowNormal::sltHandleMachineInitialized); 277 277 } 278 278 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r98103 r98952 75 75 /** Handles CPU execution cap change event. */ 76 76 void sltCPUExecutionCapChange(); 77 /** Handles UISessioninitialized event. */78 void sltHandle SessionInitialized();77 /** Handles Machine UI initialized event. */ 78 void sltHandleMachineInitialized(); 79 79 80 80 #ifndef RT_OS_DARWIN
Note:
See TracChangeset
for help on using the changeset viewer.

