VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIFirstRunWzd.h@ 28762

Last change on this file since 28762 was 28762, checked in by vboxsync, 15 years ago

FE/Qt: First Run Wizard: will now only propose to start from cd/dvd-rom device excluding floppy devices which are now not present by default in newly created VM (see xTracker defect #4847).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.7 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * UIFirstRunWzd class declaration
5 */
6
7/*
8 * Copyright (C) 2008-2010 Sun Microsystems, Inc.
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
21 */
22
23#ifndef __UIFirstRunWzd_h__
24#define __UIFirstRunWzd_h__
25
26/* Local includes */
27#include "QIWizard.h"
28#include "COMDefs.h"
29
30/* Generated includes */
31#include "UIFirstRunWzdPage1.gen.h"
32#include "UIFirstRunWzdPage2.gen.h"
33#include "UIFirstRunWzdPage3.gen.h"
34
35class UIFirstRunWzd : public QIWizard
36{
37 Q_OBJECT;
38
39public:
40
41 UIFirstRunWzd(QWidget *pParent, const CMachine &machine);
42
43protected:
44
45 void retranslateUi();
46};
47
48class UIFirstRunWzdPage1 : public QIWizardPage, public Ui::UIFirstRunWzdPage1
49{
50 Q_OBJECT;
51
52public:
53
54 UIFirstRunWzdPage1();
55
56 void init();
57
58protected:
59
60 void retranslateUi();
61
62 void initializePage();
63};
64
65class UIFirstRunWzdPage2 : public QIWizardPage, public Ui::UIFirstRunWzdPage2
66{
67 Q_OBJECT;
68 Q_PROPERTY(QString source READ source WRITE setSource);
69 Q_PROPERTY(QString id READ id WRITE setId);
70
71public:
72
73 UIFirstRunWzdPage2();
74
75 void init();
76
77protected:
78
79 void retranslateUi();
80
81 void initializePage();
82
83 bool isComplete() const;
84
85private slots:
86
87 void sltMediumChanged();
88 void sltOpenVirtualMediaManager();
89
90private:
91
92 QString source() const { return m_strSource; }
93 void setSource(const QString &strSource) { m_strSource = strSource; }
94 QString m_strSource;
95
96 QString id() const { return m_strId; }
97 void setId(const QString &strId) { m_strId = strId; }
98 QString m_strId;
99};
100
101class UIFirstRunWzdPage3 : public QIWizardPage, public Ui::UIFirstRunWzdPage3
102{
103 Q_OBJECT;
104 Q_PROPERTY(CMachine machine READ machine WRITE setMachine);
105
106public:
107
108 UIFirstRunWzdPage3();
109
110 void init();
111
112protected:
113
114 void retranslateUi();
115
116 void initializePage();
117 void cleanupPage();
118
119 bool validatePage();
120
121private:
122
123 bool insertDevice();
124
125 CMachine machine() const { return m_Machine; }
126 void setMachine(CMachine &machine) { m_Machine = machine; }
127 CMachine m_Machine;
128};
129
130Q_DECLARE_METATYPE(CMachine);
131
132#endif // __UIFirstRunWzd_h__
133
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