2014-07-08 17:28:35 +02:00
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
2015-04-09 18:02:29 +02:00
|
|
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
2014-07-08 17:28:35 +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 SUMMARYPAGE_H
|
|
|
|
#define SUMMARYPAGE_H
|
|
|
|
|
2015-09-09 19:06:44 +02:00
|
|
|
#include "Typedefs.h"
|
|
|
|
|
2014-07-08 17:28:35 +02:00
|
|
|
#include <QWidget>
|
|
|
|
|
2014-07-08 18:24:39 +02:00
|
|
|
class QLabel;
|
2015-04-09 18:02:29 +02:00
|
|
|
class QScrollArea;
|
2014-07-30 14:15:29 +02:00
|
|
|
class QVBoxLayout;
|
2015-09-09 19:06:44 +02:00
|
|
|
class SummaryViewStep;
|
2014-07-08 18:24:39 +02:00
|
|
|
|
2014-07-08 17:28:35 +02:00
|
|
|
class SummaryPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-09-09 19:06:44 +02:00
|
|
|
explicit SummaryPage( const SummaryViewStep* thisViewStep, QWidget* parent = nullptr );
|
2014-07-08 17:28:35 +02:00
|
|
|
|
2014-07-08 18:24:39 +02:00
|
|
|
void onActivate();
|
|
|
|
|
|
|
|
private:
|
2015-09-09 19:06:44 +02:00
|
|
|
Calamares::ViewStepList stepsForSummary( const Calamares::ViewStepList& allSteps ) const;
|
|
|
|
|
|
|
|
const SummaryViewStep* m_thisViewStep;
|
|
|
|
|
2014-07-30 14:15:29 +02:00
|
|
|
QVBoxLayout* m_layout = nullptr;
|
|
|
|
QWidget* m_contentWidget = nullptr;
|
|
|
|
|
|
|
|
void createContentWidget();
|
|
|
|
QLabel* createTitleLabel( const QString& text ) const;
|
|
|
|
QLabel* createBodyLabel( const QString& text ) const;
|
2015-04-09 18:02:29 +02:00
|
|
|
|
|
|
|
QScrollArea* m_scrollArea;
|
2014-07-08 17:28:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SUMMARYPAGE_H
|