VirtualBox

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

Last change on this file since 102775 was 102775, checked in by vboxsync, 9 months ago

FE/Qt: UIVirtualBoxManager: Store whether log-viewer opened detached or embedded way to extra-data.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.9 KB
Line 
1/* $Id: UIExtraDataDefs.cpp 102775 2024-01-05 15:27:12Z 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_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/* Wizards: */
148const char *UIExtraDataDefs::GUI_HideDescriptionForWizards = "GUI/HideDescriptionForWizards";
149
150
151/* Virtual Machine: */
152const char *UIExtraDataDefs::GUI_HideFromManager = "GUI/HideFromManager";
153const char *UIExtraDataDefs::GUI_HideDetails = "GUI/HideDetails";
154const char *UIExtraDataDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration";
155const char *UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";
156const char *UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
157#ifndef VBOX_WS_MAC
158const char *UIExtraDataDefs::GUI_MachineWindowNamePostfix = "GUI/MachineWindowNamePostfix";
159#endif
160const char *UIExtraDataDefs::GUI_LastNormalWindowPosition = "GUI/LastNormalWindowPosition";
161const char *UIExtraDataDefs::GUI_LastScaleWindowPosition = "GUI/LastScaleWindowPosition";
162const char *UIExtraDataDefs::GUI_Geometry_State_Max = "max";
163#ifndef VBOX_WS_MAC
164const char *UIExtraDataDefs::GUI_MenuBar_Enabled = "GUI/MenuBar/Enabled";
165#endif
166const char *UIExtraDataDefs::GUI_MenuBar_ContextMenu_Enabled = "GUI/MenuBar/ContextMenu/Enabled";
167const char *UIExtraDataDefs::GUI_RestrictedRuntimeMenus = "GUI/RestrictedRuntimeMenus";
168const char *UIExtraDataDefs::GUI_RestrictedRuntimeApplicationMenuActions = "GUI/RestrictedRuntimeApplicationMenuActions";
169const char *UIExtraDataDefs::GUI_RestrictedRuntimeMachineMenuActions = "GUI/RestrictedRuntimeMachineMenuActions";
170const char *UIExtraDataDefs::GUI_RestrictedRuntimeViewMenuActions = "GUI/RestrictedRuntimeViewMenuActions";
171const char *UIExtraDataDefs::GUI_RestrictedRuntimeInputMenuActions = "GUI/RestrictedRuntimeInputMenuActions";
172const char *UIExtraDataDefs::GUI_RestrictedRuntimeDevicesMenuActions = "GUI/RestrictedRuntimeDevicesMenuActions";
173#ifdef VBOX_WITH_DEBUGGER_GUI
174const char *UIExtraDataDefs::GUI_RestrictedRuntimeDebuggerMenuActions = "GUI/RestrictedRuntimeDebuggerMenuActions";
175#endif
176#ifdef VBOX_WS_MAC
177const char *UIExtraDataDefs::GUI_RestrictedRuntimeWindowMenuActions = "GUI/RestrictedRuntimeWindowMenuActions";
178#endif
179const char *UIExtraDataDefs::GUI_RestrictedRuntimeHelpMenuActions = "GUI/RestrictedRuntimeHelpMenuActions";
180const char *UIExtraDataDefs::GUI_RestrictedVisualStates = "GUI/RestrictedVisualStates";
181const char *UIExtraDataDefs::GUI_Fullscreen = "GUI/Fullscreen";
182const char *UIExtraDataDefs::GUI_Seamless = "GUI/Seamless";
183const char *UIExtraDataDefs::GUI_Scale = "GUI/Scale";
184#ifdef VBOX_WS_NIX
185const char *UIExtraDataDefs::GUI_Fullscreen_LegacyMode = "GUI/Fullscreen/LegacyMode";
186const char *UIExtraDataDefs::GUI_DistinguishMachineWindowGroups = "GUI/DistinguishMachineWindowGroups";
187#endif /* VBOX_WS_NIX */
188const char *UIExtraDataDefs::GUI_AutoresizeGuest = "GUI/AutoresizeGuest";
189const char *UIExtraDataDefs::GUI_LastVisibilityStatusForGuestScreen = "GUI/LastVisibilityStatusForGuestScreen";
190const char *UIExtraDataDefs::GUI_LastGuestSizeHint = "GUI/LastGuestSizeHint";
191const char *UIExtraDataDefs::GUI_VirtualScreenToHostScreen = "GUI/VirtualScreenToHostScreen";
192const char *UIExtraDataDefs::GUI_AutomountGuestScreens = "GUI/AutomountGuestScreens";
193#ifndef VBOX_WS_MAC
194const char *UIExtraDataDefs::GUI_ShowMiniToolBar = "GUI/ShowMiniToolBar";
195const char *UIExtraDataDefs::GUI_MiniToolBarAutoHide = "GUI/MiniToolBarAutoHide";
196const char *UIExtraDataDefs::GUI_MiniToolBarAlignment = "GUI/MiniToolBarAlignment";
197#endif /* !VBOX_WS_MAC */
198const char *UIExtraDataDefs::GUI_StatusBar_Enabled = "GUI/StatusBar/Enabled";
199const char *UIExtraDataDefs::GUI_StatusBar_ContextMenu_Enabled = "GUI/StatusBar/ContextMenu/Enabled";
200const char *UIExtraDataDefs::GUI_RestrictedStatusBarIndicators = "GUI/RestrictedStatusBarIndicators";
201const char *UIExtraDataDefs::GUI_StatusBar_IndicatorOrder = "GUI/StatusBar/IndicatorOrder";
202#ifdef VBOX_WS_MAC
203const char *UIExtraDataDefs::GUI_RealtimeDockIconUpdateEnabled = "GUI/RealtimeDockIconUpdateEnabled";
204const char *UIExtraDataDefs::GUI_RealtimeDockIconUpdateMonitor = "GUI/RealtimeDockIconUpdateMonitor";
205const char *UIExtraDataDefs::GUI_DockIconDisableOverlay = "GUI/DockIconDisableOverlay";
206#endif /* VBOX_WS_MAC */
207const char *UIExtraDataDefs::GUI_PassCAD = "GUI/PassCAD";
208const char *UIExtraDataDefs::GUI_MouseCapturePolicy = "GUI/MouseCapturePolicy";
209const char *UIExtraDataDefs::GUI_GuruMeditationHandler = "GUI/GuruMeditationHandler";
210const char *UIExtraDataDefs::GUI_HidLedsSync = "GUI/HidLedsSync";
211const char *UIExtraDataDefs::GUI_ScaleFactor = "GUI/ScaleFactor";
212const char *UIExtraDataDefs::GUI_Scaling_Optimization = "GUI/Scaling/Optimization";
213const char *UIExtraDataDefs::GUI_FontScaleFactor = "GUI/FontScaleFactor";
214
215/* Virtual Machine: Session Information Dialog: */
216const char *UIExtraDataDefs::GUI_SessionInformationDialogGeometry = "GUI/SessionInformationDialogGeometry";
217
218/* Guest control UI: */
219const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry";
220const char *UIExtraDataDefs::GUI_GuestControl_FileManagerVisiblePanels = "GUI/GuestControl/FileManagerVisiblePanels";
221const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints";
222const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry";
223
224/* Soft Keyboard: */
225const char *UIExtraDataDefs::GUI_SoftKeyboard_DialogGeometry = "GUI/SoftKeyboardDialogGeometry";
226const char *UIExtraDataDefs::GUI_SoftKeyboard_ColorTheme = "GUI/SoftKeyboardColorTheme";
227const char *UIExtraDataDefs::GUI_SoftKeyboard_SelectedColorTheme = "GUI/SoftKeyboardSelectedColorTheme";
228const char *UIExtraDataDefs::GUI_SoftKeyboard_SelectedLayout = "GUI/SoftKeyboardSelectedLayout";
229const char *UIExtraDataDefs::GUI_SoftKeyboard_Options = "GUI/SoftKeyboardOptions";
230const char *UIExtraDataDefs::GUI_SoftKeyboard_HideNumPad = "GUI/SoftKeyboardHideNumPad";
231const char *UIExtraDataDefs::GUI_SoftKeyboard_HideOSMenuKeys = "GUI/SoftKeyboardHideOSMenuKeys";
232const char *UIExtraDataDefs::GUI_SoftKeyboard_HideMultimediaKeys = "GUI/SoftKeyboardHideMultimediaKeys";
233
234/* File Manager options: */
235const char *UIExtraDataDefs::GUI_GuestControl_FileManagerOptions = "GUI/GuestControl/FileManagerOptions";
236const char *UIExtraDataDefs::GUI_GuestControl_FileManagerListDirectoriesFirst = "ListDirectoriesFirst";
237const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowDeleteConfirmation = "ShowDeleteConfimation";
238const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowHumanReadableSizes = "ShowHumanReadableSizes";
239const char *UIExtraDataDefs::GUI_GuestControl_FileManagerShowHiddenObjects = "ShowHiddenObjects";
240
241/* Virtual Machine: Close dialog: */
242const char *UIExtraDataDefs::GUI_DefaultCloseAction = "GUI/DefaultCloseAction";
243const char *UIExtraDataDefs::GUI_RestrictedCloseActions = "GUI/RestrictedCloseActions";
244const char *UIExtraDataDefs::GUI_LastCloseAction = "GUI/LastCloseAction";
245const char *UIExtraDataDefs::GUI_CloseActionHook = "GUI/CloseActionHook";
246const char *UIExtraDataDefs::GUI_DiscardStateOnPowerOff = "GUI/DiscardStateOnPowerOff";
247
248#ifdef VBOX_WITH_DEBUGGER_GUI
249/* Virtual Machine: Debug UI: */
250const char *UIExtraDataDefs::GUI_Dbg_Enabled = "GUI/Dbg/Enabled";
251const char *UIExtraDataDefs::GUI_Dbg_AutoShow = "GUI/Dbg/AutoShow";
252#endif /* VBOX_WITH_DEBUGGER_GUI */
253
254/* Virtual Machine: Log-viewer: */
255const char *UIExtraDataDefs::GUI_LogWindowGeometry = "GUI/LogWindowGeometry";
256const char *UIExtraDataDefs::GUI_LogViewerOptions = "GUI/LogViewerOptions";
257const char *UIExtraDataDefs::GUI_LogViewerWrapLinesEnabled = "WrapLines";
258const char *UIExtraDataDefs::GUI_LogViewerShowLineNumbersDisabled = "showLineNumbersDisabled";
259const char *UIExtraDataDefs::GUI_LogViewerNoFontStyleName = "noFontStyleName";
260
261/* Help Browser */
262const char *UIExtraDataDefs::GUI_HelpBrowser_LastURLList = "GUI/HelpBrowserLastURLList";
263const char *UIExtraDataDefs::GUI_HelpBrowser_DialogGeometry = "GUI/HelpBrowserDialogGeomety";
264const char *UIExtraDataDefs::GUI_HelpBrowser_Bookmarks = "GUI/HelpBrowserBookmarks";
265const char *UIExtraDataDefs::GUI_HelpBrowser_ZoomPercentage = "GUI/HelpBrowserZoomPercentage";
266
267/* VM Activity Overview: */
268const char *UIExtraDataDefs::GUI_VMActivityOverview_HiddenColumns = "GUI/VMActivityOverviewHiddenColumns";
269const char *UIExtraDataDefs::GUI_VMActivityOverview_ShowAllMachines = "GUI/VMActivityOverviewShowAllMachines";
270
271const char *UIExtraDataDefs::GUI_MediumSelector_DialogGeometry = "GUI/MediumSelector/DialogGeometry";
272
273const int UIExtraDataDefs::iFontScaleMin = 40;
274const int UIExtraDataDefs::iFontScaleMax = 200;
275
276/* Obsolete keys: */
277QMultiMap<QString, QString> UIExtraDataDefs::prepareObsoleteKeysMap()
278{
279 QMultiMap<QString, QString> map;
280 map.insert(GUI_Details_Elements, GUI_DetailsPageBoxes);
281 map.insert(GUI_Details_Elements_Preview_UpdateInterval, GUI_PreviewUpdate);
282 return map;
283}
284QMultiMap<QString, QString> UIExtraDataDefs::g_mapOfObsoleteKeys = UIExtraDataDefs::prepareObsoleteKeysMap();
285
286
287bool UIToolStuff::isTypeOfClass(UIToolType enmType, UIToolClass enmClass)
288{
289 switch (enmClass)
290 {
291 case UIToolClass_Global:
292 {
293 switch (enmType)
294 {
295 case UIToolType_Welcome:
296 case UIToolType_Extensions:
297 case UIToolType_Media:
298 case UIToolType_Network:
299 case UIToolType_Cloud:
300 case UIToolType_CloudConsole:
301 case UIToolType_VMActivityOverview:
302 return true;
303 default:
304 break;
305 }
306 break;
307 }
308 case UIToolClass_Machine:
309 {
310 switch (enmType)
311 {
312 case UIToolType_Details:
313 case UIToolType_Snapshots:
314 case UIToolType_Logs:
315 case UIToolType_VMActivity:
316 case UIToolType_FileManager:
317 return true;
318 default:
319 break;
320 }
321 break;
322 }
323 default:
324 break;
325 }
326 return false;
327}
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