#ifndef VALVETESTWINDOW_H #define VALVETESTWINDOW_H #include #include "udphandler.h" namespace Ui { class ValveTestWindow; } class ValveTestWindow : public QMainWindow { Q_OBJECT public: explicit ValveTestWindow(QWidget *parent = 0); ~ValveTestWindow(); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void steamValveOpen(); void steamValveClose(); void steamPumpOn(); void steamPumpOff(); void quenchingValveOpen(); void quenchingValveClose(); void sideValveOpen(); void sideValveClose(); void cleanValveOpen(); void cleanValveClose(); void onDataChanged(); void on_steamValveButton_clicked(); void on_steamPumpButton_clicked(); void on_quenchingValveButton_clicked(); void on_sideValveButton_clicked(); void on_cleanValveButton_clicked(); void on_backButton_clicked(); private: Ui::ValveTestWindow *ui; UdpHandler *udp; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); }; #endif // VALVETESTWINDOW_H