VirtualBox

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

Last change on this file since 76532 was 76532, checked in by vboxsync, 6 years ago

Frontends: scm --fix-header-guards. bugref:9344

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: UIFDCreationDialog.h 76532 2018-12-30 06:08:06Z 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#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 = 0,
48 const QString &strMachineName = QString(),
49 const QString &strMachineFolder = QString());
50
51 virtual void accept() /* override */;
52 /* Return the mediumID */
53 QUuid mediumID() const;
54
55protected:
56
57 void retranslateUi();
58
59private slots:
60
61
62private:
63 enum FDSize
64 {
65 //FDSize_2_88M,
66 FDSize_1_44M,
67 FDSize_1_2M,
68 FDSize_720K,
69 FDSize_360K
70 };
71 void prepare();
72 QString getDefaultFolder() const;
73
74 UIFilePathSelector *m_pFilePathselector;
75 QLabel *m_pPathLabel;
76 QLabel *m_pSizeLabel;
77 QComboBox *m_pSizeCombo;
78 QDialogButtonBox *m_pButtonBox;
79 QCheckBox *m_pFormatCheckBox;
80 QString m_strMachineName;
81 QString m_strMachineFolder;
82 QUuid m_uMediumID;
83};
84
85#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