VirtualBox

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

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

FE/Qt: bugref:9083 Adding a create floppy dialog to the UIMediumSelector. fix take

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: UIFDCreationDialog.h 72869 2018-07-04 11:31:55Z 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 QDialogButtonBox;
30class QLabel;
31class QComboBox;
32class UIFilePathSelector;
33
34/* A QDialog extension to get necessary setting from the user for floppy disk creation */
35class SHARED_LIBRARY_STUFF UIFDCreationDialog : public QIWithRetranslateUI<QDialog>
36
37{
38 Q_OBJECT;
39
40
41public:
42
43 UIFDCreationDialog(QWidget *pParent = 0,
44 const QString &strMachineName = QString(),
45 const QString &strMachineSettingsFilePath = QString());
46
47 virtual void accept() /* override */;
48
49protected:
50
51 void retranslateUi();
52
53private slots:
54
55
56private:
57 enum FDSize
58 {
59 FDSize_2_88M,
60 FDSize_1_44M,
61 FDSize_1_2M,
62 FDSize_720K,
63 FDSize_360K
64 };
65 void prepare();
66 QString getDefaultFolder() const;
67 UIFilePathSelector *m_pFilePathselector;
68 QString m_strMachineName;
69 QString m_strMachineSettingsFilePath;
70 QLabel *m_pPathLabel;
71 QLabel *m_pSizeLabel;
72 QComboBox *m_pSizeCombo;
73 QDialogButtonBox *m_pButtonBox;
74};
75
76#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