Modified welcome text file so it shows proper names in the reporsitory
[confmgr] / addstep.cpp
1 #include "addstep.h"
2 #include "ui_addstep.h"
3
4 AddStep::AddStep(QWidget *parent) :
5     QWidget(parent),
6     ui(new Ui::AddStep)
7 {
8     ui->setupUi(this);
9 }
10
11 AddStep::~AddStep()
12 {
13     delete ui;
14 }
15
16 void AddStep::AddOperationStep()
17 {
18     mStep.setDelay(ui->addStepDelay->text().toInt());
19     mStep.setValue(ui->addStepValue->text());
20     emit(StepAddedSuccessfully(mStep));
21     this->close();
22 }
23
24 void AddStep::clear()
25 {
26     ui->addStepDelay->setText(QString::null);
27     ui->addStepValue->setText(QString::null);
28 }
29
30 void AddStep::showStep(Steps &step)
31 {
32     mStep = step;
33     clear();
34     ui->addStepDelay->setText(QString::number(mStep.delay()));
35     ui->addStepValue->setText(mStep.value());
36     this->show();
37 }