Changeset 30544 in vbox
- Timestamp:
- Jun 30, 2010 10:37:36 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63252
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r30542 r30544 111 111 112 112 UIMachineView* UIMachineView::create( UIMachineWindow *pMachineWindow 113 , ulong uScreenId 114 , UIVisualStateType visualStateType 113 115 #ifdef VBOX_WITH_VIDEOHWACCEL 114 116 , bool bAccelerate2DVideo 115 117 #endif 116 , UIVisualStateType visualStateType 117 , ulong uScreenId) 118 ) 118 119 { 119 120 UIMachineView *view = 0; … … 122 123 case UIVisualStateType_Normal: 123 124 view = new UIMachineViewNormal( pMachineWindow 125 , uScreenId 124 126 #ifdef VBOX_WITH_VIDEOHWACCEL 125 127 , bAccelerate2DVideo 126 128 #endif 127 , uScreenId);129 ); 128 130 break; 129 131 case UIVisualStateType_Fullscreen: 130 132 view = new UIMachineViewFullscreen( pMachineWindow 133 , uScreenId 131 134 #ifdef VBOX_WITH_VIDEOHWACCEL 132 135 , bAccelerate2DVideo 133 136 #endif 134 , uScreenId);137 ); 135 138 break; 136 139 case UIVisualStateType_Seamless: 137 140 view = new UIMachineViewSeamless( pMachineWindow 141 , uScreenId 138 142 #ifdef VBOX_WITH_VIDEOHWACCEL 139 143 , bAccelerate2DVideo 140 144 #endif 141 , uScreenId);145 ); 142 146 break; 143 147 default: … … 147 151 } 148 152 149 void UIMachineView::destroy(UIMachineView *p WhichView)150 { 151 delete p WhichView;153 void UIMachineView::destroy(UIMachineView *pMachineView) 154 { 155 delete pMachineView; 152 156 } 153 157 … … 159 163 160 164 UIMachineView::UIMachineView( UIMachineWindow *pMachineWindow 165 , ulong uScreenId 161 166 #ifdef VBOX_WITH_VIDEOHWACCEL 162 167 , bool bAccelerate2DVideo 163 168 #endif 164 , ulong uScreenId) 165 // TODO_NEW_CORE: really think of if this is right 166 // : QAbstractScrollArea(((QMainWindow*)pMachineWindow->machineWindow())->centralWidget()) 169 ) 167 170 : QAbstractScrollArea(pMachineWindow->machineWindow()) 168 171 , m_pMachineWindow(pMachineWindow) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r30408 r30544 48 48 enum DesktopGeo { DesktopGeo_Invalid = 0, DesktopGeo_Fixed, DesktopGeo_Automatic, DesktopGeo_Any }; 49 49 50 /* Factory function to create required view sub-child: */50 /* Factory function to create machine-view: */ 51 51 static UIMachineView* create( UIMachineWindow *pMachineWindow 52 , ulong uScreenId 53 , UIVisualStateType visualStateType 52 54 #ifdef VBOX_WITH_VIDEOHWACCEL 53 55 , bool bAccelerate2DVideo 54 56 #endif 55 , UIVisualStateType visualStateType56 , ulong uScreenId);57 static void destroy(UIMachineView *p WhichView);57 ); 58 /* Factory function to destroy required machine-view: */ 59 static void destroy(UIMachineView *pMachineView); 58 60 59 61 /* Public getters: */ … … 77 79 protected: 78 80 79 /* Machine view constructor/destructor: */81 /* Machine-view constructor: */ 80 82 UIMachineView( UIMachineWindow *pMachineWindow 83 , ulong uScreenId 81 84 #ifdef VBOX_WITH_VIDEOHWACCEL 82 85 , bool bAccelerate2DVideo 83 86 #endif 84 , ulong uScreenId); 87 ); 88 /* Machine-view destructor: */ 85 89 virtual ~UIMachineView(); 86 90 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r30408 r30544 41 41 42 42 UIMachineViewFullscreen::UIMachineViewFullscreen( UIMachineWindow *pMachineWindow 43 , ulong uScreenId 43 44 #ifdef VBOX_WITH_VIDEOHWACCEL 44 45 , bool bAccelerate2DVideo 45 46 #endif 46 , ulong uMonitor)47 ) 47 48 : UIMachineView( pMachineWindow 49 , uScreenId 48 50 #ifdef VBOX_WITH_VIDEOHWACCEL 49 51 , bAccelerate2DVideo 50 52 #endif 51 , uMonitor)53 ) 52 54 , m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked()) 53 55 , m_fShouldWeDoResize(false) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h
r30347 r30544 29 29 protected: 30 30 31 /* Fullscreen machine-view constructor /destructor: */31 /* Fullscreen machine-view constructor: */ 32 32 UIMachineViewFullscreen( UIMachineWindow *pMachineWindow 33 , ulong uScreenId 33 34 #ifdef VBOX_WITH_VIDEOHWACCEL 34 35 , bool bAccelerate2DVideo 35 36 #endif 36 , ulong uMonitor); 37 ); 38 /* Fullscreen machine-view destructor: */ 37 39 virtual ~UIMachineViewFullscreen(); 38 40 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r30542 r30544 219 219 220 220 m_pMachineView = UIMachineView::create( this 221 , m_uScreenId 222 , machineLogic()->visualStateType() 221 223 #ifdef VBOX_WITH_VIDEOHWACCEL 222 224 , bAccelerate2DVideo 223 225 #endif 224 , machineLogic()->visualStateType() 225 , m_uScreenId); 226 ); 226 227 227 228 /* Add machine view into layout: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r30408 r30544 36 36 37 37 UIMachineViewNormal::UIMachineViewNormal( UIMachineWindow *pMachineWindow 38 , ulong uScreenId 38 39 #ifdef VBOX_WITH_VIDEOHWACCEL 39 40 , bool bAccelerate2DVideo 40 41 #endif 41 , ulong uMonitor)42 ) 42 43 : UIMachineView( pMachineWindow 44 , uScreenId 43 45 #ifdef VBOX_WITH_VIDEOHWACCEL 44 46 , bAccelerate2DVideo 45 47 #endif 46 , uMonitor)48 ) 47 49 , m_bIsGuestAutoresizeEnabled(pMachineWindow->machineLogic()->actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->isChecked()) 48 50 , m_fShouldWeDoResize(false) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h
r30347 r30544 29 29 protected: 30 30 31 /* Normal machine-view constructor /destructor: */31 /* Normal machine-view constructor: */ 32 32 UIMachineViewNormal( UIMachineWindow *pMachineWindow 33 , ulong uScreenId 33 34 #ifdef VBOX_WITH_VIDEOHWACCEL 34 35 , bool bAccelerate2DVideo 35 36 #endif 36 , ulong uMonitor); 37 ); 38 /* Normal machine-view destructor: */ 37 39 virtual ~UIMachineViewNormal(); 38 40 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r30542 r30544 480 480 481 481 m_pMachineView = UIMachineView::create( this 482 , m_uScreenId 483 , machineLogic()->visualStateType() 482 484 #ifdef VBOX_WITH_VIDEOHWACCEL 483 485 , bAccelerate2DVideo 484 486 #endif 485 , machineLogic()->visualStateType() 486 , m_uScreenId); 487 ); 487 488 488 489 /* Add machine view into layout: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r30408 r30544 40 40 41 41 UIMachineViewSeamless::UIMachineViewSeamless( UIMachineWindow *pMachineWindow 42 , ulong uScreenId 42 43 #ifdef VBOX_WITH_VIDEOHWACCEL 43 44 , bool bAccelerate2DVideo 44 45 #endif 45 , ulong uMonitor)46 ) 46 47 : UIMachineView( pMachineWindow 48 , uScreenId 47 49 #ifdef VBOX_WITH_VIDEOHWACCEL 48 50 , bAccelerate2DVideo 49 51 #endif 50 , uMonitor)52 ) 51 53 , m_fShouldWeDoResize(false) 52 54 , m_pSyncBlocker(0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h
r30407 r30544 29 29 protected: 30 30 31 /* Seamless machine-view constructor /destructor: */31 /* Seamless machine-view constructor: */ 32 32 UIMachineViewSeamless( UIMachineWindow *pMachineWindow 33 , ulong uScreenId 33 34 #ifdef VBOX_WITH_VIDEOHWACCEL 34 35 , bool bAccelerate2DVideo 35 36 #endif 36 , ulong uMonitor); 37 ); 38 /* Seamless machine-view destructor: */ 37 39 virtual ~UIMachineViewSeamless(); 38 40 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r30542 r30544 270 270 271 271 m_pMachineView = UIMachineView::create( this 272 , m_uScreenId 273 , machineLogic()->visualStateType() 272 274 #ifdef VBOX_WITH_VIDEOHWACCEL 273 275 , bAccelerate2DVideo 274 276 #endif 275 , machineLogic()->visualStateType() 276 , m_uScreenId); 277 ); 277 278 278 279 /* Add machine view into layout: */
Note:
See TracChangeset
for help on using the changeset viewer.