source: trigger/gui/t72/humidity.h@ 9492

Last change on this file since 9492 was 77, checked in by rissim, 16 years ago
trigger: gui added, interface modified
File size: 677 bytes
Line 
1#ifndef HUMIDITY_H
2#define HUMIDITY_H
3
4
5#include <QWidget>
6#include <QVBoxLayout>
7
8class Humidity : public QWidget
9{
10 float MaxVal;
11 float MinVal;
12 Q_OBJECT
13public:
14 Humidity( QWidget *parent=0 );
15 float value();
16 void setMaxVal(float val){MaxVal=val;};
17 void setMinVal(float val){MinVal=val;};
18 float getMaxVal(){return MaxVal;};
19 float getMinVal(){return MinVal;};
20 private:
21 float val;
22
23 QVBoxLayout* ColorWidg;
24 public slots:
25 void setValue( float );
26
27
28
29 signals:
30 void valueChanged( float );
31
32 protected:
33 void paintEvent( QPaintEvent * );
34 private:
35 QColor *bgColor;
36 //QSlider *slider;
37};
38
39
40#endif // HUMIDITY_H
41
Note: See TracBrowser for help on using the repository browser.