1 | /* $Id: UIWizardNewVMEditors.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardNewVMEditors class declaration.
|
---|
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_wizards_editors_UIWizardNewVMEditors_h
|
---|
29 | #define FEQT_INCLUDED_SRC_wizards_editors_UIWizardNewVMEditors_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QIcon>
|
---|
36 | #include <QGroupBox>
|
---|
37 |
|
---|
38 | /* Local includes: */
|
---|
39 | #include "QIWithRetranslateUI.h"
|
---|
40 |
|
---|
41 | /* Forward declarations: */
|
---|
42 | class QCheckBox;
|
---|
43 | class QGridLayout;
|
---|
44 | class QLabel;
|
---|
45 | class QIComboBox;
|
---|
46 | class QILineEdit;
|
---|
47 | class UIBaseMemoryEditor;
|
---|
48 | class UIFilePathSelector;
|
---|
49 | class UIHostnameDomainNameEditor;
|
---|
50 | class UIPasswordLineEdit;
|
---|
51 | class UIUserNamePasswordEditor;
|
---|
52 | class UIVirtualCPUEditor;
|
---|
53 |
|
---|
54 | class UIUserNamePasswordGroupBox : public QIWithRetranslateUI<QGroupBox>
|
---|
55 | {
|
---|
56 | Q_OBJECT;
|
---|
57 |
|
---|
58 | signals:
|
---|
59 |
|
---|
60 | void sigUserNameChanged(const QString &strUserName);
|
---|
61 | void sigPasswordChanged(const QString &strPassword);
|
---|
62 |
|
---|
63 | public:
|
---|
64 |
|
---|
65 | UIUserNamePasswordGroupBox(QWidget *pParent = 0);
|
---|
66 |
|
---|
67 | /** @name Wrappers for UIUserNamePasswordEditor
|
---|
68 | * @{ */
|
---|
69 | QString userName() const;
|
---|
70 | void setUserName(const QString &strUserName);
|
---|
71 |
|
---|
72 | QString password() const;
|
---|
73 | void setPassword(const QString &strPassword);
|
---|
74 | bool isComplete();
|
---|
75 | void setLabelsVisible(bool fVisible);
|
---|
76 | /** @} */
|
---|
77 |
|
---|
78 | private:
|
---|
79 |
|
---|
80 | void prepare();
|
---|
81 | virtual void retranslateUi() /* override final */;
|
---|
82 |
|
---|
83 | UIUserNamePasswordEditor *m_pUserNamePasswordEditor;
|
---|
84 | };
|
---|
85 |
|
---|
86 |
|
---|
87 | class UIGAInstallationGroupBox : public QIWithRetranslateUI<QGroupBox>
|
---|
88 | {
|
---|
89 | Q_OBJECT;
|
---|
90 |
|
---|
91 | signals:
|
---|
92 |
|
---|
93 | void sigPathChanged(const QString &strPath);
|
---|
94 |
|
---|
95 | public:
|
---|
96 |
|
---|
97 | UIGAInstallationGroupBox(QWidget *pParent = 0);
|
---|
98 |
|
---|
99 | /** @name Wrappers for UIFilePathSelector
|
---|
100 | * @{ */
|
---|
101 | QString path() const;
|
---|
102 | void setPath(const QString &strPath, bool fRefreshText = true);
|
---|
103 | void mark();
|
---|
104 | bool isComplete() const;
|
---|
105 | /** @} */
|
---|
106 |
|
---|
107 | private slots:
|
---|
108 |
|
---|
109 | void sltToggleWidgetsEnabled(bool fEnabled);
|
---|
110 |
|
---|
111 | private:
|
---|
112 |
|
---|
113 | virtual void retranslateUi() /* override final */;
|
---|
114 | void prepare();
|
---|
115 |
|
---|
116 | QLabel *m_pGAISOPathLabel;
|
---|
117 | UIFilePathSelector *m_pGAISOFilePathSelector;
|
---|
118 | };
|
---|
119 |
|
---|
120 | class UIAdditionalUnattendedOptions : public QIWithRetranslateUI<QGroupBox>
|
---|
121 | {
|
---|
122 | Q_OBJECT;
|
---|
123 |
|
---|
124 | signals:
|
---|
125 |
|
---|
126 | void sigHostnameDomainNameChanged(const QString &strHostnameDomainName, bool fIsComplete);
|
---|
127 | void sigProductKeyChanged(const QString &strHostnameDomainName);
|
---|
128 | void sigStartHeadlessChanged(bool fChecked);
|
---|
129 |
|
---|
130 | public:
|
---|
131 |
|
---|
132 | UIAdditionalUnattendedOptions(QWidget *pParent = 0);
|
---|
133 |
|
---|
134 | /** @name Wrappers for UIFilePathSelector
|
---|
135 | * @{ */
|
---|
136 | QString hostname() const;
|
---|
137 | void setHostname(const QString &strHostname);
|
---|
138 | QString domainName() const;
|
---|
139 | void setDomainName(const QString &strDomain);
|
---|
140 | QString hostnameDomainName() const;
|
---|
141 | bool isComplete() const;
|
---|
142 | bool isHostnameComplete() const;
|
---|
143 | void mark();
|
---|
144 | void disableEnableProductKeyWidgets(bool fEnabled);
|
---|
145 | /** @} */
|
---|
146 |
|
---|
147 | private:
|
---|
148 |
|
---|
149 | void prepare();
|
---|
150 | virtual void retranslateUi() /* override final */;
|
---|
151 |
|
---|
152 | QLabel *m_pProductKeyLabel;
|
---|
153 | QILineEdit *m_pProductKeyLineEdit;
|
---|
154 | UIHostnameDomainNameEditor *m_pHostnameDomainNameEditor;
|
---|
155 | QCheckBox *m_pStartHeadlessCheckBox;
|
---|
156 | QGridLayout *m_pMainLayout;
|
---|
157 | };
|
---|
158 |
|
---|
159 |
|
---|
160 | class UINewVMHardwareContainer : public QIWithRetranslateUI<QWidget>
|
---|
161 | {
|
---|
162 | Q_OBJECT;
|
---|
163 |
|
---|
164 | signals:
|
---|
165 |
|
---|
166 | void sigMemorySizeChanged(int iSize);
|
---|
167 | void sigCPUCountChanged(int iCount);
|
---|
168 | void sigEFIEnabledChanged(bool fEnabled);
|
---|
169 |
|
---|
170 | public:
|
---|
171 |
|
---|
172 | UINewVMHardwareContainer(QWidget *pParent = 0);
|
---|
173 |
|
---|
174 | /** @name Wrappers for UIFilePathSelector
|
---|
175 | * @{ */
|
---|
176 | void setMemorySize(int iSize);
|
---|
177 | void setCPUCount(int iCount);
|
---|
178 | void setEFIEnabled(bool fEnabled);
|
---|
179 | /** @} */
|
---|
180 |
|
---|
181 | private:
|
---|
182 |
|
---|
183 | void prepare();
|
---|
184 | virtual void retranslateUi() /* override final */;
|
---|
185 |
|
---|
186 | UIBaseMemoryEditor *m_pBaseMemoryEditor;
|
---|
187 | UIVirtualCPUEditor *m_pVirtualCPUEditor;
|
---|
188 | QCheckBox *m_pEFICheckBox;
|
---|
189 | };
|
---|
190 |
|
---|
191 | #endif /* !FEQT_INCLUDED_SRC_wizards_editors_UIWizardNewVMEditors_h */
|
---|