VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPathSizePage.h

Last change on this file was 103957, checked in by vboxsync, 2 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.3 KB
Line 
1/* $Id: UIWizardCloneVDPathSizePage.h 103957 2024-03-20 13:41:59Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardCloneVDPathSizePage 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_UIWizardCloneVDPathSizePage_h
29#define FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDPathSizePage_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QVariant>
36#include <QSet>
37
38/* GUI includes: */
39#include "UINativeWizardPage.h"
40
41/* COM includes: */
42
43/* Forward declarations: */
44class UIMediumSizeAndPathGroupBox;
45
46/** 4th page of the Clone Virtual Disk Image wizard (basic extension): */
47class UIWizardCloneVDPathSizePage : public UINativeWizardPage
48{
49 Q_OBJECT;
50
51public:
52
53 /** Constructs basic page. */
54 UIWizardCloneVDPathSizePage(qulonglong uSourceDiskLogicaSize);
55
56private slots:
57
58 /** Handles command to open target disk. */
59 void sltSelectLocationButtonClicked();
60 void sltMediumPathChanged(const QString &strPath);
61 void sltMediumSizeChanged(qulonglong uSize);
62 /** Handles translation event. */
63 virtual void sltRetranslateUI() RT_OVERRIDE;
64
65private:
66
67 void prepare(qulonglong uSourceDiskLogicaSize);
68
69 /** Prepares the page. */
70 virtual void initializePage() RT_OVERRIDE;
71
72 /** Returns whether the page is complete. */
73 virtual bool isComplete() const RT_OVERRIDE;
74
75 /** Returns whether the page is valid. */
76 virtual bool validatePage() RT_OVERRIDE;
77
78 UIMediumSizeAndPathGroupBox *m_pMediumSizePathGroupBox;
79 QSet<QString> m_userModifiedParameters;
80};
81
82#endif /* !FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVDPathSizePage_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use