1 | /* $Id: UIWizardNewVDExpertPage.h 91272 2021-09-16 07:48:28Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardNewVDExpertPage 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_newvd_UIWizardNewVDExpertPage_h
|
---|
19 | #define FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDExpertPage_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | /* GUI includes: */
|
---|
25 | #include "UINativeWizardPage.h"
|
---|
26 |
|
---|
27 | /* Forward declarations: */
|
---|
28 | class UIDiskFormatsGroupBox;
|
---|
29 | class UIDiskVariantWidget;
|
---|
30 | class UIMediumSizeAndPathGroupBox;
|
---|
31 |
|
---|
32 | /** Expert page of the New Virtual Hard Drive wizard. */
|
---|
33 | class SHARED_LIBRARY_STUFF UIWizardNewVDExpertPage : public UINativeWizardPage
|
---|
34 | {
|
---|
35 | Q_OBJECT;
|
---|
36 |
|
---|
37 | public:
|
---|
38 |
|
---|
39 | UIWizardNewVDExpertPage(const QString &strDefaultName, const QString &strDefaultPath, qulonglong uDefaultSize);
|
---|
40 |
|
---|
41 | private slots:
|
---|
42 |
|
---|
43 | void sltMediumFormatChanged();
|
---|
44 | void sltSelectLocationButtonClicked();
|
---|
45 | void sltMediumVariantChanged(qulonglong uVariant);
|
---|
46 | void sltMediumPathChanged(const QString &strPath);
|
---|
47 | void sltMediumSizeChanged(qulonglong uSize);
|
---|
48 |
|
---|
49 | private:
|
---|
50 |
|
---|
51 | /** Translation stuff. */
|
---|
52 | void retranslateUi();
|
---|
53 |
|
---|
54 | /** Prepare stuff. */
|
---|
55 | void prepare();
|
---|
56 | void initializePage();
|
---|
57 |
|
---|
58 | /** Validation stuff. */
|
---|
59 | bool isComplete() const;
|
---|
60 | bool validatePage();
|
---|
61 | void updateDiskWidgetsAfterMediumFormatChange();
|
---|
62 |
|
---|
63 | /** @name Widgets
|
---|
64 | * @{ */
|
---|
65 | UIMediumSizeAndPathGroupBox *m_pSizeAndPathGroup;
|
---|
66 | UIDiskFormatsGroupBox *m_pFormatComboxBox;
|
---|
67 | UIDiskVariantWidget *m_pVariantWidget;
|
---|
68 | /** @} */
|
---|
69 |
|
---|
70 | /** @name Variable
|
---|
71 | * @{ */
|
---|
72 | QString m_strDefaultName;
|
---|
73 | QString m_strDefaultPath;
|
---|
74 | qulonglong m_uDefaultSize;
|
---|
75 | qulonglong m_uMediumSizeMin;
|
---|
76 | qulonglong m_uMediumSizeMax;
|
---|
77 | /** @} */
|
---|
78 | };
|
---|
79 |
|
---|
80 | #endif /* !FEQT_INCLUDED_SRC_wizards_newvd_UIWizardNewVDExpertPage_h */
|
---|