1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt4 GUI ("VirtualBox"):
|
---|
4 | * UIWizardCloneVMPageBasic3 class declaration
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2011-2012 Oracle Corporation
|
---|
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 |
|
---|
19 | #ifndef __UIWizardCloneVMPageBasic3_h__
|
---|
20 | #define __UIWizardCloneVMPageBasic3_h__
|
---|
21 |
|
---|
22 | /* Local includes: */
|
---|
23 | #include "UIWizardPage.h"
|
---|
24 | #include "COMDefs.h"
|
---|
25 |
|
---|
26 | /* Forward declaration: */
|
---|
27 | class QRadioButton;
|
---|
28 | class QIRichTextLabel;
|
---|
29 |
|
---|
30 | /* 3rd page of the Clone Virtual Machine wizard (base part): */
|
---|
31 | class UIWizardCloneVMPage3 : public UIWizardPageBase
|
---|
32 | {
|
---|
33 | protected:
|
---|
34 |
|
---|
35 | /* Constructor: */
|
---|
36 | UIWizardCloneVMPage3(bool fShowChildsOption);
|
---|
37 |
|
---|
38 | /* Stuff for 'cloneMode' field: */
|
---|
39 | KCloneMode cloneMode() const;
|
---|
40 | void setCloneMode(KCloneMode cloneMode);
|
---|
41 |
|
---|
42 | /* Variables: */
|
---|
43 | bool m_fShowChildsOption;
|
---|
44 |
|
---|
45 | /* Widgets: */
|
---|
46 | QRadioButton *m_pMachineRadio;
|
---|
47 | QRadioButton *m_pMachineAndChildsRadio;
|
---|
48 | QRadioButton *m_pAllRadio;
|
---|
49 | };
|
---|
50 |
|
---|
51 | /* 3rd page of the Clone Virtual Machine wizard (basic extension): */
|
---|
52 | class UIWizardCloneVMPageBasic3 : public UIWizardPage, public UIWizardCloneVMPage3
|
---|
53 | {
|
---|
54 | Q_OBJECT;
|
---|
55 | Q_PROPERTY(KCloneMode cloneMode READ cloneMode WRITE setCloneMode);
|
---|
56 |
|
---|
57 | public:
|
---|
58 |
|
---|
59 | /* Constructor: */
|
---|
60 | UIWizardCloneVMPageBasic3(bool fShowChildsOption);
|
---|
61 |
|
---|
62 | private:
|
---|
63 |
|
---|
64 | /* Translation stuff: */
|
---|
65 | void retranslateUi();
|
---|
66 |
|
---|
67 | /* Prepare stuff: */
|
---|
68 | void initializePage();
|
---|
69 |
|
---|
70 | /* Validation stuff: */
|
---|
71 | bool validatePage();
|
---|
72 |
|
---|
73 | /* Widgets: */
|
---|
74 | QIRichTextLabel *m_pLabel;
|
---|
75 | };
|
---|
76 |
|
---|
77 | #endif // __UIWizardCloneVMPageBasic3_h__
|
---|
78 |
|
---|