- Timestamp:
- Jul 1, 2010 1:50:52 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63259
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r30550 r30551 84 84 #endif /* Q_WS_MAC */ 85 85 86 class VBoxViewport: public QWidget86 class UIViewport: public QWidget 87 87 { 88 88 public: 89 89 90 VBoxViewport(QWidget *pParent) : QWidget(pParent)90 UIViewport(QWidget *pParent) : QWidget(pParent) 91 91 { 92 92 /* No need for background drawing: */ … … 114 114 ) 115 115 { 116 UIMachineView * view = 0;116 UIMachineView *pMachineView = 0; 117 117 switch (visualStateType) 118 118 { 119 119 case UIVisualStateType_Normal: 120 view = new UIMachineViewNormal( pMachineWindow121 , uScreenId120 pMachineView = new UIMachineViewNormal( pMachineWindow 121 , uScreenId 122 122 #ifdef VBOX_WITH_VIDEOHWACCEL 123 , bAccelerate2DVideo123 , bAccelerate2DVideo 124 124 #endif /* VBOX_WITH_VIDEOHWACCEL */ 125 );125 ); 126 126 break; 127 127 case UIVisualStateType_Fullscreen: 128 view = new UIMachineViewFullscreen( pMachineWindow129 , uScreenId128 pMachineView = new UIMachineViewFullscreen( pMachineWindow 129 , uScreenId 130 130 #ifdef VBOX_WITH_VIDEOHWACCEL 131 , bAccelerate2DVideo131 , bAccelerate2DVideo 132 132 #endif /* VBOX_WITH_VIDEOHWACCEL */ 133 );133 ); 134 134 break; 135 135 case UIVisualStateType_Seamless: 136 view = new UIMachineViewSeamless( pMachineWindow137 , uScreenId136 pMachineView = new UIMachineViewSeamless( pMachineWindow 137 , uScreenId 138 138 #ifdef VBOX_WITH_VIDEOHWACCEL 139 , bAccelerate2DVideo139 , bAccelerate2DVideo 140 140 #endif /* VBOX_WITH_VIDEOHWACCEL */ 141 );141 ); 142 142 break; 143 143 default: 144 144 break; 145 145 } 146 return view;146 return pMachineView; 147 147 } 148 148 … … 222 222 break; 223 223 } 224 225 224 m_previousState = state; 226 225 } … … 263 262 /* Prepare viewport: */ 264 263 #ifdef VBOX_GUI_USE_QGLFB 265 QWidget *pViewport ;264 QWidget *pViewport = 0; 266 265 switch (vboxGlobal().vmRenderMode()) 267 266 { … … 270 269 break; 271 270 default: 272 pViewport = new VBoxViewport(this);271 pViewport = new UIViewport(this); 273 272 } 274 273 #else /* VBOX_GUI_USE_QGLFB */ 275 VBoxViewport *pViewport = new VBoxViewport(this);274 UIViewport *pViewport = new UIViewport(this); 276 275 #endif /* !VBOX_GUI_USE_QGLFB */ 277 276 setViewport(pViewport); … … 1111 1110 return true; 1112 1111 } 1113 1114 #ifdef VBOX_WITH_VIDEOHWACCEL1115 case VBoxDefs::VHWACommandProcessType:1116 {1117 m_pFrameBuffer->doProcessVHWACommand(pEvent);1118 return true;1119 }1120 #endif /* VBOX_WITH_VIDEOHWACCEL */1121 1112 1122 1113 case QEvent::KeyPress: … … 1173 1164 1174 1165 #ifdef Q_WS_MAC 1175 /* posted OnShowWindow*/1166 /* Event posted OnShowWindow: */ 1176 1167 case VBoxDefs::ShowWindowEventType: 1177 1168 { … … 1186 1177 } 1187 1178 #endif /* Q_WS_MAC */ 1179 1180 #ifdef VBOX_WITH_VIDEOHWACCEL 1181 case VBoxDefs::VHWACommandProcessType: 1182 { 1183 m_pFrameBuffer->doProcessVHWACommand(pEvent); 1184 return true; 1185 } 1186 #endif /* VBOX_WITH_VIDEOHWACCEL */ 1188 1187 1189 1188 default: … … 1269 1268 } 1270 1269 1271 return QAbstractScrollArea::eventFilter 1270 return QAbstractScrollArea::eventFilter(pWatched, pEvent); 1272 1271 } 1273 1272 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r30550 r30551 34 34 /* Local forwards */ 35 35 class UISession; 36 class UIMachineLogic; 37 class UIMachineWindow; 36 38 class UIFrameBuffer; 37 class UIMachineWindow;38 class UIMachineLogic;39 39 class VBoxGlobalSettings; 40 40 … … 176 176 static LRESULT CALLBACK lowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam); 177 177 bool winLowKeyboardEvent(UINT msg, const KBDLLHOOKSTRUCT &event); 178 bool winEvent(MSG * aMsg, long *aResult);178 bool winEvent(MSG *pMsg, long *puResult); 179 179 #elif defined(Q_WS_X11) 180 180 bool x11Event(XEvent *event);
Note:
See TracChangeset
for help on using the changeset viewer.