VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.h@ 104158

Last change on this file since 104158 was 103982, checked in by vboxsync, 10 months ago

FE/Qt: bugref:10624. Replacing override and final keywords with RT_OVERRIDE and RT_FINAL defines.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/* $Id: UIWizardExportAppPageSettings.h 103982 2024-03-21 11:43:53Z 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 "CAppliance.h"
42
43/* Forward declarations: */
44class QStackedWidget;
45class QIRichTextLabel;
46class UIApplianceExportEditorWidget;
47class UIFormEditorWidget;
48class UIWizardExportApp;
49
50/** Namespace for Settings page of the Export Appliance wizard. */
51namespace UIWizardExportAppSettings
52{
53 /** Refresh stacked widget. */
54 void refreshStackedWidget(QStackedWidget *pStackedWidget,
55 bool fIsFormatCloudOne);
56
57 /** Refreshes appliance settings widget. */
58 void refreshApplianceSettingsWidget(UIApplianceExportEditorWidget *pApplianceWidget,
59 const CAppliance &comAppliance,
60 bool fIsFormatCloudOne);
61 /** Refreshes form properties table. */
62 void refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor,
63 const CVirtualSystemDescriptionForm &comVsdForm,
64 bool fIsFormatCloudOne);
65}
66
67/** UINativeWizardPage extension for Settings page of the Export Appliance wizard,
68 * based on UIWizardExportAppSettings namespace functions. */
69class UIWizardExportAppPageSettings : public UINativeWizardPage
70{
71 Q_OBJECT;
72
73public:
74
75 /** Constructs Settings page. */
76 UIWizardExportAppPageSettings();
77
78protected:
79
80 /** Returns wizard this page belongs to. */
81 UIWizardExportApp *wizard() const;
82
83 /** Performs page initialization. */
84 virtual void initializePage() RT_OVERRIDE RT_FINAL;
85
86 /** Performs page validation. */
87 virtual bool validatePage() RT_OVERRIDE RT_FINAL;
88
89private slots:
90
91 /** Handles translation event. */
92 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
93
94private:
95
96 /** Holds the label instance. */
97 QIRichTextLabel *m_pLabel;
98
99 /** Holds the settings widget 2 instance. */
100 QStackedWidget *m_pSettingsWidget2;
101
102 /** Holds the appliance widget reference. */
103 UIApplianceExportEditorWidget *m_pApplianceWidget;
104 /** Holds the Form Editor widget instance. */
105 UIFormEditorWidget *m_pFormEditor;
106
107 /** Holds whether cloud exporting is at launching stage. */
108 bool m_fLaunching;
109};
110
111#endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppPageSettings_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