functiontestwindow.cpp
1.46 KB
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
#include "functiontestwindow.h"
#include "ui_functiontestwindow.h"
#include "burnertestwindow.h"
#include "componenttestwindow.h"
#include "valvetestwindow.h"
#include "washtestwindow.h"
#include "fantestwindow.h"
#include "gastestwindow.h"
FunctionTestWindow::FunctionTestWindow(QWidget *parent, UdpHandler *udp) :
QMainWindow(parent),
ui(new Ui::FunctionTestWindow), udp(udp)
{
ui->setupUi(this);
ui->clockContainer->setParent(ui->upperStack);
setAttribute(Qt::WA_DeleteOnClose);
connect(ui->backButton, SIGNAL(clicked(bool)), this, SLOT(deleteLater()));
}
FunctionTestWindow::~FunctionTestWindow()
{
delete ui;
}
void FunctionTestWindow::on_burnerTestButton_clicked()
{
BurnerTestWindow *w = new BurnerTestWindow(this, udp);
w->showFullScreen();
}
void FunctionTestWindow::on_componentTestButton_clicked()
{
ComponentTestWindow *w = new ComponentTestWindow(this, udp);
w->showFullScreen();
}
void FunctionTestWindow::on_valveTestButton_clicked()
{
ValveTestWindow *w = new ValveTestWindow(this, udp);
w->showFullScreen();
}
void FunctionTestWindow::on_washTestButton_clicked()
{
WashTestWindow *w = new WashTestWindow(this, udp);
w->showFullScreen();
}
void FunctionTestWindow::on_fanTestButton_clicked()
{
FanTestWindow *w = new FanTestWindow(this, udp);
w->showFullScreen();
}
void FunctionTestWindow::on_gasTestButton_clicked()
{
GasTestWindow *w = new GasTestWindow(this, udp);
w->showFullScreen();
}