2014-09-19 16:27:39 +02:00
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
2015-04-28 17:42:11 +02:00
|
|
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
2014-09-19 16:27:39 +02:00
|
|
|
*
|
|
|
|
* 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 ALONGSIDEPAGE_H
|
|
|
|
#define ALONGSIDEPAGE_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2015-09-18 15:41:07 +02:00
|
|
|
#include "core/OsproberEntry.h"
|
2014-09-23 17:42:11 +02:00
|
|
|
|
2014-10-06 18:30:23 +02:00
|
|
|
class QComboBox;
|
|
|
|
class QLabel;
|
2014-09-19 16:27:39 +02:00
|
|
|
class PartitionCoreModule;
|
2014-10-06 18:30:23 +02:00
|
|
|
class PartitionSplitterWidget;
|
|
|
|
class Partition;
|
2015-12-03 17:19:02 +01:00
|
|
|
class PartitionBarsView;
|
2015-12-03 19:40:06 +01:00
|
|
|
class PartitionLabelsView;
|
2014-10-06 18:30:23 +02:00
|
|
|
class Device;
|
2014-09-19 16:27:39 +02:00
|
|
|
|
|
|
|
class AlongsidePage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit AlongsidePage( QWidget* parent = nullptr );
|
|
|
|
|
2015-12-15 14:00:34 +01:00
|
|
|
void init( PartitionCoreModule* core );
|
2014-09-19 16:27:39 +02:00
|
|
|
|
|
|
|
bool isNextEnabled() const;
|
|
|
|
|
2014-10-06 18:30:23 +02:00
|
|
|
void applyChanges();
|
|
|
|
|
2014-09-19 16:27:39 +02:00
|
|
|
signals:
|
|
|
|
void nextStatusChanged( bool );
|
|
|
|
|
2015-05-29 16:21:55 +02:00
|
|
|
private slots:
|
|
|
|
void onPartitionSelected( int comboBoxIndex );
|
|
|
|
|
2014-09-19 16:27:39 +02:00
|
|
|
private:
|
|
|
|
void setNextEnabled( bool enabled );
|
|
|
|
|
2014-10-06 18:30:23 +02:00
|
|
|
QComboBox* m_partitionsComboBox;
|
|
|
|
PartitionSplitterWidget* m_splitterWidget;
|
2015-12-03 17:19:02 +01:00
|
|
|
PartitionBarsView* m_previewWidget;
|
2015-12-03 19:40:06 +01:00
|
|
|
PartitionLabelsView* m_previewLabels;
|
2014-10-06 18:30:23 +02:00
|
|
|
QLabel* m_sizeLabel;
|
|
|
|
|
2015-05-29 16:45:24 +02:00
|
|
|
QLabel* m_efiLabel;
|
|
|
|
QComboBox* m_efiComboBox;
|
|
|
|
|
2014-09-19 16:27:39 +02:00
|
|
|
PartitionCoreModule* m_core;
|
|
|
|
|
2015-05-29 16:21:55 +02:00
|
|
|
bool m_isEfi;
|
|
|
|
|
2014-09-19 16:27:39 +02:00
|
|
|
bool m_nextEnabled;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ALONGSIDEPAGE_H
|