Changeset 63315 in vbox for trunk/src/VBox
- Timestamp:
- Aug 11, 2016 10:17:35 AM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r62493 r63315 43 43 { 44 44 public: 45 virtual ~CheckIfSuitableBy() { /* Makes MSC happy. */ } 46 45 47 /** Determines whether passed @a pItem is suitable. */ 46 48 virtual bool isItSuitable(UIMediumItem *pItem) const = 0; -
trunk/src/VBox/Frontends/VirtualBox/src/platform/win/VBoxUtils-win.h
r62493 r63315 16 16 */ 17 17 18 #ifndef __ VBoxUtils_WIN_h__19 #define __ VBoxUtils_WIN_h__18 #ifndef ___VBoxUtils_WIN_h___ 19 #define ___VBoxUtils_WIN_h___ 20 20 21 21 /* Qt includes: */ … … 23 23 24 24 /* Platform includes: */ 25 #include "Windows.h"25 #include <iprt/win/windows.h> 26 26 27 27 /* Namespace for native window sub-system functions: */ … … 32 32 } 33 33 34 #endif /* __VBoxUtils_WIN_h__ */34 #endif 35 35 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/win/WinKeyboard.cpp
r62493 r63315 192 192 static bool doesCurrentLayoutHaveAltGr() 193 193 { 194 /* *Keyboard state array with VK_CONTROL and VK_MENU depressed. */195 const BYTEauKeyStates[256] =196 194 /* Keyboard state array with VK_CONTROL and VK_MENU depressed. */ 195 static const BYTE s_auKeyStates[256] = 196 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0x80 }; 197 197 WORD ach; 198 198 unsigned i; … … 200 200 for (i = '0'; i <= VK_OEM_102; ++i) 201 201 { 202 if (ToAscii(i, 0, auKeyStates, &ach, 0))202 if (ToAscii(i, 0, s_auKeyStates, &ach, 0)) 203 203 break; 204 204 /* Skip ranges of virtual keys which are undefined or not relevant. */ … … 269 269 bool fExtendedKey) const 270 270 { 271 if (iDownScanCode != 0x1d /* scan code: Control */ || fExtendedKey) 272 return false; 273 274 LONG messageTime = GetMessageTime(); 271 275 MSG peekMsg; 272 LONG messageTime = GetMessageTime();273 274 if ( iDownScanCode != 0x1d /* scan code: Control */ || fExtendedKey)275 return false;276 276 if (!PeekMessage(&peekMsg, NULL, WM_KEYFIRST, WM_KEYLAST, PM_NOREMOVE)) 277 277 return false; 278 279 if (messageTime != peekMsg.time) 280 return false; 281 if ( fKeyDown 282 && (peekMsg.message != WM_KEYDOWN && peekMsg.message != WM_SYSKEYDOWN)) 278 if (messageTime != (LONG)peekMsg.time) 279 return false; 280 281 if ( fKeyDown 282 && peekMsg.message != WM_KEYDOWN 283 && peekMsg.message != WM_SYSKEYDOWN) 283 284 return false; 284 285 if ( !fKeyDown 285 && (peekMsg.message != WM_KEYUP && peekMsg.message != WM_SYSKEYUP)) 286 return false; 287 if ( ((RT_HIWORD(peekMsg.lParam) & 0xFF) != 0x38 /* scan code: Alt */) 286 && peekMsg.message != WM_KEYUP 287 && peekMsg.message != WM_SYSKEYUP) 288 return false; 289 if ( (RT_HIWORD(peekMsg.lParam) & 0xFF) != 0x38 /* scan code: Alt */ 288 290 || !(RT_HIWORD(peekMsg.lParam) & KF_EXTENDED)) 289 291 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/platform/win/WinKeyboard.h
r62493 r63315 16 16 */ 17 17 18 #ifndef __ WinKeyboard_h__19 #define __ WinKeyboard_h__18 #ifndef ___WinKeyboard_h___ 19 #define ___WinKeyboard_h___ 20 20 21 21 /* Platform includes: */ 22 #include "Windows.h"22 #include <iprt/win/windows.h> 23 23 24 24 void * WinHidDevicesKeepLedsState(void); … … 80 80 FAKE_CONTROL_DOWN 81 81 } m_enmFakeControlDetectionState; 82 DWORDm_timeOfLastKeyEvent;82 LONG m_timeOfLastKeyEvent; 83 83 }; 84 #endif /* __WinKeyboard_h__ */85 84 85 #endif 86 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r62493 r63315 1387 1387 case QEvent::GraphicsSceneDragLeave: 1388 1388 return processDragLeaveEvent(static_cast<QGraphicsSceneDragDropEvent*>(pEvent)); 1389 default: break; /* Shut up MSC */ 1389 1390 } 1390 1391 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.h
r62493 r63315 56 56 /* Creates empty cache item: */ 57 57 UISettingsCache() { m_value = qMakePair(CacheData(), CacheData()); } 58 59 virtual ~UISettingsCache() { /* Makes MSC happy */ } 58 60 59 61 /* Returns the NON-modifiable REFERENCE to the initial cached data: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp
r62493 r63315 271 271 break; 272 272 } 273 default: break; /* Shuts up MSC. */ 273 274 } 274 275 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.h
r62493 r63315 16 16 */ 17 17 18 #ifndef __ UIWizardPage_h__19 #define __ UIWizardPage_h__18 #ifndef ___UIWizardPage_h___ 19 #define ___UIWizardPage_h___ 20 20 21 21 /* Global includes: */ … … 34 34 class UIWizardPageBase 35 35 { 36 public: 37 virtual ~UIWizardPageBase() { /* Makes MSC happy. */ } 38 36 39 protected: 37 40 … … 74 77 }; 75 78 76 #endif // __UIWizardPage_h__79 #endif 77 80
Note:
See TracChangeset
for help on using the changeset viewer.