#ifndef AUTOCOOKSETTINGWIDGET_H #define AUTOCOOKSETTINGWIDGET_H #include #include #include #include #include "define.h" #include "cook.h" #include "cookhistory.h" namespace Ui { class AutoCookSettingWidget; } class AutoCookSettingWidget : public QWidget { Q_OBJECT struct ConfigWidget { QPushButton *button; QLabel *minimum; QLabel *maximum; QLabel *current; QSlider *slider; }; public: explicit AutoCookSettingWidget(AutoCookSetting setting, QWidget *parent = 0); ~AutoCookSettingWidget(); private: Ui::AutoCookSettingWidget *ui; QList configWidgets; void setupUi(Cook cook); }; #endif // AUTOCOOKSETTINGWIDGET_H