dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
summarypage.cpp
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  */
27 
28 #include "summarypage.h"
29 #include "ui_summarypage.h"
30 #include "setupwizard.h"
32 
33 SummaryPage::SummaryPage(SetupWizard *wizard, QWidget *parent)
34  : AbstractWizardPage(wizard, parent)
35  , ui(new Ui::SummaryPage)
36 {
37  ui->setupUi(this);
38  connect(ui->illustrationButton, &QAbstractButton::clicked, this, &SummaryPage::showDiagram);
39 }
40 
42 {
43  delete ui;
44 }
45 
47 {
48  return true;
49 }
50 
52 {
53  ui->configurationSummary->setText(getWizard()->getSummaryText());
54 }
55 
56 void SummaryPage::showDiagram()
57 {
58  ConnectionDiagram diagram(this);
59  diagram.exec();
60 }
The SetupWizard class is the main interface to the setup wizard. It provides selects the sequence of ...
Definition: setupwizard.h:47
void initializePage()
Definition: summarypage.cpp:51
SetupWizard * getWizard() const
SummaryPage(SetupWizard *wizard, QWidget *parent=nullptr)
Definition: summarypage.cpp:33
bool validatePage()
Definition: summarypage.cpp:46