VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDExpertPage.h@ 104158

Last change on this file since 104158 was 103957, checked in by vboxsync, 10 months ago

FE/Qt. bugref:10622. Using new UITranslationEventListener in wizard page class hierarchy.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: UIWizardCloneVDExpertPage.h 103957 2024-03-20 13:41:59Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardCloneVDExpertPage class declaration.
4 */
5
6/*
7 * Copyright (C) 2006-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_clonevd_UIWizardCloneVDExpertPage_h
29#define FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDExpertPage_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UINativeWizardPage.h"
36
37/* COM includes: */
38#include "KDeviceType.h"
39
40/* Forward declarations: */
41class QGroupBox;
42class UIDiskFormatsComboBox;
43class UIDiskVariantWidget;
44class UIMediumSizeAndPathGroupBox;
45
46
47/** Expert page of the Clone Virtual Disk Image wizard: */
48class UIWizardCloneVDExpertPage : public UINativeWizardPage
49{
50 Q_OBJECT;
51
52public:
53
54 /** Constructs the page.
55 * @param comSourceVirtualDisk Brings the initial source disk to make copy from.
56 * @param enmDeviceType Brings the device type to limit format to. */
57 UIWizardCloneVDExpertPage(KDeviceType enmDeviceType, qulonglong uSourceDiskLogicaSize);
58
59private slots:
60
61 /** Handles medium format change. */
62 void sltMediumFormatChanged();
63
64 /** Handles target disk change. */
65 void sltSelectLocationButtonClicked();
66 void sltMediumPathChanged(const QString &strPath);
67 void sltMediumVariantChanged(qulonglong uVariant);
68 void sltMediumSizeChanged(qulonglong uSize);
69 /** Handles translation event. */
70 virtual void sltRetranslateUI() RT_OVERRIDE;
71
72private:
73
74 /** Prepares the page. */
75 virtual void initializePage() RT_OVERRIDE;
76
77 /** Returns whether the page is complete. */
78 virtual bool isComplete() const RT_OVERRIDE;
79
80 /** Returns whether the page is valid. */
81 virtual bool validatePage() RT_OVERRIDE;
82
83 void prepare(KDeviceType enmDeviceType, qulonglong uSourceDiskLogicaSize);
84
85 /** Sets the target disk name and location. */
86 void setTargetLocation();
87 void updateDiskWidgetsAfterMediumFormatChange();
88
89 UIDiskFormatsComboBox *m_pFormatComboBox;
90 UIDiskVariantWidget *m_pVariantWidget;
91 UIMediumSizeAndPathGroupBox *m_pMediumSizePathGroupBox;
92 QGroupBox *m_pFormatVariantGroupBox;
93 KDeviceType m_enmDeviceType;
94};
95
96#endif /* !FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDExpertPage_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette