1 | /* $Id: UIWizardCloneVMPageExpert.h 91035 2021-08-31 15:57:07Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardCloneVMPageExpert class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2020 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_UIWizardCloneVMPageExpert_h
|
---|
19 | #define FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMPageExpert_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* Local includes: */
|
---|
25 | #include "UINativeWizardPage.h"
|
---|
26 | #include "UIWizardCloneVMEditors.h"
|
---|
27 |
|
---|
28 | /* Forward declarations: */
|
---|
29 | class UICloneVMAdditionalOptionsEditor;
|
---|
30 | class UICloneVMCloneModeGroupBox;
|
---|
31 | class UICloneVMCloneTypeGroupBox;
|
---|
32 | class UICloneVMNamePathEditor;
|
---|
33 |
|
---|
34 | /* Expert page of the Clone Virtual Machine wizard: */
|
---|
35 | class UIWizardCloneVMPageExpert : public UINativeWizardPage
|
---|
36 | {
|
---|
37 | Q_OBJECT;
|
---|
38 |
|
---|
39 | public:
|
---|
40 |
|
---|
41 | /* Constructor: */
|
---|
42 | UIWizardCloneVMPageExpert(const QString &strOriginalName, const QString &strDefaultPath,
|
---|
43 | bool fAdditionalInfo, bool fShowChildsOption, const QString &strGroup);
|
---|
44 |
|
---|
45 | private slots:
|
---|
46 |
|
---|
47 | void sltCloneNameChanged(const QString &strCloneName);
|
---|
48 | void sltClonePathChanged(const QString &strClonePath);
|
---|
49 | void sltMACAddressClonePolicyChanged(MACAddressClonePolicy enmMACAddressClonePolicy);
|
---|
50 | void sltKeepDiskNamesToggled(bool fKeepDiskNames);
|
---|
51 | void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs);
|
---|
52 |
|
---|
53 | private:
|
---|
54 |
|
---|
55 | /* Translation stuff: */
|
---|
56 | void retranslateUi();
|
---|
57 |
|
---|
58 | /* Prepare stuff: */
|
---|
59 | void initializePage();
|
---|
60 | void prepare(const QString &strOriginalName, const QString &strDefaultPath, bool fShowChildsOption);
|
---|
61 |
|
---|
62 | /* Validation stuff: */
|
---|
63 | bool isComplete() const;
|
---|
64 | bool validatePage();
|
---|
65 |
|
---|
66 | UICloneVMNamePathEditor *m_pNamePathGroupBox;
|
---|
67 | UICloneVMCloneTypeGroupBox *m_pCloneTypeGroupBox;
|
---|
68 | UICloneVMCloneModeGroupBox *m_pCloneModeGroupBox;
|
---|
69 | UICloneVMAdditionalOptionsEditor *m_pAdditionalOptionsGroupBox;
|
---|
70 | QString m_strGroup;
|
---|
71 | };
|
---|
72 |
|
---|
73 | #endif /* !FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMPageExpert_h */
|
---|