Changeset 98422 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 2, 2023 9:45:38 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3:79645-79692 21 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-15551 121 /branches/dsen/gui4:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513 22 22 /trunk/src:92342,154921
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 19 19 /branches/dsen/gui2/src/VBox:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 20 20 /branches/dsen/gui3/src/VBox:79645-79692 21 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-15551 121 /branches/dsen/gui4/src/VBox:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends
- Property svn:mergeinfo
-
old new 16 16 /branches/dsen/gui2/src/VBox/Frontends:79224,79228,79233,79235,79258,79262-79263,79273,79341,79345,79354,79357,79387-79388,79559-79569,79572-79573,79578,79581-79582,79590-79591,79598-79599,79602-79603,79605-79606,79632,79635,79637,79644 17 17 /branches/dsen/gui3/src/VBox/Frontends:79645-79692 18 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-15551 118 /branches/dsen/gui4/src/VBox/Frontends:155183-155185,155187,155198,155200-155201,155205,155228,155235,155243,155248,155282,155285,155287-155288,155311,155316,155336,155342,155344,155437-155438,155441,155443,155488,155509-155513
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98420 r98422 225 225 { 226 226 return m_enmRequestedVisualState; 227 } 228 229 QString UIMachine::machineName() const 230 { 231 return uisession()->machineName(); 227 232 } 228 233 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98404 r98422 172 172 UIVisualStateType requestedVisualState() const; 173 173 174 /** @name General stuff. 175 ** @{ */ 176 /** Returns the machine name. */ 177 QString machineName() const; 178 /** @} */ 179 174 180 /** @name Branding stuff. 175 181 ** @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98421 r98422 321 321 } 322 322 323 const QString&UIMachineLogic::machineName() const324 { 325 return ui session()->machineName();323 QString UIMachineLogic::machineName() const 324 { 325 return uimachine()->machineName(); 326 326 } 327 327 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r98400 r98422 138 138 139 139 /** Returns the machine name. */ 140 const QString&machineName() const;140 QString machineName() const; 141 141 const QList<UIMachineWindow*>& machineWindows() const { return m_machineWindowsList; } 142 142 UIKeyboardHandler* keyboardHandler() const { return m_pKeyboardHandler; } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r98419 r98422 237 237 } 238 238 239 const QString&UIMachineWindow::machineName() const240 { 241 return ui session()->machineName();239 QString UIMachineWindow::machineName() const 240 { 241 return uimachine()->machineName(); 242 242 } 243 243 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r98376 r98422 102 102 103 103 /** Returns the machine name. */ 104 const QString&machineName() const;104 QString machineName() const; 105 105 106 106 /** Returns whether the machine-window should resize to fit to the guest display. -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98420 r98422 248 248 } 249 249 250 UIMachineLogic* UISession::machineLogic() const251 {252 return uimachine() ? uimachine()->machineLogic() : 0;253 }254 255 QWidget* UISession::mainMachineWindow() const256 {257 return machineLogic() ? machineLogic()->mainMachineWindow() : 0;258 }259 260 250 WId UISession::mainMachineWindowId() const 261 251 { 262 return mainMachineWindow()->winId(); 263 } 264 265 UIMachineWindow *UISession::activeMachineWindow() const 266 { 267 return machineLogic() ? machineLogic()->activeMachineWindow() : 0; 252 return mainMachineWindow() ? mainMachineWindow()->winId() : 0; 268 253 } 269 254 … … 411 396 } 412 397 398 UIMachineLogic *UISession::machineLogic() const 399 { 400 return uimachine() ? uimachine()->machineLogic() : 0; 401 } 402 403 UIMachineWindow *UISession::activeMachineWindow() const 404 { 405 return machineLogic() ? machineLogic()->activeMachineWindow() : 0; 406 } 407 408 QWidget *UISession::mainMachineWindow() const 409 { 410 return machineLogic() ? machineLogic()->mainMachineWindow() : 0; 411 } 412 413 413 bool UISession::prepare() 414 414 { … … 416 416 if (!prepareSession()) 417 417 return false; 418 419 /* Prepare GUI stuff: */ 418 420 prepareNotificationCenter(); 419 421 prepareConsoleEventHandlers(); 420 422 prepareFramebuffers(); 421 422 /* Prepare GUI stuff: */423 423 prepareConnections(); 424 424 prepareSignalHandling(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98420 r98422 150 150 151 151 /** Returns the session instance. */ 152 CSession &session() { return m_session; }152 CSession &session() { return m_session; } 153 153 /** Returns the session's machine instance. */ 154 CMachine &machine() { return m_machine; }154 CMachine &machine() { return m_machine; } 155 155 /** Returns the session's console instance. */ 156 CConsole &console() { return m_console; }156 CConsole &console() { return m_console; } 157 157 /** Returns the console's display instance. */ 158 CDisplay &display() { return m_display; }158 CDisplay &display() { return m_display; } 159 159 /** Returns the console's guest instance. */ 160 CGuest &guest() { return m_guest; }160 CGuest &guest() { return m_guest; } 161 161 /** Returns the console's mouse instance. */ 162 CMouse &mouse() { return m_mouse; }162 CMouse &mouse() { return m_mouse; } 163 163 /** Returns the console's keyboard instance. */ 164 CKeyboard &keyboard() { return m_keyboard; }164 CKeyboard &keyboard() { return m_keyboard; } 165 165 /** Returns the console's debugger instance. */ 166 CMachineDebugger &debugger() { return m_debugger; }166 CMachineDebugger &debugger() { return m_debugger; } 167 167 168 168 /** Returns the machine name. */ 169 const QString& machineName() const { return m_strMachineName; } 169 QString machineName() const { return m_strMachineName; } 170 171 /** Returns previous machine state. */ 170 172 KMachineState machineStatePrevious() const { return m_machineStatePrevious; } 173 /** Returns machine state. */ 171 174 KMachineState machineState() const { return m_machineState; } 172 175 173 UIMachineLogic* machineLogic() const; 174 QWidget* mainMachineWindow() const; 176 /** Returns main machine-widget id. */ 175 177 WId mainMachineWindowId() const; 176 UIMachineWindow *activeMachineWindow() const;177 178 178 179 bool isSaved() const { return machineState() == KMachineState_Saved || … … 191 192 bool wasPaused() const { return machineStatePrevious() == KMachineState_Paused || 192 193 machineStatePrevious() == KMachineState_TeleportingPausedVM; } 194 193 195 bool isInitialized() const { return m_fInitialized; } 194 196 bool isGuestResizeIgnored() const { return m_fIsGuestResizeIgnored; } … … 272 274 ~UISession(); 273 275 274 /* Private getters: */ 275 UIMachine* uimachine() const { return m_pMachine; } 276 /** Returns machine UI reference. */ 277 UIMachine *uimachine() const { return m_pMachine; } 278 /** Returns machine-logic reference. */ 279 UIMachineLogic *machineLogic() const; 280 /** Returns main machine-window reference. */ 281 UIMachineWindow *activeMachineWindow() const; 282 /** Returns main machine-widget reference. */ 283 QWidget *mainMachineWindow() const; 276 284 277 285 /* Prepare helpers: */
Note:
See TracChangeset
for help on using the changeset viewer.