Changeset 51187 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 5, 2014 2:38:41 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93560
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 22 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r51035 r51187 544 544 src/extensions/QIAdvancedToolBar.cpp \ 545 545 src/extensions/graphics/QIGraphicsWidget.cpp \ 546 src/extradata/UIExtraDataDefs.cpp \ 546 547 src/extradata/UIExtraDataManager.cpp \ 547 548 src/globals/UIDefs.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h
r51149 r51187 27 27 /* GUI includes: */ 28 28 #include "UIDefs.h" 29 #include "UIExtraDataDefs.h" 29 30 30 31 /* Determines if 'Object of type X' can be converted to object of other type. -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r51180 r51187 1 1 /* $Id$ */ 2 2 /** @file 3 * 4 * VBox frontends: Qt GUI ("VirtualBox"): 5 * Global definitions and function implementations 3 * VBox Qt GUI - Extra-data related definitions. 6 4 */ 7 5 8 6 /* 9 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 10 8 * 11 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 17 20 18 /* GUI includes: */ 21 #include "UI Defs.h"19 #include "UIExtraDataDefs.h" 22 20 23 21 /* Global definitions: */ 24 const char* UIDefs::GUI_RenderMode = "GUI/RenderMode"; 25 const char* UIDefs::GUI_LanguageId = "GUI/LanguageID"; 26 const char* UIDefs::GUI_ExtPackName = "Oracle VM VirtualBox Extension Pack"; 27 const char* UIDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning"; 28 const char* UIDefs::GUI_RecentFolderHD = "GUI/RecentFolderHD"; 29 const char* UIDefs::GUI_RecentFolderCD = "GUI/RecentFolderCD"; 30 const char* UIDefs::GUI_RecentFolderFD = "GUI/RecentFolderFD"; 31 const char* UIDefs::GUI_RecentListHD = "GUI/RecentListHD"; 32 const char* UIDefs::GUI_RecentListCD = "GUI/RecentListCD"; 33 const char* UIDefs::GUI_RecentListFD = "GUI/RecentListFD"; 22 const char* UIExtraDataDefs::GUI_LanguageId = "GUI/LanguageID"; 23 const char* UIExtraDataDefs::GUI_ExtPackName = "Oracle VM VirtualBox Extension Pack"; 24 const char* UIExtraDataDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning"; 25 const char* UIExtraDataDefs::GUI_RecentFolderHD = "GUI/RecentFolderHD"; 26 const char* UIExtraDataDefs::GUI_RecentFolderCD = "GUI/RecentFolderCD"; 27 const char* UIExtraDataDefs::GUI_RecentFolderFD = "GUI/RecentFolderFD"; 28 const char* UIExtraDataDefs::GUI_RecentListHD = "GUI/RecentListHD"; 29 const char* UIExtraDataDefs::GUI_RecentListCD = "GUI/RecentListCD"; 30 const char* UIExtraDataDefs::GUI_RecentListFD = "GUI/RecentListFD"; 34 31 35 /* Selector-window definitions: */ 36 const char* UIDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts"; 37 const char* UIDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition"; 38 const char* UIDefs::GUI_SplitterSizes = "GUI/SplitterSizes"; 39 const char* UIDefs::GUI_Toolbar = "GUI/Toolbar"; 40 const char* UIDefs::GUI_Statusbar = "GUI/Statusbar"; 41 const char* UIDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate"; 42 const char* UIDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes"; 43 const char* UIDefs::GUI_SelectorVMPositions = "GUI/SelectorVMPositions"; 44 const char* UIDefs::GUI_LastVMSelected = "GUI/LastVMSelected"; 45 const char* UIDefs::GUI_LastItemSelected = "GUI/LastItemSelected"; 46 const char* UIDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions"; 47 const char* UIDefs::GUI_HideFromManager = "GUI/HideFromManager"; 48 const char* UIDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration"; 49 const char* UIDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations"; 50 const char* UIDefs::GUI_HideDetails = "GUI/HideDetails"; 32 /* Message-center definitions: */ 33 const char* UIExtraDataDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; 34 const char* UIExtraDataDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption"; 51 35 52 /* Machine-window definitions: */ 53 #ifndef Q_WS_MAC 54 const char* UIDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons"; 55 const char* UIDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix"; 56 #endif /* !Q_WS_MAC */ 57 const char* UIDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus"; 58 #ifdef Q_WS_MAC 59 const char* UIDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions"; 60 #endif /* Q_WS_MAC */ 61 const char* UIDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions"; 62 const char* UIDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions"; 63 const char* UIDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions"; 64 #ifdef VBOX_WITH_DEBUGGER_GUI 65 const char* UIDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions"; 66 #endif /* VBOX_WITH_DEBUGGER_GUI */ 67 const char* UIDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions"; 68 const char* UIDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates"; 69 const char* UIDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts"; 70 const char* UIDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition"; 71 const char* UIDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition"; 72 const char* UIDefs::GUI_LastWindowState_Max = "max"; 73 const char* UIDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint"; 74 const char* UIDefs::GUI_LastGuestSizeHintWasFullscreen = "GUI/LastGuestSizeHintWasFullscreen"; 75 const char* UIDefs::GUI_Fullscreen = "GUI/Fullscreen"; 76 const char* UIDefs::GUI_Seamless = "GUI/Seamless"; 77 const char* UIDefs::GUI_Scale = "GUI/Scale"; 78 const char* UIDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen"; 79 const char* UIDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest"; 80 const char* UIDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens"; 81 const char* UIDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime"; 82 const char* UIDefs::GUI_PassCAD = "GUI/PassCAD"; 83 const char* UIDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction"; 84 const char* UIDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators"; 85 const char* UIDefs::GUI_HidLedsSync = "GUI/HidLedsSync"; 86 const char* UIDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler"; 87 const char* UIDefs::GUI_HiDPIOptimization = "GUI/HiDPI/Optimization"; 88 89 /* Settings dialogs stuff: */ 90 const char* UIDefs::GUI_RestrictedGlobalSettingsPages = "GUI/RestrictedGlobalSettingsPages"; 91 const char* UIDefs::GUI_RestrictedMachineSettingsPages = "GUI/RestrictedMachineSettingsPages"; 92 93 /* Mini tool-bar definitions: */ 94 const char* UIDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar"; 95 const char* UIDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment"; 96 const char* UIDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide"; 97 98 /* Close-dialog definitions: */ 99 const char* UIDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions"; 100 const char* UIDefs::GUI_LastCloseAction = "GUI/LastCloseAction"; 101 const char* UIDefs::GUI_CloseActionHook = "GUI/CloseActionHook"; 36 /* Settings-dialog definitions: */ 37 const char* UIExtraDataDefs::GUI_RestrictedGlobalSettingsPages = "GUI/RestrictedGlobalSettingsPages"; 38 const char* UIExtraDataDefs::GUI_RestrictedMachineSettingsPages = "GUI/RestrictedMachineSettingsPages"; 102 39 103 40 /* Wizards definitions: */ 104 const char* UIDefs::GUI_FirstRun = "GUI/FirstRun"; 105 const char* UIDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards"; 106 const char* UIDefs::GUI_Export_StorageType = "GUI/Export/StorageType"; 107 const char* UIDefs::GUI_Export_Username = "GUI/Export/Username"; 108 const char* UIDefs::GUI_Export_Hostname = "GUI/Export/Hostname"; 109 const char* UIDefs::GUI_Export_Bucket = "GUI/Export/Bucket"; 110 111 /* Message-center definitions: */ 112 const char* UIDefs::GUI_SuppressMessages = "GUI/SuppressMessages"; 113 const char* UIDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption"; 41 const char* UIExtraDataDefs::GUI_FirstRun = "GUI/FirstRun"; 42 const char* UIExtraDataDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards"; 43 const char* UIExtraDataDefs::GUI_Export_StorageType = "GUI/Export/StorageType"; 44 const char* UIExtraDataDefs::GUI_Export_Username = "GUI/Export/Username"; 45 const char* UIExtraDataDefs::GUI_Export_Hostname = "GUI/Export/Hostname"; 46 const char* UIExtraDataDefs::GUI_Export_Bucket = "GUI/Export/Bucket"; 114 47 115 48 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 116 /* Update 117 const char* UI Defs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate";118 const char* UI Defs::GUI_UpdateDate = "GUI/UpdateDate";119 const char* UI Defs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount";49 /* Update-manager definitions: */ 50 const char* UIExtraDataDefs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate"; 51 const char* UIExtraDataDefs::GUI_UpdateDate = "GUI/UpdateDate"; 52 const char* UIExtraDataDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount"; 120 53 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 121 54 122 /* Information dialog definitions: */123 const char* UIDefs::GUI_InfoDlgState = "GUI/InfoDlgState";124 125 #ifdef VBOX_WITH_DEBUGGER_GUI126 /* Debugger GUI declarations: */127 const char* UIDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled";128 const char* UIDefs::GUI_DbgAutoShow = "GUI/Dbg/AutoShow";129 #endif /* VBOX_WITH_DEBUGGER_GUI */130 131 55 #ifdef Q_WS_X11 132 /* License GUI de clarations: */133 const char* UI Defs::GUI_LicenseKey = "GUI/LicenseAgreed";56 /* License GUI definitions: */ 57 const char* UIExtraDataDefs::GUI_LicenseKey = "GUI/LicenseAgreed"; 134 58 #endif /* Q_WS_X11 */ 135 59 60 /* Selector UI definitions: */ 61 const char* UIExtraDataDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts"; 62 const char* UIExtraDataDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition"; 63 const char* UIExtraDataDefs::GUI_SplitterSizes = "GUI/SplitterSizes"; 64 const char* UIExtraDataDefs::GUI_Toolbar = "GUI/Toolbar"; 65 const char* UIExtraDataDefs::GUI_Statusbar = "GUI/Statusbar"; 66 const char* UIExtraDataDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate"; 67 const char* UIExtraDataDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes"; 68 const char* UIExtraDataDefs::GUI_SelectorVMPositions = "GUI/SelectorVMPositions"; 69 const char* UIExtraDataDefs::GUI_LastVMSelected = "GUI/LastVMSelected"; 70 const char* UIExtraDataDefs::GUI_LastItemSelected = "GUI/LastItemSelected"; 71 const char* UIExtraDataDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions"; 72 const char* UIExtraDataDefs::GUI_HideFromManager = "GUI/HideFromManager"; 73 const char* UIExtraDataDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration"; 74 const char* UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations"; 75 const char* UIExtraDataDefs::GUI_HideDetails = "GUI/HideDetails"; 76 77 /* Runtime UI definitions: */ 78 const char* UIExtraDataDefs::GUI_RenderMode = "GUI/RenderMode"; 79 #ifndef Q_WS_MAC 80 const char* UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons"; 81 const char* UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix"; 82 #endif /* !Q_WS_MAC */ 83 const char* UIExtraDataDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus"; 136 84 #ifdef Q_WS_MAC 137 /* Mac dock declarations: */ 138 const char* UIDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled"; 139 const char* UIDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor"; 140 const char* UIDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled"; 85 const char* UIExtraDataDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions"; 86 #endif /* Q_WS_MAC */ 87 const char* UIExtraDataDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions"; 88 const char* UIExtraDataDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions"; 89 const char* UIExtraDataDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions"; 90 #ifdef VBOX_WITH_DEBUGGER_GUI 91 const char* UIExtraDataDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions"; 92 #endif /* VBOX_WITH_DEBUGGER_GUI */ 93 const char* UIExtraDataDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions"; 94 const char* UIExtraDataDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates"; 95 const char* UIExtraDataDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts"; 96 const char* UIExtraDataDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition"; 97 const char* UIExtraDataDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition"; 98 const char* UIExtraDataDefs::GUI_LastWindowState_Max = "max"; 99 const char* UIExtraDataDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint"; 100 const char* UIExtraDataDefs::GUI_LastGuestSizeHintWasFullscreen = "GUI/LastGuestSizeHintWasFullscreen"; 101 const char* UIExtraDataDefs::GUI_Fullscreen = "GUI/Fullscreen"; 102 const char* UIExtraDataDefs::GUI_Seamless = "GUI/Seamless"; 103 const char* UIExtraDataDefs::GUI_Scale = "GUI/Scale"; 104 const char* UIExtraDataDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen"; 105 const char* UIExtraDataDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest"; 106 const char* UIExtraDataDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens"; 107 const char* UIExtraDataDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime"; 108 const char* UIExtraDataDefs::GUI_PassCAD = "GUI/PassCAD"; 109 const char* UIExtraDataDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction"; 110 const char* UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators"; 111 const char* UIExtraDataDefs::GUI_HidLedsSync = "GUI/HidLedsSync"; 112 const char* UIExtraDataDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler"; 113 const char* UIExtraDataDefs::GUI_HiDPIOptimization = "GUI/HiDPI/Optimization"; 114 115 /* Runtime UI: Mini-toolbar definitions: */ 116 const char* UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar"; 117 const char* UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment"; 118 const char* UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide"; 119 120 #ifdef Q_WS_MAC 121 /* Runtime UI: Mac-dock definitions: */ 122 const char* UIExtraDataDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled"; 123 const char* UIExtraDataDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor"; 124 const char* UIExtraDataDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled"; 141 125 #endif /* Q_WS_MAC */ 142 126 143 127 #ifdef VBOX_WITH_VIDEOHWACCEL 144 /* Video-acceleration declarations: */145 const char* UI Defs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear";146 const char* UI Defs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12";147 const char* UI Defs::GUI_Accelerate2D_PixformatUYVY = "GUI/Accelerate2D/PixformatUYVY";148 const char* UI Defs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2";149 const char* UI Defs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV";128 /* Runtime UI: Video-acceleration definitions: */ 129 const char* UIExtraDataDefs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear"; 130 const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12"; 131 const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatUYVY = "GUI/Accelerate2D/PixformatUYVY"; 132 const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2"; 133 const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV"; 150 134 #endif /* VBOX_WITH_VIDEOHWACCEL */ 151 135 152 /* File extensionsdefinitions: */153 QStringList UIDefs::VBoxFileExts = QStringList() << "xml" << "vbox";154 QStringList UIDefs::VBoxExtPackFileExts = QStringList() << "vbox-extpack";155 QStringList UIDefs::OVFFileExts = QStringList() << "ovf" << "ova";136 /* Runtime UI: Close-dialog definitions: */ 137 const char* UIExtraDataDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions"; 138 const char* UIExtraDataDefs::GUI_LastCloseAction = "GUI/LastCloseAction"; 139 const char* UIExtraDataDefs::GUI_CloseActionHook = "GUI/CloseActionHook"; 156 140 141 /* Runtime UI: Information-dialog definitions: */ 142 const char* UIExtraDataDefs::GUI_InfoDlgState = "GUI/InfoDlgState"; 143 144 #ifdef VBOX_WITH_DEBUGGER_GUI 145 /* Runtime UI: Debugger GUI definitions: */ 146 const char* UIExtraDataDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled"; 147 const char* UIExtraDataDefs::GUI_DbgAutoShow = "GUI/Dbg/AutoShow"; 148 #endif /* VBOX_WITH_DEBUGGER_GUI */ 149 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r51180 r51187 1 1 /** @file 2 * VBox Qt GUI - UIDefs namespace and other global declarations.2 * VBox Qt GUI - Extra-data related definitions. 3 3 */ 4 4 5 5 /* 6 * Copyright (C) 2006-201 3Oracle Corporation6 * Copyright (C) 2006-2014 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 15 15 */ 16 16 17 #ifndef ___UI Defs_h___18 #define ___UI Defs_h___17 #ifndef ___UIExtraDataDefs_h___ 18 #define ___UIExtraDataDefs_h___ 19 19 20 20 /* Qt includes: */ 21 #include <QEvent> 22 #include <QStringList> 23 24 /* COM includes: */ 25 #include "COMEnums.h" 26 27 /* Other VBox defines: */ 28 #define LOG_GROUP LOG_GROUP_GUI 21 #include <QMetaType> 29 22 30 23 /* Other VBox includes: */ 31 #include <VBox/log.h> 32 #include <iprt/assert.h> 33 #include <iprt/alloc.h> 34 35 /* Defines: */ 36 #define MAC_LEOPARD_STYLE defined(Q_WS_MAC) && (QT_VERSION >= 0x040300) 37 38 #ifdef DEBUG 39 # define AssertWrapperOk(w) \ 40 AssertMsg (w.isOk(), (#w " is not okay (RC=0x%08X)", w.lastRC())) 41 # define AssertWrapperOkMsg(w, m) \ 42 AssertMsg (w.isOk(), (#w ": " m " (RC=0x%08X)", w.lastRC())) 43 #else /* !DEBUG */ 44 # define AssertWrapperOk(w) do {} while (0) 45 # define AssertWrapperOkMsg(w, m) do {} while (0) 46 #endif /* DEBUG */ 47 48 #ifndef SIZEOF_ARRAY 49 # define SIZEOF_ARRAY(a) (sizeof(a) / sizeof(a[0])) 50 #endif /* SIZEOF_ARRAY */ 51 52 /* Global UI namespace: */ 53 namespace UIDefs 54 { 55 /* VM display rendering mode: */ 56 enum RenderMode 57 { 58 InvalidRenderMode 59 , QImageMode 60 #ifdef VBOX_GUI_USE_QUARTZ2D 61 , Quartz2DMode 62 #endif /* VBOX_GUI_USE_QUARTZ2D */ 63 }; 64 65 /* Additional Qt event types: */ 66 enum UIEventType 67 { 68 ResizeEventType = QEvent::User + 101 69 , SetRegionEventType 70 , ModifierKeyChangeEventType 71 #ifdef Q_WS_WIN 72 , ShellExecuteEventType 73 #endif /* Q_WS_WIN */ 74 , ActivateActionEventType 75 #ifdef Q_WS_MAC 76 , ShowWindowEventType 77 #endif /* Q_WS_MAC */ 78 , AddVDMUrlsEventType 79 #ifdef VBOX_GUI_USE_QGL 80 , VHWACommandProcessType 81 #endif /* VBOX_GUI_USE_QGL */ 82 }; 83 84 /* Size formatting types: */ 85 enum FormatSize 86 { 87 FormatSize_Round, 88 FormatSize_RoundDown, 89 FormatSize_RoundUp 90 }; 91 24 #include <iprt/cdefs.h> 25 26 /** Extra-data namespace. */ 27 namespace UIExtraDataDefs 28 { 92 29 /* Global declarations: */ 93 extern const char* GUI_RenderMode;94 30 extern const char* GUI_LanguageId; 95 31 extern const char* GUI_ExtPackName; … … 102 38 extern const char* GUI_RecentListFD; 103 39 104 /* Selector-window declarations: */ 40 /* Message-center declarations: */ 41 extern const char* GUI_SuppressMessages; 42 extern const char* GUI_InvertMessageOption; 43 44 /* Settings-dialog declarations: */ 45 extern const char* GUI_RestrictedGlobalSettingsPages; 46 extern const char* GUI_RestrictedMachineSettingsPages; 47 48 /* Wizard declarations: */ 49 extern const char* GUI_FirstRun; 50 extern const char* GUI_HideDescriptionForWizards; 51 extern const char* GUI_Export_StorageType; 52 extern const char* GUI_Export_Username; 53 extern const char* GUI_Export_Hostname; 54 extern const char* GUI_Export_Bucket; 55 56 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 57 /* Update-manager declarations: */ 58 extern const char* GUI_PreventApplicationUpdate; 59 extern const char* GUI_UpdateDate; 60 extern const char* GUI_UpdateCheckCount; 61 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 62 63 #ifdef Q_WS_X11 64 /* License GUI declarations: */ 65 extern const char* GUI_LicenseKey; 66 #endif /* Q_WS_X11 */ 67 68 /* Selector UI declarations: */ 105 69 extern const char* GUI_Input_SelectorShortcuts; 106 70 extern const char* GUI_LastSelectorWindowPosition; … … 119 83 extern const char* GUI_HideDetails; 120 84 121 /* Machine-window declarations: */ 85 /* Runtime UI declarations: */ 86 extern const char* GUI_RenderMode; 122 87 #ifndef Q_WS_MAC 123 88 extern const char* GUI_MachineWindowIcons; … … 156 121 extern const char* GUI_HiDPIOptimization; 157 122 158 /* Settings dialogs stuff: */ 159 extern const char* GUI_RestrictedGlobalSettingsPages; 160 extern const char* GUI_RestrictedMachineSettingsPages; 161 162 /* Mini tool-bar declarations: */ 123 /* Runtime UI: Mini-toolbar declarations: */ 163 124 extern const char* GUI_ShowMiniToolBar; 164 125 extern const char* GUI_MiniToolBarAlignment; 165 126 extern const char* GUI_MiniToolBarAutoHide; 166 127 167 /* Close-dialog declarations: */168 extern const char* GUI_RestrictedCloseActions;169 extern const char* GUI_LastCloseAction;170 extern const char* GUI_CloseActionHook;171 172 /* Wizards declarations: */173 extern const char* GUI_FirstRun;174 extern const char* GUI_HideDescriptionForWizards;175 extern const char* GUI_Export_StorageType;176 extern const char* GUI_Export_Username;177 extern const char* GUI_Export_Hostname;178 extern const char* GUI_Export_Bucket;179 180 /* Message-center declarations: */181 extern const char* GUI_SuppressMessages;182 extern const char* GUI_InvertMessageOption;183 184 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER185 /* Update manager declarations: */186 extern const char* GUI_PreventApplicationUpdate;187 extern const char* GUI_UpdateDate;188 extern const char* GUI_UpdateCheckCount;189 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */190 191 /* Information dialog declarations: */192 extern const char* GUI_InfoDlgState;193 194 #ifdef VBOX_WITH_DEBUGGER_GUI195 /* Debugger GUI declarations: */196 extern const char* GUI_DbgEnabled;197 extern const char* GUI_DbgAutoShow;198 #endif /* VBOX_WITH_DEBUGGER_GUI */199 200 #ifdef Q_WS_X11201 /* License GUI declarations: */202 extern const char* GUI_LicenseKey;203 #endif /* Q_WS_X11 */204 205 128 #ifdef Q_WS_MAC 206 /* Macdock declarations: */129 /* Runtime UI: Mac-dock declarations: */ 207 130 extern const char* GUI_RealtimeDockIconUpdateEnabled; 208 131 extern const char* GUI_RealtimeDockIconUpdateMonitor; … … 211 134 212 135 #ifdef VBOX_WITH_VIDEOHWACCEL 213 /* Video-acceleration declarations: */136 /* Runtime UI: Video-acceleration declarations: */ 214 137 extern const char* GUI_Accelerate2D_StretchLinear; 215 138 extern const char* GUI_Accelerate2D_PixformatYV12; … … 219 142 #endif /* VBOX_WITH_VIDEOHWACCEL */ 220 143 221 /* File extensions declarations: */ 222 extern QStringList VBoxFileExts; 223 extern QStringList VBoxExtPackFileExts; 224 extern QStringList OVFFileExts; 144 /* Runtime UI: Close-dialog declarations: */ 145 extern const char* GUI_RestrictedCloseActions; 146 extern const char* GUI_LastCloseAction; 147 extern const char* GUI_CloseActionHook; 148 149 /* Runtime UI: Information-dialog declarations: */ 150 extern const char* GUI_InfoDlgState; 151 152 #ifdef VBOX_WITH_DEBUGGER_GUI 153 /* Runtime UI: Debugger GUI declarations: */ 154 extern const char* GUI_DbgEnabled; 155 extern const char* GUI_DbgAutoShow; 156 #endif /* VBOX_WITH_DEBUGGER_GUI */ 225 157 } 226 using namespace UIDefs /* globally */; 227 228 #ifdef Q_WS_MAC 229 /** Known MacOS X releases. */ 230 enum MacOSXRelease 231 { 232 MacOSXRelease_Unknown, 233 MacOSXRelease_SnowLeopard, 234 MacOSXRelease_Lion, 235 MacOSXRelease_MountainLion, 236 MacOSXRelease_Mavericks 237 }; 238 #endif /* Q_WS_MAC */ 239 240 struct StorageSlot 241 { 242 StorageSlot() : bus(KStorageBus_Null), port(0), device(0) {} 243 StorageSlot(const StorageSlot &other) : bus(other.bus), port(other.port), device(other.device) {} 244 StorageSlot(KStorageBus otherBus, LONG iPort, LONG iDevice) : bus(otherBus), port(iPort), device(iDevice) {} 245 StorageSlot& operator=(const StorageSlot &other) { bus = other.bus; port = other.port; device = other.device; return *this; } 246 bool operator==(const StorageSlot &other) const { return bus == other.bus && port == other.port && device == other.device; } 247 bool operator!=(const StorageSlot &other) const { return bus != other.bus || port != other.port || device != other.device; } 248 bool operator<(const StorageSlot &other) const { return (bus < other.bus) || 249 (bus == other.bus && port < other.port) || 250 (bus == other.bus && port == other.port && device < other.device); } 251 bool operator>(const StorageSlot &other) const { return (bus > other.bus) || 252 (bus == other.bus && port > other.port) || 253 (bus == other.bus && port == other.port && device > other.device); } 254 bool isNull() const { return bus == KStorageBus_Null; } 255 KStorageBus bus; LONG port; LONG device; 256 }; 257 Q_DECLARE_METATYPE(StorageSlot); 258 259 /* Common UI size suffixes: */ 260 enum SizeSuffix 261 { 262 SizeSuffix_Byte = 0, 263 SizeSuffix_KiloByte, 264 SizeSuffix_MegaByte, 265 SizeSuffix_GigaByte, 266 SizeSuffix_TeraByte, 267 SizeSuffix_PetaByte, 268 SizeSuffix_Max 269 }; 270 271 /* Runtime UI menu types: */ 158 using namespace UIExtraDataDefs /* if header included */; 159 160 161 /** Common UI: Global settings page types. */ 162 enum GlobalSettingsPageType 163 { 164 GlobalSettingsPageType_Invalid, 165 GlobalSettingsPageType_General, 166 GlobalSettingsPageType_Input, 167 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 168 GlobalSettingsPageType_Update, 169 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 170 GlobalSettingsPageType_Language, 171 GlobalSettingsPageType_Display, 172 GlobalSettingsPageType_Network, 173 GlobalSettingsPageType_Extensions, 174 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 175 GlobalSettingsPageType_Proxy, 176 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 177 GlobalSettingsPageType_Max 178 }; 179 Q_DECLARE_METATYPE(GlobalSettingsPageType); 180 181 /** Common UI: Machine settings page types. */ 182 enum MachineSettingsPageType 183 { 184 MachineSettingsPageType_Invalid, 185 MachineSettingsPageType_General, 186 MachineSettingsPageType_System, 187 MachineSettingsPageType_Display, 188 MachineSettingsPageType_Storage, 189 MachineSettingsPageType_Audio, 190 MachineSettingsPageType_Network, 191 MachineSettingsPageType_Ports, 192 MachineSettingsPageType_Serial, 193 MachineSettingsPageType_Parallel, 194 MachineSettingsPageType_USB, 195 MachineSettingsPageType_SF, 196 MachineSettingsPageType_Max 197 }; 198 Q_DECLARE_METATYPE(MachineSettingsPageType); 199 200 201 /** Selector UI: Details-element types. */ 202 enum DetailsElementType 203 { 204 DetailsElementType_General, 205 DetailsElementType_System, 206 DetailsElementType_Preview, 207 DetailsElementType_Display, 208 DetailsElementType_Storage, 209 DetailsElementType_Audio, 210 DetailsElementType_Network, 211 DetailsElementType_Serial, 212 #ifdef VBOX_WITH_PARALLEL_PORTS 213 DetailsElementType_Parallel, 214 #endif /* VBOX_WITH_PARALLEL_PORTS */ 215 DetailsElementType_USB, 216 DetailsElementType_SF, 217 DetailsElementType_Description 218 }; 219 Q_DECLARE_METATYPE(DetailsElementType); 220 221 222 /** Runtime UI: Menu types. */ 272 223 enum RuntimeMenuType 273 224 { … … 282 233 283 234 #ifdef Q_WS_MAC 284 /** Runtime UI: Application menu: Action types. */235 /** Runtime UI: Menu "Application": Action types. */ 285 236 enum RuntimeMenuApplicationActionType 286 237 { … … 291 242 #endif /* Q_WS_MAC */ 292 243 293 /** Runtime UI: M achine menu: Action types. */244 /** Runtime UI: Menu "Machine": Action types. */ 294 245 enum RuntimeMenuMachineActionType 295 246 { … … 315 266 }; 316 267 317 /** Runtime UI: View menu: Action types. */268 /** Runtime UI: Menu "View": Action types. */ 318 269 enum RuntimeMenuViewActionType 319 270 { … … 328 279 }; 329 280 330 /** Runtime UI: Devices menu: Action types. */281 /** Runtime UI: Menu "Devices": Action types. */ 331 282 enum RuntimeMenuDevicesActionType 332 283 { … … 347 298 348 299 #ifdef VBOX_WITH_DEBUGGER_GUI 349 /** Runtime UI: Debugger menu: Action types. */300 /** Runtime UI: Menu "Debugger": Action types. */ 350 301 enum RuntimeMenuDebuggerActionType 351 302 { … … 359 310 #endif /* VBOX_WITH_DEBUGGER_GUI */ 360 311 361 /** Runtime UI: Help menu: Action types. */312 /** Runtime UI: Menu "Help": Action types. */ 362 313 enum RuntimeMenuHelpActionType 363 314 { … … 375 326 }; 376 327 377 /* Runtime UI visual-state types: */ 328 /** Runtime UI: Rendering modes. */ 329 enum RenderMode 330 { 331 InvalidRenderMode 332 , QImageMode 333 #ifdef VBOX_GUI_USE_QUARTZ2D 334 , Quartz2DMode 335 #endif /* VBOX_GUI_USE_QUARTZ2D */ 336 }; 337 338 /** Runtime UI: Visual-state types. */ 378 339 enum UIVisualStateType 379 340 { … … 387 348 Q_DECLARE_METATYPE(UIVisualStateType); 388 349 389 /* Details element type: */ 390 enum DetailsElementType 391 { 392 DetailsElementType_General, 393 DetailsElementType_System, 394 DetailsElementType_Preview, 395 DetailsElementType_Display, 396 DetailsElementType_Storage, 397 DetailsElementType_Audio, 398 DetailsElementType_Network, 399 DetailsElementType_Serial, 400 #ifdef VBOX_WITH_PARALLEL_PORTS 401 DetailsElementType_Parallel, 402 #endif /* VBOX_WITH_PARALLEL_PORTS */ 403 DetailsElementType_USB, 404 DetailsElementType_SF, 405 DetailsElementType_Description 406 }; 407 Q_DECLARE_METATYPE(DetailsElementType); 408 409 /* Global settings page type: */ 410 enum GlobalSettingsPageType 411 { 412 GlobalSettingsPageType_Invalid, 413 GlobalSettingsPageType_General, 414 GlobalSettingsPageType_Input, 415 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 416 GlobalSettingsPageType_Update, 417 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 418 GlobalSettingsPageType_Language, 419 GlobalSettingsPageType_Display, 420 GlobalSettingsPageType_Network, 421 GlobalSettingsPageType_Extensions, 422 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 423 GlobalSettingsPageType_Proxy, 424 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 425 GlobalSettingsPageType_Max 426 }; 427 Q_DECLARE_METATYPE(GlobalSettingsPageType); 428 429 /* Machine settings page type: */ 430 enum MachineSettingsPageType 431 { 432 MachineSettingsPageType_Invalid, 433 MachineSettingsPageType_General, 434 MachineSettingsPageType_System, 435 MachineSettingsPageType_Display, 436 MachineSettingsPageType_Storage, 437 MachineSettingsPageType_Audio, 438 MachineSettingsPageType_Network, 439 MachineSettingsPageType_Ports, 440 MachineSettingsPageType_Serial, 441 MachineSettingsPageType_Parallel, 442 MachineSettingsPageType_USB, 443 MachineSettingsPageType_SF, 444 MachineSettingsPageType_Max 445 }; 446 Q_DECLARE_METATYPE(MachineSettingsPageType); 447 448 /* Indicator type: */ 350 /** Runtime UI: Indicator types. */ 449 351 enum IndicatorType 450 352 { … … 464 366 Q_DECLARE_METATYPE(IndicatorType); 465 367 466 /* Machine close action:*/368 /** Runtime UI: Machine close actions. */ 467 369 enum MachineCloseAction 468 370 { … … 491 393 }; 492 394 493 #endif /* !___UIDefs_h___ */ 494 395 396 #endif /* !___UIExtraDataDefs_h___ */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51178 r51187 23 23 24 24 /* GUI includes: */ 25 #include "UI Defs.h"25 #include "UIExtraDataDefs.h" 26 26 27 27 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp
r51158 r51187 1 1 /* $Id$ */ 2 2 /** @file 3 * 4 * VBox frontends: Qt GUI ("VirtualBox"): 5 * Global definitions and function implementations 3 * VBox Qt GUI - Global definitions. 6 4 */ 7 5 8 6 /* 9 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 10 8 * 11 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 21 19 #include "UIDefs.h" 22 20 23 /* Global definitions: */24 const char* UIDefs::GUI_RenderMode = "GUI/RenderMode";25 const char* UIDefs::GUI_LanguageId = "GUI/LanguageID";26 const char* UIDefs::GUI_ExtPackName = "Oracle VM VirtualBox Extension Pack";27 const char* UIDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning";28 const char* UIDefs::GUI_RecentFolderHD = "GUI/RecentFolderHD";29 const char* UIDefs::GUI_RecentFolderCD = "GUI/RecentFolderCD";30 const char* UIDefs::GUI_RecentFolderFD = "GUI/RecentFolderFD";31 const char* UIDefs::GUI_RecentListHD = "GUI/RecentListHD";32 const char* UIDefs::GUI_RecentListCD = "GUI/RecentListCD";33 const char* UIDefs::GUI_RecentListFD = "GUI/RecentListFD";34 35 /* Selector-window definitions: */36 const char* UIDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts";37 const char* UIDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition";38 const char* UIDefs::GUI_SplitterSizes = "GUI/SplitterSizes";39 const char* UIDefs::GUI_Toolbar = "GUI/Toolbar";40 const char* UIDefs::GUI_Statusbar = "GUI/Statusbar";41 const char* UIDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate";42 const char* UIDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes";43 const char* UIDefs::GUI_SelectorVMPositions = "GUI/SelectorVMPositions";44 const char* UIDefs::GUI_LastVMSelected = "GUI/LastVMSelected";45 const char* UIDefs::GUI_LastItemSelected = "GUI/LastItemSelected";46 const char* UIDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions";47 const char* UIDefs::GUI_HideFromManager = "GUI/HideFromManager";48 const char* UIDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration";49 const char* UIDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";50 const char* UIDefs::GUI_HideDetails = "GUI/HideDetails";51 52 /* Machine-window definitions: */53 #ifndef Q_WS_MAC54 const char* UIDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";55 const char* UIDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix";56 #endif /* !Q_WS_MAC */57 const char* UIDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus";58 #ifdef Q_WS_MAC59 const char* UIDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions";60 #endif /* Q_WS_MAC */61 const char* UIDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions";62 const char* UIDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions";63 const char* UIDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions";64 #ifdef VBOX_WITH_DEBUGGER_GUI65 const char* UIDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions";66 #endif /* VBOX_WITH_DEBUGGER_GUI */67 const char* UIDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions";68 const char* UIDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates";69 const char* UIDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts";70 const char* UIDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";71 const char* UIDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition";72 const char* UIDefs::GUI_LastWindowState_Max = "max";73 const char* UIDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint";74 const char* UIDefs::GUI_LastGuestSizeHintWasFullscreen = "GUI/LastGuestSizeHintWasFullscreen";75 const char* UIDefs::GUI_Fullscreen = "GUI/Fullscreen";76 const char* UIDefs::GUI_Seamless = "GUI/Seamless";77 const char* UIDefs::GUI_Scale = "GUI/Scale";78 const char* UIDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen";79 const char* UIDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest";80 const char* UIDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens";81 const char* UIDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime";82 const char* UIDefs::GUI_PassCAD = "GUI/PassCAD";83 const char* UIDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction";84 const char* UIDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators";85 const char* UIDefs::GUI_HidLedsSync = "GUI/HidLedsSync";86 const char* UIDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler";87 const char* UIDefs::GUI_HiDPIOptimization = "GUI/HiDPI/Optimization";88 89 /* Settings dialogs stuff: */90 const char* UIDefs::GUI_RestrictedGlobalSettingsPages = "GUI/RestrictedGlobalSettingsPages";91 const char* UIDefs::GUI_RestrictedMachineSettingsPages = "GUI/RestrictedMachineSettingsPages";92 93 /* Mini tool-bar definitions: */94 const char* UIDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";95 const char* UIDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";96 const char* UIDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";97 98 /* Close-dialog definitions: */99 const char* UIDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";100 const char* UIDefs::GUI_LastCloseAction = "GUI/LastCloseAction";101 const char* UIDefs::GUI_CloseActionHook = "GUI/CloseActionHook";102 103 /* Wizards definitions: */104 const char* UIDefs::GUI_FirstRun = "GUI/FirstRun";105 const char* UIDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards";106 const char* UIDefs::GUI_Export_StorageType = "GUI/Export/StorageType";107 const char* UIDefs::GUI_Export_Username = "GUI/Export/Username";108 const char* UIDefs::GUI_Export_Hostname = "GUI/Export/Hostname";109 const char* UIDefs::GUI_Export_Bucket = "GUI/Export/Bucket";110 111 /* Message-center definitions: */112 const char* UIDefs::GUI_SuppressMessages = "GUI/SuppressMessages";113 const char* UIDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption";114 115 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER116 /* Update manager definitions: */117 const char* UIDefs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate";118 const char* UIDefs::GUI_UpdateDate = "GUI/UpdateDate";119 const char* UIDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount";120 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */121 122 /* Information dialog definitions: */123 const char* UIDefs::GUI_InfoDlgState = "GUI/InfoDlgState";124 125 #ifdef VBOX_WITH_DEBUGGER_GUI126 /* Debugger GUI declarations: */127 const char* UIDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled";128 const char* UIDefs::GUI_DbgAutoShow = "GUI/Dbg/AutoShow";129 #endif /* VBOX_WITH_DEBUGGER_GUI */130 131 #ifdef Q_WS_X11132 /* License GUI declarations: */133 const char* UIDefs::GUI_LicenseKey = "GUI/LicenseAgreed";134 #endif /* Q_WS_X11 */135 136 #ifdef Q_WS_MAC137 /* Mac dock declarations: */138 const char* UIDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";139 const char* UIDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";140 const char* UIDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled";141 #endif /* Q_WS_MAC */142 143 #ifdef VBOX_WITH_VIDEOHWACCEL144 /* Video-acceleration declarations: */145 const char* UIDefs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear";146 const char* UIDefs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12";147 const char* UIDefs::GUI_Accelerate2D_PixformatUYVY = "GUI/Accelerate2D/PixformatUYVY";148 const char* UIDefs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2";149 const char* UIDefs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV";150 #endif /* VBOX_WITH_VIDEOHWACCEL */151 152 21 /* File extensions definitions: */ 153 22 QStringList UIDefs::VBoxFileExts = QStringList() << "xml" << "vbox"; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r51158 r51187 1 1 /** @file 2 * VBox Qt GUI - UIDefs namespace and other global declarations.2 * VBox Qt GUI - Global definitions. 3 3 */ 4 4 5 5 /* 6 * Copyright (C) 2006-201 3Oracle Corporation6 * Copyright (C) 2006-2014 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 #include "COMEnums.h" 26 26 27 /* Other VBox defines: */ 27 /* Define GUI log group. 28 * This define should go *before* VBox/log.h include: */ 28 29 #define LOG_GROUP LOG_GROUP_GUI 29 30 30 /* Other VBox includes: */ 31 31 #include <VBox/log.h> 32 #include <iprt/assert.h>33 #include <iprt/alloc.h>34 32 35 33 /* Defines: */ … … 50 48 #endif /* SIZEOF_ARRAY */ 51 49 52 /* Global UI namespace:*/50 /** Global namespace. */ 53 51 namespace UIDefs 54 52 { 55 /* VM display rendering mode: */56 enum RenderMode57 {58 InvalidRenderMode59 , QImageMode60 #ifdef VBOX_GUI_USE_QUARTZ2D61 , Quartz2DMode62 #endif /* VBOX_GUI_USE_QUARTZ2D */63 };64 65 53 /* Additional Qt event types: */ 66 54 enum UIEventType … … 90 78 }; 91 79 92 /* Global declarations: */93 extern const char* GUI_RenderMode;94 extern const char* GUI_LanguageId;95 extern const char* GUI_ExtPackName;96 extern const char* GUI_PreventBetaWarning;97 extern const char* GUI_RecentFolderHD;98 extern const char* GUI_RecentFolderCD;99 extern const char* GUI_RecentFolderFD;100 extern const char* GUI_RecentListHD;101 extern const char* GUI_RecentListCD;102 extern const char* GUI_RecentListFD;103 104 /* Selector-window declarations: */105 extern const char* GUI_Input_SelectorShortcuts;106 extern const char* GUI_LastSelectorWindowPosition;107 extern const char* GUI_SplitterSizes;108 extern const char* GUI_Toolbar;109 extern const char* GUI_Statusbar;110 extern const char* GUI_PreviewUpdate;111 extern const char* GUI_DetailsPageBoxes;112 extern const char* GUI_SelectorVMPositions;113 extern const char* GUI_LastVMSelected;114 extern const char* GUI_LastItemSelected;115 extern const char* GUI_GroupDefinitions;116 extern const char* GUI_HideFromManager;117 extern const char* GUI_PreventReconfiguration;118 extern const char* GUI_PreventSnapshotOperations;119 extern const char* GUI_HideDetails;120 121 /* Machine-window declarations: */122 #ifndef Q_WS_MAC123 extern const char* GUI_MachineWindowIcons;124 extern const char* GUI_MachineWindowNamePostfix;125 #endif /* !Q_WS_MAC */126 extern const char* GUI_RestrictedRuntimeMenus;127 #ifdef Q_WS_MAC128 extern const char* GUI_RestrictedRuntimeApplicationMenuActions;129 #endif /* Q_WS_MAC */130 extern const char* GUI_RestrictedRuntimeMachineMenuActions;131 extern const char* GUI_RestrictedRuntimeViewMenuActions;132 extern const char* GUI_RestrictedRuntimeDevicesMenuActions;133 #ifdef VBOX_WITH_DEBUGGER_GUI134 extern const char* GUI_RestrictedRuntimeDebuggerMenuActions;135 #endif /* VBOX_WITH_DEBUGGER_GUI */136 extern const char* GUI_RestrictedRuntimeHelpMenuActions;137 extern const char* GUI_RestrictedVisualStates;138 extern const char* GUI_Input_MachineShortcuts;139 extern const char* GUI_LastNormalWindowPosition;140 extern const char* GUI_LastScaleWindowPosition;141 extern const char* GUI_LastWindowState_Max;142 extern const char* GUI_LastGuestSizeHint;143 extern const char* GUI_LastGuestSizeHintWasFullscreen;144 extern const char* GUI_Fullscreen;145 extern const char* GUI_Seamless;146 extern const char* GUI_Scale;147 extern const char* GUI_VirtualScreenToHostScreen;148 extern const char* GUI_AutoresizeGuest;149 extern const char* GUI_AutomountGuestScreens;150 extern const char* GUI_SaveMountedAtRuntime;151 extern const char* GUI_PassCAD;152 extern const char* GUI_DefaultCloseAction;153 extern const char* GUI_RestrictedStatusBarIndicators;154 extern const char* GUI_HidLedsSync;155 extern const char* GUI_GuruMeditationHandler;156 extern const char* GUI_HiDPIOptimization;157 158 /* Settings dialogs stuff: */159 extern const char* GUI_RestrictedGlobalSettingsPages;160 extern const char* GUI_RestrictedMachineSettingsPages;161 162 /* Mini tool-bar declarations: */163 extern const char* GUI_ShowMiniToolBar;164 extern const char* GUI_MiniToolBarAlignment;165 extern const char* GUI_MiniToolBarAutoHide;166 167 /* Close-dialog declarations: */168 extern const char* GUI_RestrictedCloseActions;169 extern const char* GUI_LastCloseAction;170 extern const char* GUI_CloseActionHook;171 172 /* Wizards declarations: */173 extern const char* GUI_FirstRun;174 extern const char* GUI_HideDescriptionForWizards;175 extern const char* GUI_Export_StorageType;176 extern const char* GUI_Export_Username;177 extern const char* GUI_Export_Hostname;178 extern const char* GUI_Export_Bucket;179 180 /* Message-center declarations: */181 extern const char* GUI_SuppressMessages;182 extern const char* GUI_InvertMessageOption;183 184 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER185 /* Update manager declarations: */186 extern const char* GUI_PreventApplicationUpdate;187 extern const char* GUI_UpdateDate;188 extern const char* GUI_UpdateCheckCount;189 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */190 191 /* Information dialog declarations: */192 extern const char* GUI_InfoDlgState;193 194 #ifdef VBOX_WITH_DEBUGGER_GUI195 /* Debugger GUI declarations: */196 extern const char* GUI_DbgEnabled;197 extern const char* GUI_DbgAutoShow;198 #endif /* VBOX_WITH_DEBUGGER_GUI */199 200 #ifdef Q_WS_X11201 /* License GUI declarations: */202 extern const char* GUI_LicenseKey;203 #endif /* Q_WS_X11 */204 205 #ifdef Q_WS_MAC206 /* Mac dock declarations: */207 extern const char* GUI_RealtimeDockIconUpdateEnabled;208 extern const char* GUI_RealtimeDockIconUpdateMonitor;209 extern const char* GUI_PresentationModeEnabled;210 #endif /* Q_WS_MAC */211 212 #ifdef VBOX_WITH_VIDEOHWACCEL213 /* Video-acceleration declarations: */214 extern const char* GUI_Accelerate2D_StretchLinear;215 extern const char* GUI_Accelerate2D_PixformatYV12;216 extern const char* GUI_Accelerate2D_PixformatUYVY;217 extern const char* GUI_Accelerate2D_PixformatYUY2;218 extern const char* GUI_Accelerate2D_PixformatAYUV;219 #endif /* VBOX_WITH_VIDEOHWACCEL */220 221 80 /* File extensions declarations: */ 222 81 extern QStringList VBoxFileExts; … … 224 83 extern QStringList OVFFileExts; 225 84 } 226 using namespace UIDefs /* globally*/;85 using namespace UIDefs /* if header included */; 227 86 228 87 #ifdef Q_WS_MAC 229 /** Known MacOS Xreleases. */88 /** Mac OS X: Known OS releases. */ 230 89 enum MacOSXRelease 231 90 { … … 238 97 #endif /* Q_WS_MAC */ 239 98 99 /** Common UI: Size suffixes. */ 100 enum SizeSuffix 101 { 102 SizeSuffix_Byte = 0, 103 SizeSuffix_KiloByte, 104 SizeSuffix_MegaByte, 105 SizeSuffix_GigaByte, 106 SizeSuffix_TeraByte, 107 SizeSuffix_PetaByte, 108 SizeSuffix_Max 109 }; 110 111 /** Common UI: Storage-slot struct. */ 240 112 struct StorageSlot 241 113 { … … 257 129 Q_DECLARE_METATYPE(StorageSlot); 258 130 259 /* Common UI size suffixes: */260 enum SizeSuffix261 {262 SizeSuffix_Byte = 0,263 SizeSuffix_KiloByte,264 SizeSuffix_MegaByte,265 SizeSuffix_GigaByte,266 SizeSuffix_TeraByte,267 SizeSuffix_PetaByte,268 SizeSuffix_Max269 };270 271 /* Runtime UI menu types: */272 enum RuntimeMenuType273 {274 RuntimeMenuType_Invalid = 0,275 RuntimeMenuType_Machine = RT_BIT(0),276 RuntimeMenuType_View = RT_BIT(1),277 RuntimeMenuType_Devices = RT_BIT(2),278 RuntimeMenuType_Debug = RT_BIT(3),279 RuntimeMenuType_Help = RT_BIT(4),280 RuntimeMenuType_All = 0xFF281 };282 283 #ifdef Q_WS_MAC284 /** Runtime UI: Application menu: Action types. */285 enum RuntimeMenuApplicationActionType286 {287 RuntimeMenuApplicationActionType_Invalid = 0,288 RuntimeMenuApplicationActionType_About = RT_BIT(0),289 RuntimeMenuApplicationActionType_All = 0xFFFF290 };291 #endif /* Q_WS_MAC */292 293 /** Runtime UI: Machine menu: Action types. */294 enum RuntimeMenuMachineActionType295 {296 RuntimeMenuMachineActionType_Invalid = 0,297 RuntimeMenuMachineActionType_SettingsDialog = RT_BIT(0),298 RuntimeMenuMachineActionType_TakeSnapshot = RT_BIT(1),299 RuntimeMenuMachineActionType_TakeScreenshot = RT_BIT(2),300 RuntimeMenuMachineActionType_InformationDialog = RT_BIT(3),301 RuntimeMenuMachineActionType_MouseIntegration = RT_BIT(4),302 RuntimeMenuMachineActionType_TypeCAD = RT_BIT(5),303 #ifdef Q_WS_X11304 RuntimeMenuMachineActionType_TypeCABS = RT_BIT(6),305 #endif /* Q_WS_X11 */306 RuntimeMenuMachineActionType_Pause = RT_BIT(7),307 RuntimeMenuMachineActionType_Reset = RT_BIT(8),308 RuntimeMenuMachineActionType_SaveState = RT_BIT(9),309 RuntimeMenuMachineActionType_Shutdown = RT_BIT(10),310 RuntimeMenuMachineActionType_PowerOff = RT_BIT(11),311 #ifndef Q_WS_MAC312 RuntimeMenuMachineActionType_Close = RT_BIT(12),313 #endif /* !Q_WS_MAC */314 RuntimeMenuMachineActionType_All = 0xFFFF315 };316 317 /** Runtime UI: View menu: Action types. */318 enum RuntimeMenuViewActionType319 {320 RuntimeMenuViewActionType_Invalid = 0,321 RuntimeMenuViewActionType_Fullscreen = RT_BIT(0),322 RuntimeMenuViewActionType_Seamless = RT_BIT(1),323 RuntimeMenuViewActionType_Scale = RT_BIT(2),324 RuntimeMenuViewActionType_GuestAutoresize = RT_BIT(3),325 RuntimeMenuViewActionType_AdjustWindow = RT_BIT(4),326 RuntimeMenuViewActionType_Multiscreen = RT_BIT(5),327 RuntimeMenuViewActionType_All = 0xFFFF328 };329 330 /** Runtime UI: Devices menu: Action types. */331 enum RuntimeMenuDevicesActionType332 {333 RuntimeMenuDevicesActionType_Invalid = 0,334 RuntimeMenuDevicesActionType_OpticalDevices = RT_BIT(0),335 RuntimeMenuDevicesActionType_FloppyDevices = RT_BIT(1),336 RuntimeMenuDevicesActionType_USBDevices = RT_BIT(2),337 RuntimeMenuDevicesActionType_WebCams = RT_BIT(3),338 RuntimeMenuDevicesActionType_SharedClipboard = RT_BIT(4),339 RuntimeMenuDevicesActionType_DragAndDrop = RT_BIT(5),340 RuntimeMenuDevicesActionType_NetworkSettings = RT_BIT(6),341 RuntimeMenuDevicesActionType_SharedFoldersSettings = RT_BIT(7),342 RuntimeMenuDevicesActionType_VRDEServer = RT_BIT(8),343 RuntimeMenuDevicesActionType_VideoCapture = RT_BIT(9),344 RuntimeMenuDevicesActionType_InstallGuestTools = RT_BIT(10),345 RuntimeMenuDevicesActionType_All = 0xFFFF346 };347 348 #ifdef VBOX_WITH_DEBUGGER_GUI349 /** Runtime UI: Debugger menu: Action types. */350 enum RuntimeMenuDebuggerActionType351 {352 RuntimeMenuDebuggerActionType_Invalid = 0,353 RuntimeMenuDebuggerActionType_Statistics = RT_BIT(0),354 RuntimeMenuDebuggerActionType_CommandLine = RT_BIT(1),355 RuntimeMenuDebuggerActionType_Logging = RT_BIT(2),356 RuntimeMenuDebuggerActionType_LogDialog = RT_BIT(3),357 RuntimeMenuDebuggerActionType_All = 0xFFFF358 };359 #endif /* VBOX_WITH_DEBUGGER_GUI */360 361 /** Runtime UI: Help menu: Action types. */362 enum RuntimeMenuHelpActionType363 {364 RuntimeMenuHelpActionType_Invalid = 0,365 RuntimeMenuHelpActionType_Contents = RT_BIT(0),366 RuntimeMenuHelpActionType_WebSite = RT_BIT(1),367 RuntimeMenuHelpActionType_ResetWarnings = RT_BIT(2),368 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER369 RuntimeMenuHelpActionType_NetworkAccessManager = RT_BIT(3),370 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */371 #ifndef Q_WS_MAC372 RuntimeMenuHelpActionType_About = RT_BIT(4),373 #endif /* !Q_WS_MAC */374 RuntimeMenuHelpActionType_All = 0xFFFF375 };376 377 /* Runtime UI visual-state types: */378 enum UIVisualStateType379 {380 UIVisualStateType_Invalid = 0,381 UIVisualStateType_Normal = RT_BIT(0),382 UIVisualStateType_Fullscreen = RT_BIT(1),383 UIVisualStateType_Seamless = RT_BIT(2),384 UIVisualStateType_Scale = RT_BIT(3),385 UIVisualStateType_All = 0xFF386 };387 Q_DECLARE_METATYPE(UIVisualStateType);388 389 /* Details element type: */390 enum DetailsElementType391 {392 DetailsElementType_General,393 DetailsElementType_System,394 DetailsElementType_Preview,395 DetailsElementType_Display,396 DetailsElementType_Storage,397 DetailsElementType_Audio,398 DetailsElementType_Network,399 DetailsElementType_Serial,400 #ifdef VBOX_WITH_PARALLEL_PORTS401 DetailsElementType_Parallel,402 #endif /* VBOX_WITH_PARALLEL_PORTS */403 DetailsElementType_USB,404 DetailsElementType_SF,405 DetailsElementType_Description406 };407 Q_DECLARE_METATYPE(DetailsElementType);408 409 /* Global settings page type: */410 enum GlobalSettingsPageType411 {412 GlobalSettingsPageType_Invalid,413 GlobalSettingsPageType_General,414 GlobalSettingsPageType_Input,415 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER416 GlobalSettingsPageType_Update,417 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */418 GlobalSettingsPageType_Language,419 GlobalSettingsPageType_Display,420 GlobalSettingsPageType_Network,421 GlobalSettingsPageType_Extensions,422 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER423 GlobalSettingsPageType_Proxy,424 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */425 GlobalSettingsPageType_Max426 };427 Q_DECLARE_METATYPE(GlobalSettingsPageType);428 429 /* Machine settings page type: */430 enum MachineSettingsPageType431 {432 MachineSettingsPageType_Invalid,433 MachineSettingsPageType_General,434 MachineSettingsPageType_System,435 MachineSettingsPageType_Display,436 MachineSettingsPageType_Storage,437 MachineSettingsPageType_Audio,438 MachineSettingsPageType_Network,439 MachineSettingsPageType_Ports,440 MachineSettingsPageType_Serial,441 MachineSettingsPageType_Parallel,442 MachineSettingsPageType_USB,443 MachineSettingsPageType_SF,444 MachineSettingsPageType_Max445 };446 Q_DECLARE_METATYPE(MachineSettingsPageType);447 448 /* Indicator type: */449 enum IndicatorType450 {451 IndicatorType_Invalid,452 IndicatorType_HardDisks,453 IndicatorType_OpticalDisks,454 IndicatorType_FloppyDisks,455 IndicatorType_Network,456 IndicatorType_USB,457 IndicatorType_SharedFolders,458 IndicatorType_VideoCapture,459 IndicatorType_Features,460 IndicatorType_Mouse,461 IndicatorType_Keyboard,462 IndicatorType_Max463 };464 Q_DECLARE_METATYPE(IndicatorType);465 466 /* Machine close action: */467 enum MachineCloseAction468 {469 MachineCloseAction_Invalid = 0,470 MachineCloseAction_SaveState = RT_BIT(0),471 MachineCloseAction_Shutdown = RT_BIT(1),472 MachineCloseAction_PowerOff = RT_BIT(2),473 MachineCloseAction_PowerOff_RestoringSnapshot = RT_BIT(3),474 MachineCloseAction_All = 0xFF475 };476 Q_DECLARE_METATYPE(MachineCloseAction);477 478 /** Guru Meditation handler types. */479 enum GuruMeditationHandlerType480 {481 GuruMeditationHandlerType_Default,482 GuruMeditationHandlerType_PowerOff,483 GuruMeditationHandlerType_Ignore484 };485 486 /** Runtime UI: HiDPI optimization types. */487 enum HiDPIOptimizationType488 {489 HiDPIOptimizationType_None,490 HiDPIOptimizationType_Performance491 };492 493 131 #endif /* !___UIDefs_h___ */ 494 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIThreadPool.cpp
r48950 r51187 20 20 21 21 /* GUI includes: */ 22 #include "COMDefs.h"23 22 #include "UIThreadPool.h" 24 25 /* Other VBox defines: */ 26 #define LOG_GROUP LOG_GROUP_GUI 27 28 /* Other VBox includes: */ 29 #include <VBox/log.h> 30 #include <VBox/sup.h> 23 #include "UIDefs.h" 31 24 32 25 /** -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r51054 r51187 33 33 #include "UIDefs.h" 34 34 #include "UIMediumDefs.h" 35 #include "UIExtraDataDefs.h" 35 36 #include "VBoxGlobalSettings.h" 36 37 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r51149 r51187 24 24 /* GUI includes: */ 25 25 #include "UIDefs.h" 26 #include "UIExtraDataDefs.h" 26 27 27 28 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.h
r46682 r51187 22 22 /* GUI includes: */ 23 23 #include "QIStateIndicator.h" 24 #include "UI Defs.h"24 #include "UIExtraDataDefs.h" 25 25 26 26 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h
r50191 r51187 25 25 26 26 /* GUI includes: */ 27 #include "UI Defs.h"27 #include "UIExtraDataDefs.h" 28 28 #ifdef Q_WS_MAC 29 29 # include <CoreFoundation/CFBase.h> -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r49505 r51187 22 22 23 23 /* GUI includes: */ 24 #include "UI Defs.h"24 #include "UIExtraDataDefs.h" 25 25 #include "UIMachineDefs.h" 26 26 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r50864 r51187 19 19 20 20 /* GUI includes: */ 21 #include "UI Defs.h"21 #include "UIExtraDataDefs.h" 22 22 #include <QIWithRetranslateUI.h> 23 23 #ifdef VBOX_WITH_DEBUGGER_GUI -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineMenuBar.h
r49462 r51187 22 22 23 23 /* GUI includes: */ 24 #include "UI Defs.h"24 #include "UIExtraDataDefs.h" 25 25 26 26 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r49183 r51187 25 25 26 26 /* GUI includes: */ 27 #include "UIDefs.h"28 27 #include "UIMachineDefs.h" 28 #include "UIExtraDataDefs.h" 29 29 #ifdef Q_WS_MAC 30 30 # include <CoreFoundation/CFBase.h> -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r50823 r51187 25 25 /* GUI includes: */ 26 26 #include "QIWithRetranslateUI.h" 27 #include "UI Defs.h"27 #include "UIExtraDataDefs.h" 28 28 29 29 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h
r50824 r51187 28 28 29 29 /* GUI includes: */ 30 #include "UI Defs.h"30 #include "UIExtraDataDefs.h" 31 31 32 32 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r51158 r51187 25 25 26 26 /* GUI includes: */ 27 #include "UI Defs.h"27 #include "UIExtraDataDefs.h" 28 28 29 29 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r51054 r51187 33 33 #include "UIGChooserItemGroup.h" 34 34 #include "UIGChooserItemMachine.h" 35 #include "UI Defs.h"35 #include "UIExtraDataDefs.h" 36 36 #include "VBoxGlobal.h" 37 37 #include "UIMessageCenter.h" … … 1706 1706 { 1707 1707 /* Prepare extra-data key for the parent-item: */ 1708 QString strExtraDataKey = UIDefs::GUI_GroupDefinitions + pParentItem->fullName();1708 QString strExtraDataKey = GUI_GroupDefinitions + pParentItem->fullName(); 1709 1709 /* Read group definitions: */ 1710 1710 QStringList definitions = vboxGlobal().virtualBox().GetExtraDataStringList(strExtraDataKey); … … 1777 1777 { 1778 1778 /* Prepare extra-data key for the parent-item: */ 1779 QString strExtraDataKey = UIDefs::GUI_GroupDefinitions + pParentItem->fullName();1779 QString strExtraDataKey = GUI_GroupDefinitions + pParentItem->fullName(); 1780 1780 /* Read group definitions: */ 1781 1781 QStringList definitions = vboxGlobal().virtualBox().GetExtraDataStringList(strExtraDataKey); … … 1885 1885 { 1886 1886 /* Prepare extra-data key for current group: */ 1887 QString strExtraDataKey = UIDefs::GUI_GroupDefinitions + pParentItem->fullName();1887 QString strExtraDataKey = GUI_GroupDefinitions + pParentItem->fullName(); 1888 1888 /* Iterate over all the group-items: */ 1889 1889 foreach (UIGChooserItem *pItem, pParentItem->items(UIGChooserItemType_Group)) … … 2095 2095 const QVector<QString> extraDataKeys = vboxGlobal().virtualBox().GetExtraDataKeys(); 2096 2096 foreach (const QString &strKey, extraDataKeys) 2097 if (strKey.startsWith( UIDefs::GUI_GroupDefinitions))2097 if (strKey.startsWith(GUI_GroupDefinitions)) 2098 2098 vboxGlobal().virtualBox().SetExtraData(strKey, QString()); 2099 2099 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.h
r50909 r51187 25 25 /* GUI includes: */ 26 26 #include "UIGDetailsItem.h" 27 #include "UI Defs.h"27 #include "UIExtraDataDefs.h" 28 28 29 29 /* Forward declarations: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsModel.h
r50041 r51187 27 27 28 28 /* GUI includes: */ 29 #include "UI Defs.h"29 #include "UIExtraDataDefs.h" 30 30 31 31 /* COM includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.h
r50907 r51187 22 22 /* GUI includes: */ 23 23 #include "UIGDetailsItem.h" 24 #include "UI Defs.h"24 #include "UIExtraDataDefs.h" 25 25 #include "UISettingsDefs.h" 26 26 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h
r50906 r51187 26 26 /* GUI includes: */ 27 27 #include "QIWithRetranslateUI.h" 28 #include "UIDefs.h"29 28 #include "UISettingsDefs.h" 29 #include "UIExtraDataDefs.h" 30 30 #include "VBoxGlobalSettings.h" 31 31
Note:
See TracChangeset
for help on using the changeset viewer.