2020-09-16 00:35:12 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2014-2017 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2010-01-29 11:25:28 +00:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#if !defined(CREATEPARTITIONTABLEDIALOG_H)
|
2010-01-29 11:25:28 +00:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#define CREATEPARTITIONTABLEDIALOG_H
|
2010-01-29 11:25:28 +00:00
|
|
|
|
|
|
|
#include "gui/createpartitiontablewidget.h"
|
|
|
|
|
2016-01-12 00:12:49 +00:00
|
|
|
#include <core/partitiontable.h>
|
2010-02-01 16:32:45 +00:00
|
|
|
|
2014-05-17 03:06:58 +01:00
|
|
|
#include <QDialog>
|
2010-01-29 11:25:28 +00:00
|
|
|
|
|
|
|
class Device;
|
2014-05-17 03:06:58 +01:00
|
|
|
class QDialogButtonBox;
|
|
|
|
class QPushButton;
|
2010-01-29 11:25:28 +00:00
|
|
|
|
2014-05-17 03:06:58 +01:00
|
|
|
class CreatePartitionTableDialog : public QDialog
|
2010-01-29 11:25:28 +00:00
|
|
|
{
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
|
|
|
CreatePartitionTableDialog(QWidget* parent, const Device& d);
|
2010-01-29 11:25:28 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
|
|
|
PartitionTable::TableType type() const;
|
2010-01-29 11:25:28 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
protected:
|
|
|
|
CreatePartitionTableWidget& widget() {
|
|
|
|
return *m_DialogWidget;
|
|
|
|
}
|
|
|
|
const CreatePartitionTableWidget& widget() const {
|
|
|
|
return *m_DialogWidget;
|
|
|
|
}
|
|
|
|
const Device& device() const {
|
|
|
|
return m_Device;
|
|
|
|
}
|
2010-01-29 11:25:28 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
void onMSDOSToggled(bool on);
|
2010-04-11 19:06:47 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
private:
|
|
|
|
CreatePartitionTableWidget* m_DialogWidget;
|
|
|
|
const Device& m_Device;
|
2014-05-17 03:06:58 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
QDialogButtonBox* dialogButtonBox;
|
|
|
|
QPushButton* createButton;
|
|
|
|
QPushButton* cancelButton;
|
2010-01-29 11:25:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|