VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp@ 102493

Last change on this file since 102493 was 102222, checked in by vboxsync, 11 months ago

FE/Qt: Minimum for font scaling is now 40% instead of 20%.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.8 KB
Line 
1/* $Id: UIExtraDataDefs.cpp 102222 2023-11-21 17:59:36Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - Extra-data related definitions.
4 */
5
6/*
7 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28/* GUI includes: */
29#include "UIExtraDataDefs.h"
30
31
32/* General: */
33const char *UIExtraDataDefs::GUI_RestrictedDialogs = "GUI/RestrictedDialogs";
34const char *UIExtraDataDefs::GUI_ColorTheme = "GUI/ColorTheme";
35
36
37/* Messaging: */
38const char *UIExtraDataDefs::GUI_SuppressMessages = "GUI/SuppressMessages";
39const char *UIExtraDataDefs::GUI_InvertMessageOption = "GUI/InvertMessageOption";
40#ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON
41const char *UIExtraDataDefs::GUI_NotificationCenter_KeepSuccessfullProgresses = "GUI/NotificationCenter/KeepSuccessfullProgresses";
42#endif
43const char *UIExtraDataDefs::GUI_NotificationCenter_Alignment = "GUI/NotificationCenter/Alignment";
44const char *UIExtraDataDefs::GUI_NotificationCenter_Order = "GUI/NotificationCenter/Order";
45const char *UIExtraDataDefs::GUI_PreventBetaLabel = "GUI/PreventBetaLabel";
46#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
47const char *UIExtraDataDefs::GUI_PreventBetaWarning = "GUI/PreventBetaWarning";
48#endif
49
50
51#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
52/* Application Update: */
53const char *UIExtraDataDefs::GUI_PreventApplicationUpdate = "GUI/PreventApplicationUpdate";
54const char *UIExtraDataDefs::GUI_UpdateDate = "GUI/UpdateDate";
55const char *UIExtraDataDefs::GUI_UpdateCheckCount = "GUI/UpdateCheckCount";
56#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
57
58
59/* Progress: */
60const char *UIExtraDataDefs::GUI_Progress_LegacyMode = "GUI/Progress/LegacyMode";
61
62
63/* Settings: */
64const char *UIExtraDataDefs::GUI_Customizations = "GUI/Customizations";
65const char *UIExtraDataDefs::GUI_RestrictedGlobalSettingsPages = "GUI/RestrictedGlobalSettingsPages";
66const char *UIExtraDataDefs::GUI_RestrictedMachineSettingsPages = "GUI/RestrictedMachineSettingsPages";
67const char *UIExtraDataDefs::GUI_Settings_ExpertMode = "GUI/Settings/ExpertMode";
68
69/* Settings: Language: */
70const char *UIExtraDataDefs::GUI_LanguageID = "GUI/LanguageID";
71
72/* Settings: Display: */
73const char *UIExtraDataDefs::GUI_MaxGuestResolution = "GUI/MaxGuestResolution";
74const char *UIExtraDataDefs::GUI_ActivateHoveredMachineWindow = "GUI/ActivateHoveredMachineWindow";
75const char *UIExtraDataDefs::GUI_DisableHostScreenSaver = "GUI/DisableHostScreenSaver";
76
77/* Settings: Keyboard: */
78const char *UIExtraDataDefs::GUI_Input_SelectorShortcuts = "GUI/Input/SelectorShortcuts";
79const char *UIExtraDataDefs::GUI_Input_MachineShortcuts = "GUI/Input/MachineShortcuts";
80const char *UIExtraDataDefs::GUI_Input_HostKeyCombination = "GUI/Input/HostKeyCombination";
81const char *UIExtraDataDefs::GUI_Input_AutoCapture = "GUI/Input/AutoCapture";
82const char *UIExtraDataDefs::GUI_RemapScancodes = "GUI/RemapScancodes";
83
84/* Settings: Proxy: */
85const char *UIExtraDataDefs::GUI_ProxySettings = "GUI/ProxySettings";
86
87/* Settings: Storage: */
88const char *UIExtraDataDefs::GUI_RecentFolderHD = "GUI/RecentFolderHD";
89const char *UIExtraDataDefs::GUI_RecentFolderCD = "GUI/RecentFolderCD";
90const char *UIExtraDataDefs::GUI_RecentFolderFD = "GUI/RecentFolderFD";
91const char *UIExtraDataDefs::GUI_RecentListHD = "GUI/RecentListHD";
92const char *UIExtraDataDefs::GUI_RecentListCD = "GUI/RecentListCD";
93const char *UIExtraDataDefs::GUI_RecentListFD = "GUI/RecentListFD";
94
95/* Settings: Network: */
96const char *UIExtraDataDefs::GUI_RestrictedNetworkAttachmentTypes = "GUI/RestrictedNetworkAttachmentTypes";
97
98/* VISO Creator: */
99const char *UIExtraDataDefs::GUI_VISOCreator_RecentFolder = "GUI/VISOCreator/RecentFolder";
100const char *UIExtraDataDefs::GUI_VISOCreator_DialogGeometry = "GUI/VISOCreator/DialogGeometry";
101
102/* VirtualBox Manager: */
103const char *UIExtraDataDefs::GUI_LastSelectorWindowPosition = "GUI/LastWindowPosition";
104const char *UIExtraDataDefs::GUI_SplitterSizes = "GUI/SplitterSizes";
105const char *UIExtraDataDefs::GUI_Toolbar = "GUI/Toolbar";
106const char *UIExtraDataDefs::GUI_Toolbar_Text = "GUI/Toolbar/Text";
107const char *UIExtraDataDefs::GUI_Toolbar_MachineTools_Order = "GUI/Toolbar/MachineTools/Order";
108const char *UIExtraDataDefs::GUI_Toolbar_GlobalTools_Order = "GUI/Toolbar/GlobalTools/Order";
109const char *UIExtraDataDefs::GUI_Tools_LastItemsSelected = "GUI/Tools/LastItemsSelected";
110const char *UIExtraDataDefs::GUI_Statusbar = "GUI/Statusbar";
111const char *UIExtraDataDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions";
112const char *UIExtraDataDefs::GUI_LastItemSelected = "GUI/LastItemSelected";
113const char *UIExtraDataDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes";
114const char *UIExtraDataDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate";
115const char *UIExtraDataDefs::GUI_Details_Elements = "GUI/Details/Elements";
116const char *UIExtraDataDefs::GUI_Details_Elements_Preview_UpdateInterval = "GUI/Details/Elements/Preview/UpdateInterval";
117
118/* Snapshot Manager: */
119const char *UIExtraDataDefs::GUI_SnapshotManager_Details_Expanded = "GUI/SnapshotManager/Details/Expanded";
120
121/* Virtual Media Manager: */
122const char *UIExtraDataDefs::GUI_VirtualMediaManager_Details_Expanded = "GUI/VirtualMediaManager/Details/Expanded";
123const char *UIExtraDataDefs::GUI_VirtualMediaManager_Search_Widget_Expanded = "GUI/VirtualMediaManager/SearchWidget/Expanded";
124
125/* Host Network Manager: */
126const char *UIExtraDataDefs::GUI_HostNetworkManager_Details_Expanded = "GUI/HostNetworkManager/Details/Expanded";
127
128/* Cloud Profile Manager: */
129const char *UIExtraDataDefs::GUI_CloudProfileManager_Restrictions = "GUI/CloudProfileManager/Restrictions";
130const char *UIExtraDataDefs::GUI_CloudProfileManager_Details_Expanded = "GUI/CloudProfileManager/Details/Expanded";
131
132/* Cloud Console Manager: */
133const char *UIExtraDataDefs::GUI_CloudConsoleManager_Application = "GUI/CloudConsoleManager/Application";
134const char *UIExtraDataDefs::GUI_CloudConsoleManager_Restrictions = "GUI/CloudConsoleManager/Restrictions";
135const char *UIExtraDataDefs::GUI_CloudConsoleManager_Details_Expanded = "GUI/CloudConsoleManager/Details/Expanded";
136
137/* Cloud Console: */
138const char *UIExtraDataDefs::GUI_CloudConsole_PublicKey_Path = "GUI/CloudConsole/PublicKey/Path";
139
140#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
141/* Extra-data Manager: */
142const char *UIExtraDataDefs::GUI_ExtraDataManager_Geometry = "GUI/ExtraDataManager/Geometry";
143const char *UIExtraDataDefs::GUI_ExtraDataManager_SplitterHints = "GUI/ExtraDataManager/SplitterHints";
144#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
145
146/* Wizards: */
147const char *UIExtraDataDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards";
148
149
150/* Virtual Machine: */
151const char *UIExtraDataDefs::GUI_HideFromManager = "GUI/HideFromManager";
152const char *UIExtraDataDefs::GUI_HideDetails = "GUI/HideDetails";
153const char *UIExtraDataDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration";
154const char *UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";
155const char *UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
156#ifndef VBOX_WS_MAC
157const char *UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix";
158#endif
159const char *UIExtraDataDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";
160const char *UIExtraDataDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition";
161const char *UIExtraDataDefs::GUI_Geometry_State_Max = "max";
162#ifndef VBOX_WS_MAC
163const char *UIExtraDataDefs::GUI_MenuBar_Enabled = "GUI/MenuBar/Enabled";
164#endif
165const char *UIExtraDataDefs::GUI_MenuBar_ContextMenu_Enabled = "GUI/MenuBar/ContextMenu/Enabled";
166const char *UIExtraDataDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus";
167const char *UIExtraDataDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions";
168const char *UIExtraDataDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions";
169const char *UIExtraDataDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions";
170const char *UIExtraDataDefs::GUI_RestrictedRuntimeInputMenuActions = "GUI/RestrictedRuntimeInputMenuActions";
171const char *UIExtraDataDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions";
172#ifdef VBOX_WITH_DEBUGGER_GUI
173const char *UIExtraDataDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions";
174#endif
175#ifdef VBOX_WS_MAC
176const char *UIExtraDataDefs::GUI_RestrictedRuntimeWindowMenuActions = "GUI/RestrictedRuntimeWindowMenuActions";
177#endif
178const char *UIExtraDataDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions";
179const char *UIExtraDataDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates";
180const char *UIExtraDataDefs::GUI_Fullscreen = "GUI/Fullscreen";
181const char *UIExtraDataDefs::GUI_Seamless = "GUI/Seamless";
182const char *UIExtraDataDefs::GUI_Scale = "GUI/Scale";
183#ifdef VBOX_WS_NIX
184const char *UIExtraDataDefs::GUI_Fullscreen_LegacyMode = "GUI/Fullscreen/LegacyMode";
185const char *UIExtraDataDefs::GUI_DistinguishMachineWindowGroups = "GUI/DistinguishMachineWindowGroups";
186#endif /* VBOX_WS_NIX */
187const char *UIExtraDataDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest";
188const char *UIExtraDataDefs::GUI_LastVisibilityStatusForGuestScreen = "GUI/LastVisibilityStatusForGuestScreen";
189const char *UIExtraDataDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint";
190const char *UIExtraDataDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen";
191const char *UIExtraDataDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens";
192#ifndef VBOX_WS_MAC
193const char *UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
194const char *UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";
195const char *UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";
196#endif /* !VBOX_WS_MAC */
197const char *UIExtraDataDefs::GUI_StatusBar_Enabled = "GUI/StatusBar/Enabled";
198const char *UIExtraDataDefs::GUI_StatusBar_ContextMenu_Enabled = "GUI/StatusBar/ContextMenu/Enabled";
199const char *UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators";
200const char *UIExtraDataDefs::GUI_StatusBar_IndicatorOrder = "GUI/StatusBar/IndicatorOrder";
201#ifdef VBOX_WS_MAC
202const char *UIExtraDataDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";
203const char *UIExtraDataDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";
204const char *UIExtraDataDefs::GUI_DockIconDisableOverlay = "GUI/DockIconDisableOverlay";
205#endif /* VBOX_WS_MAC */
206const char *UIExtraDataDefs::GUI_PassCAD = "GUI/PassCAD";
207const char *UIExtraDataDefs::GUI_MouseCapturePolicy = "GUI/MouseCapturePolicy";
208const char *UIExtraDataDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler";
209const char *UIExtraDataDefs::GUI_HidLedsSync = "GUI/HidLedsSync";
210const char *UIExtraDataDefs::GUI_ScaleFactor = "GUI/ScaleFactor";
211const char *UIExtraDataDefs::GUI_Scaling_Optimization = "GUI/Scaling/Optimization";
212const char *UIExtraDataDefs::GUI_FontScaleFactor = "GUI/FontScaleFactor";
213
214/* Virtual Machine: Session Information Dialog: */
215const char *UIExtraDataDefs::GUI_SessionInformationDialogGeometry = "GUI/SessionInformationDialogGeometry";
216
217/* Guest control UI: */
218const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry";
219const char *UIExtraDataDefs::GUI_GuestControl_FileManagerVisiblePanels = "GUI/GuestControl/FileManagerVisiblePanels";
220const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints";
221const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry";
222
223/* Soft Keyboard: */
224const char *UIExtraDataDefs::GUI_SoftKeyboard_DialogGeometry = "GUI/SoftKeyboardDialogGeometry";
225const char *UIExtraDataDefs::GUI_SoftKeyboard_ColorTheme = "GUI/SoftKeyboardColorTheme";
226const char *UIExtraDataDefs::GUI_SoftKeyboard_SelectedColorTheme = "GUI/SoftKeyboardSelectedColorTheme";
227const char *UIExtraDataDefs::GUI_SoftKeyboard_SelectedLayout = "GUI/SoftKeyboardSelectedLayout";
228const char *UIExtraDataDefs::GUI_SoftKeyboard_Options = "GUI/SoftKeyboardOptions";
229const char *UIExtraDataDefs::GUI_SoftKeyboard_HideNumPad = "GUI/SoftKeyboardHideNumPad";
230const char *UIExtraDataDefs::GUI_SoftKeyboard_HideOSMenuKeys = "GUI/SoftKeyboardHideOSMenuKeys";
231const char *UIExtraDataDefs::GUI_SoftKeyboard_HideMultimediaKeys = "GUI/SoftKeyboardHideMultimediaKeys";
232
233/* File Manager options: */
234const char *UIExtraDataDefs::GUI_GuestControl_FileManagerOptions = "GUI/GuestControl/FileManagerOptions";
235const char *UIExtraDataDefs::GUI_GuestControl_FileManagerListDirectoriesFirst = "ListDirectoriesFirst";
236const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowDeleteConfirmation = "ShowDeleteConfimation";
237const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowHumanReadableSizes = "ShowHumanReadableSizes";
238const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowHiddenObjects = "ShowHiddenObjects";
239
240/* Virtual Machine: Close dialog: */
241const char *UIExtraDataDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction";
242const char *UIExtraDataDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";
243const char *UIExtraDataDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
244const char *UIExtraDataDefs::GUI_CloseActionHook = "GUI/CloseActionHook";
245const char *UIExtraDataDefs::GUI_DiscardStateOnPowerOff = "GUI/DiscardStateOnPowerOff";
246
247#ifdef VBOX_WITH_DEBUGGER_GUI
248/* Virtual Machine: Debug UI: */
249const char *UIExtraDataDefs::GUI_Dbg_Enabled = "GUI/Dbg/Enabled";
250const char *UIExtraDataDefs::GUI_Dbg_AutoShow = "GUI/Dbg/AutoShow";
251#endif /* VBOX_WITH_DEBUGGER_GUI */
252
253/* Virtual Machine: Log-viewer: */
254const char *UIExtraDataDefs::GUI_LogWindowGeometry = "GUI/LogWindowGeometry";
255const char *UIExtraDataDefs::GUI_LogViewerOptions = "GUI/LogViewerOptions";
256const char *UIExtraDataDefs::GUI_LogViewerWrapLinesEnabled = "WrapLines";
257const char *UIExtraDataDefs::GUI_LogViewerShowLineNumbersDisabled = "showLineNumbersDisabled";
258const char *UIExtraDataDefs::GUI_LogViewerNoFontStyleName = "noFontStyleName";
259
260/* Help Browser */
261const char *UIExtraDataDefs::GUI_HelpBrowser_LastURLList = "GUI/HelpBrowserLastURLList";
262const char *UIExtraDataDefs::GUI_HelpBrowser_DialogGeometry = "GUI/HelpBrowserDialogGeomety";
263const char *UIExtraDataDefs::GUI_HelpBrowser_Bookmarks = "GUI/HelpBrowserBookmarks";
264const char *UIExtraDataDefs::GUI_HelpBrowser_ZoomPercentage = "GUI/HelpBrowserZoomPercentage";
265
266/* VM Activity Overview: */
267const char *UIExtraDataDefs::GUI_VMActivityOverview_HiddenColumns = "GUI/VMActivityOverviewHiddenColumns";
268const char *UIExtraDataDefs::GUI_VMActivityOverview_ShowAllMachines = "GUI/VMActivityOverviewShowAllMachines";
269
270const char *UIExtraDataDefs::GUI_MediumSelector_DialogGeometry = "GUI/MediumSelector/DialogGeometry";
271
272const int UIExtraDataDefs::iFontScaleMin = 40;
273const int UIExtraDataDefs::iFontScaleMax = 200;
274
275/* Obsolete keys: */
276QMultiMap<QString, QString> UIExtraDataDefs::prepareObsoleteKeysMap()
277{
278 QMultiMap<QString, QString> map;
279 map.insert(GUI_Details_Elements, GUI_DetailsPageBoxes);
280 map.insert(GUI_Details_Elements_Preview_UpdateInterval, GUI_PreviewUpdate);
281 return map;
282}
283QMultiMap<QString, QString> UIExtraDataDefs::g_mapOfObsoleteKeys = UIExtraDataDefs::prepareObsoleteKeysMap();
284
285
286bool UIToolStuff::isTypeOfClass(UIToolType enmType, UIToolClass enmClass)
287{
288 switch (enmClass)
289 {
290 case UIToolClass_Global:
291 {
292 switch (enmType)
293 {
294 case UIToolType_Welcome:
295 case UIToolType_Extensions:
296 case UIToolType_Media:
297 case UIToolType_Network:
298 case UIToolType_Cloud:
299 case UIToolType_CloudConsole:
300 case UIToolType_VMActivityOverview:
301 return true;
302 default:
303 break;
304 }
305 break;
306 }
307 case UIToolClass_Machine:
308 {
309 switch (enmType)
310 {
311 case UIToolType_Details:
312 case UIToolType_Snapshots:
313 case UIToolType_Logs:
314 case UIToolType_VMActivity:
315 case UIToolType_FileManager:
316 return true;
317 default:
318 break;
319 }
320 break;
321 }
322 default:
323 break;
324 }
325 return false;
326}
Note: See TracBrowser for help on using the repository browser.

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