VirtualBox

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

Last change on this file since 71027 was 71027, checked in by vboxsync, 7 years ago

FE/Qt: big svn props cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/* $Id: UIWizardCloneVDPageExpert.h 71027 2018-02-15 14:33:48Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardCloneVDPageExpert class declaration.
4 */
5
6/*
7 * Copyright (C) 2006-2017 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 ___UIWizardCloneVDPageExpert_h___
19#define ___UIWizardCloneVDPageExpert_h___
20
21/* GUI includes: */
22#include "UIWizardCloneVDPageBasic1.h"
23#include "UIWizardCloneVDPageBasic2.h"
24#include "UIWizardCloneVDPageBasic3.h"
25#include "UIWizardCloneVDPageBasic4.h"
26
27/* Forward declarations: */
28class QGroupBox;
29
30
31/** Expert page of the Clone Virtual Disk Image wizard: */
32class UIWizardCloneVDPageExpert : public UIWizardPage,
33 public UIWizardCloneVDPage1,
34 public UIWizardCloneVDPage2,
35 public UIWizardCloneVDPage3,
36 public UIWizardCloneVDPage4
37{
38 Q_OBJECT;
39 Q_PROPERTY(CMedium sourceVirtualDisk READ sourceVirtualDisk WRITE setSourceVirtualDisk);
40 Q_PROPERTY(CMediumFormat mediumFormat READ mediumFormat WRITE setMediumFormat);
41 Q_PROPERTY(qulonglong mediumVariant READ mediumVariant WRITE setMediumVariant);
42 Q_PROPERTY(QString mediumPath READ mediumPath);
43 Q_PROPERTY(qulonglong mediumSize READ mediumSize);
44
45public:
46
47 /** Constructs basic page.
48 * @param comSourceVirtualDisk Brings the initial source disk to make copy from.
49 * @param enmDeviceType Brings the device type to limit format to. */
50 UIWizardCloneVDPageExpert(const CMedium &comSourceVirtualDisk, KDeviceType enmDeviceType);
51
52protected:
53
54 /** Allows to access 'wizard()' from base part. */
55 UIWizard* wizardImp() { return wizard(); }
56 /** Allows to access 'this' from base part. */
57 UIWizardPage* thisImp() { return this; }
58 /** Allows to access 'field()' from base part. */
59 QVariant fieldImp(const QString &strFieldName) const { return UIWizardPage::field(strFieldName); }
60
61private slots:
62
63 /** Handles source disk change. */
64 void sltHandleSourceDiskChange();
65 /** Handles command to open source disk. */
66 void sltHandleOpenSourceDiskClick();
67
68 /** Handles medium format change. */
69 void sltMediumFormatChanged();
70
71 /** Handles target disk change. */
72 void sltSelectLocationButtonClicked();
73
74private:
75
76 /** Handles translation event. */
77 virtual void retranslateUi() /* override */;
78
79 /** Prepares the page. */
80 virtual void initializePage() /* override */;
81
82 /** Returns whether the page is complete. */
83 virtual bool isComplete() const /* override */;
84
85 /** Returns whether the page is valid. */
86 virtual bool validatePage() /* override */;
87
88 /** Holds the source disk container instance. */
89 QGroupBox *m_pSourceDiskCnt;
90 /** Holds the format container instance. */
91 QGroupBox *m_pFormatCnt;
92 /** Holds the variant container instance. */
93 QGroupBox *m_pVariantCnt;
94 /** Holds the target disk container instance. */
95 QGroupBox *m_pDestinationCnt;
96};
97
98#endif /* !___UIWizardCloneVDPageExpert_h___ */
99
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