1 | /* $Id: UIWizardAddCloudVMPageExpert.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardAddCloudVMPageExpert class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2009-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_addcloudvm_UIWizardAddCloudVMPageExpert_h
|
---|
29 | #define FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageExpert_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* GUI includes: */
|
---|
35 | #include "UIWizardAddCloudVMPageSource.h"
|
---|
36 |
|
---|
37 | /* Forward declarations: */
|
---|
38 | class UIToolBox;
|
---|
39 | class UIWizardAddCloudVM;
|
---|
40 |
|
---|
41 | /** UINativeWizardPage extension for Expert page of the Add Cloud VM wizard,
|
---|
42 | * based on UIWizardAddCloudVMPage1 namespace functions. */
|
---|
43 | class UIWizardAddCloudVMPageExpert : public UINativeWizardPage
|
---|
44 | {
|
---|
45 | Q_OBJECT;
|
---|
46 |
|
---|
47 | public:
|
---|
48 |
|
---|
49 | /** Constructs expert page. */
|
---|
50 | UIWizardAddCloudVMPageExpert();
|
---|
51 |
|
---|
52 | protected:
|
---|
53 |
|
---|
54 | /** Returns wizard this page belongs to. */
|
---|
55 | UIWizardAddCloudVM *wizard() const;
|
---|
56 |
|
---|
57 | /** Handles translation event. */
|
---|
58 | virtual void retranslateUi() /* override final */;
|
---|
59 |
|
---|
60 | /** Performs page initialization. */
|
---|
61 | virtual void initializePage() /* override final */;
|
---|
62 |
|
---|
63 | /** Returns whether page is complete. */
|
---|
64 | virtual bool isComplete() const /* override final */;
|
---|
65 |
|
---|
66 | /** Performs page validation. */
|
---|
67 | virtual bool validatePage() /* override final */;
|
---|
68 |
|
---|
69 | private slots:
|
---|
70 |
|
---|
71 | /** Handles change in provider combo-box. */
|
---|
72 | void sltHandleProviderComboChange();
|
---|
73 |
|
---|
74 | /** Handles change in profile combo-box. */
|
---|
75 | void sltHandleProfileComboChange();
|
---|
76 | /** Handles profile tool-button click. */
|
---|
77 | void sltHandleProfileButtonClick();
|
---|
78 |
|
---|
79 | /** Handles change in instance list. */
|
---|
80 | void sltHandleSourceInstanceChange();
|
---|
81 |
|
---|
82 | private:
|
---|
83 |
|
---|
84 | /** Holds the tool-box instance. */
|
---|
85 | UIToolBox *m_pToolBox;
|
---|
86 |
|
---|
87 | /** Holds the provider type label instance. */
|
---|
88 | QLabel *m_pProviderLabel;
|
---|
89 | /** Holds the provider type combo-box instance. */
|
---|
90 | QIComboBox *m_pProviderComboBox;
|
---|
91 |
|
---|
92 | /** Holds the profile label instance. */
|
---|
93 | QLabel *m_pProfileLabel;
|
---|
94 | /** Holds the profile combo-box instance. */
|
---|
95 | QIComboBox *m_pProfileComboBox;
|
---|
96 | /** Holds the profile management tool-button instance. */
|
---|
97 | QIToolButton *m_pProfileToolButton;
|
---|
98 |
|
---|
99 | /** Holds the source instance label instance. */
|
---|
100 | QLabel *m_pSourceInstanceLabel;
|
---|
101 | /** Holds the source instance list instance. */
|
---|
102 | QListWidget *m_pSourceInstanceList;
|
---|
103 | };
|
---|
104 |
|
---|
105 | #endif /* !FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageExpert_h */
|
---|