source: calamares/trunk/fuentes/src/modules/partition/gui/EditExistingPartitionDialog.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 2.0 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014, Aurélien Gâteau <agateau@kde.org>
4 *
5 *   Calamares is free software: you can redistribute it and/or modify
6 *   it under the terms of the GNU General Public License as published by
7 *   the Free Software Foundation, either version 3 of the License, or
8 *   (at your option) any later version.
9 *
10 *   Calamares is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef EDITEXISTINGPARTITIONDIALOG_H
20#define EDITEXISTINGPARTITIONDIALOG_H
21
22#include <kpmcore/core/partitiontable.h>
23
24#include <QDialog>
25#include <QScopedPointer>
26
27class PartitionCoreModule;
28class Device;
29class Partition;
30class PartitionSizeController;
31class Ui_EditExistingPartitionDialog;
32
33/**
34 * The dialog which is shown to edit a partition which already existed when the installer started.
35 *
36 * It lets you decide how to reuse the partition: whether to keep its content
37 * or reformat it, whether to resize or move it.
38 */
39class EditExistingPartitionDialog : public QDialog
40{
41    Q_OBJECT
42public:
43    EditExistingPartitionDialog( Device* device, Partition* partition, const QStringList& usedMountPoints, QWidget* parentWidget = nullptr );
44    ~EditExistingPartitionDialog();
45
46    void applyChanges( PartitionCoreModule* module );
47
48private slots:
49    void checkMountPointSelection();
50
51private:
52    QScopedPointer< Ui_EditExistingPartitionDialog > m_ui;
53    Device* m_device;
54    Partition* m_partition;
55    PartitionSizeController* m_partitionSizeController;
56    QStringList m_usedMountPoints;
57
58    PartitionTable::Flags newFlags() const;
59    void replacePartResizerWidget();
60    void updateMountPointPicker();
61};
62
63#endif /* EDITEXISTINGPARTITIONDIALOG_H */
Note: See TracBrowser for help on using the repository browser.