/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2014 Aurélien Gâteau * SPDX-FileCopyrightText: 2018 Adriaan de Groot * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * */ #ifndef EDITEXISTINGPARTITIONDIALOG_H #define EDITEXISTINGPARTITIONDIALOG_H #include #include #include class PartitionCoreModule; class Device; class Partition; class PartitionSizeController; class Ui_EditExistingPartitionDialog; /** * 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: 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; PartitionTable::Flags newFlags() const; void replacePartResizerWidget(); void updateMountPointPicker(); }; #endif /* EDITEXISTINGPARTITIONDIALOG_H */