1 | /* $Id: UIWizardExportAppPageSettings.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardExportAppPageSettings 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_exportappliance_UIWizardExportAppPageSettings_h
|
---|
29 | #define FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageSettings_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QList>
|
---|
36 |
|
---|
37 | /* GUI includes: */
|
---|
38 | #include "UINativeWizardPage.h"
|
---|
39 |
|
---|
40 | /* COM includes: */
|
---|
41 | #include "COMEnums.h"
|
---|
42 | #include "CAppliance.h"
|
---|
43 |
|
---|
44 | /* Forward declarations: */
|
---|
45 | class QStackedWidget;
|
---|
46 | class QIRichTextLabel;
|
---|
47 | class UIApplianceExportEditorWidget;
|
---|
48 | class UIFormEditorWidget;
|
---|
49 | class UIWizardExportApp;
|
---|
50 |
|
---|
51 | /** Namespace for Settings page of the Export Appliance wizard. */
|
---|
52 | namespace UIWizardExportAppSettings
|
---|
53 | {
|
---|
54 | /** Refresh stacked widget. */
|
---|
55 | void refreshStackedWidget(QStackedWidget *pStackedWidget,
|
---|
56 | bool fIsFormatCloudOne);
|
---|
57 |
|
---|
58 | /** Refreshes appliance settings widget. */
|
---|
59 | void refreshApplianceSettingsWidget(UIApplianceExportEditorWidget *pApplianceWidget,
|
---|
60 | const CAppliance &comAppliance,
|
---|
61 | bool fIsFormatCloudOne);
|
---|
62 | /** Refreshes form properties table. */
|
---|
63 | void refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor,
|
---|
64 | const CVirtualSystemDescriptionForm &comVsdForm,
|
---|
65 | bool fIsFormatCloudOne);
|
---|
66 | }
|
---|
67 |
|
---|
68 | /** UINativeWizardPage extension for Settings page of the Export Appliance wizard,
|
---|
69 | * based on UIWizardExportAppSettings namespace functions. */
|
---|
70 | class UIWizardExportAppPageSettings : public UINativeWizardPage
|
---|
71 | {
|
---|
72 | Q_OBJECT;
|
---|
73 |
|
---|
74 | public:
|
---|
75 |
|
---|
76 | /** Constructs Settings page. */
|
---|
77 | UIWizardExportAppPageSettings();
|
---|
78 |
|
---|
79 | protected:
|
---|
80 |
|
---|
81 | /** Returns wizard this page belongs to. */
|
---|
82 | UIWizardExportApp *wizard() const;
|
---|
83 |
|
---|
84 | /** Handles translation event. */
|
---|
85 | virtual void retranslateUi() /* override final */;
|
---|
86 |
|
---|
87 | /** Performs page initialization. */
|
---|
88 | virtual void initializePage() /* override final */;
|
---|
89 |
|
---|
90 | /** Performs page validation. */
|
---|
91 | virtual bool validatePage() /* override final */;
|
---|
92 |
|
---|
93 | private:
|
---|
94 |
|
---|
95 | /** Holds the label instance. */
|
---|
96 | QIRichTextLabel *m_pLabel;
|
---|
97 |
|
---|
98 | /** Holds the settings widget 2 instance. */
|
---|
99 | QStackedWidget *m_pSettingsWidget2;
|
---|
100 |
|
---|
101 | /** Holds the appliance widget reference. */
|
---|
102 | UIApplianceExportEditorWidget *m_pApplianceWidget;
|
---|
103 | /** Holds the Form Editor widget instance. */
|
---|
104 | UIFormEditorWidget *m_pFormEditor;
|
---|
105 |
|
---|
106 | /** Holds whether cloud exporting is at launching stage. */
|
---|
107 | bool m_fLaunching;
|
---|
108 | };
|
---|
109 |
|
---|
110 | #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageSettings_h */
|
---|