Changeset 30407 in vbox
- Timestamp:
- Jun 24, 2010 2:16:55 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63033
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r30356 r30407 323 323 src/widgets/VBoxProgressDialog.h \ 324 324 src/widgets/VBoxWarningPane.h \ 325 src/runtime/UIMachine.h \ 325 326 src/runtime/UISession.h \ 326 327 src/runtime/UIActionsPool.h \ 327 328 src/runtime/UIIndicatorsPool.h \ 328 src/runtime/UIMachine.h \329 329 src/runtime/UIMachineLogic.h \ 330 330 src/runtime/UIMachineView.h \ … … 456 456 src/widgets/VBoxProgressDialog.cpp \ 457 457 src/widgets/VBoxWarningPane.cpp \ 458 src/runtime/UIMachine.cpp \ 458 459 src/runtime/UISession.cpp \ 459 460 src/runtime/UIActionsPool.cpp \ … … 463 464 src/runtime/UIFrameBufferQImage.cpp \ 464 465 src/runtime/UIFrameBufferSDL.cpp \ 465 src/runtime/UIMachine.cpp \466 466 src/runtime/UIMachineLogic.cpp \ 467 467 src/runtime/UIMachineWindow.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r30348 r30407 231 231 UISession* UIMachineView::uisession() const 232 232 { 233 return machine WindowWrapper()->machineLogic()->uisession();233 return machineLogic()->uisession(); 234 234 } 235 235 … … 1105 1105 break; 1106 1106 } 1107 #if defined (Q_WS_WIN32)1107 #ifdef Q_WS_WIN 1108 1108 /* Install/uninstall low-level kbd hook on every activation/deactivation to: 1109 1109 * a) avoid excess hook calls when we're not active and … … 1127 1127 break; 1128 1128 } 1129 #endif /* defined (Q_WS_WIN32)*/1129 #endif /* Q_WS_WIN */ 1130 1130 #ifdef Q_WS_MAC 1131 1131 /* Install/remove the keyboard event handler: */ … … 1173 1173 viewport()->repaint(); 1174 1174 } 1175 /* reuse the focus event handler to uncapture everything*/1175 /* Reuse the focus event handler to uncapture everything: */ 1176 1176 if (hasFocus()) 1177 focusEvent 1177 focusEvent(false /* aHasFocus*/, false /* aReleaseHostKey */); 1178 1178 break; 1179 1179 } … … 1201 1201 } 1202 1202 } 1203 /* Reuse the focus event handler to capture input: */1203 /* Reuse the focus event handler to capture keyboard: */ 1204 1204 if (hasFocus()) 1205 1205 focusEvent(true /* aHasFocus */); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r30330 r30407 195 195 196 196 /* Create machine window(s): */ 197 for (int screenId = 0; screenId < m_pScreenLayout->guestScreenCount(); ++screenId)198 addMachineWindow(UIMachineWindow::create(this, visualStateType(), screenId));197 for (int cScreenId = 0; cScreenId < m_pScreenLayout->guestScreenCount(); ++cScreenId) 198 addMachineWindow(UIMachineWindow::create(this, visualStateType(), cScreenId)); 199 199 200 200 /* Connect screen-layout change handler: */ 201 for each (UIMachineWindow *pMachineWindow, machineWindows())201 for (int i = 0; i < machineWindows().size(); ++i) 202 202 connect(m_pScreenLayout, SIGNAL(screenLayoutChanged()), 203 static_cast<UIMachineWindowFullscreen*>( pMachineWindow), SLOT(sltPlaceOnScreen()));203 static_cast<UIMachineWindowFullscreen*>(machineWindows()[i]), SLOT(sltPlaceOnScreen())); 204 204 205 205 #ifdef Q_WS_MAC … … 218 218 void UIMachineLogicFullscreen::cleanupMachineWindows() 219 219 { 220 /* Do not cleanup machine window if it isnot present: */220 /* Do not cleanup machine window(s) if not present: */ 221 221 if (!isMachineWindowsCreated()) 222 222 return; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r30330 r30407 157 157 void UIMachineLogicNormal::cleanupMachineWindow() 158 158 { 159 /* Do not cleanup machine window if it isnot present: */159 /* Do not cleanup machine window(s) if not present: */ 160 160 if (!isMachineWindowsCreated()) 161 161 return; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r30330 r30407 181 181 #endif /* Q_WS_MAC */ 182 182 183 /* Update the multi screen layout */183 /* Update the multi screen layout: */ 184 184 m_pScreenLayout->update(); 185 185 186 186 /* Create machine window(s): */ 187 for (int screenId = 0; screenId < m_pScreenLayout->guestScreenCount(); ++screenId) 188 addMachineWindow(UIMachineWindow::create(this, visualStateType(), screenId)); 189 190 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 187 for (int cScreenId = 0; cScreenId < m_pScreenLayout->guestScreenCount(); ++cScreenId) 188 addMachineWindow(UIMachineWindow::create(this, visualStateType(), cScreenId)); 189 190 /* Connect screen-layout change handler: */ 191 for (int i = 0; i < machineWindows().size(); ++i) 191 192 connect(m_pScreenLayout, SIGNAL(screenLayoutChanged()), 192 static_cast<UIMachineWindowSeamless*>( pMachineWindow), SLOT(sltPlaceOnScreen()));193 static_cast<UIMachineWindowSeamless*>(machineWindows()[i]), SLOT(sltPlaceOnScreen())); 193 194 194 195 /* Remember what machine window(s) created: */ … … 198 199 void UIMachineLogicSeamless::cleanupMachineWindows() 199 200 { 200 /* Do not cleanup machine window if it isnot present: */201 /* Do not cleanup machine window(s) if not present: */ 201 202 if (!isMachineWindowsCreated()) 202 203 return; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h
r30347 r30407 66 66 //void prepareConnections() {} 67 67 //void cleanupFilters() {} 68 //void cleanupCommon() ;68 //void cleanupCommon() {} 69 69 70 70 /* Private helpers: */
Note:
See TracChangeset
for help on using the changeset viewer.