Changeset 71428 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 21, 2018 1:01:35 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp
r70723 r71428 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r70723 r71428 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 #include "COMEnums.h" 27 27 28 /* Define GUI log group: */ 29 // WORKAROUND: 30 // This define should go *before* VBox/log.h include! 28 31 #ifndef VBOX_WITH_PRECOMPILED_HEADERS 29 /* Define GUI log group. 30 * This define should go *before* VBox/log.h include: */ 31 #define LOG_GROUP LOG_GROUP_GUI 32 # define LOG_GROUP LOG_GROUP_GUI 32 33 #endif 34 33 35 /* Other VBox includes: */ 34 36 #include <VBox/log.h> … … 44 46 # define AssertWrapperOk(w) do {} while (0) 45 47 # define AssertWrapperOkMsg(w, m) do {} while (0) 46 #endif /* DEBUG */48 #endif /* !DEBUG */ 47 49 48 50 #ifndef SIZEOF_ARRAY 49 51 # define SIZEOF_ARRAY(a) (sizeof(a) / sizeof(a[0])) 50 #endif /* SIZEOF_ARRAY */ 52 #endif 53 51 54 52 55 /** Global namespace. */ 53 56 namespace UIDefs 54 57 { 55 /* Additional Qt event types:*/58 /** Additional Qt event types. */ 56 59 enum UIEventType 57 60 { 58 ResizeEventType = QEvent::User + 101 59 , SetRegionEventType 60 , ModifierKeyChangeEventType 61 #ifdef VBOX_WS_WIN 62 , ShellExecuteEventType 63 #endif /* VBOX_WS_WIN */ 64 , ActivateActionEventType 61 ActivateActionEventType = QEvent::User + 101, 65 62 #ifdef VBOX_WS_MAC 66 , ShowWindowEventType 67 #endif /* VBOX_WS_MAC */ 68 , AddVDMUrlsEventType 63 ShowWindowEventType, 64 #endif 69 65 #ifdef VBOX_GUI_USE_QGL 70 , VHWACommandProcessType71 #endif /* VBOX_GUI_USE_QGL */66 VHWACommandProcessType, 67 #endif 72 68 }; 73 69 74 /* Size formatting types:*/70 /** Size formatting types. */ 75 71 enum FormatSize 76 72 { … … 80 76 }; 81 77 82 /* File name declarations:*/78 /** Default guest additions image name. */ 83 79 extern const char* GUI_GuestAdditionsName; 80 /** Default extension pack name. */ 84 81 extern const char* GUI_ExtPackName; 85 82 86 /* File extensions declarations:*/83 /** Allowed VBox file extensions. */ 87 84 extern QStringList VBoxFileExts; 85 /** Allowed VBox Extension Pack file extensions. */ 88 86 extern QStringList VBoxExtPackFileExts; 87 /** Allowed OVF file extensions. */ 89 88 extern QStringList OVFFileExts; 89 /** Allowed OPC file extensions. */ 90 90 extern QStringList OPCFileExts; 91 91 } 92 92 using namespace UIDefs /* if header included */; 93 93 94 94 95 #ifdef VBOX_WS_MAC 95 /** Mac OS X: KnownOS releases. */96 /** Known macOS releases. */ 96 97 enum MacOSXRelease 97 98 { … … 107 108 #endif /* VBOX_WS_MAC */ 108 109 109 /** Common UI: Size suffixes. */ 110 111 /** Size suffixes. */ 110 112 enum SizeSuffix 111 113 { … … 119 121 }; 120 122 121 /** Common UI: Storage-slot struct. */ 123 124 /** Storage-slot struct. */ 122 125 struct StorageSlot 123 126 { … … 139 142 Q_DECLARE_METATYPE(StorageSlot); 140 143 141 /** Common UI: Storage-slot struct extension with exact controller name. */ 144 145 /** Storage-slot struct extension with exact controller name. */ 142 146 struct ExactStorageSlot : public StorageSlot 143 147 { … … 150 154 }; 151 155 156 152 157 #endif /* !___UIDefs_h___ */ 158
Note:
See TracChangeset
for help on using the changeset viewer.