2014-06-27 17:25:39 +02:00
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
|
|
|
* Copyright 2014, Aurélien Gâteau <agateau@kde.org>
|
|
|
|
*
|
|
|
|
* Calamares 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.
|
|
|
|
*
|
|
|
|
* Calamares 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 Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PARTITIONPAGE_H
|
|
|
|
#define PARTITIONPAGE_H
|
|
|
|
|
2014-07-03 18:00:40 +02:00
|
|
|
#include <QWidget>
|
2014-06-27 17:25:39 +02:00
|
|
|
#include <QScopedPointer>
|
|
|
|
|
2014-06-30 13:37:46 +02:00
|
|
|
class PartitionCoreModule;
|
2014-06-27 17:25:39 +02:00
|
|
|
class Ui_PartitionPage;
|
|
|
|
|
2014-07-15 17:37:04 +02:00
|
|
|
class Device;
|
2014-06-27 17:25:39 +02:00
|
|
|
class DeviceModel;
|
2014-07-15 17:37:04 +02:00
|
|
|
class Partition;
|
2014-06-27 17:25:39 +02:00
|
|
|
|
2014-07-03 18:00:40 +02:00
|
|
|
class PartitionPage : public QWidget
|
2014-06-27 17:25:39 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-07-02 16:06:54 +02:00
|
|
|
explicit PartitionPage( PartitionCoreModule* core, QWidget* parent = 0 );
|
2014-06-27 17:25:39 +02:00
|
|
|
~PartitionPage();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
|
|
|
|
private:
|
|
|
|
QScopedPointer< Ui_PartitionPage > m_ui;
|
2014-06-30 13:37:46 +02:00
|
|
|
PartitionCoreModule* m_core;
|
2014-06-30 15:04:10 +02:00
|
|
|
void updateButtons();
|
2014-07-10 19:55:16 +02:00
|
|
|
void onNewPartitionTableClicked();
|
2014-06-30 16:17:28 +02:00
|
|
|
void onCreateClicked();
|
2014-07-15 17:37:04 +02:00
|
|
|
void onEditClicked();
|
2014-07-02 15:49:35 +02:00
|
|
|
void onDeleteClicked();
|
2014-07-15 17:37:04 +02:00
|
|
|
|
2014-07-16 16:20:58 +02:00
|
|
|
void updatePartitionToCreate( Device*, Partition* );
|
2014-07-17 09:49:15 +02:00
|
|
|
void editExistingPartition( Device*, Partition* );
|
2014-07-23 18:15:46 +02:00
|
|
|
void updateBootLoaderInstallPath();
|
2014-06-27 17:25:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PARTITIONPAGE_H
|