1 | /* $Id: UIWizardNewVMPageBasicInstallSetup.h 84889 2020-06-22 07:33:39Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardNewVMPageBasicInstallSetup class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2020 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasicInstallSetup_h
|
---|
19 | #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasicInstallSetup_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* Qt includes: */
|
---|
25 | #include <QWidget>
|
---|
26 |
|
---|
27 | /* Local includes: */
|
---|
28 | #include "QIWithRetranslateUI.h"
|
---|
29 | #include "UIWizardPage.h"
|
---|
30 |
|
---|
31 | /* Forward declarations: */
|
---|
32 | class QGridLayout;
|
---|
33 | class QLabel;
|
---|
34 | class QLineEdit;
|
---|
35 | class QSpinBox;
|
---|
36 | class QIRichTextLabel;
|
---|
37 |
|
---|
38 | class UIUserNamePasswordEditor : public QIWithRetranslateUI<QWidget>
|
---|
39 | {
|
---|
40 |
|
---|
41 | Q_OBJECT;
|
---|
42 |
|
---|
43 | public:
|
---|
44 |
|
---|
45 | UIUserNamePasswordEditor(QWidget *pParent = 0);
|
---|
46 |
|
---|
47 | protected:
|
---|
48 |
|
---|
49 | void retranslateUi();
|
---|
50 |
|
---|
51 | private:
|
---|
52 |
|
---|
53 | void prepare();
|
---|
54 | void addField(QLabel *&pLabel, QLineEdit *&pLineEdit, QGridLayout *pLayout, bool fIsPasswordField = false);
|
---|
55 |
|
---|
56 | QLineEdit *m_pUserNameField;
|
---|
57 | QLineEdit *m_pPasswordField;
|
---|
58 | QLineEdit *m_pPasswordRepeatField;
|
---|
59 |
|
---|
60 | QLabel *m_pUserNameFieldLabel;
|
---|
61 | QLabel *m_pPasswordFieldLabel;
|
---|
62 | QLabel *m_pPasswordRepeatFieldLabel;
|
---|
63 |
|
---|
64 | };
|
---|
65 |
|
---|
66 | /* 2nd page of the New Virtual Machine wizard (base part): */
|
---|
67 | class UIWizardNewVMPageInstallSetup : public UIWizardPageBase
|
---|
68 | {
|
---|
69 | protected:
|
---|
70 |
|
---|
71 | /* Constructor: */
|
---|
72 | UIWizardNewVMPageInstallSetup();
|
---|
73 |
|
---|
74 |
|
---|
75 | /* Widgets: */
|
---|
76 | UIUserNamePasswordEditor *m_pUserNamePasswordEditor;
|
---|
77 | };
|
---|
78 |
|
---|
79 | /* 2nd page of the New Virtual Machine wizard (basic extension): */
|
---|
80 | class UIWizardNewVMPageBasicInstallSetup : public UIWizardPage, public UIWizardNewVMPageInstallSetup
|
---|
81 | {
|
---|
82 | Q_OBJECT;
|
---|
83 |
|
---|
84 | public:
|
---|
85 |
|
---|
86 | /* Constructor: */
|
---|
87 | UIWizardNewVMPageBasicInstallSetup();
|
---|
88 |
|
---|
89 | private slots:
|
---|
90 |
|
---|
91 | private:
|
---|
92 |
|
---|
93 | /* Translation stuff: */
|
---|
94 | void retranslateUi();
|
---|
95 |
|
---|
96 | /* Prepare stuff: */
|
---|
97 | void initializePage();
|
---|
98 |
|
---|
99 | /* Validation stuff: */
|
---|
100 | bool isComplete() const;
|
---|
101 |
|
---|
102 | /* Widgets: */
|
---|
103 | QIRichTextLabel *m_pLabel;
|
---|
104 | };
|
---|
105 |
|
---|
106 | #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasicInstallSetup_h */
|
---|