1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt4 GUI ("VirtualBox"):
|
---|
4 | * UIWizardCloneVDPageExpert class declaration
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2006-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 __UIWizardCloneVDPageExpert_h__
|
---|
20 | #define __UIWizardCloneVDPageExpert_h__
|
---|
21 |
|
---|
22 | /* Local includes: */
|
---|
23 | #include "UIWizardCloneVDPageBasic1.h"
|
---|
24 | #include "UIWizardCloneVDPageBasic2.h"
|
---|
25 | #include "UIWizardCloneVDPageBasic3.h"
|
---|
26 | #include "UIWizardCloneVDPageBasic4.h"
|
---|
27 |
|
---|
28 | /* Forward declarations: */
|
---|
29 | class QGroupBox;
|
---|
30 |
|
---|
31 | /* Expert page of the Clone Virtual Hard Drive wizard: */
|
---|
32 | class UIWizardCloneVDPageExpert : public UIWizardPage,
|
---|
33 | public UIWizardCloneVDPage1,
|
---|
34 | public UIWizardCloneVDPage2,
|
---|
35 | public UIWizardCloneVDPage3,
|
---|
36 | public UIWizardCloneVDPage4
|
---|
37 | {
|
---|
38 | Q_OBJECT;
|
---|
39 | Q_PROPERTY(CMedium sourceVirtualDisk READ sourceVirtualDisk WRITE setSourceVirtualDisk);
|
---|
40 | Q_PROPERTY(CMediumFormat mediumFormat READ mediumFormat WRITE setMediumFormat);
|
---|
41 | Q_PROPERTY(qulonglong mediumVariant READ mediumVariant WRITE setMediumVariant);
|
---|
42 | Q_PROPERTY(QString mediumPath READ mediumPath);
|
---|
43 | Q_PROPERTY(qulonglong mediumSize READ mediumSize);
|
---|
44 |
|
---|
45 | public:
|
---|
46 |
|
---|
47 | /* Constructor: */
|
---|
48 | UIWizardCloneVDPageExpert(const CMedium &sourceVirtualDisk);
|
---|
49 |
|
---|
50 | protected:
|
---|
51 |
|
---|
52 | /* Wrapper to access 'this' from base part: */
|
---|
53 | UIWizardPage* thisImp() { return this; }
|
---|
54 | /* Wrapper to access 'wizard-field' from base part: */
|
---|
55 | QVariant fieldImp(const QString &strFieldName) const { return UIWizardPage::field(strFieldName); }
|
---|
56 |
|
---|
57 | private slots:
|
---|
58 |
|
---|
59 | /* Source virtual-disk stuff: */
|
---|
60 | void sltHandleSourceDiskChange();
|
---|
61 | void sltHandleOpenSourceDiskClick();
|
---|
62 |
|
---|
63 | /* Medium format stuff: */
|
---|
64 | void sltMediumFormatChanged();
|
---|
65 |
|
---|
66 | /* Location editor stuff: */
|
---|
67 | void sltSelectLocationButtonClicked();
|
---|
68 |
|
---|
69 | private:
|
---|
70 |
|
---|
71 | /* Translation stuff: */
|
---|
72 | void retranslateUi();
|
---|
73 |
|
---|
74 | /* Prepare stuff: */
|
---|
75 | void initializePage();
|
---|
76 |
|
---|
77 | /* Validation stuff: */
|
---|
78 | bool isComplete() const;
|
---|
79 | bool validatePage();
|
---|
80 |
|
---|
81 | /* Widgets: */
|
---|
82 | QGroupBox *m_pSourceDiskCnt;
|
---|
83 | QGroupBox *m_pFormatCnt;
|
---|
84 | QGroupBox *m_pVariantCnt;
|
---|
85 | QGroupBox *m_pDestinationCnt;
|
---|
86 | };
|
---|
87 |
|
---|
88 | #endif // __UIWizardCloneVDPageExpert_h__
|
---|
89 |
|
---|