#ifndef BURNERTESTWINDOW_H #define BURNERTESTWINDOW_H #include #include #include "udphandler.h" namespace Ui { class BurnerTestWindow; } class BurnerTestWindow : public QMainWindow { Q_OBJECT public: explicit BurnerTestWindow(QWidget *parent = 0); ~BurnerTestWindow(); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void steamOn(); void steamOff(); void upperOn(); void upperOff(); void lowerOn(); void lowerOff(); void onDataChanged(); void on_steamBurnerButton_clicked(); void on_upperBurnerButton_clicked(); void on_lowerBurnerButton_clicked(); void on_backButton_clicked(); private: Ui::BurnerTestWindow *ui; UdpHandler *udp; QTimer steamTimer; QTimer upperTimer; QTimer lowerTimer; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); }; #endif // BURNERTESTWINDOW_H