Blame view

app/gui/oven_control/favoritenamepopup.h 959 Bytes
f588aa273   김태훈   부가 기능 로직 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  #ifndef FAVORITENAMEPOPUP_H
  #define FAVORITENAMEPOPUP_H
  
  #include <QWidget>
  
  #include "cookhistory.h"
  
  namespace Ui {
  class FavoriteNamePopup;
  }
  
  class FavoriteNamePopup : public QWidget
  {
      Q_OBJECT
  
      explicit FavoriteNamePopup(QWidget *parent);
  
  public:
      explicit FavoriteNamePopup(QWidget *parent, ManualCookSetting setting);
      explicit FavoriteNamePopup(QWidget *parent, AutoCookSetting setting);
      ~FavoriteNamePopup();
9e1f8d093   김태훈   엔코더 구현 대비 선행 수정
22
23
24
  protected:
      void keyPressEvent(QKeyEvent *event);
      void keyReleaseEvent(QKeyEvent *event);
f588aa273   김태훈   부가 기능 로직 추가
25
26
27
28
29
30
  private:
      Ui::FavoriteNamePopup *ui;
  
      enum { Manual, Auto } type;
      ManualCookSetting manualSetting;
      AutoCookSetting autoSetting;
9e1f8d093   김태훈   엔코더 구현 대비 선행 수정
31
32
33
34
35
      QWidget *pushed = NULL;
  
      void onEncoderLeft();
      void onEncoderRight();
      void onEncoderClicked(QWidget *clicked);
f588aa273   김태훈   부가 기능 로직 추가
36
37
38
39
40
41
42
43
  private slots:
      void ok();
      void cancel();
      void on_okButton_clicked();
      void on_cancelButton_clicked();
  };
  
  #endif // FAVORITENAMEPOPUP_H