VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h@ 103551

Last change on this file since 103551 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
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: */
42class QCheckBox;
43class QGridLayout;
44class QLabel;
45class QIComboBox;
46class QILineEdit;
47class UIBaseMemoryEditor;
48class UIFilePathSelector;
49class UIHostnameDomainNameEditor;
50class UIPasswordLineEdit;
51class UIUserNamePasswordEditor;
52class UIVirtualCPUEditor;
53
54class UIUserNamePasswordGroupBox : public QIWithRetranslateUI<QGroupBox>
55{
56 Q_OBJECT;
57
58signals:
59
60 void sigUserNameChanged(const QString &strUserName);
61 void sigPasswordChanged(const QString &strPassword);
62
63public:
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
78private:
79
80 void prepare();
81 virtual void retranslateUi() /* override final */;
82
83 UIUserNamePasswordEditor *m_pUserNamePasswordEditor;
84};
85
86
87class UIGAInstallationGroupBox : public QIWithRetranslateUI<QGroupBox>
88{
89 Q_OBJECT;
90
91signals:
92
93 void sigPathChanged(const QString &strPath);
94
95public:
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
107private slots:
108
109 void sltToggleWidgetsEnabled(bool fEnabled);
110
111private:
112
113 virtual void retranslateUi() /* override final */;
114 void prepare();
115
116 QLabel *m_pGAISOPathLabel;
117 UIFilePathSelector *m_pGAISOFilePathSelector;
118};
119
120class UIAdditionalUnattendedOptions : public QIWithRetranslateUI<QGroupBox>
121{
122 Q_OBJECT;
123
124signals:
125
126 void sigHostnameDomainNameChanged(const QString &strHostnameDomainName, bool fIsComplete);
127 void sigProductKeyChanged(const QString &strHostnameDomainName);
128 void sigStartHeadlessChanged(bool fChecked);
129
130public:
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
147private:
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
160class UINewVMHardwareContainer : public QIWithRetranslateUI<QWidget>
161{
162 Q_OBJECT;
163
164signals:
165
166 void sigMemorySizeChanged(int iSize);
167 void sigCPUCountChanged(int iCount);
168 void sigEFIEnabledChanged(bool fEnabled);
169
170public:
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
181private:
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 */
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