source: calamares/trunk/fuentes/src/modules/summary/SummaryViewStep.cpp @ 7538

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

sync with github

File size: 1.9 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014-2015, Teo Mrnjavac <teo@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#include "SummaryViewStep.h"
20
21#include "SummaryPage.h"
22
23CALAMARES_PLUGIN_FACTORY_DEFINITION( SummaryViewStepFactory, registerPlugin<SummaryViewStep>(); )
24
25SummaryViewStep::SummaryViewStep( QObject* parent )
26    : Calamares::ViewStep( parent )
27    , m_widget( new SummaryPage( this ) )
28{
29    emit nextStatusChanged( true );
30}
31
32
33SummaryViewStep::~SummaryViewStep()
34{
35    if ( m_widget && m_widget->parent() == nullptr )
36        m_widget->deleteLater();
37}
38
39
40QString
41SummaryViewStep::prettyName() const
42{
43    return tr( "Summary" );
44}
45
46
47QWidget*
48SummaryViewStep::widget()
49{
50    return m_widget;
51}
52
53
54void
55SummaryViewStep::next()
56{
57    emit done();
58}
59
60
61void
62SummaryViewStep::back()
63{}
64
65
66bool
67SummaryViewStep::isNextEnabled() const
68{
69    return true;
70}
71
72
73bool
74SummaryViewStep::isBackEnabled() const
75{
76    return true;
77}
78
79
80bool
81SummaryViewStep::isAtBeginning() const
82{
83    return true;
84}
85
86
87bool
88SummaryViewStep::isAtEnd() const
89{
90    return true;
91}
92
93
94QList< Calamares::job_ptr >
95SummaryViewStep::jobs() const
96{
97    return QList< Calamares::job_ptr >();
98}
99
100
101void
102SummaryViewStep::onActivate()
103{
104    m_widget->onActivate();
105}
106
107
108void
109SummaryViewStep::onLeave()
110{
111    m_widget->createContentWidget();
112}
113
Note: See TracBrowser for help on using the repository browser.