VirtualBox

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

Last change on this file was 106061, checked in by vboxsync, 3 weeks ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.0 KB
Line 
1/* $Id: UIExtraDataDefs.cpp 106061 2024-09-16 14:03:52Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - Extra-data related definitions.
4 */
5
6/*
7 * Copyright (C) 2006-2024 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_Tools_Detached = "GUI/Tools/Detached";
111const char *UIExtraDataDefs::GUI_Statusbar = "GUI/Statusbar";
112const char *UIExtraDataDefs::GUI_GroupDefinitions = "GUI/GroupDefinitions";
113const char *UIExtraDataDefs::GUI_LastItemSelected = "GUI/LastItemSelected";
114const char *UIExtraDataDefs::GUI_DetailsPageBoxes = "GUI/DetailsPageBoxes";
115const char *UIExtraDataDefs::GUI_PreviewUpdate = "GUI/PreviewUpdate";
116const char *UIExtraDataDefs::GUI_Details_Elements = "GUI/Details/Elements";
117const char *UIExtraDataDefs::GUI_Details_Elements_Preview_UpdateInterval = "GUI/Details/Elements/Preview/UpdateInterval";
118
119/* Snapshot Manager: */
120const char *UIExtraDataDefs::GUI_SnapshotManager_Details_Expanded = "GUI/SnapshotManager/Details/Expanded";
121
122/* Virtual Media Manager: */
123const char *UIExtraDataDefs::GUI_VirtualMediaManager_Details_Expanded = "GUI/VirtualMediaManager/Details/Expanded";
124const char *UIExtraDataDefs::GUI_VirtualMediaManager_Search_Widget_Expanded = "GUI/VirtualMediaManager/SearchWidget/Expanded";
125
126/* Host Network Manager: */
127const char *UIExtraDataDefs::GUI_HostNetworkManager_Details_Expanded = "GUI/HostNetworkManager/Details/Expanded";
128
129/* Cloud Profile Manager: */
130const char *UIExtraDataDefs::GUI_CloudProfileManager_Restrictions = "GUI/CloudProfileManager/Restrictions";
131const char *UIExtraDataDefs::GUI_CloudProfileManager_Details_Expanded = "GUI/CloudProfileManager/Details/Expanded";
132
133/* Cloud Console Manager: */
134const char *UIExtraDataDefs::GUI_CloudConsoleManager_Application = "GUI/CloudConsoleManager/Application";
135const char *UIExtraDataDefs::GUI_CloudConsoleManager_Restrictions = "GUI/CloudConsoleManager/Restrictions";
136const char *UIExtraDataDefs::GUI_CloudConsoleManager_Details_Expanded = "GUI/CloudConsoleManager/Details/Expanded";
137
138/* Cloud Console: */
139const char *UIExtraDataDefs::GUI_CloudConsole_PublicKey_Path = "GUI/CloudConsole/PublicKey/Path";
140
141#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
142/* Extra-data Manager: */
143const char *UIExtraDataDefs::GUI_ExtraDataManager_Geometry = "GUI/ExtraDataManager/Geometry";
144const char *UIExtraDataDefs::GUI_ExtraDataManager_SplitterHints = "GUI/ExtraDataManager/SplitterHints";
145#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
146
147
148/* Virtual Machine: */
149const char *UIExtraDataDefs::GUI_HideFromManager = "GUI/HideFromManager";
150const char *UIExtraDataDefs::GUI_HideDetails = "GUI/HideDetails";
151const char *UIExtraDataDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration";
152const char *UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";
153const char *UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
154#ifndef VBOX_WS_MAC
155const char *UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix";
156#endif
157const char *UIExtraDataDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";
158const char *UIExtraDataDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition";
159const char *UIExtraDataDefs::GUI_Geometry_State_Max = "max";
160#ifndef VBOX_WS_MAC
161const char *UIExtraDataDefs::GUI_MenuBar_Enabled = "GUI/MenuBar/Enabled";
162#endif
163const char *UIExtraDataDefs::GUI_MenuBar_ContextMenu_Enabled = "GUI/MenuBar/ContextMenu/Enabled";
164const char *UIExtraDataDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus";
165const char *UIExtraDataDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions";
166const char *UIExtraDataDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions";
167const char *UIExtraDataDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions";
168const char *UIExtraDataDefs::GUI_RestrictedRuntimeInputMenuActions = "GUI/RestrictedRuntimeInputMenuActions";
169const char *UIExtraDataDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions";
170#ifdef VBOX_WITH_DEBUGGER_GUI
171const char *UIExtraDataDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions";
172#endif
173#ifdef VBOX_WS_MAC
174const char *UIExtraDataDefs::GUI_RestrictedRuntimeWindowMenuActions = "GUI/RestrictedRuntimeWindowMenuActions";
175#endif
176const char *UIExtraDataDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions";
177const char *UIExtraDataDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates";
178const char *UIExtraDataDefs::GUI_Fullscreen = "GUI/Fullscreen";
179const char *UIExtraDataDefs::GUI_Seamless = "GUI/Seamless";
180const char *UIExtraDataDefs::GUI_Scale = "GUI/Scale";
181#ifdef VBOX_WS_NIX
182const char *UIExtraDataDefs::GUI_Fullscreen_LegacyMode = "GUI/Fullscreen/LegacyMode";
183const char *UIExtraDataDefs::GUI_DistinguishMachineWindowGroups = "GUI/DistinguishMachineWindowGroups";
184#endif /* VBOX_WS_NIX */
185const char *UIExtraDataDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest";
186const char *UIExtraDataDefs::GUI_LastVisibilityStatusForGuestScreen = "GUI/LastVisibilityStatusForGuestScreen";
187const char *UIExtraDataDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint";
188const char *UIExtraDataDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen";
189const char *UIExtraDataDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens";
190#ifndef VBOX_WS_MAC
191const char *UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
192const char *UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";
193const char *UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";
194#endif /* !VBOX_WS_MAC */
195const char *UIExtraDataDefs::GUI_StatusBar_Enabled = "GUI/StatusBar/Enabled";
196const char *UIExtraDataDefs::GUI_StatusBar_ContextMenu_Enabled = "GUI/StatusBar/ContextMenu/Enabled";
197const char *UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators";
198const char *UIExtraDataDefs::GUI_StatusBar_IndicatorOrder = "GUI/StatusBar/IndicatorOrder";
199#ifdef VBOX_WS_MAC
200const char *UIExtraDataDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";
201const char *UIExtraDataDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";
202const char *UIExtraDataDefs::GUI_DockIconDisableOverlay = "GUI/DockIconDisableOverlay";
203#endif /* VBOX_WS_MAC */
204const char *UIExtraDataDefs::GUI_PassCAD = "GUI/PassCAD";
205const char *UIExtraDataDefs::GUI_MouseCapturePolicy = "GUI/MouseCapturePolicy";
206const char *UIExtraDataDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler";
207const char *UIExtraDataDefs::GUI_HidLedsSync = "GUI/HidLedsSync";
208const char *UIExtraDataDefs::GUI_ScaleFactor = "GUI/ScaleFactor";
209const char *UIExtraDataDefs::GUI_Scaling_Optimization = "GUI/Scaling/Optimization";
210const char *UIExtraDataDefs::GUI_FontScaleFactor = "GUI/FontScaleFactor";
211
212/* Virtual Machine: Session Information Dialog: */
213const char *UIExtraDataDefs::GUI_SessionInformationDialogGeometry = "GUI/SessionInformationDialogGeometry";
214
215/* Guest control UI: */
216const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry";
217const char *UIExtraDataDefs::GUI_GuestControl_FileManagerVisiblePanels = "GUI/GuestControl/FileManagerVisiblePanels";
218const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints";
219const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry";
220
221/* Soft Keyboard: */
222const char *UIExtraDataDefs::GUI_SoftKeyboard_DialogGeometry = "GUI/SoftKeyboardDialogGeometry";
223const char *UIExtraDataDefs::GUI_SoftKeyboard_ColorTheme = "GUI/SoftKeyboardColorTheme";
224const char *UIExtraDataDefs::GUI_SoftKeyboard_SelectedColorTheme = "GUI/SoftKeyboardSelectedColorTheme";
225const char *UIExtraDataDefs::GUI_SoftKeyboard_SelectedLayout = "GUI/SoftKeyboardSelectedLayout";
226const char *UIExtraDataDefs::GUI_SoftKeyboard_Options = "GUI/SoftKeyboardOptions";
227const char *UIExtraDataDefs::GUI_SoftKeyboard_HideNumPad = "GUI/SoftKeyboardHideNumPad";
228const char *UIExtraDataDefs::GUI_SoftKeyboard_HideOSMenuKeys = "GUI/SoftKeyboardHideOSMenuKeys";
229const char *UIExtraDataDefs::GUI_SoftKeyboard_HideMultimediaKeys = "GUI/SoftKeyboardHideMultimediaKeys";
230
231/* File Manager options: */
232const char *UIExtraDataDefs::GUI_GuestControl_FileManagerOptions = "GUI/GuestControl/FileManagerOptions";
233const char *UIExtraDataDefs::GUI_GuestControl_FileManagerListDirectoriesFirst = "ListDirectoriesFirst";
234const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowDeleteConfirmation = "ShowDeleteConfimation";
235const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowHumanReadableSizes = "ShowHumanReadableSizes";
236const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowHiddenObjects = "ShowHiddenObjects";
237
238/* Virtual Machine: Close dialog: */
239const char *UIExtraDataDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction";
240const char *UIExtraDataDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";
241const char *UIExtraDataDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
242const char *UIExtraDataDefs::GUI_CloseActionHook = "GUI/CloseActionHook";
243const char *UIExtraDataDefs::GUI_DiscardStateOnPowerOff = "GUI/DiscardStateOnPowerOff";
244
245#ifdef VBOX_WITH_DEBUGGER_GUI
246/* Virtual Machine: Debug UI: */
247const char *UIExtraDataDefs::GUI_Dbg_Enabled = "GUI/Dbg/Enabled";
248const char *UIExtraDataDefs::GUI_Dbg_AutoShow = "GUI/Dbg/AutoShow";
249#endif /* VBOX_WITH_DEBUGGER_GUI */
250
251/* Virtual Machine: Log-viewer: */
252const char *UIExtraDataDefs::GUI_LogWindowGeometry = "GUI/LogWindowGeometry";
253const char *UIExtraDataDefs::GUI_LogViewerOptions = "GUI/LogViewerOptions";
254const char *UIExtraDataDefs::GUI_LogViewerWrapLinesEnabled = "WrapLines";
255const char *UIExtraDataDefs::GUI_LogViewerShowLineNumbersDisabled = "showLineNumbersDisabled";
256const char *UIExtraDataDefs::GUI_LogViewerNoFontStyleName = "noFontStyleName";
257
258/* Help Browser */
259const char *UIExtraDataDefs::GUI_HelpBrowser_LastURLList = "GUI/HelpBrowserLastURLList";
260const char *UIExtraDataDefs::GUI_HelpBrowser_DialogGeometry = "GUI/HelpBrowserDialogGeomety";
261const char *UIExtraDataDefs::GUI_HelpBrowser_Bookmarks = "GUI/HelpBrowserBookmarks";
262const char *UIExtraDataDefs::GUI_HelpBrowser_ZoomPercentage = "GUI/HelpBrowserZoomPercentage";
263
264/* VM Activity Overview: */
265const char *UIExtraDataDefs::GUI_VMActivityOverview_HiddenColumns = "GUI/VMActivityOverviewHiddenColumns";
266const char *UIExtraDataDefs::GUI_VMActivityOverview_ShowAllMachines = "GUI/VMActivityOverviewShowAllMachines";
267const char *UIExtraDataDefs::GUI_VMActivityMonitor_DataSeriesColors = "GUI/VMActivityMonitorDataSeriesColors";
268const char *UIExtraDataDefs::GUI_VMActivityMonitor_ShowVMExits = "GUI/VMActivityMonitorShowVMExits";
269const char *UIExtraDataDefs::GUI_MediumSelector_DialogGeometry = "GUI/MediumSelector/DialogGeometry";
270
271const int UIExtraDataDefs::iFontScaleMin = 40;
272const int UIExtraDataDefs::iFontScaleMax = 200;
273
274/* Obsolete keys: */
275QMultiMap<QString, QString> UIExtraDataDefs::prepareObsoleteKeysMap()
276{
277 QMultiMap<QString, QString> map;
278 map.insert(GUI_Details_Elements, GUI_DetailsPageBoxes);
279 map.insert(GUI_Details_Elements_Preview_UpdateInterval, GUI_PreviewUpdate);
280 return map;
281}
282QMultiMap<QString, QString> UIExtraDataDefs::g_mapOfObsoleteKeys = UIExtraDataDefs::prepareObsoleteKeysMap();
283
284
285bool UIToolStuff::isTypeOfClass(UIToolType enmType, UIToolClass enmClass)
286{
287 switch (enmClass)
288 {
289 case UIToolClass_Global:
290 {
291 switch (enmType)
292 {
293 case UIToolType_Welcome:
294 case UIToolType_Extensions:
295 case UIToolType_Media:
296 case UIToolType_Network:
297 case UIToolType_Cloud:
298 case UIToolType_CloudConsole:
299 case UIToolType_VMActivityOverview:
300 return true;
301 default:
302 break;
303 }
304 break;
305 }
306 case UIToolClass_Machine:
307 {
308 switch (enmType)
309 {
310 case UIToolType_Details:
311 case UIToolType_Snapshots:
312 case UIToolType_Logs:
313 case UIToolType_VMActivity:
314 case UIToolType_FileManager:
315 return true;
316 default:
317 break;
318 }
319 break;
320 }
321 default:
322 break;
323 }
324 return false;
325}
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