VirtualBox

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

Last change on this file since 100347 was 100064, checked in by vboxsync, 20 months ago

FE/Qt: bugref:10421. Replacing VBOX_WS_X11 with VBOX_WS_NIX.

  • 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 100064 2023-06-04 09:10:01Z 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 /** @} */
112
113 /** @name Settings: Language
114 * @{ */
115 /** Holds GUI language ID. */
116 SHARED_LIBRARY_STUFF extern const char *GUI_LanguageID;
117 /** @} */
118
119 /** @name Settings: Display
120 * @{ */
121 /** Holds maximum guest-screen resolution policy/value. */
122 SHARED_LIBRARY_STUFF extern const char *GUI_MaxGuestResolution;
123 /** Holds whether hovered machine-window should be activated. */
124 SHARED_LIBRARY_STUFF extern const char *GUI_ActivateHoveredMachineWindow;
125 /** Holds whether the host scrrn saver is disabled when a vm is running. */
126 SHARED_LIBRARY_STUFF extern const char *GUI_DisableHostScreenSaver;
127 /** @} */
128
129 /** @name Settings: Keyboard
130 * @{ */
131 /** Holds Selector UI shortcut overrides. */
132 SHARED_LIBRARY_STUFF extern const char *GUI_Input_SelectorShortcuts;
133 /** Holds Runtime UI shortcut overrides. */
134 SHARED_LIBRARY_STUFF extern const char *GUI_Input_MachineShortcuts;
135 /** Holds Runtime UI host-key combination. */
136 SHARED_LIBRARY_STUFF extern const char *GUI_Input_HostKeyCombination;
137 /** Holds whether Runtime UI auto-capture is enabled. */
138 SHARED_LIBRARY_STUFF extern const char *GUI_Input_AutoCapture;
139 /** Holds Runtime UI remapped scan codes. */
140 SHARED_LIBRARY_STUFF extern const char *GUI_RemapScancodes;
141 /** @} */
142
143 /** @name Settings: Proxy
144 * @{ */
145 /** Holds VBox proxy settings. */
146 SHARED_LIBRARY_STUFF extern const char *GUI_ProxySettings;
147 /** @} */
148
149 /** @name Settings: Storage
150 * @{ */
151 /** Holds recent folder for hard-drives. */
152 SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderHD;
153 /** Holds recent folder for optical-disks. */
154 SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderCD;
155 /** Holds recent folder for floppy-disks. */
156 SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderFD;
157 /** Holds the list of recently used hard-drives. */
158 SHARED_LIBRARY_STUFF extern const char *GUI_RecentListHD;
159 /** Holds the list of recently used optical-disks. */
160 SHARED_LIBRARY_STUFF extern const char *GUI_RecentListCD;
161 /** Holds the list of recently used floppy-disks. */
162 SHARED_LIBRARY_STUFF extern const char *GUI_RecentListFD;
163 /** @} */
164
165 /** @name Settings: Network
166 * @{ */
167 /** Holds the list of restricted network attachment types. */
168 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedNetworkAttachmentTypes;
169 /** @} */
170
171 /** @name VISO Creator
172 * @{ */
173 /** Holds recent folder for VISO creation content. */
174 SHARED_LIBRARY_STUFF extern const char *GUI_VISOCreator_RecentFolder;
175 SHARED_LIBRARY_STUFF extern const char *GUI_VISOCreator_DialogGeometry;
176 /** @} */
177
178 /** @name VirtualBox Manager
179 * @{ */
180 /** Holds selector-window geometry. */
181 SHARED_LIBRARY_STUFF extern const char *GUI_LastSelectorWindowPosition;
182 /** Holds selector-window splitter hints. */
183 SHARED_LIBRARY_STUFF extern const char *GUI_SplitterSizes;
184 /** Holds whether selector-window tool-bar visible. */
185 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar;
186 /** Holds whether selector-window tool-bar text visible. */
187 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_Text;
188 /** Holds the selector-window machine tools order. */
189 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_MachineTools_Order;
190 /** Holds the selector-window global tools order. */
191 SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_GlobalTools_Order;
192 /** Holds the last selected tool set of VirtualBox Manager. */
193 SHARED_LIBRARY_STUFF extern const char *GUI_Tools_LastItemsSelected;
194 /** Holds whether selector-window status-bar visible. */
195 SHARED_LIBRARY_STUFF extern const char *GUI_Statusbar;
196 /** Prefix used by composite extra-data keys,
197 * which holds selector-window chooser-pane' groups definitions. */
198 SHARED_LIBRARY_STUFF extern const char *GUI_GroupDefinitions;
199 /** Holds last item chosen in selector-window chooser-pane. */
200 SHARED_LIBRARY_STUFF extern const char *GUI_LastItemSelected;
201 /** Holds selector-window details-pane' elements. */
202 /// @todo remove GUI_DetailsPageBoxes in 6.2
203 SHARED_LIBRARY_STUFF extern const char *GUI_DetailsPageBoxes;
204 /// @todo remove GUI_PreviewUpdate in 6.2
205 /** Holds selector-window details-pane' preview update interval. */
206 SHARED_LIBRARY_STUFF extern const char *GUI_PreviewUpdate;
207 /** Holds VirtualBox Manager Details-pane elements. */
208 SHARED_LIBRARY_STUFF extern const char *GUI_Details_Elements;
209 /** Holds VirtualBox Manager Details-pane / Preview element update interval. */
210 SHARED_LIBRARY_STUFF extern const char *GUI_Details_Elements_Preview_UpdateInterval;
211 /** @} */
212
213 /** @name Snapshot Manager
214 * @{ */
215 /** Holds whether Snapshot Manager details expanded. */
216 SHARED_LIBRARY_STUFF extern const char *GUI_SnapshotManager_Details_Expanded;
217 /** @} */
218
219 /** @name Virtual Media Manager
220 * @{ */
221 /** Holds whether Virtual Media Manager details expanded. */
222 SHARED_LIBRARY_STUFF extern const char *GUI_VirtualMediaManager_Details_Expanded;
223 /** Holds whether Virtual Media Manager search widget expanded. */
224 SHARED_LIBRARY_STUFF extern const char *GUI_VirtualMediaManager_Search_Widget_Expanded;
225 /** @} */
226
227 /** @name Host Network Manager
228 * @{ */
229 /** Holds whether Host Network Manager details expanded. */
230 SHARED_LIBRARY_STUFF extern const char *GUI_HostNetworkManager_Details_Expanded;
231 /** @} */
232
233 /** @name Cloud Profile Manager
234 * @{ */
235 /** Holds Cloud Profile Manager restrictions. */
236 SHARED_LIBRARY_STUFF extern const char *GUI_CloudProfileManager_Restrictions;
237 /** Holds whether Cloud Profile Manager details expanded. */
238 SHARED_LIBRARY_STUFF extern const char *GUI_CloudProfileManager_Details_Expanded;
239 /** @} */
240
241 /** @name Cloud Console Manager
242 * @{ */
243 /** Holds Cloud Console Manager applications/profiles. */
244 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsoleManager_Application;
245 /** Holds Cloud Console Manager restrictions. */
246 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsoleManager_Restrictions;
247 /** Holds whether Cloud Console Manager details expanded. */
248 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsoleManager_Details_Expanded;
249 /** @} */
250
251 /** @name Cloud Console
252 * @{ */
253 /** Holds Cloud Console public key path. */
254 SHARED_LIBRARY_STUFF extern const char *GUI_CloudConsole_PublicKey_Path;
255 /** @} */
256
257#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
258 /** @name Extra-data Manager
259 * @{ */
260 /** Holds extra-data manager geometry. */
261 SHARED_LIBRARY_STUFF extern const char *GUI_ExtraDataManager_Geometry;
262 /** Holds extra-data manager splitter hints. */
263 SHARED_LIBRARY_STUFF extern const char *GUI_ExtraDataManager_SplitterHints;
264 /** @} */
265#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
266
267 /** @name Wizards
268 * @{ */
269 /** Holds wizard types for which descriptions should be hidden. */
270 SHARED_LIBRARY_STUFF extern const char *GUI_HideDescriptionForWizards;
271 /** @} */
272
273 /** @name Virtual Machine
274 * @{ */
275 /** Holds whether machine shouldn't be shown in selector-window chooser-pane. */
276 SHARED_LIBRARY_STUFF extern const char *GUI_HideFromManager;
277 /** Holds whether machine shouldn't be shown in selector-window details-pane. */
278 SHARED_LIBRARY_STUFF extern const char *GUI_HideDetails;
279 /** Holds whether machine reconfiguration disabled. */
280 SHARED_LIBRARY_STUFF extern const char *GUI_PreventReconfiguration;
281 /** Holds whether machine snapshot operations disabled. */
282 SHARED_LIBRARY_STUFF extern const char *GUI_PreventSnapshotOperations;
283 /** Except Mac OS X: Holds redefined machine-window icon names. */
284 SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowIcons;
285#ifndef VBOX_WS_MAC
286 /** Except Mac OS X: Holds redefined machine-window name postfix. */
287 SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowNamePostfix;
288#endif
289 /** Prefix used by composite extra-data keys,
290 * which holds normal machine-window geometry per screen-index. */
291 SHARED_LIBRARY_STUFF extern const char *GUI_LastNormalWindowPosition;
292 /** Prefix used by composite extra-data keys,
293 * which holds scaled machine-window geometry per screen-index. */
294 SHARED_LIBRARY_STUFF extern const char *GUI_LastScaleWindowPosition;
295 /** Holds machine-window geometry maximized state flag. */
296 SHARED_LIBRARY_STUFF extern const char *GUI_Geometry_State_Max;
297#ifndef VBOX_WS_MAC
298 /** Holds Runtime UI menu-bar availability status. */
299 SHARED_LIBRARY_STUFF extern const char *GUI_MenuBar_Enabled;
300#endif
301 /** Holds Runtime UI menu-bar context-menu availability status. */
302 SHARED_LIBRARY_STUFF extern const char *GUI_MenuBar_ContextMenu_Enabled;
303 /** Holds restricted Runtime UI menu types. */
304 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeMenus;
305 /** Holds restricted Runtime UI action types for 'Application' menu. */
306 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeApplicationMenuActions;
307 /** Holds restricted Runtime UI action types for Machine menu. */
308 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeMachineMenuActions;
309 /** Holds restricted Runtime UI action types for View menu. */
310 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeViewMenuActions;
311 /** Holds restricted Runtime UI action types for Input menu. */
312 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeInputMenuActions;
313 /** Holds restricted Runtime UI action types for Devices menu. */
314 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeDevicesMenuActions;
315#ifdef VBOX_WITH_DEBUGGER_GUI
316 /** Holds restricted Runtime UI action types for Debugger menu. */
317 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeDebuggerMenuActions;
318#endif
319#ifdef VBOX_WS_MAC
320 /** Mac OS X: Holds restricted Runtime UI action types for 'Window' menu. */
321 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeWindowMenuActions;
322#endif
323 /** Holds restricted Runtime UI action types for Help menu. */
324 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeHelpMenuActions;
325 /** Holds restricted Runtime UI visual-states. */
326 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedVisualStates;
327 /** Holds whether full screen visual-state is requested. */
328 SHARED_LIBRARY_STUFF extern const char *GUI_Fullscreen;
329 /** Holds whether seamless visual-state is requested. */
330 SHARED_LIBRARY_STUFF extern const char *GUI_Seamless;
331 /** Holds whether scaled visual-state is requested. */
332 SHARED_LIBRARY_STUFF extern const char *GUI_Scale;
333#ifdef VBOX_WS_NIX
334 /** Holds whether legacy full-screen mode is requested. */
335 SHARED_LIBRARY_STUFF extern const char *GUI_Fullscreen_LegacyMode;
336 /** Holds whether internal machine-window names should be unique. */
337 SHARED_LIBRARY_STUFF extern const char *GUI_DistinguishMachineWindowGroups;
338#endif /* VBOX_WS_NIX */
339 /** Holds whether guest-screen auto-resize according machine-window size is enabled. */
340 SHARED_LIBRARY_STUFF extern const char *GUI_AutoresizeGuest;
341 /** Prefix used by composite extra-data keys,
342 * which holds last guest-screen visibility status per screen-index. */
343 SHARED_LIBRARY_STUFF extern const char *GUI_LastVisibilityStatusForGuestScreen;
344 /** Prefix used by composite extra-data keys,
345 * which holds last guest-screen size-hint per screen-index. */
346 SHARED_LIBRARY_STUFF extern const char *GUI_LastGuestSizeHint;
347 /** Prefix used by composite extra-data keys,
348 * which holds host-screen index per guest-screen index. */
349 SHARED_LIBRARY_STUFF extern const char *GUI_VirtualScreenToHostScreen;
350 /** Holds whether automatic mounting/unmounting of guest-screens enabled. */
351 SHARED_LIBRARY_STUFF extern const char *GUI_AutomountGuestScreens;
352#ifndef VBOX_WS_MAC
353 /** Holds whether mini-toolbar is enabled for full and seamless screens. */
354 SHARED_LIBRARY_STUFF extern const char *GUI_ShowMiniToolBar;
355 /** Holds whether mini-toolbar should auto-hide itself. */
356 SHARED_LIBRARY_STUFF extern const char *GUI_MiniToolBarAutoHide;
357 /** Holds mini-toolbar alignment. */
358 SHARED_LIBRARY_STUFF extern const char *GUI_MiniToolBarAlignment;
359#endif /* !VBOX_WS_MAC */
360 /** Holds Runtime UI status-bar availability status. */
361 SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_Enabled;
362 /** Holds Runtime UI status-bar context-menu availability status. */
363 SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_ContextMenu_Enabled;
364 /** Holds restricted Runtime UI status-bar indicators. */
365 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedStatusBarIndicators;
366 /** Holds Runtime UI status-bar indicator order. */
367 SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_IndicatorOrder;
368#ifdef VBOX_WS_MAC
369 /** Mac OS X: Holds whether Dock icon should be updated at runtime. */
370 SHARED_LIBRARY_STUFF extern const char *GUI_RealtimeDockIconUpdateEnabled;
371 /** Mac OS X: Holds guest-screen which Dock icon should reflect at runtime. */
372 SHARED_LIBRARY_STUFF extern const char *GUI_RealtimeDockIconUpdateMonitor;
373 /** Mac OS X: Holds whether Dock icon should have overlay disabled. */
374 SHARED_LIBRARY_STUFF extern const char *GUI_DockIconDisableOverlay;
375#endif /* VBOX_WS_MAC */
376 /** Holds whether machine should pass CAD to guest. */
377 SHARED_LIBRARY_STUFF extern const char *GUI_PassCAD;
378 /** Holds the mouse capture policy. */
379 SHARED_LIBRARY_STUFF extern const char *GUI_MouseCapturePolicy;
380 /** Holds redefined guru-meditation handler type. */
381 SHARED_LIBRARY_STUFF extern const char *GUI_GuruMeditationHandler;
382 /** Holds whether machine should perform HID LEDs synchronization. */
383 SHARED_LIBRARY_STUFF extern const char *GUI_HidLedsSync;
384 /** Holds the scale-factor. */
385 SHARED_LIBRARY_STUFF extern const char *GUI_ScaleFactor;
386 /** Holds the scaling optimization type. */
387 SHARED_LIBRARY_STUFF extern const char *GUI_Scaling_Optimization;
388 /** Holds the font scale factor. */
389 SHARED_LIBRARY_STUFF extern const char *GUI_FontScaleFactor;
390 /** @} */
391
392 /** @name Virtual Machine: Information dialog
393 * @{ */
394 /** Holds information-window geometry. */
395 SHARED_LIBRARY_STUFF extern const char *GUI_SessionInformationDialogGeometry;
396 /** @} */
397
398 /** @name Guest Control UI related data
399 * @{ */
400 extern const char *GUI_GuestControl_FileManagerDialogGeometry;
401 extern const char *GUI_GuestControl_FileManagerVisiblePanels;
402 extern const char *GUI_GuestControl_ProcessControlSplitterHints;
403 extern const char *GUI_GuestControl_ProcessControlDialogGeometry;
404 /** @} */
405
406 /** @name Soft Keyboard related data
407 * @{ */
408 extern const char *GUI_SoftKeyboard_DialogGeometry;
409 extern const char *GUI_SoftKeyboard_ColorTheme;
410 extern const char *GUI_SoftKeyboard_SelectedColorTheme;
411 extern const char *GUI_SoftKeyboard_SelectedLayout;
412 extern const char *GUI_SoftKeyboard_Options;
413 extern const char *GUI_SoftKeyboard_HideNumPad;
414 extern const char *GUI_SoftKeyboard_HideOSMenuKeys;
415 extern const char *GUI_SoftKeyboard_HideMultimediaKeys;
416 /** @} */
417
418 /** @name File Manager options
419 * @{ */
420 extern const char *GUI_GuestControl_FileManagerOptions;
421 extern const char *GUI_GuestControl_FileManagerListDirectoriesFirst;
422 extern const char *GUI_GuestControl_FileManagerShowDeleteConfirmation;
423 extern const char *GUI_GuestControl_FileManagerShowHumanReadableSizes;
424 extern const char *GUI_GuestControl_FileManagerShowHiddenObjects;
425 /** @} */
426
427 /** @name Virtual Machine: Close dialog
428 * @{ */
429 /** Holds default machine close action. */
430 SHARED_LIBRARY_STUFF extern const char *GUI_DefaultCloseAction;
431 /** Holds restricted machine close actions. */
432 SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedCloseActions;
433 /** Holds last machine close action. */
434 SHARED_LIBRARY_STUFF extern const char *GUI_LastCloseAction;
435 /** Holds machine close hook script name as simple string. */
436 SHARED_LIBRARY_STUFF extern const char *GUI_CloseActionHook;
437 /** Holds whether machine should discard state on power off. */
438 SHARED_LIBRARY_STUFF extern const char *GUI_DiscardStateOnPowerOff;
439 /** @} */
440
441#ifdef VBOX_WITH_DEBUGGER_GUI
442 /** @name Virtual Machine: Debug UI
443 * @{ */
444 /** Holds whether debugger UI enabled. */
445 SHARED_LIBRARY_STUFF extern const char *GUI_Dbg_Enabled;
446 /** Holds whether debugger UI should be auto-shown. */
447 SHARED_LIBRARY_STUFF extern const char *GUI_Dbg_AutoShow;
448 /** @} */
449#endif /* VBOX_WITH_DEBUGGER_GUI */
450
451 /** @name Virtual Machine: Log-viewer
452 * @{ */
453 /** Holds log-viewer geometry. */
454 SHARED_LIBRARY_STUFF extern const char *GUI_LogWindowGeometry;
455 /** @} */
456 /** @name Virtual Machine: Log-viewer widget options
457 * @{ */
458 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerOptions;
459 /** Holds log-viewer wrap line flag. */
460 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerWrapLinesEnabled;
461 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerShowLineNumbersDisabled;
462 SHARED_LIBRARY_STUFF extern const char *GUI_LogViewerNoFontStyleName;
463 SHARED_LIBRARY_STUFF extern const char *GUI_GuestControl_LogViewerVisiblePanels;
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.

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