VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h@ 105266

Last change on this file since 105266 was 104642, checked in by vboxsync, 10 months ago

FE/Qt. bugref:9510. Adding an extra data since we may want to see VM exits chart in release builds as well.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 47.6 KB
Line 
1/* $Id: UIExtraDataDefs.h 104642 2024-05-15 13:44:49Z 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#ifndef FEQT_INCLUDED_SRC_extradata_UIExtraDataDefs_h
29#define FEQT_INCLUDED_SRC_extradata_UIExtraDataDefs_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QMap>
36#include <QMetaType>
37#include <QObject>
38
39/* GUI includes: */
40#include "UILibraryDefs.h"
41
42
43/** Typedef for QPair of QStrings. */
44typedef QPair<QString, QString> QIStringPair;
45typedef QList<QIStringPair> QIStringPairList;
46
47
48/** Extra-data namespace. */
49namespace UIExtraDataDefs
50{
51 /** @name General
52 * @{ */
53 /** Holds restricted dialogs. */
54 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedDialogs;
55
56 /** Holds the color theme type. */
57 SHARED_LIBRARY_STUFF extern const char *GUI_ColorTheme;
58 /** @} */
59
60 /** @name Messaging
61 * @{ */
62 /** Holds the list of supressed messages for the Message/Popup center frameworks. */
63 SHARED_LIBRARY_STUFF extern const char *GUI_SuppressMessages;
64 /** Holds the list of messages for the Message/Popup center frameworks with inverted check-box state. */
65 SHARED_LIBRARY_STUFF extern const char *GUI_InvertMessageOption;
66#ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON
67 /** Holds whether successfull notification-progresses should NOT close automatically. */
68 SHARED_LIBRARY_STUFF extern const char *GUI_NotificationCenter_KeepSuccessfullProgresses;
69#endif
70 /** Holds notification-center alignment. */
71 SHARED_LIBRARY_STUFF extern const char *GUI_NotificationCenter_Alignment;
72 /** Holds notification-center order. */
73 SHARED_LIBRARY_STUFF extern const char *GUI_NotificationCenter_Order;
74 /** Holds whether BETA build label should be hidden. */
75 SHARED_LIBRARY_STUFF extern const char *GUI_PreventBetaLabel;
76#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
77 /** Holds version for which user wants to prevent BETA build warning. */
78 SHARED_LIBRARY_STUFF extern const char *GUI_PreventBetaWarning;
79#endif
80 /** @} */
81
82#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
83 /** @name Application Update
84 * @{ */
85 /** Holds whether Application Update functionality enabled. */
86 SHARED_LIBRARY_STUFF extern const char *GUI_PreventApplicationUpdate;
87 /** Holds Application Update data. */
88 SHARED_LIBRARY_STUFF extern const char *GUI_UpdateDate;
89 /** Holds Application Update check counter. */
90 SHARED_LIBRARY_STUFF extern const char *GUI_UpdateCheckCount;
91 /** @} */
92#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
93
94 /** @name Progress
95 * @{ */
96 /** Holds whether legacy progress handling method is requested. */
97 SHARED_LIBRARY_STUFF extern const char *GUI_Progress_LegacyMode;
98 /** @} */
99
100 /** @name Settings
101 * @{ */
102 /** Holds GUI feature list. */
103 SHARED_LIBRARY_STUFF extern const char *GUI_Customizations;
104 /** Holds restricted Global Settings pages. */
105 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedGlobalSettingsPages;
106 /** Holds restricted Machine Settings pages. */
107 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedMachineSettingsPages;
108 /** Holds whether settings are in expert mode. */
109 SHARED_LIBRARY_STUFF extern const char *GUI_Settings_ExpertMode;
110 /** @} */
111
112 /** @name Settings: Language
113 * @{ */
114 /** Holds GUI language ID. */
115 SHARED_LIBRARY_STUFF extern const char *GUI_LanguageID;
116 /** @} */
117
118 /** @name Settings: Display
119 * @{ */
120 /** Holds maximum guest-screen resolution policy/value. */
121 SHARED_LIBRARY_STUFF extern const char *GUI_MaxGuestResolution;
122 /** Holds whether hovered machine-window should be activated. */
123 SHARED_LIBRARY_STUFF extern const char *GUI_ActivateHoveredMachineWindow;
124 /** Holds whether the host scrrn saver is disabled when a vm is running. */
125 SHARED_LIBRARY_STUFF extern const char *GUI_DisableHostScreenSaver;
126 /** @} */
127
128 /** @name Settings: Keyboard
129 * @{ */
130 /** Holds Selector UI shortcut overrides. */
131 SHARED_LIBRARY_STUFF extern const char *GUI_Input_SelectorShortcuts;
132 /** Holds Runtime UI shortcut overrides. */
133 SHARED_LIBRARY_STUFF extern const char *GUI_Input_MachineShortcuts;
134 /** Holds Runtime UI host-key combination. */
135 SHARED_LIBRARY_STUFF extern const char *GUI_Input_HostKeyCombination;
136 /** Holds whether Runtime UI auto-capture is enabled. */
137 SHARED_LIBRARY_STUFF extern const char *GUI_Input_AutoCapture;
138 /** Holds Runtime UI remapped scan codes. */
139 SHARED_LIBRARY_STUFF extern const char *GUI_RemapScancodes;
140 /** @} */
141
142 /** @name Settings: Proxy
143 * @{ */
144 /** Holds VBox proxy settings. */
145 SHARED_LIBRARY_STUFF extern const char *GUI_ProxySettings;
146 /** @} */
147
148 /** @name Settings: Storage
149 * @{ */
150 /** Holds recent folder for hard-drives. */
151 SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderHD;
152 /** Holds recent folder for optical-disks. */
153 SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderCD;
154 /** Holds recent folder for floppy-disks. */
155 SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderFD;
156 /** Holds the list of recently used hard-drives. */
157 SHARED_LIBRARY_STUFF extern const char *GUI_RecentListHD;
158 /** Holds the list of recently used optical-disks. */
159 SHARED_LIBRARY_STUFF extern const char *GUI_RecentListCD;
160 /** Holds the list of recently used floppy-disks. */
161 SHARED_LIBRARY_STUFF extern const char *GUI_RecentListFD;
162 /** @} */
163
164 /** @name Settings: Network
165 * @{ */
166 /** Holds the list of restricted network attachment types. */
167 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedNetworkAttachmentTypes;
168 /** @} */
169
170 /** @name VISO Creator
171 * @{ */
172 /** Holds recent folder for VISO creation content. */
173 SHARED_LIBRARY_STUFF extern const char *GUI_VISOCreator_RecentFolder;
174 SHARED_LIBRARY_STUFF extern const char *GUI_VISOCreator_DialogGeometry;
175 /** @} */
176
177 /** @name VirtualBox Manager
178 * @{ */
179 /** Holds selector-window geometry. */
180 SHARED_LIBRARY_STUFF extern const char *GUI_LastSelectorWindowPosition;
181 /** Holds selector-window splitter hints. */
182 SHARED_LIBRARY_STUFF extern const char *GUI_SplitterSizes;
183 /** Holds whether selector-window tool-bar visible. */
184 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar;
185 /** Holds whether selector-window tool-bar text visible. */
186 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_Text;
187 /** Holds the selector-window machine tools order. */
188 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_MachineTools_Order;
189 /** Holds the selector-window global tools order. */
190 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_GlobalTools_Order;
191 /** Holds the last selected tool set of VirtualBox Manager. */
192 SHARED_LIBRARY_STUFF extern const char *GUI_Tools_LastItemsSelected;
193 /** Holds the list of detached tools of VirtualBox Manager. */
194 SHARED_LIBRARY_STUFF extern const char *GUI_Tools_Detached;
195 /** Holds whether selector-window status-bar visible. */
196 SHARED_LIBRARY_STUFF extern const char *GUI_Statusbar;
197 /** Prefix used by composite extra-data keys,
198 * which holds selector-window chooser-pane' groups definitions. */
199 SHARED_LIBRARY_STUFF extern const char *GUI_GroupDefinitions;
200 /** Holds last item chosen in selector-window chooser-pane. */
201 SHARED_LIBRARY_STUFF extern const char *GUI_LastItemSelected;
202 /** Holds selector-window details-pane' elements. */
203 /// @todo remove GUI_DetailsPageBoxes in 6.2
204 SHARED_LIBRARY_STUFF extern const char *GUI_DetailsPageBoxes;
205 /// @todo remove GUI_PreviewUpdate in 6.2
206 /** Holds selector-window details-pane' preview update interval. */
207 SHARED_LIBRARY_STUFF extern const char *GUI_PreviewUpdate;
208 /** Holds VirtualBox Manager Details-pane elements. */
209 SHARED_LIBRARY_STUFF extern const char *GUI_Details_Elements;
210 /** Holds VirtualBox Manager Details-pane / Preview element update interval. */
211 SHARED_LIBRARY_STUFF extern const char *GUI_Details_Elements_Preview_UpdateInterval;
212 /** @} */
213
214 /** @name Snapshot Manager
215 * @{ */
216 /** Holds whether Snapshot Manager details expanded. */
217 SHARED_LIBRARY_STUFF extern const char *GUI_SnapshotManager_Details_Expanded;
218 /** @} */
219
220 /** @name Virtual Media Manager
221 * @{ */
222 /** Holds whether Virtual Media Manager details expanded. */
223 SHARED_LIBRARY_STUFF extern const char *GUI_VirtualMediaManager_Details_Expanded;
224 /** Holds whether Virtual Media Manager search widget expanded. */
225 SHARED_LIBRARY_STUFF extern const char *GUI_VirtualMediaManager_Search_Widget_Expanded;
226 /** @} */
227
228 /** @name Host Network Manager
229 * @{ */
230 /** Holds whether Host Network Manager details expanded. */
231 SHARED_LIBRARY_STUFF extern const char *GUI_HostNetworkManager_Details_Expanded;
232 /** @} */
233
234 /** @name Cloud Profile Manager
235 * @{ */
236 /** Holds Cloud Profile Manager restrictions. */
237 SHARED_LIBRARY_STUFF extern const char *GUI_CloudProfileManager_Restrictions;
238 /** Holds whether Cloud Profile Manager details expanded. */
239 SHARED_LIBRARY_STUFF extern const char *GUI_CloudProfileManager_Details_Expanded;
240 /** @} */
241
242 /** @name Cloud Console Manager
243 * @{ */
244 /** Holds Cloud Console Manager applications/profiles. */
245 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsoleManager_Application;
246 /** Holds Cloud Console Manager restrictions. */
247 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsoleManager_Restrictions;
248 /** Holds whether Cloud Console Manager details expanded. */
249 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsoleManager_Details_Expanded;
250 /** @} */
251
252 /** @name Cloud Console
253 * @{ */
254 /** Holds Cloud Console public key path. */
255 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsole_PublicKey_Path;
256 /** @} */
257
258#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
259 /** @name Extra-data Manager
260 * @{ */
261 /** Holds extra-data manager geometry. */
262 SHARED_LIBRARY_STUFF extern const char *GUI_ExtraDataManager_Geometry;
263 /** Holds extra-data manager splitter hints. */
264 SHARED_LIBRARY_STUFF extern const char *GUI_ExtraDataManager_SplitterHints;
265 /** @} */
266#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
267
268 /** @name Wizards
269 * @{ */
270 /** Holds wizard types for which descriptions should be hidden. */
271 SHARED_LIBRARY_STUFF extern const char *GUI_HideDescriptionForWizards;
272 /** @} */
273
274 /** @name Virtual Machine
275 * @{ */
276 /** Holds whether machine shouldn't be shown in selector-window chooser-pane. */
277 SHARED_LIBRARY_STUFF extern const char *GUI_HideFromManager;
278 /** Holds whether machine shouldn't be shown in selector-window details-pane. */
279 SHARED_LIBRARY_STUFF extern const char *GUI_HideDetails;
280 /** Holds whether machine reconfiguration disabled. */
281 SHARED_LIBRARY_STUFF extern const char *GUI_PreventReconfiguration;
282 /** Holds whether machine snapshot operations disabled. */
283 SHARED_LIBRARY_STUFF extern const char *GUI_PreventSnapshotOperations;
284 /** Except Mac OS X: Holds redefined machine-window icon names. */
285 SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowIcons;
286#ifndef VBOX_WS_MAC
287 /** Except Mac OS X: Holds redefined machine-window name postfix. */
288 SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowNamePostfix;
289#endif
290 /** Prefix used by composite extra-data keys,
291 * which holds normal machine-window geometry per screen-index. */
292 SHARED_LIBRARY_STUFF extern const char *GUI_LastNormalWindowPosition;
293 /** Prefix used by composite extra-data keys,
294 * which holds scaled machine-window geometry per screen-index. */
295 SHARED_LIBRARY_STUFF extern const char *GUI_LastScaleWindowPosition;
296 /** Holds machine-window geometry maximized state flag. */
297 SHARED_LIBRARY_STUFF extern const char *GUI_Geometry_State_Max;
298#ifndef VBOX_WS_MAC
299 /** Holds Runtime UI menu-bar availability status. */
300 SHARED_LIBRARY_STUFF extern const char *GUI_MenuBar_Enabled;
301#endif
302 /** Holds Runtime UI menu-bar context-menu availability status. */
303 SHARED_LIBRARY_STUFF extern const char *GUI_MenuBar_ContextMenu_Enabled;
304 /** Holds restricted Runtime UI menu types. */
305 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeMenus;
306 /** Holds restricted Runtime UI action types for 'Application' menu. */
307 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeApplicationMenuActions;
308 /** Holds restricted Runtime UI action types for Machine menu. */
309 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeMachineMenuActions;
310 /** Holds restricted Runtime UI action types for View menu. */
311 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeViewMenuActions;
312 /** Holds restricted Runtime UI action types for Input menu. */
313 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeInputMenuActions;
314 /** Holds restricted Runtime UI action types for Devices menu. */
315 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeDevicesMenuActions;
316#ifdef VBOX_WITH_DEBUGGER_GUI
317 /** Holds restricted Runtime UI action types for Debugger menu. */
318 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeDebuggerMenuActions;
319#endif
320#ifdef VBOX_WS_MAC
321 /** Mac OS X: Holds restricted Runtime UI action types for 'Window' menu. */
322 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeWindowMenuActions;
323#endif
324 /** Holds restricted Runtime UI action types for Help menu. */
325 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeHelpMenuActions;
326 /** Holds restricted Runtime UI visual-states. */
327 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedVisualStates;
328 /** Holds whether full screen visual-state is requested. */
329 SHARED_LIBRARY_STUFF extern const char *GUI_Fullscreen;
330 /** Holds whether seamless visual-state is requested. */
331 SHARED_LIBRARY_STUFF extern const char *GUI_Seamless;
332 /** Holds whether scaled visual-state is requested. */
333 SHARED_LIBRARY_STUFF extern const char *GUI_Scale;
334#ifdef VBOX_WS_NIX
335 /** Holds whether legacy full-screen mode is requested. */
336 SHARED_LIBRARY_STUFF extern const char *GUI_Fullscreen_LegacyMode;
337 /** Holds whether internal machine-window names should be unique. */
338 SHARED_LIBRARY_STUFF extern const char *GUI_DistinguishMachineWindowGroups;
339#endif /* VBOX_WS_NIX */
340 /** Holds whether guest-screen auto-resize according machine-window size is enabled. */
341 SHARED_LIBRARY_STUFF extern const char *GUI_AutoresizeGuest;
342 /** Prefix used by composite extra-data keys,
343 * which holds last guest-screen visibility status per screen-index. */
344 SHARED_LIBRARY_STUFF extern const char *GUI_LastVisibilityStatusForGuestScreen;
345 /** Prefix used by composite extra-data keys,
346 * which holds last guest-screen size-hint per screen-index. */
347 SHARED_LIBRARY_STUFF extern const char *GUI_LastGuestSizeHint;
348 /** Prefix used by composite extra-data keys,
349 * which holds host-screen index per guest-screen index. */
350 SHARED_LIBRARY_STUFF extern const char *GUI_VirtualScreenToHostScreen;
351 /** Holds whether automatic mounting/unmounting of guest-screens enabled. */
352 SHARED_LIBRARY_STUFF extern const char *GUI_AutomountGuestScreens;
353#ifndef VBOX_WS_MAC
354 /** Holds whether mini-toolbar is enabled for full and seamless screens. */
355 SHARED_LIBRARY_STUFF extern const char *GUI_ShowMiniToolBar;
356 /** Holds whether mini-toolbar should auto-hide itself. */
357 SHARED_LIBRARY_STUFF extern const char *GUI_MiniToolBarAutoHide;
358 /** Holds mini-toolbar alignment. */
359 SHARED_LIBRARY_STUFF extern const char *GUI_MiniToolBarAlignment;
360#endif /* !VBOX_WS_MAC */
361 /** Holds Runtime UI status-bar availability status. */
362 SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_Enabled;
363 /** Holds Runtime UI status-bar context-menu availability status. */
364 SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_ContextMenu_Enabled;
365 /** Holds restricted Runtime UI status-bar indicators. */
366 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedStatusBarIndicators;
367 /** Holds Runtime UI status-bar indicator order. */
368 SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_IndicatorOrder;
369#ifdef VBOX_WS_MAC
370 /** Mac OS X: Holds whether Dock icon should be updated at runtime. */
371 SHARED_LIBRARY_STUFF extern const char *GUI_RealtimeDockIconUpdateEnabled;
372 /** Mac OS X: Holds guest-screen which Dock icon should reflect at runtime. */
373 SHARED_LIBRARY_STUFF extern const char *GUI_RealtimeDockIconUpdateMonitor;
374 /** Mac OS X: Holds whether Dock icon should have overlay disabled. */
375 SHARED_LIBRARY_STUFF extern const char *GUI_DockIconDisableOverlay;
376#endif /* VBOX_WS_MAC */
377 /** Holds whether machine should pass CAD to guest. */
378 SHARED_LIBRARY_STUFF extern const char *GUI_PassCAD;
379 /** Holds the mouse capture policy. */
380 SHARED_LIBRARY_STUFF extern const char *GUI_MouseCapturePolicy;
381 /** Holds redefined guru-meditation handler type. */
382 SHARED_LIBRARY_STUFF extern const char *GUI_GuruMeditationHandler;
383 /** Holds whether machine should perform HID LEDs synchronization. */
384 SHARED_LIBRARY_STUFF extern const char *GUI_HidLedsSync;
385 /** Holds the scale-factor. */
386 SHARED_LIBRARY_STUFF extern const char *GUI_ScaleFactor;
387 /** Holds the scaling optimization type. */
388 SHARED_LIBRARY_STUFF extern const char *GUI_Scaling_Optimization;
389 /** Holds the font scale factor. */
390 SHARED_LIBRARY_STUFF extern const char *GUI_FontScaleFactor;
391 /** @} */
392
393 /** @name Virtual Machine: Information dialog
394 * @{ */
395 /** Holds information-window geometry. */
396 SHARED_LIBRARY_STUFF extern const char *GUI_SessionInformationDialogGeometry;
397 /** @} */
398
399 /** @name Guest Control UI related data
400 * @{ */
401 extern const char *GUI_GuestControl_FileManagerDialogGeometry;
402 extern const char *GUI_GuestControl_FileManagerVisiblePanels;
403 extern const char *GUI_GuestControl_ProcessControlSplitterHints;
404 extern const char *GUI_GuestControl_ProcessControlDialogGeometry;
405 /** @} */
406
407 /** @name Soft Keyboard related data
408 * @{ */
409 extern const char *GUI_SoftKeyboard_DialogGeometry;
410 extern const char *GUI_SoftKeyboard_ColorTheme;
411 extern const char *GUI_SoftKeyboard_SelectedColorTheme;
412 extern const char *GUI_SoftKeyboard_SelectedLayout;
413 extern const char *GUI_SoftKeyboard_Options;
414 extern const char *GUI_SoftKeyboard_HideNumPad;
415 extern const char *GUI_SoftKeyboard_HideOSMenuKeys;
416 extern const char *GUI_SoftKeyboard_HideMultimediaKeys;
417 /** @} */
418
419 /** @name File Manager options
420 * @{ */
421 extern const char *GUI_GuestControl_FileManagerOptions;
422 extern const char *GUI_GuestControl_FileManagerListDirectoriesFirst;
423 extern const char *GUI_GuestControl_FileManagerShowDeleteConfirmation;
424 extern const char *GUI_GuestControl_FileManagerShowHumanReadableSizes;
425 extern const char *GUI_GuestControl_FileManagerShowHiddenObjects;
426 /** @} */
427
428 /** @name Virtual Machine: Close dialog
429 * @{ */
430 /** Holds default machine close action. */
431 SHARED_LIBRARY_STUFF extern const char *GUI_DefaultCloseAction;
432 /** Holds restricted machine close actions. */
433 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedCloseActions;
434 /** Holds last machine close action. */
435 SHARED_LIBRARY_STUFF extern const char *GUI_LastCloseAction;
436 /** Holds machine close hook script name as simple string. */
437 SHARED_LIBRARY_STUFF extern const char *GUI_CloseActionHook;
438 /** Holds whether machine should discard state on power off. */
439 SHARED_LIBRARY_STUFF extern const char *GUI_DiscardStateOnPowerOff;
440 /** @} */
441
442#ifdef VBOX_WITH_DEBUGGER_GUI
443 /** @name Virtual Machine: Debug UI
444 * @{ */
445 /** Holds whether debugger UI enabled. */
446 SHARED_LIBRARY_STUFF extern const char *GUI_Dbg_Enabled;
447 /** Holds whether debugger UI should be auto-shown. */
448 SHARED_LIBRARY_STUFF extern const char *GUI_Dbg_AutoShow;
449 /** @} */
450#endif /* VBOX_WITH_DEBUGGER_GUI */
451
452 /** @name Virtual Machine: Log-viewer
453 * @{ */
454 /** Holds log-viewer geometry. */
455 SHARED_LIBRARY_STUFF extern const char *GUI_LogWindowGeometry;
456 /** @} */
457 /** @name Virtual Machine: Log-viewer widget options
458 * @{ */
459 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerOptions;
460 /** Holds log-viewer wrap line flag. */
461 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerWrapLinesEnabled;
462 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerShowLineNumbersDisabled;
463 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerNoFontStyleName;
464 /** @} */
465
466 /** @name Help Browser
467 * @{ */
468 SHARED_LIBRARY_STUFF extern const char *GUI_HelpBrowser_LastURLList;
469 SHARED_LIBRARY_STUFF extern const char *GUI_HelpBrowser_DialogGeometry;
470 SHARED_LIBRARY_STUFF extern const char *GUI_HelpBrowser_Bookmarks;
471 SHARED_LIBRARY_STUFF extern const char *GUI_HelpBrowser_ZoomPercentage;
472 /** @} */
473
474 /** @name Manager UI: VM Activity Monitor and Overview Related stuff
475 * @{ */
476 SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityOverview_HiddenColumns;
477 SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityOverview_ShowAllMachines;
478 SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityMonitor_DataSeriesColors;
479 SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityMonitor_ShowVMExits;
480 /** @} */
481
482 /** @name Medium Selector stuff
483 * @{ */
484 SHARED_LIBRARY_STUFF extern const char *GUI_MediumSelector_DialogGeometry;
485 /** @} */
486
487 /** @name Old key support stuff.
488 * @{ */
489 /** Prepares obsolete keys map. */
490 SHARED_LIBRARY_STUFF QMultiMap<QString, QString> prepareObsoleteKeysMap();
491
492 /** Holds the obsolete keys map. */
493 SHARED_LIBRARY_STUFF extern QMultiMap<QString, QString> g_mapOfObsoleteKeys;
494 /** @} */
495
496 /** @name Font scaling factor min-max.
497 * @{ */
498 extern const int iFontScaleMin;
499 extern const int iFontScaleMax;
500 /** @} */
501}
502
503
504/** Extra-data meta definitions. */
505class SHARED_LIBRARY_STUFF UIExtraDataMetaDefs : public QObject
506{
507 Q_OBJECT;
508
509 /* Menu related stuff: */
510 Q_ENUMS(MenuType);
511 Q_ENUMS(MenuApplicationActionType);
512 Q_ENUMS(MenuHelpActionType);
513 Q_ENUMS(RuntimeMenuMachineActionType);
514 Q_ENUMS(RuntimeMenuViewActionType);
515 Q_ENUMS(RuntimeMenuInputActionType);
516 Q_ENUMS(RuntimeMenuDevicesActionType);
517#ifdef VBOX_WITH_DEBUGGER_GUI
518 Q_ENUMS(RuntimeMenuDebuggerActionType);
519#endif
520#ifdef VBOX_WS_MAC
521 Q_ENUMS(MenuWindowActionType);
522#endif
523
524public:
525
526 /** Common UI: Dialog types. */
527 enum DialogType
528 {
529 DialogType_Invalid = 0,
530 DialogType_VISOCreator = RT_BIT(0),
531 DialogType_BootFailure = RT_BIT(1),
532 DialogType_All = 0xFFFF
533 };
534 Q_ENUM(DialogType);
535
536 /** Common UI: Menu types. */
537 enum MenuType
538 {
539 MenuType_Invalid = 0,
540 MenuType_Application = RT_BIT(0),
541 MenuType_Machine = RT_BIT(1),
542 MenuType_View = RT_BIT(2),
543 MenuType_Input = RT_BIT(3),
544 MenuType_Devices = RT_BIT(4),
545#ifdef VBOX_WITH_DEBUGGER_GUI
546 MenuType_Debug = RT_BIT(5),
547#endif
548#ifdef VBOX_WS_MAC
549 MenuType_Window = RT_BIT(6),
550#endif
551 MenuType_Help = RT_BIT(7),
552 MenuType_All = 0xFF
553 };
554
555 /** Menu "Application": Action types. */
556 enum MenuApplicationActionType
557 {
558 MenuApplicationActionType_Invalid = 0,
559#ifdef VBOX_WS_MAC
560 MenuApplicationActionType_About = RT_BIT(0),
561#endif
562 MenuApplicationActionType_Preferences = RT_BIT(1),
563#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
564 MenuApplicationActionType_NetworkAccessManager = RT_BIT(2),
565 MenuApplicationActionType_CheckForUpdates = RT_BIT(3),
566#endif
567 MenuApplicationActionType_ResetWarnings = RT_BIT(4),
568 MenuApplicationActionType_Close = RT_BIT(5),
569 MenuApplicationActionType_All = 0xFFFF
570 };
571
572 /** Menu "Help": Action types. */
573 enum MenuHelpActionType
574 {
575 MenuHelpActionType_Invalid = 0,
576 MenuHelpActionType_Contents = RT_BIT(0),
577 MenuHelpActionType_WebSite = RT_BIT(1),
578 MenuHelpActionType_BugTracker = RT_BIT(2),
579 MenuHelpActionType_Forums = RT_BIT(3),
580 MenuHelpActionType_Oracle = RT_BIT(4),
581 MenuHelpActionType_OnlineDocumentation = RT_BIT(5),
582#ifndef VBOX_WS_MAC
583 MenuHelpActionType_About = RT_BIT(6),
584#endif
585 MenuHelpActionType_All = 0xFFFF
586 };
587
588 /** Runtime UI: Menu "Machine": Action types. */
589 enum RuntimeMenuMachineActionType
590 {
591 RuntimeMenuMachineActionType_Invalid = 0,
592 RuntimeMenuMachineActionType_SettingsDialog = RT_BIT(0),
593 RuntimeMenuMachineActionType_TakeSnapshot = RT_BIT(1),
594 RuntimeMenuMachineActionType_InformationDialog = RT_BIT(2),
595 RuntimeMenuMachineActionType_FileManagerDialog = RT_BIT(3),
596 RuntimeMenuMachineActionType_GuestProcessControlDialog = RT_BIT(4),
597 RuntimeMenuMachineActionType_Pause = RT_BIT(5),
598 RuntimeMenuMachineActionType_Reset = RT_BIT(6),
599 RuntimeMenuMachineActionType_Detach = RT_BIT(7),
600 RuntimeMenuMachineActionType_SaveState = RT_BIT(8),
601 RuntimeMenuMachineActionType_Shutdown = RT_BIT(9),
602 RuntimeMenuMachineActionType_PowerOff = RT_BIT(10),
603 RuntimeMenuMachineActionType_LogDialog = RT_BIT(11),
604 RuntimeMenuMachineActionType_Nothing = RT_BIT(12),
605 RuntimeMenuMachineActionType_All = 0xFFFF
606 };
607
608 /** Runtime UI: Menu "View": Action types. */
609 enum RuntimeMenuViewActionType
610 {
611 RuntimeMenuViewActionType_Invalid = 0,
612 RuntimeMenuViewActionType_Fullscreen = RT_BIT(0),
613 RuntimeMenuViewActionType_Seamless = RT_BIT(1),
614 RuntimeMenuViewActionType_Scale = RT_BIT(2),
615#ifndef VBOX_WS_MAC
616 RuntimeMenuViewActionType_MinimizeWindow = RT_BIT(3),
617#endif
618 RuntimeMenuViewActionType_AdjustWindow = RT_BIT(4),
619 RuntimeMenuViewActionType_GuestAutoresize = RT_BIT(5),
620 RuntimeMenuViewActionType_TakeScreenshot = RT_BIT(6),
621 RuntimeMenuViewActionType_Recording = RT_BIT(7),
622 RuntimeMenuViewActionType_RecordingSettings = RT_BIT(8),
623 RuntimeMenuViewActionType_StartRecording = RT_BIT(9),
624 RuntimeMenuViewActionType_VRDEServer = RT_BIT(10),
625 RuntimeMenuViewActionType_MenuBar = RT_BIT(11),
626 RuntimeMenuViewActionType_MenuBarSettings = RT_BIT(12),
627#ifndef VBOX_WS_MAC
628 RuntimeMenuViewActionType_ToggleMenuBar = RT_BIT(13),
629#endif
630 RuntimeMenuViewActionType_StatusBar = RT_BIT(14),
631 RuntimeMenuViewActionType_StatusBarSettings = RT_BIT(15),
632 RuntimeMenuViewActionType_ToggleStatusBar = RT_BIT(16),
633 RuntimeMenuViewActionType_Resize = RT_BIT(17),
634 RuntimeMenuViewActionType_Remap = RT_BIT(18),
635 RuntimeMenuViewActionType_Rescale = RT_BIT(19),
636 RuntimeMenuViewActionType_All = 0xFFFF
637 };
638
639 /** Runtime UI: Menu "Input": Action types. */
640 enum RuntimeMenuInputActionType
641 {
642 RuntimeMenuInputActionType_Invalid = 0,
643 RuntimeMenuInputActionType_Keyboard = RT_BIT(0),
644 RuntimeMenuInputActionType_KeyboardSettings = RT_BIT(1),
645 RuntimeMenuInputActionType_SoftKeyboard = RT_BIT(2),
646 RuntimeMenuInputActionType_TypeCAD = RT_BIT(3),
647#ifdef VBOX_WS_NIX
648 RuntimeMenuInputActionType_TypeCABS = RT_BIT(4),
649#endif
650 RuntimeMenuInputActionType_TypeCtrlBreak = RT_BIT(5),
651 RuntimeMenuInputActionType_TypeInsert = RT_BIT(6),
652 RuntimeMenuInputActionType_TypePrintScreen = RT_BIT(7),
653 RuntimeMenuInputActionType_TypeAltPrintScreen = RT_BIT(8),
654 RuntimeMenuInputActionType_Mouse = RT_BIT(9),
655 RuntimeMenuInputActionType_MouseIntegration = RT_BIT(10),
656 RuntimeMenuInputActionType_TypeHostKeyCombo = RT_BIT(11),
657 RuntimeMenuInputActionType_All = 0xFFFF
658 };
659
660 /** Runtime UI: Menu "Devices": Action types. */
661 enum RuntimeMenuDevicesActionType
662 {
663 RuntimeMenuDevicesActionType_Invalid = 0,
664 RuntimeMenuDevicesActionType_HardDrives = RT_BIT(0),
665 RuntimeMenuDevicesActionType_HardDrivesSettings = RT_BIT(1),
666 RuntimeMenuDevicesActionType_OpticalDevices = RT_BIT(2),
667 RuntimeMenuDevicesActionType_FloppyDevices = RT_BIT(3),
668 RuntimeMenuDevicesActionType_Audio = RT_BIT(4),
669 RuntimeMenuDevicesActionType_AudioOutput = RT_BIT(5),
670 RuntimeMenuDevicesActionType_AudioInput = RT_BIT(6),
671 RuntimeMenuDevicesActionType_Network = RT_BIT(7),
672 RuntimeMenuDevicesActionType_NetworkSettings = RT_BIT(8),
673 RuntimeMenuDevicesActionType_USBDevices = RT_BIT(9),
674 RuntimeMenuDevicesActionType_USBDevicesSettings = RT_BIT(10),
675 RuntimeMenuDevicesActionType_WebCams = RT_BIT(11),
676 RuntimeMenuDevicesActionType_SharedClipboard = RT_BIT(12),
677 RuntimeMenuDevicesActionType_DragAndDrop = RT_BIT(13),
678 RuntimeMenuDevicesActionType_SharedFolders = RT_BIT(14),
679 RuntimeMenuDevicesActionType_SharedFoldersSettings = RT_BIT(15),
680 RuntimeMenuDevicesActionType_InsertGuestAdditionsDisk = RT_BIT(16),
681 RuntimeMenuDevicesActionType_UpgradeGuestAdditions = RT_BIT(17),
682 RuntimeMenuDevicesActionType_Nothing = RT_BIT(18),
683 RuntimeMenuDevicesActionType_All = 0xFFFF
684 };
685
686#ifdef VBOX_WITH_DEBUGGER_GUI
687 /** Runtime UI: Menu "Debugger": Action types. */
688 enum RuntimeMenuDebuggerActionType
689 {
690 RuntimeMenuDebuggerActionType_Invalid = 0,
691 RuntimeMenuDebuggerActionType_Statistics = RT_BIT(0),
692 RuntimeMenuDebuggerActionType_CommandLine = RT_BIT(1),
693 RuntimeMenuDebuggerActionType_Logging = RT_BIT(2),
694 RuntimeMenuDebuggerActionType_GuestControlConsole = RT_BIT(3),
695 RuntimeMenuDebuggerActionType_All = 0xFFFF
696 };
697#endif /* VBOX_WITH_DEBUGGER_GUI */
698
699#ifdef VBOX_WS_MAC
700 /** Menu "Window": Action types. */
701 enum MenuWindowActionType
702 {
703 MenuWindowActionType_Invalid = 0,
704 MenuWindowActionType_Minimize = RT_BIT(0),
705 MenuWindowActionType_Switch = RT_BIT(1),
706 MenuWindowActionType_All = 0xFFFF
707 };
708#endif /* VBOX_WS_MAC */
709
710
711 /** VirtualBox Manager UI: Details element: "General" option types. */
712 enum DetailsElementOptionTypeGeneral
713 {
714 DetailsElementOptionTypeGeneral_Invalid = 0,
715 DetailsElementOptionTypeGeneral_Name = RT_BIT(0),
716 DetailsElementOptionTypeGeneral_OS = RT_BIT(1),
717 DetailsElementOptionTypeGeneral_Location = RT_BIT(2),
718 DetailsElementOptionTypeGeneral_Groups = RT_BIT(3),
719 DetailsElementOptionTypeGeneral_Default = 0xFFFB
720 };
721 Q_ENUM(DetailsElementOptionTypeGeneral);
722
723 /** VirtualBox Manager UI: Details element: "System" option types. */
724 enum DetailsElementOptionTypeSystem
725 {
726 DetailsElementOptionTypeSystem_Invalid = 0,
727 DetailsElementOptionTypeSystem_RAM = RT_BIT(0),
728 DetailsElementOptionTypeSystem_CPUCount = RT_BIT(1),
729 DetailsElementOptionTypeSystem_CPUExecutionCap = RT_BIT(2),
730 DetailsElementOptionTypeSystem_BootOrder = RT_BIT(3),
731 DetailsElementOptionTypeSystem_ChipsetType = RT_BIT(4),
732 DetailsElementOptionTypeSystem_TpmType = RT_BIT(5),
733 DetailsElementOptionTypeSystem_Firmware = RT_BIT(6),
734 DetailsElementOptionTypeSystem_SecureBoot = RT_BIT(7),
735 DetailsElementOptionTypeSystem_Acceleration = RT_BIT(8),
736 DetailsElementOptionTypeSystem_Default = 0xFFFF
737 };
738 Q_ENUM(DetailsElementOptionTypeSystem);
739
740 /** VirtualBox Manager UI: Details element: "Display" option types. */
741 enum DetailsElementOptionTypeDisplay
742 {
743 DetailsElementOptionTypeDisplay_Invalid = 0,
744 DetailsElementOptionTypeDisplay_VRAM = RT_BIT(0),
745 DetailsElementOptionTypeDisplay_ScreenCount = RT_BIT(1),
746 DetailsElementOptionTypeDisplay_ScaleFactor = RT_BIT(2),
747 DetailsElementOptionTypeDisplay_GraphicsController = RT_BIT(3),
748 DetailsElementOptionTypeDisplay_Acceleration = RT_BIT(4),
749 DetailsElementOptionTypeDisplay_VRDE = RT_BIT(5),
750 DetailsElementOptionTypeDisplay_Recording = RT_BIT(6),
751 DetailsElementOptionTypeDisplay_Default = 0xFFFF
752 };
753 Q_ENUM(DetailsElementOptionTypeDisplay);
754
755 /** VirtualBox Manager UI: Details element: "Storage" option types. */
756 enum DetailsElementOptionTypeStorage
757 {
758 DetailsElementOptionTypeStorage_Invalid = 0,
759 DetailsElementOptionTypeStorage_HardDisks = RT_BIT(0),
760 DetailsElementOptionTypeStorage_OpticalDevices = RT_BIT(1),
761 DetailsElementOptionTypeStorage_FloppyDevices = RT_BIT(2),
762 DetailsElementOptionTypeStorage_Default = 0xFFFF
763 };
764 Q_ENUM(DetailsElementOptionTypeStorage);
765
766 /** VirtualBox Manager UI: Details element: "Audio" option types. */
767 enum DetailsElementOptionTypeAudio
768 {
769 DetailsElementOptionTypeAudio_Invalid = 0,
770 DetailsElementOptionTypeAudio_Driver = RT_BIT(0),
771 DetailsElementOptionTypeAudio_Controller = RT_BIT(1),
772 DetailsElementOptionTypeAudio_IO = RT_BIT(2),
773 DetailsElementOptionTypeAudio_Default = 0xFFFF
774 };
775 Q_ENUM(DetailsElementOptionTypeAudio);
776
777 /** VirtualBox Manager UI: Details element: "Network" option types. */
778 enum DetailsElementOptionTypeNetwork
779 {
780 DetailsElementOptionTypeNetwork_Invalid = 0,
781 DetailsElementOptionTypeNetwork_NotAttached = RT_BIT(0),
782 DetailsElementOptionTypeNetwork_NAT = RT_BIT(1),
783 DetailsElementOptionTypeNetwork_BridgedAdapter = RT_BIT(2),
784 DetailsElementOptionTypeNetwork_InternalNetwork = RT_BIT(3),
785 DetailsElementOptionTypeNetwork_HostOnlyAdapter = RT_BIT(4),
786 DetailsElementOptionTypeNetwork_GenericDriver = RT_BIT(5),
787 DetailsElementOptionTypeNetwork_NATNetwork = RT_BIT(6),
788#ifdef VBOX_WITH_CLOUD_NET
789 DetailsElementOptionTypeNetwork_CloudNetwork = RT_BIT(7),
790#endif /* VBOX_WITH_CLOUD_NET */
791#ifdef VBOX_WITH_VMNET
792 DetailsElementOptionTypeNetwork_HostOnlyNetwork = RT_BIT(8),
793#endif /* VBOX_WITH_VMNET */
794 DetailsElementOptionTypeNetwork_Default = 0xFFFF
795 };
796 Q_ENUM(DetailsElementOptionTypeNetwork);
797
798 /** VirtualBox Manager UI: Details element: "Serial" option types. */
799 enum DetailsElementOptionTypeSerial
800 {
801 DetailsElementOptionTypeSerial_Invalid = 0,
802 DetailsElementOptionTypeSerial_Disconnected = RT_BIT(0),
803 DetailsElementOptionTypeSerial_HostPipe = RT_BIT(1),
804 DetailsElementOptionTypeSerial_HostDevice = RT_BIT(2),
805 DetailsElementOptionTypeSerial_RawFile = RT_BIT(3),
806 DetailsElementOptionTypeSerial_TCP = RT_BIT(4),
807 DetailsElementOptionTypeSerial_Default = 0xFFFF
808 };
809 Q_ENUM(DetailsElementOptionTypeSerial);
810
811 /** VirtualBox Manager UI: Details element: "USB" option types. */
812 enum DetailsElementOptionTypeUsb
813 {
814 DetailsElementOptionTypeUsb_Invalid = 0,
815 DetailsElementOptionTypeUsb_Controller = RT_BIT(0),
816 DetailsElementOptionTypeUsb_DeviceFilters = RT_BIT(1),
817 DetailsElementOptionTypeUsb_Default = 0xFFFF
818 };
819 Q_ENUM(DetailsElementOptionTypeUsb);
820
821 /** VirtualBox Manager UI: Details element: "SharedFolders" option types. */
822 enum DetailsElementOptionTypeSharedFolders
823 {
824 DetailsElementOptionTypeSharedFolders_Invalid = 0,
825 DetailsElementOptionTypeSharedFolders_Default = 0xFFFF
826 };
827 Q_ENUM(DetailsElementOptionTypeSharedFolders);
828
829 /** VirtualBox Manager UI: Details element: "UserInterface" option types. */
830 enum DetailsElementOptionTypeUserInterface
831 {
832 DetailsElementOptionTypeUserInterface_Invalid = 0,
833 DetailsElementOptionTypeUserInterface_VisualState = RT_BIT(0),
834 DetailsElementOptionTypeUserInterface_MenuBar = RT_BIT(1),
835 DetailsElementOptionTypeUserInterface_StatusBar = RT_BIT(2),
836 DetailsElementOptionTypeUserInterface_MiniToolbar = RT_BIT(3),
837 DetailsElementOptionTypeUserInterface_Default = 0xFFFF
838 };
839 Q_ENUM(DetailsElementOptionTypeUserInterface);
840
841 /** VirtualBox Manager UI: Details element: "Description" option types. */
842 enum DetailsElementOptionTypeDescription
843 {
844 DetailsElementOptionTypeDescription_Invalid = 0,
845 DetailsElementOptionTypeDescription_Default = 0xFFFF
846 };
847 Q_ENUM(DetailsElementOptionTypeDescription);
848};
849
850
851/** Common UI: GUI feature types. */
852enum GUIFeatureType
853{
854 GUIFeatureType_None = 0,
855 GUIFeatureType_NoSelector = RT_BIT(0),
856#ifdef VBOX_WS_MAC
857 GUIFeatureType_NoUserElements = RT_BIT(1),
858#else
859 GUIFeatureType_NoMenuBar = RT_BIT(1),
860#endif
861 GUIFeatureType_NoStatusBar = RT_BIT(2),
862 GUIFeatureType_All = 0xFF
863};
864
865
866/** Common UI: Global settings page types. */
867enum GlobalSettingsPageType
868{
869 GlobalSettingsPageType_Invalid,
870 GlobalSettingsPageType_General,
871 GlobalSettingsPageType_Input,
872#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
873 GlobalSettingsPageType_Update,
874#endif
875 GlobalSettingsPageType_Language,
876 GlobalSettingsPageType_Display,
877#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
878 GlobalSettingsPageType_Proxy,
879#endif
880 GlobalSettingsPageType_Interface,
881 GlobalSettingsPageType_Max
882};
883Q_DECLARE_METATYPE(GlobalSettingsPageType);
884
885
886/** Common UI: Machine settings page types. */
887enum MachineSettingsPageType
888{
889 MachineSettingsPageType_Invalid,
890 MachineSettingsPageType_General,
891 MachineSettingsPageType_System,
892 MachineSettingsPageType_Display,
893 MachineSettingsPageType_Storage,
894 MachineSettingsPageType_Audio,
895 MachineSettingsPageType_Network,
896 MachineSettingsPageType_Ports,
897 MachineSettingsPageType_Serial,
898 MachineSettingsPageType_USB,
899 MachineSettingsPageType_SF,
900 MachineSettingsPageType_Interface,
901 MachineSettingsPageType_Max
902};
903Q_DECLARE_METATYPE(MachineSettingsPageType);
904
905
906/** Common UI: Shared Folder types. */
907enum UISharedFolderType
908{
909 UISharedFolderType_Machine,
910 UISharedFolderType_Console
911};
912
913
914/** Remote mode types. */
915enum UIRemoteMode
916{
917 UIRemoteMode_Any,
918 UIRemoteMode_On,
919 UIRemoteMode_Off
920};
921Q_DECLARE_METATYPE(UIRemoteMode);
922
923
924/** Common UI: Wizard types. */
925enum WizardType
926{
927 WizardType_Invalid,
928 WizardType_NewVM,
929 WizardType_CloneVM,
930 WizardType_ExportAppliance,
931 WizardType_ImportAppliance,
932 WizardType_NewCloudVM,
933 WizardType_AddCloudVM,
934 WizardType_NewVD,
935 WizardType_CloneVD
936};
937
938
939/** Common UI: Wizard modes. */
940enum WizardMode
941{
942 WizardMode_Auto,
943 WizardMode_Basic,
944 WizardMode_Expert
945};
946
947
948/** Common UI: Color Theme types. */
949enum UIColorThemeType
950{
951 UIColorThemeType_Auto,
952 UIColorThemeType_Light,
953 UIColorThemeType_Dark,
954};
955Q_DECLARE_METATYPE(UIColorThemeType);
956
957
958/** Tool item classes. */
959enum UIToolClass
960{
961 UIToolClass_Invalid,
962 UIToolClass_Global,
963 UIToolClass_Machine
964};
965
966
967/** Tool item types. */
968enum UIToolType
969{
970 UIToolType_Invalid,
971 /* Global types: */
972 UIToolType_Welcome,
973 UIToolType_Extensions,
974 UIToolType_Media,
975 UIToolType_Network,
976 UIToolType_Cloud,
977 UIToolType_CloudConsole,
978 UIToolType_VMActivityOverview,
979 /* Machine types: */
980 UIToolType_Error,
981 UIToolType_Details,
982 UIToolType_Snapshots,
983 UIToolType_Logs,
984 UIToolType_VMActivity,
985 UIToolType_FileManager
986};
987Q_DECLARE_METATYPE(UIToolType);
988
989
990/** Contains stuff related to tools handling. */
991namespace UIToolStuff
992{
993 /** Returns whether passed @a enmType is of passed @a enmClass. */
994 SHARED_LIBRARY_STUFF bool isTypeOfClass(UIToolType enmType, UIToolClass enmClass);
995}
996
997
998/** Selector UI: Details-element types. */
999enum DetailsElementType
1000{
1001 DetailsElementType_Invalid,
1002 DetailsElementType_General,
1003 DetailsElementType_System,
1004 DetailsElementType_Preview,
1005 DetailsElementType_Display,
1006 DetailsElementType_Storage,
1007 DetailsElementType_Audio,
1008 DetailsElementType_Network,
1009 DetailsElementType_Serial,
1010 DetailsElementType_USB,
1011 DetailsElementType_SF,
1012 DetailsElementType_UI,
1013 DetailsElementType_Description,
1014 DetailsElementType_Max
1015};
1016Q_DECLARE_METATYPE(DetailsElementType);
1017
1018
1019/** Selector UI: Preview update interval types. */
1020enum PreviewUpdateIntervalType
1021{
1022 PreviewUpdateIntervalType_Disabled,
1023 PreviewUpdateIntervalType_500ms,
1024 PreviewUpdateIntervalType_1000ms,
1025 PreviewUpdateIntervalType_2000ms,
1026 PreviewUpdateIntervalType_5000ms,
1027 PreviewUpdateIntervalType_10000ms,
1028 PreviewUpdateIntervalType_Max
1029};
1030
1031
1032/** Selector UI: Disk encryption cipher types. */
1033enum UIDiskEncryptionCipherType
1034{
1035 UIDiskEncryptionCipherType_Unchanged,
1036 UIDiskEncryptionCipherType_XTS256,
1037 UIDiskEncryptionCipherType_XTS128,
1038 UIDiskEncryptionCipherType_Max
1039};
1040Q_DECLARE_METATYPE(UIDiskEncryptionCipherType);
1041
1042
1043/** Runtime UI: Visual-state types. */
1044enum UIVisualStateType
1045{
1046 UIVisualStateType_Invalid = 0,
1047 UIVisualStateType_Normal = RT_BIT(0),
1048 UIVisualStateType_Fullscreen = RT_BIT(1),
1049 UIVisualStateType_Seamless = RT_BIT(2),
1050 UIVisualStateType_Scale = RT_BIT(3),
1051 UIVisualStateType_All = 0xFF
1052};
1053Q_DECLARE_METATYPE(UIVisualStateType);
1054
1055
1056/** Runtime UI: Indicator types. */
1057enum IndicatorType
1058{
1059 IndicatorType_Invalid,
1060 IndicatorType_HardDisks,
1061 IndicatorType_OpticalDisks,
1062 IndicatorType_FloppyDisks,
1063 IndicatorType_Audio,
1064 IndicatorType_Network,
1065 IndicatorType_USB,
1066 IndicatorType_SharedFolders,
1067 IndicatorType_Display,
1068 IndicatorType_Recording,
1069 IndicatorType_Features,
1070 IndicatorType_Mouse,
1071 IndicatorType_Keyboard,
1072 IndicatorType_KeyboardExtension,
1073 IndicatorType_Max
1074};
1075Q_DECLARE_METATYPE(IndicatorType);
1076
1077
1078/** Runtime UI: Machine close actions. */
1079enum MachineCloseAction
1080{
1081 MachineCloseAction_Invalid = 0,
1082 MachineCloseAction_Detach = RT_BIT(0),
1083 MachineCloseAction_SaveState = RT_BIT(1),
1084 MachineCloseAction_Shutdown = RT_BIT(2),
1085 MachineCloseAction_PowerOff = RT_BIT(3),
1086 MachineCloseAction_PowerOff_RestoringSnapshot = RT_BIT(4),
1087 MachineCloseAction_All = 0xFF
1088};
1089Q_DECLARE_METATYPE(MachineCloseAction);
1090
1091
1092/** Runtime UI: Mouse capture policy types. */
1093enum MouseCapturePolicy
1094{
1095 MouseCapturePolicy_Default,
1096 MouseCapturePolicy_HostComboOnly,
1097 MouseCapturePolicy_Disabled
1098};
1099
1100
1101/** Runtime UI: Guru Meditation handler types. */
1102enum GuruMeditationHandlerType
1103{
1104 GuruMeditationHandlerType_Default,
1105 GuruMeditationHandlerType_PowerOff,
1106 GuruMeditationHandlerType_Ignore
1107};
1108
1109
1110/** Runtime UI: Scaling optimization types. */
1111enum ScalingOptimizationType
1112{
1113 ScalingOptimizationType_None,
1114 ScalingOptimizationType_Performance
1115};
1116
1117
1118#ifndef VBOX_WS_MAC
1119/** Runtime UI: Mini-toolbar alignment. */
1120enum MiniToolbarAlignment
1121{
1122 MiniToolbarAlignment_Disabled,
1123 MiniToolbarAlignment_Bottom,
1124 MiniToolbarAlignment_Top
1125};
1126#endif /* !VBOX_WS_MAC */
1127
1128
1129/** Runtime UI: Information-element types. */
1130enum InformationElementType
1131{
1132 InformationElementType_Invalid,
1133 InformationElementType_General,
1134 InformationElementType_System,
1135 InformationElementType_Preview,
1136 InformationElementType_Display,
1137 InformationElementType_Storage,
1138 InformationElementType_Audio,
1139 InformationElementType_Network,
1140 InformationElementType_Serial,
1141 InformationElementType_USB,
1142 InformationElementType_SharedFolders,
1143 InformationElementType_UI,
1144 InformationElementType_Description,
1145 InformationElementType_RuntimeAttributes,
1146 InformationElementType_StorageStatistics,
1147 InformationElementType_NetworkStatistics
1148};
1149Q_DECLARE_METATYPE(InformationElementType);
1150
1151
1152/** Runtime UI: Maximum guest-screen size policy types.
1153 * @note This policy determines which guest-screen sizes we wish to
1154 * handle. We also accept anything smaller than the current size. */
1155enum MaximumGuestScreenSizePolicy
1156{
1157 /** Anything at all. */
1158 MaximumGuestScreenSizePolicy_Any,
1159 /** Anything up to a fixed size. */
1160 MaximumGuestScreenSizePolicy_Fixed,
1161 /** Anything up to host-screen available space. */
1162 MaximumGuestScreenSizePolicy_Automatic
1163};
1164Q_DECLARE_METATYPE(MaximumGuestScreenSizePolicy);
1165
1166
1167/** Manager UI: VM Activity Overview Column types.
1168 * @note The first element must be 0 and the rest must be consecutive */
1169enum VMActivityOverviewColumn
1170{
1171 VMActivityOverviewColumn_Name = 0,
1172 VMActivityOverviewColumn_CPUGuestLoad,
1173 VMActivityOverviewColumn_CPUVMMLoad,
1174 VMActivityOverviewColumn_RAMUsedAndTotal,
1175 VMActivityOverviewColumn_RAMUsedPercentage,
1176 VMActivityOverviewColumn_NetworkUpRate,
1177 VMActivityOverviewColumn_NetworkDownRate,
1178 VMActivityOverviewColumn_NetworkUpTotal,
1179 VMActivityOverviewColumn_NetworkDownTotal,
1180 VMActivityOverviewColumn_DiskIOReadRate,
1181 VMActivityOverviewColumn_DiskIOWriteRate,
1182 VMActivityOverviewColumn_DiskIOReadTotal,
1183 VMActivityOverviewColumn_DiskIOWriteTotal,
1184 VMActivityOverviewColumn_VMExits,
1185 VMActivityOverviewColumn_Max
1186};
1187
1188#endif /* !FEQT_INCLUDED_SRC_extradata_UIExtraDataDefs_h */
Note: See TracBrowser for help on using the repository browser.

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