VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasicInstallSetup.h@ 84889

Last change on this file since 84889 was 84889, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9515. Adding fields for user name/password.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
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: */
32class QGridLayout;
33class QLabel;
34class QLineEdit;
35class QSpinBox;
36class QIRichTextLabel;
37
38class UIUserNamePasswordEditor : public QIWithRetranslateUI<QWidget>
39{
40
41 Q_OBJECT;
42
43public:
44
45 UIUserNamePasswordEditor(QWidget *pParent = 0);
46
47protected:
48
49 void retranslateUi();
50
51private:
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): */
67class UIWizardNewVMPageInstallSetup : public UIWizardPageBase
68{
69protected:
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): */
80class UIWizardNewVMPageBasicInstallSetup : public UIWizardPage, public UIWizardNewVMPageInstallSetup
81{
82 Q_OBJECT;
83
84public:
85
86 /* Constructor: */
87 UIWizardNewVMPageBasicInstallSetup();
88
89private slots:
90
91private:
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 */
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