File indexing completed on 2024-04-28 05:46:31
0001 /* 0002 SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de> 0003 SPDX-FileCopyrightText: 2014-2017 Andrius Štikonas <andrius@stikonas.eu> 0004 0005 SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #if !defined(CREATEPARTITIONTABLEDIALOG_H) 0009 0010 #define CREATEPARTITIONTABLEDIALOG_H 0011 0012 #include "gui/createpartitiontablewidget.h" 0013 0014 #include <core/partitiontable.h> 0015 0016 #include <QDialog> 0017 0018 class Device; 0019 class QDialogButtonBox; 0020 class QPushButton; 0021 0022 class CreatePartitionTableDialog : public QDialog 0023 { 0024 public: 0025 CreatePartitionTableDialog(QWidget* parent, const Device& d); 0026 0027 public: 0028 PartitionTable::TableType type() const; 0029 0030 protected: 0031 CreatePartitionTableWidget& widget() { 0032 return *m_DialogWidget; 0033 } 0034 const CreatePartitionTableWidget& widget() const { 0035 return *m_DialogWidget; 0036 } 0037 const Device& device() const { 0038 return m_Device; 0039 } 0040 0041 void onMSDOSToggled(bool on); 0042 0043 private: 0044 CreatePartitionTableWidget* m_DialogWidget; 0045 const Device& m_Device; 0046 0047 QDialogButtonBox* dialogButtonBox; 0048 QPushButton* createButton; 0049 QPushButton* cancelButton; 0050 }; 0051 0052 0053 #endif