1 | /* $Id: UIWizardCloneVMPageBasic3.h 76581 2019-01-01 06:24:57Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardCloneVMPageBasic3 class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMPageBasic3_h
|
---|
19 | #define FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMPageBasic3_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* GUI includes: */
|
---|
25 | #include "UIWizardPage.h"
|
---|
26 |
|
---|
27 | /* COM includes: */
|
---|
28 | #include "COMEnums.h"
|
---|
29 |
|
---|
30 | /* Forward declaration: */
|
---|
31 | class QRadioButton;
|
---|
32 | class QIRichTextLabel;
|
---|
33 |
|
---|
34 | /* 3rd page of the Clone Virtual Machine wizard (base part): */
|
---|
35 | class UIWizardCloneVMPage3 : public UIWizardPageBase
|
---|
36 | {
|
---|
37 | protected:
|
---|
38 |
|
---|
39 | /* Constructor: */
|
---|
40 | UIWizardCloneVMPage3(bool fShowChildsOption);
|
---|
41 |
|
---|
42 | /* Stuff for 'cloneMode' field: */
|
---|
43 | KCloneMode cloneMode() const;
|
---|
44 | void setCloneMode(KCloneMode cloneMode);
|
---|
45 |
|
---|
46 | /* Variables: */
|
---|
47 | bool m_fShowChildsOption;
|
---|
48 |
|
---|
49 | /* Widgets: */
|
---|
50 | QRadioButton *m_pMachineRadio;
|
---|
51 | QRadioButton *m_pMachineAndChildsRadio;
|
---|
52 | QRadioButton *m_pAllRadio;
|
---|
53 | };
|
---|
54 |
|
---|
55 | /* 3rd page of the Clone Virtual Machine wizard (basic extension): */
|
---|
56 | class UIWizardCloneVMPageBasic3 : public UIWizardPage, public UIWizardCloneVMPage3
|
---|
57 | {
|
---|
58 | Q_OBJECT;
|
---|
59 | Q_PROPERTY(KCloneMode cloneMode READ cloneMode WRITE setCloneMode);
|
---|
60 |
|
---|
61 | public:
|
---|
62 |
|
---|
63 | /* Constructor: */
|
---|
64 | UIWizardCloneVMPageBasic3(bool fShowChildsOption);
|
---|
65 |
|
---|
66 | private:
|
---|
67 |
|
---|
68 | /* Translation stuff: */
|
---|
69 | void retranslateUi();
|
---|
70 |
|
---|
71 | /* Prepare stuff: */
|
---|
72 | void initializePage();
|
---|
73 |
|
---|
74 | /* Validation stuff: */
|
---|
75 | bool validatePage();
|
---|
76 |
|
---|
77 | /* Widgets: */
|
---|
78 | QIRichTextLabel *m_pLabel;
|
---|
79 | };
|
---|
80 |
|
---|
81 | #endif /* !FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMPageBasic3_h */
|
---|
82 |
|
---|