1 | /* $Id: UIDefs.cpp 42526 2012-08-02 10:31:28Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | *
|
---|
4 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
5 | * Global definitions and function implementations
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2006-2012 Oracle Corporation
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | * available from http://www.virtualbox.org. This file is free software;
|
---|
13 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | * General Public License (GPL) as published by the Free Software
|
---|
15 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | */
|
---|
19 |
|
---|
20 | /* GUI includes: */
|
---|
21 | #include "UIDefs.h"
|
---|
22 |
|
---|
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 |
|
---|
48 | /* Machine-window definitions: */
|
---|
49 | const char* UIDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts";
|
---|
50 | const char* UIDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";
|
---|
51 | const char* UIDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition";
|
---|
52 | const char* UIDefs::GUI_LastWindowState_Max = "max";
|
---|
53 | const char* UIDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint";
|
---|
54 | const char* UIDefs::GUI_LastGuestSizeHintWasFullscreen = "GUI/LastGuestSizeHintWasFullscreen";
|
---|
55 | const char* UIDefs::GUI_Fullscreen = "GUI/Fullscreen";
|
---|
56 | const char* UIDefs::GUI_Seamless = "GUI/Seamless";
|
---|
57 | const char* UIDefs::GUI_Scale = "GUI/Scale";
|
---|
58 | const char* UIDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen";
|
---|
59 | const char* UIDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest";
|
---|
60 | const char* UIDefs::GUI_SaveMountedAtRuntime = "GUI/SaveMountedAtRuntime";
|
---|
61 | const char* UIDefs::GUI_PassCAD = "GUI/PassCAD";
|
---|
62 |
|
---|
63 | /* Mini tool-bar definitions: */
|
---|
64 | const char* UIDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
|
---|
65 | const char* UIDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";
|
---|
66 | const char* UIDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";
|
---|
67 |
|
---|
68 | /* Close-dialog definitions: */
|
---|
69 | const char* UIDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";
|
---|
70 | const char* UIDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
|
---|
71 | const char* UIDefs::GUI_CloseActionHook = "GUI/CloseActionHook";
|
---|
72 |
|
---|
73 | /* Wizards definitions: */
|
---|
74 | const char* UIDefs::GUI_FirstRun = "GUI/FirstRun";
|
---|
75 | const char* UIDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards";
|
---|
76 | const char* UIDefs::GUI_Export_StorageType = "GUI/Export/StorageType";
|
---|
77 | const char* UIDefs::GUI_Export_Username = "GUI/Export/Username";
|
---|
78 | const char* UIDefs::GUI_Export_Hostname = "GUI/Export/Hostname";
|
---|
79 | const char* UIDefs::GUI_Export_Bucket = "GUI/Export/Bucket";
|
---|
80 |
|
---|
81 | /* Message-center definitions: */
|
---|
82 | const char* UIDefs::GUI_SuppressMessages = "GUI/SuppressMessages";
|
---|
83 | const char* UIDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption";
|
---|
84 |
|
---|
85 | /* Registration dialog definitions: */
|
---|
86 | const char* UIDefs::GUI_RegistrationDlgWinID = "GUI/RegistrationDlgWinID";
|
---|
87 | const char* UIDefs::GUI_RegistrationData = "GUI/SUNOnlineData";
|
---|
88 |
|
---|
89 | /* Update manager definitions: */
|
---|
90 | const char* UIDefs::GUI_UpdateDate = "GUI/UpdateDate";
|
---|
91 | const char* UIDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount";
|
---|
92 |
|
---|
93 | /* Information dialog definitions: */
|
---|
94 | const char* UIDefs::GUI_InfoDlgState = "GUI/InfoDlgState";
|
---|
95 |
|
---|
96 | #ifdef VBOX_WITH_DEBUGGER_GUI
|
---|
97 | /* Debugger GUI declarations: */
|
---|
98 | const char* UIDefs::GUI_DbgEnabled = "GUI/Dbg/Enabled";
|
---|
99 | const char* UIDefs::GUI_DbgAutoShow = "GUI/Dbg/AutoShow";
|
---|
100 | #endif /* VBOX_WITH_DEBUGGER_GUI */
|
---|
101 |
|
---|
102 | #ifdef Q_WS_X11
|
---|
103 | /* License GUI declarations: */
|
---|
104 | const char* UIDefs::GUI_LicenseKey = "GUI/LicenseAgreed";
|
---|
105 | #endif /* Q_WS_X11 */
|
---|
106 |
|
---|
107 | #ifdef Q_WS_MAC
|
---|
108 | /* Mac dock declarations: */
|
---|
109 | const char* UIDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";
|
---|
110 | const char* UIDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";
|
---|
111 | const char* UIDefs::GUI_PresentationModeEnabled = "GUI/PresentationModeEnabled";
|
---|
112 | #endif /* Q_WS_MAC */
|
---|
113 |
|
---|
114 | #ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
115 | /* Video-acceleration declarations: */
|
---|
116 | const char* UIDefs::GUI_Accelerate2D_StretchLinear = "GUI/Accelerate2D/StretchLinear";
|
---|
117 | const char* UIDefs::GUI_Accelerate2D_PixformatYV12 = "GUI/Accelerate2D/PixformatYV12";
|
---|
118 | const char* UIDefs::GUI_Accelerate2D_PixformatUYVY = "GUI/Accelerate2D/PixformatUYVY";
|
---|
119 | const char* UIDefs::GUI_Accelerate2D_PixformatYUY2 = "GUI/Accelerate2D/PixformatYUY2";
|
---|
120 | const char* UIDefs::GUI_Accelerate2D_PixformatAYUV = "GUI/Accelerate2D/PixformatAYUV";
|
---|
121 | #endif /* VBOX_WITH_VIDEOHWACCEL */
|
---|
122 |
|
---|
123 | #ifdef VBOX_GUI_WITH_SYSTRAY
|
---|
124 | /* Tray icon declarations: */
|
---|
125 | const char* UIDefs::GUI_TrayIconWinID = "GUI/TrayIcon/WinID";
|
---|
126 | const char* UIDefs::GUI_TrayIconEnabled = "GUI/TrayIcon/Enabled";
|
---|
127 | const char* UIDefs::GUI_MainWindowCount = "GUI/MainWindowCount";
|
---|
128 | #endif /* VBOX_GUI_WITH_SYSTRAY */
|
---|
129 |
|
---|
130 | /* File extensions definitions: */
|
---|
131 | QStringList UIDefs::VBoxFileExts = QStringList() << "xml" << "vbox";
|
---|
132 | QStringList UIDefs::VBoxExtPackFileExts = QStringList() << "vbox-extpack";
|
---|
133 | QStringList UIDefs::OVFFileExts = QStringList() << "ovf" << "ova";
|
---|
134 |
|
---|