VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/medium/UIFDCreationDialog.h@ 72913

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

FE/Qt: bugref:9083 Adding a checkbox to enable floppy formatting while creation

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
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: */
29class QCheckBox;
30class QComboBox;
31class QDialogButtonBox;
32class QLabel;
33class UIFilePathSelector;
34
35/* A QDialog extension to get necessary setting from the user for floppy disk creation */
36class SHARED_LIBRARY_STUFF UIFDCreationDialog : public QIWithRetranslateUI<QDialog>
37
38{
39 Q_OBJECT;
40
41
42public:
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
52protected:
53
54 void retranslateUi();
55
56private slots:
57
58
59private:
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__
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