VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h@ 103977

Last change on this file since 103977 was 103957, checked in by vboxsync, 10 months ago

FE/Qt. bugref:10622. Using new UITranslationEventListener in wizard page class hierarchy.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/* $Id: UIWizardNewCloudVMPageExpert.h 103957 2024-03-20 13:41:59Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardNewCloudVMPageExpert 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_UIWizardNewCloudVMPageExpert_h
29#define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageExpert_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UIWizardNewCloudVMPageSource.h"
36#include "UIWizardNewCloudVMPageProperties.h"
37
38/* Forward declarations: */
39class UIToolBox;
40class UIWizardNewCloudVM;
41
42/** UINativeWizardPage extension for Expert page of the New Cloud VM wizard,
43 * based on UIWizardNewCloudVMPage1 & UIWizardNewCloudVMPage2 namespace functions. */
44class UIWizardNewCloudVMPageExpert : public UINativeWizardPage
45{
46 Q_OBJECT;
47
48public:
49
50 /** Constructs expert page. */
51 UIWizardNewCloudVMPageExpert();
52
53protected:
54
55 /** Returns wizard this page belongs to. */
56 UIWizardNewCloudVM *wizard() const;
57
58 /** Performs page initialization. */
59 virtual void initializePage() override final;
60
61 /** Returns whether page is complete. */
62 virtual bool isComplete() const override final;
63
64 /** Performs page validation. */
65 virtual bool validatePage() override final;
66
67private slots:
68
69 /** Handles change in provider combo-box. */
70 void sltHandleProviderComboChange();
71
72 /** Handles change in profile combo-box. */
73 void sltHandleProfileComboChange();
74 /** Handles profile tool-button click. */
75 void sltHandleProfileButtonClick();
76
77 /** Handles change in source tab-bar. */
78 void sltHandleSourceTabBarChange();
79
80 /** Handles change in instance list. */
81 void sltHandleSourceImageChange();
82
83 /** Handles translation event. */
84 virtual void sltRetranslateUI() override final;
85
86private:
87
88 /** Updates properties table. */
89 void updatePropertiesTable();
90
91 /** Holds whether we want full wizard form or short one. */
92 bool m_fFullWizard;
93 /** Holds the image ID. */
94 QString m_strSourceImageId;
95
96 /** Holds the tool-box instance. */
97 UIToolBox *m_pToolBox;
98
99 /** Holds the location type combo-box instance. */
100 QIComboBox *m_pProviderComboBox;
101 /** Holds the profile combo-box instance. */
102 QIComboBox *m_pProfileComboBox;
103 /** Holds the profile management tool-button instance. */
104 QIToolButton *m_pProfileToolButton;
105
106 /** Holds the source tab-bar instance. */
107 QTabBar *m_pSourceTabBar;
108 /** Holds the source image list instance. */
109 QListWidget *m_pSourceImageList;
110
111 /** Holds the Form Editor widget instance. */
112 UIFormEditorWidget *m_pFormEditor;
113};
114
115#endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageExpert_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