Initial Commit. The packaging still does not work properly.
[confmgr] / addstep.cpp
diff --git a/addstep.cpp b/addstep.cpp
new file mode 100644 (file)
index 0000000..bc05e5f
--- /dev/null
@@ -0,0 +1,28 @@
+#include "addstep.h"
+#include "ui_addstep.h"
+
+AddStep::AddStep(QWidget *parent) :
+    QWidget(parent),
+    ui(new Ui::AddStep)
+{
+    ui->setupUi(this);
+}
+
+AddStep::~AddStep()
+{
+    delete ui;
+}
+
+void AddStep::AddOperationStep()
+{
+    mStep.setDelay(ui->addStepDelay->text().toInt());
+    mStep.setValue(ui->addStepValue->text());
+    emit(StepAddedSuccessfully(mStep));
+    this->close();
+}
+
+void AddStep::clear()
+{
+    ui->addStepDelay->setText(QString::null);
+    ui->addStepValue->setText(QString::null);
+}