-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialogcommand.cpp
85 lines (71 loc) · 1.38 KB
/
dialogcommand.cpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include "dialogcommand.h"
#include "ui_dialogcommand.h"
DialogCommand::DialogCommand(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogCommand)
{
ui->setupUi(this);
}
DialogCommand::~DialogCommand()
{
delete ui;
}
void DialogCommand::run()
{
m_command = new Command();
show();
}
Command* DialogCommand::command()
{
return m_command;
}
void DialogCommand::on_pushButton_clicked()
{
m_command->setId(Command::ShowDialog);
hide();
}
void DialogCommand::on_pushButton_2_clicked()
{
m_command->setId(Command::MultipleChoice);
hide();
}
void DialogCommand::on_pushButton_3_clicked()
{
m_command->setId(Command::ImputNumber);
hide();
}
void DialogCommand::on_pushButton_4_clicked()
{
m_command->setId(Command::ImputString);
hide();
}
void DialogCommand::on_pushButton_5_clicked()
{
m_command->setId(Command::If);
hide();
}
void DialogCommand::on_pushButton_6_clicked()
{
m_command->setId(Command::SetLabel);
hide();
}
void DialogCommand::on_pushButton_7_clicked()
{
m_command->setId(Command::GoToLabel);
hide();
}
void DialogCommand::on_pushButton_8_clicked()
{
m_command->setId(Command::Loop);
hide();
}
void DialogCommand::on_pushButton_9_clicked()
{
m_command->setId(Command::Break);
hide();
}
void DialogCommand::on_pushButton_10_clicked()
{
m_command->setId(Command::Continue);
hide();
}