1 | /* $Id: UIChooserDefs.h 106061 2024-09-16 14:03:52Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIChooserDefs class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012-2024 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_manager_chooser_UIChooserDefs_h
|
---|
29 | #define FEQT_INCLUDED_SRC_manager_chooser_UIChooserDefs_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QGraphicsItem>
|
---|
36 |
|
---|
37 | /* Other VBox includes: */
|
---|
38 | #include <iprt/cdefs.h> // for RT_BIT stuff
|
---|
39 |
|
---|
40 |
|
---|
41 | /** UIChooserNode types. */
|
---|
42 | enum UIChooserNodeType
|
---|
43 | {
|
---|
44 | UIChooserNodeType_Any = QGraphicsItem::UserType,
|
---|
45 | UIChooserNodeType_Group,
|
---|
46 | UIChooserNodeType_Global,
|
---|
47 | UIChooserNodeType_Machine
|
---|
48 | };
|
---|
49 |
|
---|
50 |
|
---|
51 | /** UIChooserNodeGroup types. */
|
---|
52 | enum UIChooserNodeGroupType
|
---|
53 | {
|
---|
54 | UIChooserNodeGroupType_Invalid,
|
---|
55 | UIChooserNodeGroupType_Local,
|
---|
56 | UIChooserNodeGroupType_Provider,
|
---|
57 | UIChooserNodeGroupType_Profile
|
---|
58 | };
|
---|
59 |
|
---|
60 |
|
---|
61 | /** UIChooserNode extra-data prefix types. */
|
---|
62 | enum UIChooserNodeDataPrefixType
|
---|
63 | {
|
---|
64 | UIChooserNodeDataPrefixType_Global,
|
---|
65 | UIChooserNodeDataPrefixType_Machine,
|
---|
66 | UIChooserNodeDataPrefixType_Local,
|
---|
67 | UIChooserNodeDataPrefixType_Provider,
|
---|
68 | UIChooserNodeDataPrefixType_Profile
|
---|
69 | };
|
---|
70 |
|
---|
71 |
|
---|
72 | /** UIChooserNode extra-data option types. */
|
---|
73 | enum UIChooserNodeDataOptionType
|
---|
74 | {
|
---|
75 | UIChooserNodeDataOptionType_GlobalFavorite,
|
---|
76 | UIChooserNodeDataOptionType_GroupOpened
|
---|
77 | };
|
---|
78 |
|
---|
79 |
|
---|
80 | /** UIChooserNode extra-data value types. */
|
---|
81 | enum UIChooserNodeDataValueType
|
---|
82 | {
|
---|
83 | UIChooserNodeDataValueType_GlobalDefault
|
---|
84 | };
|
---|
85 |
|
---|
86 |
|
---|
87 | /** UIChooserItem search flags. */
|
---|
88 | enum UIChooserItemSearchFlag
|
---|
89 | {
|
---|
90 | UIChooserItemSearchFlag_Global = RT_BIT(0),
|
---|
91 | UIChooserItemSearchFlag_Machine = RT_BIT(1),
|
---|
92 | UIChooserItemSearchFlag_LocalGroup = RT_BIT(2),
|
---|
93 | UIChooserItemSearchFlag_CloudProvider = RT_BIT(3),
|
---|
94 | UIChooserItemSearchFlag_CloudProfile = RT_BIT(4),
|
---|
95 | UIChooserItemSearchFlag_ExactId = RT_BIT(5),
|
---|
96 | UIChooserItemSearchFlag_ExactName = RT_BIT(6),
|
---|
97 | UIChooserItemSearchFlag_FullName = RT_BIT(7),
|
---|
98 | };
|
---|
99 |
|
---|
100 |
|
---|
101 | /** UIChooserItem drag token types. */
|
---|
102 | enum UIChooserItemDragToken
|
---|
103 | {
|
---|
104 | UIChooserItemDragToken_Off,
|
---|
105 | UIChooserItemDragToken_Up,
|
---|
106 | UIChooserItemDragToken_Down
|
---|
107 | };
|
---|
108 |
|
---|
109 |
|
---|
110 | /** UIChooserItemMachine enumeration flags. */
|
---|
111 | enum UIChooserItemMachineEnumerationFlag
|
---|
112 | {
|
---|
113 | UIChooserItemMachineEnumerationFlag_Unique = RT_BIT(0),
|
---|
114 | UIChooserItemMachineEnumerationFlag_Inaccessible = RT_BIT(1)
|
---|
115 | };
|
---|
116 |
|
---|
117 |
|
---|
118 | #endif /* !FEQT_INCLUDED_SRC_manager_chooser_UIChooserDefs_h */
|
---|