VirtualBox

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

Last change on this file since 102493 was 101447, checked in by vboxsync, 12 months ago

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Connecting experience mode check-box state to extra-data read/write.

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

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