VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h

Last change on this file was 103982, checked in by vboxsync, 2 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: 2.7 KB
Line 
1/* $Id: UIWizardNewCloudVMPageProperties.h 103982 2024-03-21 11:43:53Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardNewCloudVMPageProperties 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_newcloudvm_UIWizardNewCloudVMPageProperties_h
29#define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UINativeWizardPage.h"
36
37/* Forward declarations: */
38class QIRichTextLabel;
39class UIFormEditorWidget;
40class UIWizardNewCloudVM;
41class CVirtualSystemDescriptionForm;
42
43/** Namespace for properties page of the New Cloud VM wizard. */
44namespace UIWizardNewCloudVMProperties
45{
46 /** Refreshes @a pFormEditor on the basis of comForm specified. */
47 void refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor, const CVirtualSystemDescriptionForm &comForm);
48}
49
50/** UINativeWizardPage extension for properties page of the New Cloud VM wizard,
51 * based on UIWizardNewCloudVMProperties namespace functions. */
52class UIWizardNewCloudVMPageProperties : public UINativeWizardPage
53{
54 Q_OBJECT;
55
56public:
57
58 /** Constructs properties basic page. */
59 UIWizardNewCloudVMPageProperties();
60
61protected:
62
63 /** Returns wizard this page belongs to. */
64 UIWizardNewCloudVM *wizard() const;
65
66 /** Performs page initialization. */
67 virtual void initializePage() RT_OVERRIDE RT_FINAL;
68
69 /** Returns whether page is complete. */
70 virtual bool isComplete() const RT_OVERRIDE RT_FINAL;
71
72 /** Performs page validation. */
73 virtual bool validatePage() RT_OVERRIDE RT_FINAL;
74
75private slots:
76
77 /** Initializes short wizard form. */
78 void sltInitShortWizardForm();
79
80 /** Handles translation event. */
81 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
82
83private:
84
85 /** Holds the label instance. */
86 QIRichTextLabel *m_pLabel;
87
88 /** Holds the Form Editor widget instance. */
89 UIFormEditorWidget *m_pFormEditor;
90};
91
92#endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use