- Timestamp:
- Feb 19, 2010 11:35:45 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r26603 r26644 33 33 #include "QIDialogButtonBox.h" 34 34 35 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 36 #include "UIMachine.h" 37 #endif 35 38 #ifdef VBOX_WITH_REGISTRATION 36 39 #include "UIRegistrationWzd.h" … … 592 595 : mValid (false) 593 596 , mSelectorWnd (NULL), mConsoleWnd (NULL) 597 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 598 , m_pVirtualMachine(0) 599 #endif 594 600 , mMainWindow (NULL) 595 601 #ifdef VBOX_WITH_REGISTRATION … … 777 783 return *mConsoleWnd; 778 784 } 785 786 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 787 UIMachine& VBoxGlobal::virtualMachine(const CSession &session /* = CSession() */) 788 { 789 if (!m_pVirtualMachine) 790 { 791 UIMachine *pVirtualMachine = new UIMachine(&m_pVirtualMachine, session); 792 Assert(pVirtualMachine == m_pVirtualMachine); 793 NOREF(pVirtualMachine); 794 } 795 return *m_pVirtualMachine; 796 } 797 #endif 779 798 780 799 bool VBoxGlobal::brandingIsActive (bool aForce /* = false*/) … … 2248 2267 return false; 2249 2268 2269 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 2270 virtualMachine(session); 2271 return true; 2272 #else 2250 2273 return consoleWnd().openView (session); 2274 #endif 2251 2275 } 2252 2276 … … 4992 5016 if (mSelectorWnd) 4993 5017 delete mSelectorWnd; 5018 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 5019 if (m_pVirtualMachine) 5020 delete m_pVirtualMachine; 5021 #endif 4994 5022 4995 5023 /* ensure CGuestOSType objects are no longer used */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r26469 r26644 45 45 class QLabel; 46 46 class QToolButton; 47 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 48 class UIMachine; 49 #endif 47 50 48 51 // VirtualBox callback events … … 304 307 VBoxSelectorWnd &selectorWnd(); 305 308 VBoxConsoleWnd &consoleWnd(); 309 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 310 UIMachine &virtualMachine(const CSession &session = CSession()); 311 #endif 306 312 307 313 /* main window handle storage */ … … 899 905 VBoxSelectorWnd *mSelectorWnd; 900 906 VBoxConsoleWnd *mConsoleWnd; 907 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 908 UIMachine *m_pVirtualMachine; 909 #endif 901 910 QWidget* mMainWindow; 902 911
Note:
See TracChangeset
for help on using the changeset viewer.