1 | /* $Id: UIWizardCloneVMPageExpert.h 69498 2017-10-28 15:07:25Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardCloneVMPageExpert class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2016 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 __UIWizardCloneVMPageExpert_h__
|
---|
19 | #define __UIWizardCloneVMPageExpert_h__
|
---|
20 |
|
---|
21 | /* Local includes: */
|
---|
22 | #include "UIWizardCloneVMPageBasic1.h"
|
---|
23 | #include "UIWizardCloneVMPageBasic2.h"
|
---|
24 | #include "UIWizardCloneVMPageBasic3.h"
|
---|
25 |
|
---|
26 | /* Forward declarations: */
|
---|
27 | class QGroupBox;
|
---|
28 |
|
---|
29 | /* Expert page of the Clone Virtual Machine wizard: */
|
---|
30 | class UIWizardCloneVMPageExpert : public UIWizardPage,
|
---|
31 | public UIWizardCloneVMPage1,
|
---|
32 | public UIWizardCloneVMPage2,
|
---|
33 | public UIWizardCloneVMPage3
|
---|
34 | {
|
---|
35 | Q_OBJECT;
|
---|
36 | Q_PROPERTY(QString cloneName READ cloneName WRITE setCloneName);
|
---|
37 | Q_PROPERTY(bool reinitMACs READ isReinitMACsChecked);
|
---|
38 | Q_PROPERTY(bool linkedClone READ isLinkedClone);
|
---|
39 | Q_PROPERTY(KCloneMode cloneMode READ cloneMode WRITE setCloneMode);
|
---|
40 |
|
---|
41 | public:
|
---|
42 |
|
---|
43 | /* Constructor: */
|
---|
44 | UIWizardCloneVMPageExpert(const QString &strOriginalName, bool fAdditionalInfo, bool fShowChildsOption);
|
---|
45 |
|
---|
46 | private slots:
|
---|
47 |
|
---|
48 | /* Button click handler: */
|
---|
49 | void sltButtonClicked(QAbstractButton *pButton);
|
---|
50 |
|
---|
51 | private:
|
---|
52 |
|
---|
53 | /* Translation stuff: */
|
---|
54 | void retranslateUi();
|
---|
55 |
|
---|
56 | /* Prepare stuff: */
|
---|
57 | void initializePage();
|
---|
58 |
|
---|
59 | /* Validation stuff: */
|
---|
60 | bool isComplete() const;
|
---|
61 | bool validatePage();
|
---|
62 |
|
---|
63 | /* Widgets: */
|
---|
64 | QGroupBox *m_pNameCnt;
|
---|
65 | QGroupBox *m_pCloneTypeCnt;
|
---|
66 | QGroupBox *m_pCloneModeCnt;
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif // __UIWizardCloneVMPageExpert_h__
|
---|
70 |
|
---|