Blame view

app/gui/oven_control/circulargauge.h 557 Bytes
99b8066f4   김태훈   V0.1.1
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
32
33
34
35
  #ifndef CIRCULARGAUGE_H
  #define CIRCULARGAUGE_H
  
  #include <QWidget>
  #include <QLabel>
  
  class CircularGauge : public QWidget
  {
      Q_OBJECT
  public:
      explicit CircularGauge(QWidget *parent = 0);
  
  signals:
  
  public slots:
      void setValue(int value);
      void setMaximum(int maximum);
      void setMinimum(int minimum);
  
  protected:
      QImage background;
      QImage bar;
      QImage indicator;
      QImage icon;
      QImage line;
  
      void paintEvent(QPaintEvent *event);
  
  private:
      int value;
      int maximum;
      int minimum;
  };
  
  #endif // CIRCULARGAUGE_H