functiontestwindow.cpp 1.4 KB
#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) :
    QMainWindow(parent),
    ui(new Ui::FunctionTestWindow)
{
    ui->setupUi(this);

    ui->clockContainer->setParent(ui->upperStack);
    setAttribute(Qt::WA_DeleteOnClose);

    connect(ui->backButton, SIGNAL(clicked(bool)), SLOT(close()));
}

FunctionTestWindow::~FunctionTestWindow()
{
    delete ui;
}

void FunctionTestWindow::on_burnerTestButton_clicked()
{
    BurnerTestWindow *w = new BurnerTestWindow(this);
    w->showFullScreen();
}

void FunctionTestWindow::on_componentTestButton_clicked()
{
    ComponentTestWindow *w = new ComponentTestWindow(this);
    w->showFullScreen();
}

void FunctionTestWindow::on_valveTestButton_clicked()
{
    ValveTestWindow *w = new ValveTestWindow(this);
    w->showFullScreen();
}

void FunctionTestWindow::on_washTestButton_clicked()
{
    WashTestWindow *w = new WashTestWindow(this);
    w->showFullScreen();
}

void FunctionTestWindow::on_fanTestButton_clicked()
{
    FanTestWindow *w = new FanTestWindow(this);
    w->showFullScreen();
}

void FunctionTestWindow::on_gasTestButton_clicked()
{
//    GasTestWindow *w = new GasTestWindow(this, udp);
//    w->showFullScreen();
}