2015-02-07 00:32:25 +00:00
|
|
|
/*************************************************************************
|
|
|
|
* Copyright (C) 2010 by Volker Lanz <vl@fidra.de> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 3 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
|
|
|
*************************************************************************/
|
2010-01-29 11:25:28 +00:00
|
|
|
|
|
|
|
#if !defined(CREATEPARTITIONTABLEDIALOG__H)
|
|
|
|
|
|
|
|
#define CREATEPARTITIONTABLEDIALOG__H
|
|
|
|
|
|
|
|
#include "gui/createpartitiontablewidget.h"
|
|
|
|
|
2015-06-04 01:51:56 +01:00
|
|
|
#include <kpmcore/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
|
|
|
Q_OBJECT
|
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
|
|
|
protected Q_SLOTS:
|
|
|
|
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
|