Blame view

app/gui/oven_control/autocooksettingwidget.h 978 Bytes
f588aa273   김태훈   부가 기능 로직 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  #ifndef AUTOCOOKSETTINGWIDGET_H
  #define AUTOCOOKSETTINGWIDGET_H
  
  #include <QWidget>
  #include <QPushButton>
  #include <QLabel>
  #include <QSlider>
  
  #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();
9e1f8d093   김태훈   엔코더 구현 대비 선행 수정
32
33
34
  protected:
      void keyPressEvent(QKeyEvent *event);
      void keyReleaseEvent(QKeyEvent *event);
f588aa273   김태훈   부가 기능 로직 추가
35
36
37
38
39
  private:
      Ui::AutoCookSettingWidget *ui;
      QList<ConfigWidget> configWidgets;
  
      void setupUi(Cook cook);
9e1f8d093   김태훈   엔코더 구현 대비 선행 수정
40
41
42
43
44
45
  
      QWidget *pushed = NULL;
  
      void onEncoderLeft();
      void onEncoderRight();
      void onEncoderClicked(QWidget *clicked);
f588aa273   김태훈   부가 기능 로직 추가
46
47
48
  };
  
  #endif // AUTOCOOKSETTINGWIDGET_H