-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPageSpecification.cpp
More file actions
30 lines (25 loc) · 926 Bytes
/
PageSpecification.cpp
File metadata and controls
30 lines (25 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "Wizard.h"
#include "PageSpecification.h"
#include <QVBoxLayout>
PageSpecification::PageSpecification(QWidget *parent): QWizardPage(parent)
{
setTitle(tr("Specification Data Source"));
setPixmap(QWizard::WatermarkPixmap, QPixmap(":/pics/logo.jpg"));
topLabel = new QLabel(tr("Select the source of the specification data. It can"
" be contained in a simple text file or can be entered manually."));
topLabel->setWordWrap(true);
specManually = new QRadioButton(tr("Input specification data &manually"));
specFile = new QRadioButton(tr("Use specification &file"));
specManually->setChecked(true);
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(topLabel);
layout->addWidget(specManually);
layout->addWidget(specFile);
setLayout(layout);
}
int PageSpecification::nextId() const
{
if (specFile->isChecked())
return Wizard::Page_Specification_File;
return Wizard::Page_Specification_Data;
}