#ifndef AUTOCOOKSELECTIONWINDOW_H #define AUTOCOOKSELECTIONWINDOW_H #include #include #include "oven.h" #include "cookbook.h" namespace Ui { class AutoCookSelectionWindow; } class AutoCookSelectionWindow : public QMainWindow { Q_OBJECT public: explicit AutoCookSelectionWindow(QWidget *parent, Define::CookType type); ~AutoCookSelectionWindow(); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void onCookSelected(int idx); void on_backButton_clicked(); void on_configButton_clicked(); void on_washButton_clicked(); void on_helpButton_clicked(); private: Ui::AutoCookSelectionWindow *ui; Define::CookType type; CookBook book; bool autoCookWindowOpened; QPushButton *firstEntry = NULL; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); }; #endif // AUTOCOOKSELECTIONWINDOW_H