VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.h@ 90826

Last change on this file since 90826 was 90826, checked in by vboxsync, 3 years ago

FE/Qt: bugref:9996. Adding missing connections to clone vd pages.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: UIWizardCloneVDPageExpert.h 90826 2021-08-24 07:52:10Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardCloneVDPageExpert class declaration.
4 */
5
6/*
7 * Copyright (C) 2006-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_clonevd_UIWizardCloneVDPageExpert_h
19#define FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDPageExpert_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* GUI includes: */
25#include "UINativeWizardPage.h"
26#include "UIWizardCloneVDPageBasic3.h"
27
28/* Forward declarations: */
29class UIDiskFormatsGroupBox;
30class UIDiskVariantGroupBox;
31class UIMediumSizeAndPathGroupBox;
32
33
34/** Expert page of the Clone Virtual Disk Image wizard: */
35class UIWizardCloneVDPageExpert : public UINativeWizardPage
36{
37 Q_OBJECT;
38
39public:
40
41 /** Constructs basic page.
42 * @param comSourceVirtualDisk Brings the initial source disk to make copy from.
43 * @param enmDeviceType Brings the device type to limit format to. */
44 UIWizardCloneVDPageExpert(KDeviceType enmDeviceType, qulonglong uSourceDiskLogicaSize);
45
46private slots:
47
48 /** Handles medium format change. */
49 void sltMediumFormatChanged();
50
51 /** Handles target disk change. */
52 void sltSelectLocationButtonClicked();
53 void sltMediumPathChanged(const QString &strPath);
54 void sltMediumVariantChanged(qulonglong uVariant);
55 void sltMediumSizeChanged(qulonglong uSize);
56
57private:
58
59 /** Handles translation event. */
60 virtual void retranslateUi() /* override */;
61
62 /** Prepares the page. */
63 virtual void initializePage() /* override */;
64
65 /** Returns whether the page is complete. */
66 virtual bool isComplete() const /* override */;
67
68 /** Returns whether the page is valid. */
69 virtual bool validatePage() /* override */;
70
71 void prepare(KDeviceType enmDeviceType, qulonglong uSourceDiskLogicaSize);
72
73 /** Sets the target disk name and location. */
74 void setTargetLocation();
75 UIWizardCloneVD *cloneWizard();
76
77
78
79 UIDiskFormatsGroupBox *m_pFormatGroupBox;
80 UIDiskVariantGroupBox *m_pVariantGroupBox;
81 UIMediumSizeAndPathGroupBox *m_pMediumSizePathGroupBox;
82
83
84};
85
86#endif /* !FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDPageExpert_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