VirtualBox

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

Last change on this file since 91035 was 91035, checked in by vboxsync, 4 years ago

FE/Qt: bugref:9996. Some more code cleaning

  • 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 91035 2021-08-31 15:57:07Z 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
27/* COM includes: */
28#include "COMEnums.h"
29
30/* Forward declarations: */
31class UIDiskFormatsGroupBox;
32class UIDiskVariantGroupBox;
33class UIMediumSizeAndPathGroupBox;
34
35/** Expert page of the Clone Virtual Disk Image wizard: */
36class UIWizardCloneVDPageExpert : public UINativeWizardPage
37{
38 Q_OBJECT;
39
40public:
41
42 /** Constructs the page.
43 * @param comSourceVirtualDisk Brings the initial source disk to make copy from.
44 * @param enmDeviceType Brings the device type to limit format to. */
45 UIWizardCloneVDPageExpert(KDeviceType enmDeviceType, qulonglong uSourceDiskLogicaSize);
46
47private slots:
48
49 /** Handles medium format change. */
50 void sltMediumFormatChanged();
51
52 /** Handles target disk change. */
53 void sltSelectLocationButtonClicked();
54 void sltMediumPathChanged(const QString &strPath);
55 void sltMediumVariantChanged(qulonglong uVariant);
56 void sltMediumSizeChanged(qulonglong uSize);
57
58private:
59
60 /** Handles translation event. */
61 virtual void retranslateUi() /* override */;
62
63 /** Prepares the page. */
64 virtual void initializePage() /* override */;
65
66 /** Returns whether the page is complete. */
67 virtual bool isComplete() const /* override */;
68
69 /** Returns whether the page is valid. */
70 virtual bool validatePage() /* override */;
71
72 void prepare(KDeviceType enmDeviceType, qulonglong uSourceDiskLogicaSize);
73
74 /** Sets the target disk name and location. */
75 void setTargetLocation();
76 void updateDiskWidgetsAfterMediumFormatChange();
77
78 UIDiskFormatsGroupBox *m_pFormatGroupBox;
79 UIDiskVariantGroupBox *m_pVariantGroupBox;
80 UIMediumSizeAndPathGroupBox *m_pMediumSizePathGroupBox;
81 KDeviceType m_enmDeviceType;
82};
83
84#endif /* !FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDPageExpert_h */
Note: See TracBrowser for help on using the repository browser.

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