Changeset 261 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 24, 2007 11:03:55 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r255 r261 84 84 void onFullscreenChange (bool on); 85 85 86 void FixModifierState (LONG *codes, uint *count);86 void fixModifierState (LONG *codes, uint *count); 87 87 88 88 signals: … … 196 196 bool autoresize_guest : 1; 197 197 198 bool mfNumLock ;199 bool mfScrollLock ;200 bool mfCapsLock ;198 bool mfNumLock : 1; 199 bool mfScrollLock : 1; 200 bool mfCapsLock : 1; 201 201 long muNumLockAdaptionCnt; 202 202 long muCapsLockAdaptionCnt; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h
r245 r261 148 148 SessionStateChangeEventType = QEvent::User + 7, 149 149 SnapshotEventType = QEvent::User + 8, 150 ModifierKeyChangeEventType = QEvent::User + 9, 150 RuntimeErrorEventType = QEvent::User + 9, 151 ModifierKeyChangeEventType = QEvent::User + 10, 151 152 EnumerateMediaEventType = QEvent::User + 100, 152 153 ActivateMenuEventType = QEvent::User + 101, 153 RuntimeErrorEventType = QEvent::User + 102,154 154 }; 155 155 }; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r255 r261 200 200 ModifierKeyChangeEvent(bool fNumLock, bool fCapsLock, bool fScrollLock) : 201 201 QEvent ((QEvent::Type) VBoxDefs::ModifierKeyChangeEventType), 202 mfNumLock (fNumLock), mfCapsLock(fCapsLock), mfScrollLock(fScrollLock) {}203 bool NumLock() const { return mfNumLock; }204 bool CapsLock() const { return mfCapsLock; }205 bool ScrollLock() const { return mfScrollLock; }202 mfNumLock (fNumLock), mfCapsLock (fCapsLock), mfScrollLock (fScrollLock) {} 203 bool numLock() const { return mfNumLock; } 204 bool capsLock() const { return mfCapsLock; } 205 bool scrollLock() const { return mfScrollLock; } 206 206 private: 207 207 bool mfNumLock, mfCapsLock, mfScrollLock; … … 349 349 , ignore_mainwnd_resize (false) 350 350 , autoresize_guest (false) 351 , mfNumLock (false) 352 , mfScrollLock (false) 353 , mfCapsLock (false) 351 354 , muNumLockAdaptionCnt (2) 352 355 , muCapsLockAdaptionCnt (2) … … 783 786 { 784 787 ModifierKeyChangeEvent *me = (ModifierKeyChangeEvent* )e; 785 if (me-> NumLock() != mfNumLock)788 if (me->numLock() != mfNumLock) 786 789 muNumLockAdaptionCnt = 2; 787 if (me-> CapsLock() != mfCapsLock)790 if (me->capsLock() != mfCapsLock) 788 791 muCapsLockAdaptionCnt = 2; 789 mfNumLock = me-> NumLock();790 mfCapsLock = me-> CapsLock();791 mfScrollLock = me-> ScrollLock();792 mfNumLock = me->numLock(); 793 mfCapsLock = me->capsLock(); 794 mfScrollLock = me->scrollLock(); 792 795 return true; 793 796 } … … 1290 1293 * @param count pointer to the keycodes counter 1291 1294 */ 1292 void VBoxConsoleView:: FixModifierState(LONG *codes, uint *count)1295 void VBoxConsoleView::fixModifierState(LONG *codes, uint *count) 1293 1296 { 1294 1297 #if defined(Q_WS_X11) … … 1347 1350 #else 1348 1351 1349 #warning Adapt VBoxConsoleView:: FixModifierState1352 #warning Adapt VBoxConsoleView::fixModifierState 1350 1353 1351 1354 #endif … … 1407 1410 // CapsLock, ScrollLock) as the X server. If not, send KeyPress events 1408 1411 // to synchronize the state. 1409 FixModifierState (codes, &count);1412 fixModifierState (codes, &count); 1410 1413 } 1411 1414
Note:
See TracChangeset
for help on using the changeset viewer.