VirtualBox

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

Last change on this file since 82968 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/* $Id: UIFDCreationDialog.h 82968 2020-02-04 10:35:17Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIFDCreationDialog class declaration.
4 */
5
6/*
7 * Copyright (C) 2008-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_medium_UIFDCreationDialog_h
19#define FEQT_INCLUDED_SRC_medium_UIFDCreationDialog_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* Qt includes: */
25#include <QDialog>
26#include <QUuid>
27
28/* GUI Includes */
29#include "QIWithRetranslateUI.h"
30
31/* Forward declarations: */
32class QCheckBox;
33class QComboBox;
34class QDialogButtonBox;
35class QLabel;
36class UIFilePathSelector;
37
38/* A QDialog extension to get necessary setting from the user for floppy disk creation */
39class SHARED_LIBRARY_STUFF UIFDCreationDialog : public QIWithRetranslateUI<QDialog>
40
41{
42 Q_OBJECT;
43
44
45public:
46
47 UIFDCreationDialog(QWidget *pParent,
48 const QString &strDefaultFolder,
49 const QString &strMachineName = QString());
50
51
52 virtual void accept() /* override */;
53 /* Return the mediumID */
54 QUuid mediumID() const;
55
56protected:
57
58 void retranslateUi();
59
60private slots:
61
62
63private:
64 enum FDSize
65 {
66 //FDSize_2_88M,
67 FDSize_1_44M,
68 FDSize_1_2M,
69 FDSize_720K,
70 FDSize_360K
71 };
72 void prepare();
73 QString getDefaultFolder() const;
74
75 UIFilePathSelector *m_pFilePathselector;
76 QLabel *m_pPathLabel;
77 QLabel *m_pSizeLabel;
78 QComboBox *m_pSizeCombo;
79 QDialogButtonBox *m_pButtonBox;
80 QCheckBox *m_pFormatCheckBox;
81 QString m_strDefaultFolder;
82 QString m_strMachineName;
83 QUuid m_uMediumID;
84};
85
86#endif /* !FEQT_INCLUDED_SRC_medium_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