#ifndef AUTOCOOKCONFIGWINDOW_H #define AUTOCOOKCONFIGWINDOW_H #include #include #include #include #include #include "oven.h" //#include "cook.h" #include "cookbook.h" namespace Ui { class AutoCookConfigWindow; } class AutoCookConfigWindow : public QMainWindow { Q_OBJECT public: explicit AutoCookConfigWindow(QWidget *parent, Cook cook); ~AutoCookConfigWindow(); private: Ui::AutoCookConfigWindow *ui; Oven *oven; Cook cook; QTimer cookStartTimer; struct ConfigWidget { QPushButton *button; QLabel *minimum; QLabel *maximum; QLabel *current; QSlider *slider; }; QList configWidgets; private slots: void setupUi(); void updateView(); void updateConfig(); void startTimer(); void stopTimer(); void start(); void on_backButton_clicked(); }; #endif // AUTOCOOKCONFIGWINDOW_H