VirtualBox

Changeset 51187 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 5, 2014 2:38:41 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93560
Message:

FE/Qt: 6660: Advanced extra-data management framework: Moving extra-data stuff from global UIDefs.* to corresponding separate files UIExtraDataDefs.*

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
22 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r51035 r51187  
    544544        src/extensions/QIAdvancedToolBar.cpp \
    545545        src/extensions/graphics/QIGraphicsWidget.cpp \
     546        src/extradata/UIExtraDataDefs.cpp \
    546547        src/extradata/UIExtraDataManager.cpp \
    547548        src/globals/UIDefs.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h

    r51149 r51187  
    2727/* GUI includes: */
    2828#include "UIDefs.h"
     29#include "UIExtraDataDefs.h"
    2930
    3031/* 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  
    11/* $Id$ */
    22/** @file
    3  *
    4  * VBox frontends: Qt GUI ("VirtualBox"):
    5  * Global definitions and function implementations
     3 * VBox Qt GUI - Extra-data related definitions.
    64 */
    75
    86/*
    9  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    108 *
    119 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1917
    2018/* GUI includes: */
    21 #include "UIDefs.h"
     19#include "UIExtraDataDefs.h"
    2220
    2321/* 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";
     22const char* UIExtraDataDefs::GUI_LanguageId = "GUI/LanguageID";
     23const char* UIExtraDataDefs::GUI_ExtPackName = "Oracle VM VirtualBox Extension Pack";
     24const char* UIExtraDataDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning";
     25const char* UIExtraDataDefs::GUI_RecentFolderHD = "GUI/RecentFolderHD";
     26const char* UIExtraDataDefs::GUI_RecentFolderCD = "GUI/RecentFolderCD";
     27const char* UIExtraDataDefs::GUI_RecentFolderFD = "GUI/RecentFolderFD";
     28const char* UIExtraDataDefs::GUI_RecentListHD = "GUI/RecentListHD";
     29const char* UIExtraDataDefs::GUI_RecentListCD = "GUI/RecentListCD";
     30const char* UIExtraDataDefs::GUI_RecentListFD = "GUI/RecentListFD";
    3431
    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: */
     33const char* UIExtraDataDefs::GUI_SuppressMessages = "GUI/SuppressMessages";
     34const char* UIExtraDataDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption";
    5135
    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: */
     37const char* UIExtraDataDefs::GUI_RestrictedGlobalSettingsPages = "GUI/RestrictedGlobalSettingsPages";
     38const char* UIExtraDataDefs::GUI_RestrictedMachineSettingsPages = "GUI/RestrictedMachineSettingsPages";
    10239
    10340/* 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";
     41const char* UIExtraDataDefs::GUI_FirstRun = "GUI/FirstRun";
     42const char* UIExtraDataDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards";
     43const char* UIExtraDataDefs::GUI_Export_StorageType = "GUI/Export/StorageType";
     44const char* UIExtraDataDefs::GUI_Export_Username = "GUI/Export/Username";
     45const char* UIExtraDataDefs::GUI_Export_Hostname = "GUI/Export/Hostname";
     46const char* UIExtraDataDefs::GUI_Export_Bucket = "GUI/Export/Bucket";
    11447
    11548#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    116 /* 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";
     49/* Update-manager definitions: */
     50const char* UIExtraDataDefs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate";
     51const char* UIExtraDataDefs::GUI_UpdateDate = "GUI/UpdateDate";
     52const char* UIExtraDataDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount";
    12053#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    12154
    122 /* Information dialog definitions: */
    123 const char* UIDefs::GUI_InfoDlgState = "GUI/InfoDlgState";
    124 
    125 #ifdef VBOX_WITH_DEBUGGER_GUI
    126 /* 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 
    13155#ifdef Q_WS_X11
    132 /* License GUI declarations: */
    133 const char* UIDefs::GUI_LicenseKey = "GUI/LicenseAgreed";
     56/* License GUI definitions: */
     57const char* UIExtraDataDefs::GUI_LicenseKey = "GUI/LicenseAgreed";
    13458#endif /* Q_WS_X11 */
    13559
     60/* Selector UI definitions: */
     61const char* UIExtraDataDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts";
     62const char* UIExtraDataDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition";
     63const char* UIExtraDataDefs::GUI_SplitterSizes = "GUI/SplitterSizes";
     64const char* UIExtraDataDefs::GUI_Toolbar = "GUI/Toolbar";
     65const char* UIExtraDataDefs::GUI_Statusbar = "GUI/Statusbar";
     66const char* UIExtraDataDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate";
     67const char* UIExtraDataDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes";
     68const char* UIExtraDataDefs::GUI_SelectorVMPositions = "GUI/SelectorVMPositions";
     69const char* UIExtraDataDefs::GUI_LastVMSelected = "GUI/LastVMSelected";
     70const char* UIExtraDataDefs::GUI_LastItemSelected = "GUI/LastItemSelected";
     71const char* UIExtraDataDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions";
     72const char* UIExtraDataDefs::GUI_HideFromManager = "GUI/HideFromManager";
     73const char* UIExtraDataDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration";
     74const char* UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";
     75const char* UIExtraDataDefs::GUI_HideDetails = "GUI/HideDetails";
     76
     77/* Runtime UI definitions: */
     78const char* UIExtraDataDefs::GUI_RenderMode = "GUI/RenderMode";
     79#ifndef Q_WS_MAC
     80const char* UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
     81const char* UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix";
     82#endif /* !Q_WS_MAC */
     83const char* UIExtraDataDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus";
    13684#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";
     85const char* UIExtraDataDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions";
     86#endif /* Q_WS_MAC */
     87const char* UIExtraDataDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions";
     88const char* UIExtraDataDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions";
     89const char* UIExtraDataDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions";
     90#ifdef VBOX_WITH_DEBUGGER_GUI
     91const char* UIExtraDataDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions";
     92#endif /* VBOX_WITH_DEBUGGER_GUI */
     93const char* UIExtraDataDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions";
     94const char* UIExtraDataDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates";
     95const char* UIExtraDataDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts";
     96const char* UIExtraDataDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";
     97const char* UIExtraDataDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition";
     98const char* UIExtraDataDefs::GUI_LastWindowState_Max = "max";
     99const char* UIExtraDataDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint";
     100const char* UIExtraDataDefs::GUI_LastGuestSizeHintWasFullscreen = "GUI/LastGuestSizeHintWasFullscreen";
     101const char* UIExtraDataDefs::GUI_Fullscreen = "GUI/Fullscreen";
     102const char* UIExtraDataDefs::GUI_Seamless = "GUI/Seamless";
     103const char* UIExtraDataDefs::GUI_Scale = "GUI/Scale";
     104const char* UIExtraDataDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen";
     105const char* UIExtraDataDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest";
     106const char* UIExtraDataDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens";
     107const char* UIExtraDataDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime";
     108const char* UIExtraDataDefs::GUI_PassCAD = "GUI/PassCAD";
     109const char* UIExtraDataDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction";
     110const char* UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators";
     111const char* UIExtraDataDefs::GUI_HidLedsSync = "GUI/HidLedsSync";
     112const char* UIExtraDataDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler";
     113const char* UIExtraDataDefs::GUI_HiDPIOptimization = "GUI/HiDPI/Optimization";
     114
     115/* Runtime UI: Mini-toolbar definitions: */
     116const char* UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
     117const char* UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";
     118const char* UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";
     119
     120#ifdef Q_WS_MAC
     121/* Runtime UI: Mac-dock definitions: */
     122const char* UIExtraDataDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";
     123const char* UIExtraDataDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";
     124const char* UIExtraDataDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled";
    141125#endif /* Q_WS_MAC */
    142126
    143127#ifdef VBOX_WITH_VIDEOHWACCEL
    144 /* 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";
     128/* Runtime UI: Video-acceleration definitions: */
     129const char* UIExtraDataDefs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear";
     130const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12";
     131const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatUYVY = "GUI/Accelerate2D/PixformatUYVY";
     132const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2";
     133const char* UIExtraDataDefs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV";
    150134#endif /* VBOX_WITH_VIDEOHWACCEL */
    151135
    152 /* File extensions definitions: */
    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: */
     137const char* UIExtraDataDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";
     138const char* UIExtraDataDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
     139const char* UIExtraDataDefs::GUI_CloseActionHook = "GUI/CloseActionHook";
    156140
     141/* Runtime UI: Information-dialog definitions: */
     142const char* UIExtraDataDefs::GUI_InfoDlgState = "GUI/InfoDlgState";
     143
     144#ifdef VBOX_WITH_DEBUGGER_GUI
     145/* Runtime UI: Debugger GUI definitions: */
     146const char* UIExtraDataDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled";
     147const 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  
    11/** @file
    2  * VBox Qt GUI - UIDefs namespace and other global declarations.
     2 * VBox Qt GUI - Extra-data related definitions.
    33 */
    44
    55/*
    6  * Copyright (C) 2006-2013 Oracle Corporation
     6 * Copyright (C) 2006-2014 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1515 */
    1616
    17 #ifndef ___UIDefs_h___
    18 #define ___UIDefs_h___
     17#ifndef ___UIExtraDataDefs_h___
     18#define ___UIExtraDataDefs_h___
    1919
    2020/* 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>
    2922
    3023/* 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. */
     27namespace UIExtraDataDefs
     28{
    9229    /* Global declarations: */
    93     extern const char* GUI_RenderMode;
    9430    extern const char* GUI_LanguageId;
    9531    extern const char* GUI_ExtPackName;
     
    10238    extern const char* GUI_RecentListFD;
    10339
    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: */
    10569    extern const char* GUI_Input_SelectorShortcuts;
    10670    extern const char* GUI_LastSelectorWindowPosition;
     
    11983    extern const char* GUI_HideDetails;
    12084
    121     /* Machine-window declarations: */
     85    /* Runtime UI declarations: */
     86    extern const char* GUI_RenderMode;
    12287#ifndef Q_WS_MAC
    12388    extern const char* GUI_MachineWindowIcons;
     
    156121    extern const char* GUI_HiDPIOptimization;
    157122
    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: */
    163124    extern const char* GUI_ShowMiniToolBar;
    164125    extern const char* GUI_MiniToolBarAlignment;
    165126    extern const char* GUI_MiniToolBarAutoHide;
    166127
    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_MANAGER
    185     /* 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_GUI
    195     /* 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_X11
    201     /* License GUI declarations: */
    202     extern const char* GUI_LicenseKey;
    203 #endif /* Q_WS_X11 */
    204 
    205128#ifdef Q_WS_MAC
    206     /* Mac dock declarations: */
     129    /* Runtime UI: Mac-dock declarations: */
    207130    extern const char* GUI_RealtimeDockIconUpdateEnabled;
    208131    extern const char* GUI_RealtimeDockIconUpdateMonitor;
     
    211134
    212135#ifdef VBOX_WITH_VIDEOHWACCEL
    213     /* Video-acceleration declarations: */
     136    /* Runtime UI: Video-acceleration declarations: */
    214137    extern const char* GUI_Accelerate2D_StretchLinear;
    215138    extern const char* GUI_Accelerate2D_PixformatYV12;
     
    219142#endif /* VBOX_WITH_VIDEOHWACCEL */
    220143
    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 */
    225157}
    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: */
     158using namespace UIExtraDataDefs /* if header included */;
     159
     160
     161/** Common UI: Global settings page types. */
     162enum 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};
     179Q_DECLARE_METATYPE(GlobalSettingsPageType);
     180
     181/** Common UI: Machine settings page types. */
     182enum 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};
     198Q_DECLARE_METATYPE(MachineSettingsPageType);
     199
     200
     201/** Selector UI: Details-element types. */
     202enum 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};
     219Q_DECLARE_METATYPE(DetailsElementType);
     220
     221
     222/** Runtime UI: Menu types. */
    272223enum RuntimeMenuType
    273224{
     
    282233
    283234#ifdef Q_WS_MAC
    284 /** Runtime UI: Application menu: Action types. */
     235/** Runtime UI: Menu "Application": Action types. */
    285236enum RuntimeMenuApplicationActionType
    286237{
     
    291242#endif /* Q_WS_MAC */
    292243
    293 /** Runtime UI: Machine menu: Action types. */
     244/** Runtime UI: Menu "Machine": Action types. */
    294245enum RuntimeMenuMachineActionType
    295246{
     
    315266};
    316267
    317 /** Runtime UI: View menu: Action types. */
     268/** Runtime UI: Menu "View": Action types. */
    318269enum RuntimeMenuViewActionType
    319270{
     
    328279};
    329280
    330 /** Runtime UI: Devices menu: Action types. */
     281/** Runtime UI: Menu "Devices": Action types. */
    331282enum RuntimeMenuDevicesActionType
    332283{
     
    347298
    348299#ifdef VBOX_WITH_DEBUGGER_GUI
    349 /** Runtime UI: Debugger menu: Action types. */
     300/** Runtime UI: Menu "Debugger": Action types. */
    350301enum RuntimeMenuDebuggerActionType
    351302{
     
    359310#endif /* VBOX_WITH_DEBUGGER_GUI */
    360311
    361 /** Runtime UI: Help menu: Action types. */
     312/** Runtime UI: Menu "Help": Action types. */
    362313enum RuntimeMenuHelpActionType
    363314{
     
    375326};
    376327
    377 /* Runtime UI visual-state types: */
     328/** Runtime UI: Rendering modes. */
     329enum 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. */
    378339enum UIVisualStateType
    379340{
     
    387348Q_DECLARE_METATYPE(UIVisualStateType);
    388349
    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. */
    449351enum IndicatorType
    450352{
     
    464366Q_DECLARE_METATYPE(IndicatorType);
    465367
    466 /* Machine close action: */
     368/** Runtime UI: Machine close actions. */
    467369enum MachineCloseAction
    468370{
     
    491393};
    492394
    493 #endif /* !___UIDefs_h___ */
    494 
     395
     396#endif /* !___UIExtraDataDefs_h___ */
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r51178 r51187  
    2323
    2424/* GUI includes: */
    25 #include "UIDefs.h"
     25#include "UIExtraDataDefs.h"
    2626
    2727/* COM includes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp

    r51158 r51187  
    11/* $Id$ */
    22/** @file
    3  *
    4  * VBox frontends: Qt GUI ("VirtualBox"):
    5  * Global definitions and function implementations
     3 * VBox Qt GUI - Global definitions.
    64 */
    75
    86/*
    9  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    108 *
    119 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2119#include "UIDefs.h"
    2220
    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_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";
    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_MANAGER
    116 /* 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_GUI
    126 /* 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_X11
    132 /* License GUI declarations: */
    133 const char* UIDefs::GUI_LicenseKey = "GUI/LicenseAgreed";
    134 #endif /* Q_WS_X11 */
    135 
    136 #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";
    141 #endif /* Q_WS_MAC */
    142 
    143 #ifdef VBOX_WITH_VIDEOHWACCEL
    144 /* 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 
    15221/* File extensions definitions: */
    15322QStringList UIDefs::VBoxFileExts = QStringList() << "xml" << "vbox";
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h

    r51158 r51187  
    11/** @file
    2  * VBox Qt GUI - UIDefs namespace and other global declarations.
     2 * VBox Qt GUI - Global definitions.
    33 */
    44
    55/*
    6  * Copyright (C) 2006-2013 Oracle Corporation
     6 * Copyright (C) 2006-2014 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2525#include "COMEnums.h"
    2626
    27 /* Other VBox defines: */
     27/* Define GUI log group.
     28 * This define should go *before* VBox/log.h include: */
    2829#define LOG_GROUP LOG_GROUP_GUI
    29 
    3030/* Other VBox includes: */
    3131#include <VBox/log.h>
    32 #include <iprt/assert.h>
    33 #include <iprt/alloc.h>
    3432
    3533/* Defines: */
     
    5048#endif /* SIZEOF_ARRAY */
    5149
    52 /* Global UI namespace: */
     50/** Global namespace. */
    5351namespace UIDefs
    5452{
    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 
    6553    /* Additional Qt event types: */
    6654    enum UIEventType
     
    9078    };
    9179
    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_MAC
    123     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_MAC
    128     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_GUI
    134     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_MANAGER
    185     /* 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_GUI
    195     /* 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_X11
    201     /* License GUI declarations: */
    202     extern const char* GUI_LicenseKey;
    203 #endif /* Q_WS_X11 */
    204 
    205 #ifdef Q_WS_MAC
    206     /* 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_VIDEOHWACCEL
    213     /* 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 
    22180    /* File extensions declarations: */
    22281    extern QStringList VBoxFileExts;
     
    22483    extern QStringList OVFFileExts;
    22584}
    226 using namespace UIDefs /* globally */;
     85using namespace UIDefs /* if header included */;
    22786
    22887#ifdef Q_WS_MAC
    229 /** Known MacOS X releases. */
     88/** Mac OS X: Known OS releases. */
    23089enum MacOSXRelease
    23190{
     
    23897#endif /* Q_WS_MAC */
    23998
     99/** Common UI: Size suffixes. */
     100enum 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. */
    240112struct StorageSlot
    241113{
     
    257129Q_DECLARE_METATYPE(StorageSlot);
    258130
    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: */
    272 enum RuntimeMenuType
    273 {
    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     = 0xFF
    281 };
    282 
    283 #ifdef Q_WS_MAC
    284 /** Runtime UI: Application menu: Action types. */
    285 enum RuntimeMenuApplicationActionType
    286 {
    287     RuntimeMenuApplicationActionType_Invalid = 0,
    288     RuntimeMenuApplicationActionType_About   = RT_BIT(0),
    289     RuntimeMenuApplicationActionType_All     = 0xFFFF
    290 };
    291 #endif /* Q_WS_MAC */
    292 
    293 /** Runtime UI: Machine menu: Action types. */
    294 enum RuntimeMenuMachineActionType
    295 {
    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_X11
    304     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_MAC
    312     RuntimeMenuMachineActionType_Close             = RT_BIT(12),
    313 #endif /* !Q_WS_MAC */
    314     RuntimeMenuMachineActionType_All               = 0xFFFF
    315 };
    316 
    317 /** Runtime UI: View menu: Action types. */
    318 enum RuntimeMenuViewActionType
    319 {
    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             = 0xFFFF
    328 };
    329 
    330 /** Runtime UI: Devices menu: Action types. */
    331 enum RuntimeMenuDevicesActionType
    332 {
    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                   = 0xFFFF
    346 };
    347 
    348 #ifdef VBOX_WITH_DEBUGGER_GUI
    349 /** Runtime UI: Debugger menu: Action types. */
    350 enum RuntimeMenuDebuggerActionType
    351 {
    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         = 0xFFFF
    358 };
    359 #endif /* VBOX_WITH_DEBUGGER_GUI */
    360 
    361 /** Runtime UI: Help menu: Action types. */
    362 enum RuntimeMenuHelpActionType
    363 {
    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_MANAGER
    369     RuntimeMenuHelpActionType_NetworkAccessManager = RT_BIT(3),
    370 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    371 #ifndef Q_WS_MAC
    372     RuntimeMenuHelpActionType_About                = RT_BIT(4),
    373 #endif /* !Q_WS_MAC */
    374     RuntimeMenuHelpActionType_All                  = 0xFFFF
    375 };
    376 
    377 /* Runtime UI visual-state types: */
    378 enum UIVisualStateType
    379 {
    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        = 0xFF
    386 };
    387 Q_DECLARE_METATYPE(UIVisualStateType);
    388 
    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: */
    449 enum IndicatorType
    450 {
    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_Max
    463 };
    464 Q_DECLARE_METATYPE(IndicatorType);
    465 
    466 /* Machine close action: */
    467 enum MachineCloseAction
    468 {
    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                        = 0xFF
    475 };
    476 Q_DECLARE_METATYPE(MachineCloseAction);
    477 
    478 /** Guru Meditation handler types. */
    479 enum GuruMeditationHandlerType
    480 {
    481     GuruMeditationHandlerType_Default,
    482     GuruMeditationHandlerType_PowerOff,
    483     GuruMeditationHandlerType_Ignore
    484 };
    485 
    486 /** Runtime UI: HiDPI optimization types. */
    487 enum HiDPIOptimizationType
    488 {
    489     HiDPIOptimizationType_None,
    490     HiDPIOptimizationType_Performance
    491 };
    492 
    493131#endif /* !___UIDefs_h___ */
    494 
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIThreadPool.cpp

    r48950 r51187  
    2020
    2121/* GUI includes: */
    22 #include "COMDefs.h"
    2322#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"
    3124
    3225/**
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r51054 r51187  
    3333#include "UIDefs.h"
    3434#include "UIMediumDefs.h"
     35#include "UIExtraDataDefs.h"
    3536#include "VBoxGlobalSettings.h"
    3637
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r51149 r51187  
    2424/* GUI includes: */
    2525#include "UIDefs.h"
     26#include "UIExtraDataDefs.h"
    2627
    2728/* COM includes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.h

    r46682 r51187  
    2222/* GUI includes: */
    2323#include "QIStateIndicator.h"
    24 #include "UIDefs.h"
     24#include "UIExtraDataDefs.h"
    2525
    2626/* Forward declarations: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h

    r50191 r51187  
    2525
    2626/* GUI includes: */
    27 #include "UIDefs.h"
     27#include "UIExtraDataDefs.h"
    2828#ifdef Q_WS_MAC
    2929# include <CoreFoundation/CFBase.h>
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h

    r49505 r51187  
    2222
    2323/* GUI includes: */
    24 #include "UIDefs.h"
     24#include "UIExtraDataDefs.h"
    2525#include "UIMachineDefs.h"
    2626
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r50864 r51187  
    1919
    2020/* GUI includes: */
    21 #include "UIDefs.h"
     21#include "UIExtraDataDefs.h"
    2222#include <QIWithRetranslateUI.h>
    2323#ifdef VBOX_WITH_DEBUGGER_GUI
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineMenuBar.h

    r49462 r51187  
    2222
    2323/* GUI includes: */
    24 #include "UIDefs.h"
     24#include "UIExtraDataDefs.h"
    2525
    2626/* Forward declarations: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r49183 r51187  
    2525
    2626/* GUI includes: */
    27 #include "UIDefs.h"
    2827#include "UIMachineDefs.h"
     28#include "UIExtraDataDefs.h"
    2929#ifdef Q_WS_MAC
    3030# include <CoreFoundation/CFBase.h>
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h

    r50823 r51187  
    2525/* GUI includes: */
    2626#include "QIWithRetranslateUI.h"
    27 #include "UIDefs.h"
     27#include "UIExtraDataDefs.h"
    2828
    2929/* COM includes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h

    r50824 r51187  
    2828
    2929/* GUI includes: */
    30 #include "UIDefs.h"
     30#include "UIExtraDataDefs.h"
    3131
    3232/* Forward declarations: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r51158 r51187  
    2525
    2626/* GUI includes: */
    27 #include "UIDefs.h"
     27#include "UIExtraDataDefs.h"
    2828
    2929/* COM includes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r51054 r51187  
    3333#include "UIGChooserItemGroup.h"
    3434#include "UIGChooserItemMachine.h"
    35 #include "UIDefs.h"
     35#include "UIExtraDataDefs.h"
    3636#include "VBoxGlobal.h"
    3737#include "UIMessageCenter.h"
     
    17061706{
    17071707    /* Prepare extra-data key for the parent-item: */
    1708     QString strExtraDataKey = UIDefs::GUI_GroupDefinitions + pParentItem->fullName();
     1708    QString strExtraDataKey = GUI_GroupDefinitions + pParentItem->fullName();
    17091709    /* Read group definitions: */
    17101710    QStringList definitions = vboxGlobal().virtualBox().GetExtraDataStringList(strExtraDataKey);
     
    17771777{
    17781778    /* Prepare extra-data key for the parent-item: */
    1779     QString strExtraDataKey = UIDefs::GUI_GroupDefinitions + pParentItem->fullName();
     1779    QString strExtraDataKey = GUI_GroupDefinitions + pParentItem->fullName();
    17801780    /* Read group definitions: */
    17811781    QStringList definitions = vboxGlobal().virtualBox().GetExtraDataStringList(strExtraDataKey);
     
    18851885{
    18861886    /* Prepare extra-data key for current group: */
    1887     QString strExtraDataKey = UIDefs::GUI_GroupDefinitions + pParentItem->fullName();
     1887    QString strExtraDataKey = GUI_GroupDefinitions + pParentItem->fullName();
    18881888    /* Iterate over all the group-items: */
    18891889    foreach (UIGChooserItem *pItem, pParentItem->items(UIGChooserItemType_Group))
     
    20952095    const QVector<QString> extraDataKeys = vboxGlobal().virtualBox().GetExtraDataKeys();
    20962096    foreach (const QString &strKey, extraDataKeys)
    2097         if (strKey.startsWith(UIDefs::GUI_GroupDefinitions))
     2097        if (strKey.startsWith(GUI_GroupDefinitions))
    20982098            vboxGlobal().virtualBox().SetExtraData(strKey, QString());
    20992099
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.h

    r50909 r51187  
    2525/* GUI includes: */
    2626#include "UIGDetailsItem.h"
    27 #include "UIDefs.h"
     27#include "UIExtraDataDefs.h"
    2828
    2929/* Forward declarations: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsModel.h

    r50041 r51187  
    2727
    2828/* GUI includes: */
    29 #include "UIDefs.h"
     29#include "UIExtraDataDefs.h"
    3030
    3131/* COM includes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.h

    r50907 r51187  
    2222/* GUI includes: */
    2323#include "UIGDetailsItem.h"
    24 #include "UIDefs.h"
     24#include "UIExtraDataDefs.h"
    2525#include "UISettingsDefs.h"
    2626
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h

    r50906 r51187  
    2626/* GUI includes: */
    2727#include "QIWithRetranslateUI.h"
    28 #include "UIDefs.h"
    2928#include "UISettingsDefs.h"
     29#include "UIExtraDataDefs.h"
    3030#include "VBoxGlobalSettings.h"
    3131
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette