calamares/src/modules/partition/gui/EditExistingPartitionDialog.h

59 lines
1.7 KiB
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
*
2020-08-22 01:19:58 +02:00
* SPDX-FileCopyrightText: 2014 Aurélien Gâteau <agateau@kde.org>
* SPDX-FileCopyrightText: 2018 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef EDITEXISTINGPARTITIONDIALOG_H
#define EDITEXISTINGPARTITIONDIALOG_H
2016-03-04 19:13:49 +01:00
#include <kpmcore/core/partitiontable.h>
#include <QDialog>
#include <QScopedPointer>
class PartitionCoreModule;
class Device;
class Partition;
class PartitionSizeController;
class Ui_EditExistingPartitionDialog;
2014-08-08 11:46:43 +02:00
/**
* The dialog which is shown to edit a partition which already existed when the installer started.
*
* It lets you decide how to reuse the partition: whether to keep its content
* or reformat it, whether to resize or move it.
*/
class EditExistingPartitionDialog : public QDialog
{
Q_OBJECT
public:
2020-08-22 01:19:58 +02:00
EditExistingPartitionDialog( Device* device,
Partition* partition,
const QStringList& usedMountPoints,
QWidget* parentWidget = nullptr );
~EditExistingPartitionDialog() override;
void applyChanges( PartitionCoreModule* module );
private slots:
void checkMountPointSelection();
private:
QScopedPointer< Ui_EditExistingPartitionDialog > m_ui;
Device* m_device;
Partition* m_partition;
PartitionSizeController* m_partitionSizeController;
QStringList m_usedMountPoints;
2016-03-04 19:13:49 +01:00
PartitionTable::Flags newFlags() const;
void replacePartResizerWidget();
void updateMountPointPicker();
};
#endif /* EDITEXISTINGPARTITIONDIALOG_H */