VirtualBox

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

Last change on this file was 103704, checked in by vboxsync, 3 months ago

FE/Qt: Get rid of few iprt includes around whole the GUI.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 47.4 KB
Line 
1/* $Id: UIExtraDataDefs.h 103704 2024-03-06 15:15: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#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 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 /** @} */
479
480 /** @name Medium Selector stuff
481 * @{ */
482 SHARED_LIBRARY_STUFF extern const char *GUI_MediumSelector_DialogGeometry;
483 /** @} */
484
485 /** @name Old key support stuff.
486 * @{ */
487 /** Prepares obsolete keys map. */
488 SHARED_LIBRARY_STUFF QMultiMap<QString, QString> prepareObsoleteKeysMap();
489
490 /** Holds the obsolete keys map. */
491 SHARED_LIBRARY_STUFF extern QMultiMap<QString, QString> g_mapOfObsoleteKeys;
492 /** @} */
493
494 /** @name Font scaling factor min-max.
495 * @{ */
496 extern const int iFontScaleMin;
497 extern const int iFontScaleMax;
498 /** @} */
499}
500
501
502/** Extra-data meta definitions. */
503class SHARED_LIBRARY_STUFF UIExtraDataMetaDefs : public QObject
504{
505 Q_OBJECT;
506
507 /* Menu related stuff: */
508 Q_ENUMS(MenuType);
509 Q_ENUMS(MenuApplicationActionType);
510 Q_ENUMS(MenuHelpActionType);
511 Q_ENUMS(RuntimeMenuMachineActionType);
512 Q_ENUMS(RuntimeMenuViewActionType);
513 Q_ENUMS(RuntimeMenuInputActionType);
514 Q_ENUMS(RuntimeMenuDevicesActionType);
515#ifdef VBOX_WITH_DEBUGGER_GUI
516 Q_ENUMS(RuntimeMenuDebuggerActionType);
517#endif
518#ifdef VBOX_WS_MAC
519 Q_ENUMS(MenuWindowActionType);
520#endif
521
522public:
523
524 /** Common UI: Dialog types. */
525 enum DialogType
526 {
527 DialogType_Invalid = 0,
528 DialogType_VISOCreator = RT_BIT(0),
529 DialogType_BootFailure = RT_BIT(1),
530 DialogType_All = 0xFFFF
531 };
532 Q_ENUM(DialogType);
533
534 /** Common UI: Menu types. */
535 enum MenuType
536 {
537 MenuType_Invalid = 0,
538 MenuType_Application = RT_BIT(0),
539 MenuType_Machine = RT_BIT(1),
540 MenuType_View = RT_BIT(2),
541 MenuType_Input = RT_BIT(3),
542 MenuType_Devices = RT_BIT(4),
543#ifdef VBOX_WITH_DEBUGGER_GUI
544 MenuType_Debug = RT_BIT(5),
545#endif
546#ifdef VBOX_WS_MAC
547 MenuType_Window = RT_BIT(6),
548#endif
549 MenuType_Help = RT_BIT(7),
550 MenuType_All = 0xFF
551 };
552
553 /** Menu "Application": Action types. */
554 enum MenuApplicationActionType
555 {
556 MenuApplicationActionType_Invalid = 0,
557#ifdef VBOX_WS_MAC
558 MenuApplicationActionType_About = RT_BIT(0),
559#endif
560 MenuApplicationActionType_Preferences = RT_BIT(1),
561#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
562 MenuApplicationActionType_NetworkAccessManager = RT_BIT(2),
563 MenuApplicationActionType_CheckForUpdates = RT_BIT(3),
564#endif
565 MenuApplicationActionType_ResetWarnings = RT_BIT(4),
566 MenuApplicationActionType_Close = RT_BIT(5),
567 MenuApplicationActionType_All = 0xFFFF
568 };
569
570 /** Menu "Help": Action types. */
571 enum MenuHelpActionType
572 {
573 MenuHelpActionType_Invalid = 0,
574 MenuHelpActionType_Contents = RT_BIT(0),
575 MenuHelpActionType_WebSite = RT_BIT(1),
576 MenuHelpActionType_BugTracker = RT_BIT(2),
577 MenuHelpActionType_Forums = RT_BIT(3),
578 MenuHelpActionType_Oracle = RT_BIT(4),
579 MenuHelpActionType_OnlineDocumentation = RT_BIT(5),
580#ifndef VBOX_WS_MAC
581 MenuHelpActionType_About = RT_BIT(6),
582#endif
583 MenuHelpActionType_All = 0xFFFF
584 };
585
586 /** Runtime UI: Menu "Machine": Action types. */
587 enum RuntimeMenuMachineActionType
588 {
589 RuntimeMenuMachineActionType_Invalid = 0,
590 RuntimeMenuMachineActionType_SettingsDialog = RT_BIT(0),
591 RuntimeMenuMachineActionType_TakeSnapshot = RT_BIT(1),
592 RuntimeMenuMachineActionType_InformationDialog = RT_BIT(2),
593 RuntimeMenuMachineActionType_FileManagerDialog = RT_BIT(3),
594 RuntimeMenuMachineActionType_GuestProcessControlDialog = RT_BIT(4),
595 RuntimeMenuMachineActionType_Pause = RT_BIT(5),
596 RuntimeMenuMachineActionType_Reset = RT_BIT(6),
597 RuntimeMenuMachineActionType_Detach = RT_BIT(7),
598 RuntimeMenuMachineActionType_SaveState = RT_BIT(8),
599 RuntimeMenuMachineActionType_Shutdown = RT_BIT(9),
600 RuntimeMenuMachineActionType_PowerOff = RT_BIT(10),
601 RuntimeMenuMachineActionType_LogDialog = RT_BIT(11),
602 RuntimeMenuMachineActionType_Nothing = RT_BIT(12),
603 RuntimeMenuMachineActionType_All = 0xFFFF
604 };
605
606 /** Runtime UI: Menu "View": Action types. */
607 enum RuntimeMenuViewActionType
608 {
609 RuntimeMenuViewActionType_Invalid = 0,
610 RuntimeMenuViewActionType_Fullscreen = RT_BIT(0),
611 RuntimeMenuViewActionType_Seamless = RT_BIT(1),
612 RuntimeMenuViewActionType_Scale = RT_BIT(2),
613#ifndef VBOX_WS_MAC
614 RuntimeMenuViewActionType_MinimizeWindow = RT_BIT(3),
615#endif
616 RuntimeMenuViewActionType_AdjustWindow = RT_BIT(4),
617 RuntimeMenuViewActionType_GuestAutoresize = RT_BIT(5),
618 RuntimeMenuViewActionType_TakeScreenshot = RT_BIT(6),
619 RuntimeMenuViewActionType_Recording = RT_BIT(7),
620 RuntimeMenuViewActionType_RecordingSettings = RT_BIT(8),
621 RuntimeMenuViewActionType_StartRecording = RT_BIT(9),
622 RuntimeMenuViewActionType_VRDEServer = RT_BIT(10),
623 RuntimeMenuViewActionType_MenuBar = RT_BIT(11),
624 RuntimeMenuViewActionType_MenuBarSettings = RT_BIT(12),
625#ifndef VBOX_WS_MAC
626 RuntimeMenuViewActionType_ToggleMenuBar = RT_BIT(13),
627#endif
628 RuntimeMenuViewActionType_StatusBar = RT_BIT(14),
629 RuntimeMenuViewActionType_StatusBarSettings = RT_BIT(15),
630 RuntimeMenuViewActionType_ToggleStatusBar = RT_BIT(16),
631 RuntimeMenuViewActionType_Resize = RT_BIT(17),
632 RuntimeMenuViewActionType_Remap = RT_BIT(18),
633 RuntimeMenuViewActionType_Rescale = RT_BIT(19),
634 RuntimeMenuViewActionType_All = 0xFFFF
635 };
636
637 /** Runtime UI: Menu "Input": Action types. */
638 enum RuntimeMenuInputActionType
639 {
640 RuntimeMenuInputActionType_Invalid = 0,
641 RuntimeMenuInputActionType_Keyboard = RT_BIT(0),
642 RuntimeMenuInputActionType_KeyboardSettings = RT_BIT(1),
643 RuntimeMenuInputActionType_SoftKeyboard = RT_BIT(2),
644 RuntimeMenuInputActionType_TypeCAD = RT_BIT(3),
645#ifdef VBOX_WS_NIX
646 RuntimeMenuInputActionType_TypeCABS = RT_BIT(4),
647#endif
648 RuntimeMenuInputActionType_TypeCtrlBreak = RT_BIT(5),
649 RuntimeMenuInputActionType_TypeInsert = RT_BIT(6),
650 RuntimeMenuInputActionType_TypePrintScreen = RT_BIT(7),
651 RuntimeMenuInputActionType_TypeAltPrintScreen = RT_BIT(8),
652 RuntimeMenuInputActionType_Mouse = RT_BIT(9),
653 RuntimeMenuInputActionType_MouseIntegration = RT_BIT(10),
654 RuntimeMenuInputActionType_TypeHostKeyCombo = RT_BIT(11),
655 RuntimeMenuInputActionType_All = 0xFFFF
656 };
657
658 /** Runtime UI: Menu "Devices": Action types. */
659 enum RuntimeMenuDevicesActionType
660 {
661 RuntimeMenuDevicesActionType_Invalid = 0,
662 RuntimeMenuDevicesActionType_HardDrives = RT_BIT(0),
663 RuntimeMenuDevicesActionType_HardDrivesSettings = RT_BIT(1),
664 RuntimeMenuDevicesActionType_OpticalDevices = RT_BIT(2),
665 RuntimeMenuDevicesActionType_FloppyDevices = RT_BIT(3),
666 RuntimeMenuDevicesActionType_Audio = RT_BIT(4),
667 RuntimeMenuDevicesActionType_AudioOutput = RT_BIT(5),
668 RuntimeMenuDevicesActionType_AudioInput = RT_BIT(6),
669 RuntimeMenuDevicesActionType_Network = RT_BIT(7),
670 RuntimeMenuDevicesActionType_NetworkSettings = RT_BIT(8),
671 RuntimeMenuDevicesActionType_USBDevices = RT_BIT(9),
672 RuntimeMenuDevicesActionType_USBDevicesSettings = RT_BIT(10),
673 RuntimeMenuDevicesActionType_WebCams = RT_BIT(11),
674 RuntimeMenuDevicesActionType_SharedClipboard = RT_BIT(12),
675 RuntimeMenuDevicesActionType_DragAndDrop = RT_BIT(13),
676 RuntimeMenuDevicesActionType_SharedFolders = RT_BIT(14),
677 RuntimeMenuDevicesActionType_SharedFoldersSettings = RT_BIT(15),
678 RuntimeMenuDevicesActionType_InsertGuestAdditionsDisk = RT_BIT(16),
679 RuntimeMenuDevicesActionType_UpgradeGuestAdditions = RT_BIT(17),
680 RuntimeMenuDevicesActionType_Nothing = RT_BIT(18),
681 RuntimeMenuDevicesActionType_All = 0xFFFF
682 };
683
684#ifdef VBOX_WITH_DEBUGGER_GUI
685 /** Runtime UI: Menu "Debugger": Action types. */
686 enum RuntimeMenuDebuggerActionType
687 {
688 RuntimeMenuDebuggerActionType_Invalid = 0,
689 RuntimeMenuDebuggerActionType_Statistics = RT_BIT(0),
690 RuntimeMenuDebuggerActionType_CommandLine = RT_BIT(1),
691 RuntimeMenuDebuggerActionType_Logging = RT_BIT(2),
692 RuntimeMenuDebuggerActionType_GuestControlConsole = RT_BIT(3),
693 RuntimeMenuDebuggerActionType_All = 0xFFFF
694 };
695#endif /* VBOX_WITH_DEBUGGER_GUI */
696
697#ifdef VBOX_WS_MAC
698 /** Menu "Window": Action types. */
699 enum MenuWindowActionType
700 {
701 MenuWindowActionType_Invalid = 0,
702 MenuWindowActionType_Minimize = RT_BIT(0),
703 MenuWindowActionType_Switch = RT_BIT(1),
704 MenuWindowActionType_All = 0xFFFF
705 };
706#endif /* VBOX_WS_MAC */
707
708
709 /** VirtualBox Manager UI: Details element: "General" option types. */
710 enum DetailsElementOptionTypeGeneral
711 {
712 DetailsElementOptionTypeGeneral_Invalid = 0,
713 DetailsElementOptionTypeGeneral_Name = RT_BIT(0),
714 DetailsElementOptionTypeGeneral_OS = RT_BIT(1),
715 DetailsElementOptionTypeGeneral_Location = RT_BIT(2),
716 DetailsElementOptionTypeGeneral_Groups = RT_BIT(3),
717 DetailsElementOptionTypeGeneral_Default = 0xFFFB
718 };
719 Q_ENUM(DetailsElementOptionTypeGeneral);
720
721 /** VirtualBox Manager UI: Details element: "System" option types. */
722 enum DetailsElementOptionTypeSystem
723 {
724 DetailsElementOptionTypeSystem_Invalid = 0,
725 DetailsElementOptionTypeSystem_RAM = RT_BIT(0),
726 DetailsElementOptionTypeSystem_CPUCount = RT_BIT(1),
727 DetailsElementOptionTypeSystem_CPUExecutionCap = RT_BIT(2),
728 DetailsElementOptionTypeSystem_BootOrder = RT_BIT(3),
729 DetailsElementOptionTypeSystem_ChipsetType = RT_BIT(4),
730 DetailsElementOptionTypeSystem_TpmType = RT_BIT(5),
731 DetailsElementOptionTypeSystem_Firmware = RT_BIT(6),
732 DetailsElementOptionTypeSystem_SecureBoot = RT_BIT(7),
733 DetailsElementOptionTypeSystem_Acceleration = RT_BIT(8),
734 DetailsElementOptionTypeSystem_Default = 0xFFFF
735 };
736 Q_ENUM(DetailsElementOptionTypeSystem);
737
738 /** VirtualBox Manager UI: Details element: "Display" option types. */
739 enum DetailsElementOptionTypeDisplay
740 {
741 DetailsElementOptionTypeDisplay_Invalid = 0,
742 DetailsElementOptionTypeDisplay_VRAM = RT_BIT(0),
743 DetailsElementOptionTypeDisplay_ScreenCount = RT_BIT(1),
744 DetailsElementOptionTypeDisplay_ScaleFactor = RT_BIT(2),
745 DetailsElementOptionTypeDisplay_GraphicsController = RT_BIT(3),
746 DetailsElementOptionTypeDisplay_Acceleration = RT_BIT(4),
747 DetailsElementOptionTypeDisplay_VRDE = RT_BIT(5),
748 DetailsElementOptionTypeDisplay_Recording = RT_BIT(6),
749 DetailsElementOptionTypeDisplay_Default = 0xFFFF
750 };
751 Q_ENUM(DetailsElementOptionTypeDisplay);
752
753 /** VirtualBox Manager UI: Details element: "Storage" option types. */
754 enum DetailsElementOptionTypeStorage
755 {
756 DetailsElementOptionTypeStorage_Invalid = 0,
757 DetailsElementOptionTypeStorage_HardDisks = RT_BIT(0),
758 DetailsElementOptionTypeStorage_OpticalDevices = RT_BIT(1),
759 DetailsElementOptionTypeStorage_FloppyDevices = RT_BIT(2),
760 DetailsElementOptionTypeStorage_Default = 0xFFFF
761 };
762 Q_ENUM(DetailsElementOptionTypeStorage);
763
764 /** VirtualBox Manager UI: Details element: "Audio" option types. */
765 enum DetailsElementOptionTypeAudio
766 {
767 DetailsElementOptionTypeAudio_Invalid = 0,
768 DetailsElementOptionTypeAudio_Driver = RT_BIT(0),
769 DetailsElementOptionTypeAudio_Controller = RT_BIT(1),
770 DetailsElementOptionTypeAudio_IO = RT_BIT(2),
771 DetailsElementOptionTypeAudio_Default = 0xFFFF
772 };
773 Q_ENUM(DetailsElementOptionTypeAudio);
774
775 /** VirtualBox Manager UI: Details element: "Network" option types. */
776 enum DetailsElementOptionTypeNetwork
777 {
778 DetailsElementOptionTypeNetwork_Invalid = 0,
779 DetailsElementOptionTypeNetwork_NotAttached = RT_BIT(0),
780 DetailsElementOptionTypeNetwork_NAT = RT_BIT(1),
781 DetailsElementOptionTypeNetwork_BridgedAdapter = RT_BIT(2),
782 DetailsElementOptionTypeNetwork_InternalNetwork = RT_BIT(3),
783 DetailsElementOptionTypeNetwork_HostOnlyAdapter = RT_BIT(4),
784 DetailsElementOptionTypeNetwork_GenericDriver = RT_BIT(5),
785 DetailsElementOptionTypeNetwork_NATNetwork = RT_BIT(6),
786#ifdef VBOX_WITH_CLOUD_NET
787 DetailsElementOptionTypeNetwork_CloudNetwork = RT_BIT(7),
788#endif /* VBOX_WITH_CLOUD_NET */
789#ifdef VBOX_WITH_VMNET
790 DetailsElementOptionTypeNetwork_HostOnlyNetwork = RT_BIT(8),
791#endif /* VBOX_WITH_VMNET */
792 DetailsElementOptionTypeNetwork_Default = 0xFFFF
793 };
794 Q_ENUM(DetailsElementOptionTypeNetwork);
795
796 /** VirtualBox Manager UI: Details element: "Serial" option types. */
797 enum DetailsElementOptionTypeSerial
798 {
799 DetailsElementOptionTypeSerial_Invalid = 0,
800 DetailsElementOptionTypeSerial_Disconnected = RT_BIT(0),
801 DetailsElementOptionTypeSerial_HostPipe = RT_BIT(1),
802 DetailsElementOptionTypeSerial_HostDevice = RT_BIT(2),
803 DetailsElementOptionTypeSerial_RawFile = RT_BIT(3),
804 DetailsElementOptionTypeSerial_TCP = RT_BIT(4),
805 DetailsElementOptionTypeSerial_Default = 0xFFFF
806 };
807 Q_ENUM(DetailsElementOptionTypeSerial);
808
809 /** VirtualBox Manager UI: Details element: "USB" option types. */
810 enum DetailsElementOptionTypeUsb
811 {
812 DetailsElementOptionTypeUsb_Invalid = 0,
813 DetailsElementOptionTypeUsb_Controller = RT_BIT(0),
814 DetailsElementOptionTypeUsb_DeviceFilters = RT_BIT(1),
815 DetailsElementOptionTypeUsb_Default = 0xFFFF
816 };
817 Q_ENUM(DetailsElementOptionTypeUsb);
818
819 /** VirtualBox Manager UI: Details element: "SharedFolders" option types. */
820 enum DetailsElementOptionTypeSharedFolders
821 {
822 DetailsElementOptionTypeSharedFolders_Invalid = 0,
823 DetailsElementOptionTypeSharedFolders_Default = 0xFFFF
824 };
825 Q_ENUM(DetailsElementOptionTypeSharedFolders);
826
827 /** VirtualBox Manager UI: Details element: "UserInterface" option types. */
828 enum DetailsElementOptionTypeUserInterface
829 {
830 DetailsElementOptionTypeUserInterface_Invalid = 0,
831 DetailsElementOptionTypeUserInterface_VisualState = RT_BIT(0),
832 DetailsElementOptionTypeUserInterface_MenuBar = RT_BIT(1),
833 DetailsElementOptionTypeUserInterface_StatusBar = RT_BIT(2),
834 DetailsElementOptionTypeUserInterface_MiniToolbar = RT_BIT(3),
835 DetailsElementOptionTypeUserInterface_Default = 0xFFFF
836 };
837 Q_ENUM(DetailsElementOptionTypeUserInterface);
838
839 /** VirtualBox Manager UI: Details element: "Description" option types. */
840 enum DetailsElementOptionTypeDescription
841 {
842 DetailsElementOptionTypeDescription_Invalid = 0,
843 DetailsElementOptionTypeDescription_Default = 0xFFFF
844 };
845 Q_ENUM(DetailsElementOptionTypeDescription);
846};
847
848
849/** Common UI: GUI feature types. */
850enum GUIFeatureType
851{
852 GUIFeatureType_None = 0,
853 GUIFeatureType_NoSelector = RT_BIT(0),
854#ifdef VBOX_WS_MAC
855 GUIFeatureType_NoUserElements = RT_BIT(1),
856#else
857 GUIFeatureType_NoMenuBar = RT_BIT(1),
858#endif
859 GUIFeatureType_NoStatusBar = RT_BIT(2),
860 GUIFeatureType_All = 0xFF
861};
862
863
864/** Common UI: Global settings page types. */
865enum GlobalSettingsPageType
866{
867 GlobalSettingsPageType_Invalid,
868 GlobalSettingsPageType_General,
869 GlobalSettingsPageType_Input,
870#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
871 GlobalSettingsPageType_Update,
872#endif
873 GlobalSettingsPageType_Language,
874 GlobalSettingsPageType_Display,
875#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
876 GlobalSettingsPageType_Proxy,
877#endif
878 GlobalSettingsPageType_Interface,
879 GlobalSettingsPageType_Max
880};
881Q_DECLARE_METATYPE(GlobalSettingsPageType);
882
883
884/** Common UI: Machine settings page types. */
885enum MachineSettingsPageType
886{
887 MachineSettingsPageType_Invalid,
888 MachineSettingsPageType_General,
889 MachineSettingsPageType_System,
890 MachineSettingsPageType_Display,
891 MachineSettingsPageType_Storage,
892 MachineSettingsPageType_Audio,
893 MachineSettingsPageType_Network,
894 MachineSettingsPageType_Ports,
895 MachineSettingsPageType_Serial,
896 MachineSettingsPageType_USB,
897 MachineSettingsPageType_SF,
898 MachineSettingsPageType_Interface,
899 MachineSettingsPageType_Max
900};
901Q_DECLARE_METATYPE(MachineSettingsPageType);
902
903
904/** Common UI: Shared Folder types. */
905enum UISharedFolderType
906{
907 UISharedFolderType_Machine,
908 UISharedFolderType_Console
909};
910
911
912/** Remote mode types. */
913enum UIRemoteMode
914{
915 UIRemoteMode_Any,
916 UIRemoteMode_On,
917 UIRemoteMode_Off
918};
919Q_DECLARE_METATYPE(UIRemoteMode);
920
921
922/** Common UI: Wizard types. */
923enum WizardType
924{
925 WizardType_Invalid,
926 WizardType_NewVM,
927 WizardType_CloneVM,
928 WizardType_ExportAppliance,
929 WizardType_ImportAppliance,
930 WizardType_NewCloudVM,
931 WizardType_AddCloudVM,
932 WizardType_NewVD,
933 WizardType_CloneVD
934};
935
936
937/** Common UI: Wizard modes. */
938enum WizardMode
939{
940 WizardMode_Auto,
941 WizardMode_Basic,
942 WizardMode_Expert
943};
944
945
946/** Common UI: Color Theme types. */
947enum UIColorThemeType
948{
949 UIColorThemeType_Auto,
950 UIColorThemeType_Light,
951 UIColorThemeType_Dark,
952};
953Q_DECLARE_METATYPE(UIColorThemeType);
954
955
956/** Tool item classes. */
957enum UIToolClass
958{
959 UIToolClass_Invalid,
960 UIToolClass_Global,
961 UIToolClass_Machine
962};
963
964
965/** Tool item types. */
966enum UIToolType
967{
968 UIToolType_Invalid,
969 /* Global types: */
970 UIToolType_Welcome,
971 UIToolType_Extensions,
972 UIToolType_Media,
973 UIToolType_Network,
974 UIToolType_Cloud,
975 UIToolType_CloudConsole,
976 UIToolType_VMActivityOverview,
977 /* Machine types: */
978 UIToolType_Error,
979 UIToolType_Details,
980 UIToolType_Snapshots,
981 UIToolType_Logs,
982 UIToolType_VMActivity,
983 UIToolType_FileManager
984};
985Q_DECLARE_METATYPE(UIToolType);
986
987
988/** Contains stuff related to tools handling. */
989namespace UIToolStuff
990{
991 /** Returns whether passed @a enmType is of passed @a enmClass. */
992 SHARED_LIBRARY_STUFF bool isTypeOfClass(UIToolType enmType, UIToolClass enmClass);
993}
994
995
996/** Selector UI: Details-element types. */
997enum DetailsElementType
998{
999 DetailsElementType_Invalid,
1000 DetailsElementType_General,
1001 DetailsElementType_System,
1002 DetailsElementType_Preview,
1003 DetailsElementType_Display,
1004 DetailsElementType_Storage,
1005 DetailsElementType_Audio,
1006 DetailsElementType_Network,
1007 DetailsElementType_Serial,
1008 DetailsElementType_USB,
1009 DetailsElementType_SF,
1010 DetailsElementType_UI,
1011 DetailsElementType_Description,
1012 DetailsElementType_Max
1013};
1014Q_DECLARE_METATYPE(DetailsElementType);
1015
1016
1017/** Selector UI: Preview update interval types. */
1018enum PreviewUpdateIntervalType
1019{
1020 PreviewUpdateIntervalType_Disabled,
1021 PreviewUpdateIntervalType_500ms,
1022 PreviewUpdateIntervalType_1000ms,
1023 PreviewUpdateIntervalType_2000ms,
1024 PreviewUpdateIntervalType_5000ms,
1025 PreviewUpdateIntervalType_10000ms,
1026 PreviewUpdateIntervalType_Max
1027};
1028
1029
1030/** Selector UI: Disk encryption cipher types. */
1031enum UIDiskEncryptionCipherType
1032{
1033 UIDiskEncryptionCipherType_Unchanged,
1034 UIDiskEncryptionCipherType_XTS256,
1035 UIDiskEncryptionCipherType_XTS128,
1036 UIDiskEncryptionCipherType_Max
1037};
1038Q_DECLARE_METATYPE(UIDiskEncryptionCipherType);
1039
1040
1041/** Runtime UI: Visual-state types. */
1042enum UIVisualStateType
1043{
1044 UIVisualStateType_Invalid = 0,
1045 UIVisualStateType_Normal = RT_BIT(0),
1046 UIVisualStateType_Fullscreen = RT_BIT(1),
1047 UIVisualStateType_Seamless = RT_BIT(2),
1048 UIVisualStateType_Scale = RT_BIT(3),
1049 UIVisualStateType_All = 0xFF
1050};
1051Q_DECLARE_METATYPE(UIVisualStateType);
1052
1053
1054/** Runtime UI: Indicator types. */
1055enum IndicatorType
1056{
1057 IndicatorType_Invalid,
1058 IndicatorType_HardDisks,
1059 IndicatorType_OpticalDisks,
1060 IndicatorType_FloppyDisks,
1061 IndicatorType_Audio,
1062 IndicatorType_Network,
1063 IndicatorType_USB,
1064 IndicatorType_SharedFolders,
1065 IndicatorType_Display,
1066 IndicatorType_Recording,
1067 IndicatorType_Features,
1068 IndicatorType_Mouse,
1069 IndicatorType_Keyboard,
1070 IndicatorType_KeyboardExtension,
1071 IndicatorType_Max
1072};
1073Q_DECLARE_METATYPE(IndicatorType);
1074
1075
1076/** Runtime UI: Machine close actions. */
1077enum MachineCloseAction
1078{
1079 MachineCloseAction_Invalid = 0,
1080 MachineCloseAction_Detach = RT_BIT(0),
1081 MachineCloseAction_SaveState = RT_BIT(1),
1082 MachineCloseAction_Shutdown = RT_BIT(2),
1083 MachineCloseAction_PowerOff = RT_BIT(3),
1084 MachineCloseAction_PowerOff_RestoringSnapshot = RT_BIT(4),
1085 MachineCloseAction_All = 0xFF
1086};
1087Q_DECLARE_METATYPE(MachineCloseAction);
1088
1089
1090/** Runtime UI: Mouse capture policy types. */
1091enum MouseCapturePolicy
1092{
1093 MouseCapturePolicy_Default,
1094 MouseCapturePolicy_HostComboOnly,
1095 MouseCapturePolicy_Disabled
1096};
1097
1098
1099/** Runtime UI: Guru Meditation handler types. */
1100enum GuruMeditationHandlerType
1101{
1102 GuruMeditationHandlerType_Default,
1103 GuruMeditationHandlerType_PowerOff,
1104 GuruMeditationHandlerType_Ignore
1105};
1106
1107
1108/** Runtime UI: Scaling optimization types. */
1109enum ScalingOptimizationType
1110{
1111 ScalingOptimizationType_None,
1112 ScalingOptimizationType_Performance
1113};
1114
1115
1116#ifndef VBOX_WS_MAC
1117/** Runtime UI: Mini-toolbar alignment. */
1118enum MiniToolbarAlignment
1119{
1120 MiniToolbarAlignment_Disabled,
1121 MiniToolbarAlignment_Bottom,
1122 MiniToolbarAlignment_Top
1123};
1124#endif /* !VBOX_WS_MAC */
1125
1126
1127/** Runtime UI: Information-element types. */
1128enum InformationElementType
1129{
1130 InformationElementType_Invalid,
1131 InformationElementType_General,
1132 InformationElementType_System,
1133 InformationElementType_Preview,
1134 InformationElementType_Display,
1135 InformationElementType_Storage,
1136 InformationElementType_Audio,
1137 InformationElementType_Network,
1138 InformationElementType_Serial,
1139 InformationElementType_USB,
1140 InformationElementType_SharedFolders,
1141 InformationElementType_UI,
1142 InformationElementType_Description,
1143 InformationElementType_RuntimeAttributes,
1144 InformationElementType_StorageStatistics,
1145 InformationElementType_NetworkStatistics
1146};
1147Q_DECLARE_METATYPE(InformationElementType);
1148
1149
1150/** Runtime UI: Maximum guest-screen size policy types.
1151 * @note This policy determines which guest-screen sizes we wish to
1152 * handle. We also accept anything smaller than the current size. */
1153enum MaximumGuestScreenSizePolicy
1154{
1155 /** Anything at all. */
1156 MaximumGuestScreenSizePolicy_Any,
1157 /** Anything up to a fixed size. */
1158 MaximumGuestScreenSizePolicy_Fixed,
1159 /** Anything up to host-screen available space. */
1160 MaximumGuestScreenSizePolicy_Automatic
1161};
1162Q_DECLARE_METATYPE(MaximumGuestScreenSizePolicy);
1163
1164
1165/** Manager UI: VM Activity Overview Column types.
1166 * @note The first element must be 0 and the rest must be consecutive */
1167enum VMActivityOverviewColumn
1168{
1169 VMActivityOverviewColumn_Name = 0,
1170 VMActivityOverviewColumn_CPUGuestLoad,
1171 VMActivityOverviewColumn_CPUVMMLoad,
1172 VMActivityOverviewColumn_RAMUsedAndTotal,
1173 VMActivityOverviewColumn_RAMUsedPercentage,
1174 VMActivityOverviewColumn_NetworkUpRate,
1175 VMActivityOverviewColumn_NetworkDownRate,
1176 VMActivityOverviewColumn_NetworkUpTotal,
1177 VMActivityOverviewColumn_NetworkDownTotal,
1178 VMActivityOverviewColumn_DiskIOReadRate,
1179 VMActivityOverviewColumn_DiskIOWriteRate,
1180 VMActivityOverviewColumn_DiskIOReadTotal,
1181 VMActivityOverviewColumn_DiskIOWriteTotal,
1182 VMActivityOverviewColumn_VMExits,
1183 VMActivityOverviewColumn_Max
1184};
1185
1186#endif /* !FEQT_INCLUDED_SRC_extradata_UIExtraDataDefs_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use