#ifndef WASHTESTWINDOW_H #define WASHTESTWINDOW_H #include #include "udphandler.h" namespace Ui { class WashTestWindow; } class WashTestWindow : public QMainWindow { Q_OBJECT public: explicit WashTestWindow(QWidget *parent = 0); ~WashTestWindow(); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void steamPumpOn(); void steamPumpOff(); void cleanserPumpOn(); void cleanserPumpOff(); void upperPumpOn(); void upperPumpOff(); void drainValveOpen(); void drainValveClose(); void onDataChanged(); void on_steamPumpButton_clicked(); void on_cleanserPumpButton_clicked(); void on_upperPumpButton_clicked(); void on_drainValveStartButton_clicked(); void on_drainValveStopButton_clicked(); void on_backButton_clicked(); private: Ui::WashTestWindow *ui; UdpHandler *udp; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); }; #endif // WASHTESTWINDOW_H