Changeset 98375 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 1, 2023 12:15:57 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 16 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,155198 21 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,155198
-
- 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,155198
-
- Property svn:mergeinfo
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98124 r98375 34 34 35 35 /* GUI includes: */ 36 #include "QIStatusBarIndicator.h" 37 #include "QIWithRetranslateUI.h" 38 #include "UIAnimationFramework.h" 39 #include "UICommon.h" 40 #include "UIConverter.h" 41 #include "UIHostComboEditor.h" 42 #include "UIIconPool.h" 36 43 #include "UIIndicatorsPool.h" 37 #include "QIWithRetranslateUI.h"38 44 #include "UIExtraDataManager.h" 45 #include "UIMachine.h" 39 46 #include "UIMachineDefs.h" 40 #include "UIConverter.h" 41 #include "UIAnimationFramework.h" 47 #include "UIMedium.h" 42 48 #include "UISession.h" 43 #include "UIMedium.h"44 #include "UIIconPool.h"45 #include "UIHostComboEditor.h"46 #include "QIStatusBarIndicator.h"47 #include "UICommon.h"48 49 49 50 /* COM includes: */ … … 79 80 80 81 /** Constructor which remembers passed @a session object. */ 81 UISessionStateStatusBarIndicator(IndicatorType enmType, UI Session *pSession);82 UISessionStateStatusBarIndicator(IndicatorType enmType, UIMachine *pMachine, UISession *pSession); 82 83 83 84 /** Returns the indicator type. */ … … 98 99 const IndicatorType m_enmType; 99 100 101 /** Holds the machine UI reference. */ 102 UIMachine *m_pMachine; 100 103 /** Holds the session UI reference. */ 101 104 UISession *m_pSession; … … 167 170 168 171 169 UISessionStateStatusBarIndicator::UISessionStateStatusBarIndicator(IndicatorType enmType, UI Session *pSession)172 UISessionStateStatusBarIndicator::UISessionStateStatusBarIndicator(IndicatorType enmType, UIMachine *pMachine, UISession *pSession) 170 173 : m_enmType(enmType) 174 , m_pMachine(pMachine) 171 175 , m_pSession(pSession) 172 176 { … … 194 198 195 199 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 196 UIIndicatorHardDrive(UI Session *pSession)197 : UISessionStateStatusBarIndicator(IndicatorType_HardDisks, p Session)200 UIIndicatorHardDrive(UIMachine *pMachine, UISession *pSession) 201 : UISessionStateStatusBarIndicator(IndicatorType_HardDisks, pMachine, pSession) 198 202 { 199 203 /* Assign state-icons: */ … … 271 275 272 276 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 273 UIIndicatorOpticalDisks(UI Session *pSession)274 : UISessionStateStatusBarIndicator(IndicatorType_OpticalDisks, p Session)277 UIIndicatorOpticalDisks(UIMachine *pMachine, UISession *pSession) 278 : UISessionStateStatusBarIndicator(IndicatorType_OpticalDisks, pMachine, pSession) 275 279 { 276 280 /* Assign state-icons: */ … … 340 344 341 345 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 342 UIIndicatorFloppyDisks(UI Session *pSession)343 : UISessionStateStatusBarIndicator(IndicatorType_FloppyDisks, p Session)346 UIIndicatorFloppyDisks(UIMachine *pMachine, UISession *pSession) 347 : UISessionStateStatusBarIndicator(IndicatorType_FloppyDisks, pMachine, pSession) 344 348 { 345 349 /* Assign state-icons: */ … … 418 422 419 423 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 420 UIIndicatorAudio(UI Session *pSession)421 : UISessionStateStatusBarIndicator(IndicatorType_Audio, p Session)424 UIIndicatorAudio(UIMachine *pMachine, UISession *pSession) 425 : UISessionStateStatusBarIndicator(IndicatorType_Audio, pMachine, pSession) 422 426 { 423 427 /* Assign state-icons: */ … … 483 487 484 488 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 485 UIIndicatorNetwork(UI Session *pSession)486 : UISessionStateStatusBarIndicator(IndicatorType_Network, p Session)489 UIIndicatorNetwork(UIMachine *pMachine, UISession *pSession) 490 : UISessionStateStatusBarIndicator(IndicatorType_Network, pMachine, pSession) 487 491 , m_pTimerAutoUpdate(0) 488 492 , m_cMaxNetworkAdapters(0) … … 624 628 625 629 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 626 UIIndicatorUSB(UI Session *pSession)627 : UISessionStateStatusBarIndicator(IndicatorType_USB, p Session)630 UIIndicatorUSB(UIMachine *pMachine, UISession *pSession) 631 : UISessionStateStatusBarIndicator(IndicatorType_USB, pMachine, pSession) 628 632 { 629 633 /* Assign state-icons: */ … … 683 687 684 688 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 685 UIIndicatorSharedFolders(UI Session *pSession)686 : UISessionStateStatusBarIndicator(IndicatorType_SharedFolders, p Session)689 UIIndicatorSharedFolders(UIMachine *pMachine, UISession *pSession) 690 : UISessionStateStatusBarIndicator(IndicatorType_SharedFolders, pMachine, pSession) 687 691 { 688 692 /* Assign state-icons: */ … … 745 749 746 750 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 747 UIIndicatorDisplay(UI Session *pSession)748 : UISessionStateStatusBarIndicator(IndicatorType_Display, p Session)751 UIIndicatorDisplay(UIMachine *pMachine, UISession *pSession) 752 : UISessionStateStatusBarIndicator(IndicatorType_Display, pMachine, pSession) 749 753 { 750 754 /* Assign state-icons: */ … … 831 835 832 836 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 833 UIIndicatorRecording(UI Session *pSession)834 : UISessionStateStatusBarIndicator(IndicatorType_Recording, p Session)837 UIIndicatorRecording(UIMachine *pMachine, UISession *pSession) 838 : UISessionStateStatusBarIndicator(IndicatorType_Recording, pMachine, pSession) 835 839 , m_pAnimation(0) 836 840 , m_dRotationAngle(0) … … 1005 1009 1006 1010 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 1007 UIIndicatorFeatures(UI Session *pSession)1008 : UISessionStateStatusBarIndicator(IndicatorType_Features, p Session)1011 UIIndicatorFeatures(UIMachine *pMachine, UISession *pSession) 1012 : UISessionStateStatusBarIndicator(IndicatorType_Features, pMachine, pSession) 1009 1013 , m_iCPULoadPercentage(0) 1010 1014 { … … 1167 1171 1168 1172 /** Constructor, using @a pSession for state-update routine. */ 1169 UIIndicatorMouse(UI Session *pSession)1170 : UISessionStateStatusBarIndicator(IndicatorType_Mouse, p Session)1173 UIIndicatorMouse(UIMachine *pMachine, UISession *pSession) 1174 : UISessionStateStatusBarIndicator(IndicatorType_Mouse, pMachine, pSession) 1171 1175 { 1172 1176 /* Assign state-icons: */ … … 1243 1247 1244 1248 /** Constructor, using @a pSession for state-update routine. */ 1245 UIIndicatorKeyboard(UI Session *pSession)1246 : UISessionStateStatusBarIndicator(IndicatorType_Keyboard, p Session)1249 UIIndicatorKeyboard(UIMachine *pMachine, UISession *pSession) 1250 : UISessionStateStatusBarIndicator(IndicatorType_Keyboard, pMachine, pSession) 1247 1251 { 1248 1252 /* Assign state-icons: */ … … 1325 1329 1326 1330 1327 UIIndicatorsPool::UIIndicatorsPool(UI Session *pSession, QWidget *pParent /* = 0 */)1331 UIIndicatorsPool::UIIndicatorsPool(UIMachine *pMachine, UISession *pSession, QWidget *pParent /* = 0 */) 1328 1332 : QWidget(pParent) 1333 , m_pMachine(pMachine) 1329 1334 , m_pSession(pSession) 1330 1335 , m_fEnabled(false) 1331 1336 , m_pTimerAutoUpdate(0) 1332 1337 { 1333 /* Prepare: */1334 1338 prepare(); 1335 1339 } … … 1337 1341 UIIndicatorsPool::~UIIndicatorsPool() 1338 1342 { 1339 /* Cleanup: */1340 1343 cleanup(); 1341 1344 } … … 1572 1575 switch (indicatorType) 1573 1576 { 1574 case IndicatorType_HardDisks: m_pool[indicatorType] = new UIIndicatorHardDrive(m_p Session); break;1575 case IndicatorType_OpticalDisks: m_pool[indicatorType] = new UIIndicatorOpticalDisks(m_p Session); break;1576 case IndicatorType_FloppyDisks: m_pool[indicatorType] = new UIIndicatorFloppyDisks(m_p Session); break;1577 case IndicatorType_Audio: m_pool[indicatorType] = new UIIndicatorAudio(m_p Session); break;1578 case IndicatorType_Network: m_pool[indicatorType] = new UIIndicatorNetwork(m_p Session); break;1579 case IndicatorType_USB: m_pool[indicatorType] = new UIIndicatorUSB(m_p Session); break;1580 case IndicatorType_SharedFolders: m_pool[indicatorType] = new UIIndicatorSharedFolders(m_p Session); break;1581 case IndicatorType_Display: m_pool[indicatorType] = new UIIndicatorDisplay(m_p Session); break;1582 case IndicatorType_Recording: m_pool[indicatorType] = new UIIndicatorRecording(m_p Session); break;1583 case IndicatorType_Features: m_pool[indicatorType] = new UIIndicatorFeatures(m_p Session); break;1584 case IndicatorType_Mouse: m_pool[indicatorType] = new UIIndicatorMouse(m_p Session); break;1585 case IndicatorType_Keyboard: m_pool[indicatorType] = new UIIndicatorKeyboard(m_p Session); break;1586 case IndicatorType_KeyboardExtension: m_pool[indicatorType] = new UIIndicatorKeyboardExtension; break;1577 case IndicatorType_HardDisks: m_pool[indicatorType] = new UIIndicatorHardDrive(m_pMachine, m_pSession); break; 1578 case IndicatorType_OpticalDisks: m_pool[indicatorType] = new UIIndicatorOpticalDisks(m_pMachine, m_pSession); break; 1579 case IndicatorType_FloppyDisks: m_pool[indicatorType] = new UIIndicatorFloppyDisks(m_pMachine, m_pSession); break; 1580 case IndicatorType_Audio: m_pool[indicatorType] = new UIIndicatorAudio(m_pMachine, m_pSession); break; 1581 case IndicatorType_Network: m_pool[indicatorType] = new UIIndicatorNetwork(m_pMachine, m_pSession); break; 1582 case IndicatorType_USB: m_pool[indicatorType] = new UIIndicatorUSB(m_pMachine, m_pSession); break; 1583 case IndicatorType_SharedFolders: m_pool[indicatorType] = new UIIndicatorSharedFolders(m_pMachine, m_pSession); break; 1584 case IndicatorType_Display: m_pool[indicatorType] = new UIIndicatorDisplay(m_pMachine, m_pSession); break; 1585 case IndicatorType_Recording: m_pool[indicatorType] = new UIIndicatorRecording(m_pMachine, m_pSession); break; 1586 case IndicatorType_Features: m_pool[indicatorType] = new UIIndicatorFeatures(m_pMachine, m_pSession); break; 1587 case IndicatorType_Mouse: m_pool[indicatorType] = new UIIndicatorMouse(m_pMachine, m_pSession); break; 1588 case IndicatorType_Keyboard: m_pool[indicatorType] = new UIIndicatorKeyboard(m_pMachine, m_pSession); break; 1589 case IndicatorType_KeyboardExtension: m_pool[indicatorType] = new UIIndicatorKeyboardExtension; break; 1587 1590 default: break; 1588 1591 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.h
r98103 r98375 44 44 45 45 /* Forward declarations: */ 46 class UIMachine; 46 47 class UISession; 47 48 class CSession; … … 66 67 67 68 /** Constructor, passes @a pParent to the QWidget constructor. 68 * @param pSession is used to retrieve appearance information. */ 69 UIIndicatorsPool(UISession *pSession, QWidget *pParent = 0); 69 * @param pMachine Brings the machine UI reference. 70 * @param pSession Brings the session UI reference. */ 71 UIIndicatorsPool(UIMachine *pMachine, UISession *pSession, QWidget *pParent = 0); 70 72 /** Destructor. */ 71 73 ~UIIndicatorsPool(); … … 121 123 void updateIndicatorStateForDevice(QIStatusBarIndicator *pIndicator, KDeviceActivity state); 122 124 123 /** Holds the UI session reference. */ 125 /** Holds the machine UI reference. */ 126 UIMachine *m_pMachine; 127 /** Holds the session UI reference. */ 124 128 UISession *m_pSession; 125 129 /** Holds whether status-bar is enabled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98103 r98375 55 55 #include "UIIconPool.h" 56 56 #include "UIKeyboardHandler.h" 57 #include "UIMachine.h" 57 58 #include "UIMachineLogic.h" 58 59 #include "UIMachineLogicFullscreen.h" … … 154 155 155 156 /* static */ 156 UIMachineLogic * UIMachineLogic::create(QObject *pParent,157 UIMachineLogic *UIMachineLogic::create(UIMachine *pMachine, 157 158 UISession *pSession, 158 UIVisualStateType visualStateType)159 UIVisualStateType enmVisualStateType) 159 160 { 160 161 UIMachineLogic *pLogic = 0; 161 switch ( visualStateType)162 switch (enmVisualStateType) 162 163 { 163 164 case UIVisualStateType_Normal: 164 pLogic = new UIMachineLogicNormal(p Parent, pSession);165 pLogic = new UIMachineLogicNormal(pMachine, pSession); 165 166 break; 166 167 case UIVisualStateType_Fullscreen: 167 pLogic = new UIMachineLogicFullscreen(p Parent, pSession);168 pLogic = new UIMachineLogicFullscreen(pMachine, pSession); 168 169 break; 169 170 case UIVisualStateType_Seamless: 170 pLogic = new UIMachineLogicSeamless(p Parent, pSession);171 pLogic = new UIMachineLogicSeamless(pMachine, pSession); 171 172 break; 172 173 case UIVisualStateType_Scale: 173 pLogic = new UIMachineLogicScale(p Parent, pSession);174 pLogic = new UIMachineLogicScale(pMachine, pSession); 174 175 break; 175 176 case UIVisualStateType_Invalid: case UIVisualStateType_All: break; /* Shut up, MSC! */ 176 case UIVisualStateType_Invalid: 177 case UIVisualStateType_All: 178 break; 177 179 } 178 180 return pLogic; … … 180 182 181 183 /* static */ 182 void UIMachineLogic::destroy(UIMachineLogic *p WhichLogic)183 { 184 delete p WhichLogic;184 void UIMachineLogic::destroy(UIMachineLogic *pLogic) 185 { 186 delete pLogic; 185 187 } 186 188 … … 271 273 } 272 274 273 UIActionPool *UIMachineLogic::actionPool() const275 UIActionPool *UIMachineLogic::actionPool() const 274 276 { 275 277 return uisession()->actionPool(); … … 755 757 } 756 758 757 UIMachineLogic::UIMachineLogic(QObject *pParent, UISession *pSession, UIVisualStateType visualStateType) 758 : QIWithRetranslateUI3<QObject>(pParent) 759 UIMachineLogic::UIMachineLogic(UIMachine *pMachine, UISession *pSession) 760 : QIWithRetranslateUI3<QObject>(pMachine) 761 , m_pMachine(pMachine) 759 762 , m_pSession(pSession) 760 , m_visualStateType(visualStateType)761 763 , m_pKeyboardHandler(0) 762 764 , m_pMouseHandler(0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r98103 r98375 47 47 class UIActionPool; 48 48 class UIKeyboardHandler; 49 class UIM ouseHandler;49 class UIMachine; 50 50 class UIMachineWindow; 51 51 class UIMachineView; 52 class UIMouseHandler; 52 53 class UIDockIconPreview; 53 54 class UISoftKeyboard; … … 88 89 public: 89 90 90 /* Factory functions to create/destroy required logic sub-child: */ 91 static UIMachineLogic* create(QObject *pParent, UISession *pSession, UIVisualStateType visualStateType); 92 static void destroy(UIMachineLogic *pWhichLogic); 91 /** Factory function to create a logic of required type. 92 * @param pMachine Brings the machine this logic belongs to. 93 * @param pSession Brings the session this logic is created for. 94 * @param enmVisualStateType Brings the visual state type of logic to be created. */ 95 static UIMachineLogic *create(UIMachine *pMachine, UISession *pSession, UIVisualStateType enmVisualStateType); 96 /** Factory function to destroy passed @a pLogic. */ 97 static void destroy(UIMachineLogic *pLogic); 98 99 /** Returns visual state type. */ 100 virtual UIVisualStateType visualStateType() const = 0; 93 101 94 102 /* Check if this logic is available: */ … … 104 112 void initializePostPowerUp(); 105 113 106 /* Main getters/setters: */ 107 UISession* uisession() const { return m_pSession; } 108 UIActionPool* actionPool() const; 114 /** Returns machine UI reference. */ 115 UIMachine *uimachine() const { return m_pMachine; } 116 /** Returns session UI reference. */ 117 UISession *uisession() const { return m_pSession; } 118 119 /** Returns action-pool reference. */ 120 UIActionPool *actionPool() const; 109 121 110 122 /** Returns the session reference. */ … … 127 139 /** Returns the machine name. */ 128 140 const QString& machineName() const; 129 130 UIVisualStateType visualStateType() const { return m_visualStateType; }131 141 const QList<UIMachineWindow*>& machineWindows() const { return m_machineWindowsList; } 132 142 UIKeyboardHandler* keyboardHandler() const { return m_pKeyboardHandler; } … … 200 210 protected: 201 211 202 /* Constructor: */ 203 UIMachineLogic(QObject *pParent, UISession *pSession, UIVisualStateType visualStateType); 204 /* Destructor: */ 205 ~UIMachineLogic(); 212 /** Constructs a logic passing @a pMachine and @a pSession to the base class. 213 * @param pMachine Brings the machine this logic belongs to. 214 * @param pSession Brings the session this logic is created for. */ 215 UIMachineLogic(UIMachine *pMachine, UISession *pSession); 216 /* Destructs the logic. */ 217 virtual ~UIMachineLogic() RT_OVERRIDE; 206 218 207 219 /* Protected getters/setters: */ … … 405 417 406 418 /* Private variables: */ 419 UIMachine *m_pMachine; 407 420 UISession *m_pSession; 408 UIVisualStateType m_visualStateType;409 421 UIKeyboardHandler *m_pKeyboardHandler; 410 422 UIMouseHandler *m_pMouseHandler; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r98103 r98375 53 53 54 54 55 UIMachineLogicFullscreen::UIMachineLogicFullscreen( QObject *pParent, UISession *pSession)56 : UIMachineLogic(p Parent, pSession, UIVisualStateType_Fullscreen)55 UIMachineLogicFullscreen::UIMachineLogicFullscreen(UIMachine *pMachine, UISession *pSession) 56 : UIMachineLogic(pMachine, pSession) 57 57 , m_pPopupMenu(0) 58 58 #ifdef VBOX_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.h
r98103 r98375 59 59 public: 60 60 61 /** Constructs full-screen logic passing @a pParent to the base-class. 62 * @param pSession Brings the session UI reference. */ 63 UIMachineLogicFullscreen(QObject *pParent, UISession *pSession); 64 /** Destructs full-screen logic. */ 61 /** Constructs a logic passing @a pMachine and @a pSession to the base-class. 62 * @param pMachine Brings the machine this logic belongs to. 63 * @param pSession Brings the session this logic is created for. */ 64 UIMachineLogicFullscreen(UIMachine *pMachine, UISession *pSession); 65 /** Destructs the logic. */ 65 66 virtual ~UIMachineLogicFullscreen() RT_OVERRIDE; 67 68 /** Returns visual state type. */ 69 virtual UIVisualStateType visualStateType() const { return UIVisualStateType_Fullscreen; } 66 70 67 71 /** Returns an index of host-screen for guest-screen with @a iScreenId specified. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r98103 r98375 55 55 56 56 57 UIMachineLogicNormal::UIMachineLogicNormal( QObject *pParent, UISession *pSession)58 : UIMachineLogic(p Parent, pSession, UIVisualStateType_Normal)57 UIMachineLogicNormal::UIMachineLogicNormal(UIMachine *pMachine, UISession *pSession) 58 : UIMachineLogic(pMachine, pSession) 59 59 #ifndef VBOX_WS_MAC 60 60 , m_pPopupMenu(0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.h
r98103 r98375 42 42 public: 43 43 44 /** Constructs normal logic passing @a pParent to the base-class. 45 * @param pSession Brings the session UI reference. */ 46 UIMachineLogicNormal(QObject *pParent, UISession *pSession); 44 /** Constructs a logic passing @a pMachine and @a pSession to the base-class. 45 * @param pMachine Brings the machine this logic belongs to. 46 * @param pSession Brings the session this logic is created for. */ 47 UIMachineLogicNormal(UIMachine *pMachine, UISession *pSession); 48 49 /** Returns visual state type. */ 50 virtual UIVisualStateType visualStateType() const { return UIVisualStateType_Normal; } 47 51 48 52 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r98103 r98375 308 308 this, &UIMachineWindowNormal::sltHandleStatusBarContextMenuRequest); 309 309 /* Create indicator-pool: */ 310 m_pIndicatorsPool = new UIIndicatorsPool(machineLogic()->ui session());310 m_pIndicatorsPool = new UIIndicatorsPool(machineLogic()->uimachine(), machineLogic()->uisession()); 311 311 AssertPtrReturnVoid(m_pIndicatorsPool); 312 312 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r98103 r98375 50 50 51 51 52 UIMachineLogicScale::UIMachineLogicScale( QObject *pParent, UISession *pSession)53 : UIMachineLogic(p Parent, pSession, UIVisualStateType_Scale)52 UIMachineLogicScale::UIMachineLogicScale(UIMachine *pMachine, UISession *pSession) 53 : UIMachineLogic(pMachine, pSession) 54 54 #ifndef VBOX_WS_MAC 55 55 , m_pPopupMenu(0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.h
r98103 r98375 42 42 public: 43 43 44 /** Constructs scaled logic passing @a pParent to the base-class. 45 * @param pSession Brings the session UI reference. */ 46 UIMachineLogicScale(QObject *pParent, UISession *pSession); 44 /** Constructs a logic passing @a pMachine and @a pSession to the base-class. 45 * @param pMachine Brings the machine this logic belongs to. 46 * @param pSession Brings the session this logic is created for. */ 47 UIMachineLogicScale(UIMachine *pMachine, UISession *pSession); 48 49 /** Returns visual state type. */ 50 virtual UIVisualStateType visualStateType() const { return UIVisualStateType_Scale; } 47 51 48 52 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r98103 r98375 50 50 51 51 52 UIMachineLogicSeamless::UIMachineLogicSeamless( QObject *pParent, UISession *pSession)53 : UIMachineLogic(p Parent, pSession, UIVisualStateType_Seamless)52 UIMachineLogicSeamless::UIMachineLogicSeamless(UIMachine *pMachine, UISession *pSession) 53 : UIMachineLogic(pMachine, pSession) 54 54 #ifndef VBOX_WS_MAC 55 55 , m_pPopupMenu(0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.h
r98103 r98375 45 45 public: 46 46 47 /** Constructs seamless logic passing @a pParent to the base-class. 48 * @param pSession Brings the session UI reference. */ 49 UIMachineLogicSeamless(QObject *pParent, UISession *pSession); 50 /** Destructs seamless logic. */ 47 /** Constructs a logic passing @a pMachine and @a pSession to the base-class. 48 * @param pMachine Brings the machine this logic belongs to. 49 * @param pSession Brings the session this logic is created for. */ 50 UIMachineLogicSeamless(UIMachine *pMachine, UISession *pSession); 51 /** Destructs the logic. */ 51 52 virtual ~UIMachineLogicSeamless() RT_OVERRIDE; 53 54 /** Returns visual state type. */ 55 virtual UIVisualStateType visualStateType() const { return UIVisualStateType_Seamless; } 52 56 53 57 /** Returns an index of host-screen for guest-screen with @a iScreenId specified. */
Note:
See TracChangeset
for help on using the changeset viewer.