#ifndef MULTICOOKSELECTIONWINDOW_H #define MULTICOOKSELECTIONWINDOW_H #include #include "multicook.h" #include "multicookbook.h" namespace Ui { class MultiCookSelectionWindow; } class MultiCookSelectionWindow : public QMainWindow { Q_OBJECT public: explicit MultiCookSelectionWindow(QWidget *parent = 0); ~MultiCookSelectionWindow(); void setMode(Define::Mode mode); signals: void selected(MultiCook*); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void updateView(); void handleModeClick(Define::Mode mode); void handleTypeClick(Define::CookType type); void on_steamButton_clicked(); void on_combiButton_clicked(); void on_dryheatButton_clicked(); void on_poultryButton_clicked(); void on_meatButton_clicked(); void on_fishButton_clicked(); void on_dessertButton_clicked(); void on_grainButton_clicked(); void on_breadButton_clicked(); void on_etcButton_clicked(); void on_backButton_clicked(); void on_helpButton_clicked(); private: Ui::MultiCookSelectionWindow *ui; Define::Mode mode; MultiCookBook book; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); }; #endif // MULTICOOKSELECTIONWINDOW_H