1 | /* $Id: UIFDCreationDialog.h 72913 2018-07-05 09:30:09Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIFDCreationDialog class declaration.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2008-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 __UIFDCreationDialog_h__
|
---|
19 | #define __UIFDCreationDialog_h__
|
---|
20 |
|
---|
21 | /* Qt includes: */
|
---|
22 | #include <QDialog>
|
---|
23 |
|
---|
24 |
|
---|
25 | /* GUI Includes */
|
---|
26 | #include "QIWithRetranslateUI.h"
|
---|
27 |
|
---|
28 | /* Forward declarations: */
|
---|
29 | class QCheckBox;
|
---|
30 | class QComboBox;
|
---|
31 | class QDialogButtonBox;
|
---|
32 | class QLabel;
|
---|
33 | class UIFilePathSelector;
|
---|
34 |
|
---|
35 | /* A QDialog extension to get necessary setting from the user for floppy disk creation */
|
---|
36 | class SHARED_LIBRARY_STUFF UIFDCreationDialog : public QIWithRetranslateUI<QDialog>
|
---|
37 |
|
---|
38 | {
|
---|
39 | Q_OBJECT;
|
---|
40 |
|
---|
41 |
|
---|
42 | public:
|
---|
43 |
|
---|
44 | UIFDCreationDialog(QWidget *pParent = 0,
|
---|
45 | const QString &strMachineName = QString(),
|
---|
46 | const QString &strMachineFolder = QString());
|
---|
47 |
|
---|
48 | virtual void accept() /* override */;
|
---|
49 | /* Return the mediumID */
|
---|
50 | QString mediumID() const;
|
---|
51 |
|
---|
52 | protected:
|
---|
53 |
|
---|
54 | void retranslateUi();
|
---|
55 |
|
---|
56 | private slots:
|
---|
57 |
|
---|
58 |
|
---|
59 | private:
|
---|
60 | enum FDSize
|
---|
61 | {
|
---|
62 | //FDSize_2_88M,
|
---|
63 | FDSize_1_44M,
|
---|
64 | FDSize_1_2M,
|
---|
65 | FDSize_720K,
|
---|
66 | FDSize_360K
|
---|
67 | };
|
---|
68 | void prepare();
|
---|
69 | QString getDefaultFolder() const;
|
---|
70 |
|
---|
71 | UIFilePathSelector *m_pFilePathselector;
|
---|
72 | QLabel *m_pPathLabel;
|
---|
73 | QLabel *m_pSizeLabel;
|
---|
74 | QComboBox *m_pSizeCombo;
|
---|
75 | QDialogButtonBox *m_pButtonBox;
|
---|
76 | QCheckBox *m_pFormatCheckBox;
|
---|
77 | QString m_strMachineName;
|
---|
78 | QString m_strMachineFolder;
|
---|
79 | QString m_strMediumID;
|
---|
80 | };
|
---|
81 |
|
---|
82 | #endif // __UIFDCreationDialog_h__
|
---|