1 | /* $Id: UIWizardCloneVMNamePathPage.h 103982 2024-03-21 11:43:53Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardCloneVMNamePathPage class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2011-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMNamePathPage_h
|
---|
29 | #define FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMNamePathPage_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QSet>
|
---|
36 |
|
---|
37 | /* Local includes: */
|
---|
38 | #include "UINativeWizardPage.h"
|
---|
39 | #include "UIWizardCloneVMEditors.h"
|
---|
40 |
|
---|
41 | /* Forward declarations: */
|
---|
42 | class UICloneVMAdditionalOptionsEditor;
|
---|
43 | class UICloneVMNamePathEditor;
|
---|
44 | class QIRichTextLabel;
|
---|
45 |
|
---|
46 | namespace UIWizardCloneVMNamePathCommon
|
---|
47 | {
|
---|
48 | QString composeCloneFilePath(const QString &strCloneName, const QString &strGroup, const QString &strFolderPath);
|
---|
49 | }
|
---|
50 |
|
---|
51 | class UIWizardCloneVMNamePathPage : public UINativeWizardPage
|
---|
52 | {
|
---|
53 | Q_OBJECT;
|
---|
54 |
|
---|
55 | public:
|
---|
56 |
|
---|
57 | UIWizardCloneVMNamePathPage(const QString &strOriginalName, const QString &strDefaultPath, const QString &strGroup);
|
---|
58 |
|
---|
59 | private slots:
|
---|
60 |
|
---|
61 | void sltCloneNameChanged(const QString &strCloneName);
|
---|
62 | void sltClonePathChanged(const QString &strClonePath);
|
---|
63 | void sltMACAddressClonePolicyChanged(MACAddressClonePolicy enmMACAddressClonePolicy);
|
---|
64 | void sltKeepDiskNamesToggled(bool fKeepDiskNames);
|
---|
65 | void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs);
|
---|
66 | virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
|
---|
67 |
|
---|
68 | private:
|
---|
69 |
|
---|
70 | void initializePage() RT_OVERRIDE;
|
---|
71 | void prepare(const QString &strDefaultClonePath);
|
---|
72 | /** Validation stuff */
|
---|
73 | bool isComplete() const RT_OVERRIDE;
|
---|
74 |
|
---|
75 | QIRichTextLabel *m_pMainLabel;
|
---|
76 | UICloneVMNamePathEditor *m_pNamePathEditor;
|
---|
77 | UICloneVMAdditionalOptionsEditor *m_pAdditionalOptionsEditor;
|
---|
78 | QString m_strOriginalName;
|
---|
79 | QString m_strGroup;
|
---|
80 | QSet<QString> m_userModifiedParameters;
|
---|
81 | };
|
---|
82 |
|
---|
83 | #endif /* !FEQT_INCLUDED_SRC_wizards_clonevm_UIWizardCloneVMNamePathPage_h */
|
---|