13 #include "qwt_global.h"
14 #include "qwt_abstract_scale.h"
15 #include "qwt_interval.h"
52 Q_PROPERTY(
bool alarmEnabled READ alarmEnabled WRITE setAlarmEnabled )
53 Q_PROPERTY(
double alarmLevel READ alarmLevel WRITE setAlarmLevel )
54 Q_PROPERTY(
ScalePos scalePosition READ scalePosition
55 WRITE setScalePosition )
56 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
57 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
58 Q_PROPERTY(
int pipeWidth READ pipeWidth WRITE setPipeWidth )
59 Q_PROPERTY(
double value READ value WRITE setValue )
89 explicit QwtThermo( QWidget *parent = NULL );
92 void setOrientation( Qt::Orientation, ScalePos );
94 void setScalePosition( ScalePos s );
95 ScalePos scalePosition()
const;
97 void setSpacing(
int );
100 void setBorderWidth(
int w );
101 int borderWidth()
const;
103 void setFillBrush(
const QBrush &b );
104 const QBrush &fillBrush()
const;
106 void setAlarmBrush(
const QBrush &b );
107 const QBrush &alarmBrush()
const;
109 void setAlarmLevel(
double v );
110 double alarmLevel()
const;
112 void setAlarmEnabled(
bool tf );
113 bool alarmEnabled()
const;
119 void setPipeWidth(
int w );
120 int pipeWidth()
const;
125 double value()
const;
127 virtual QSize sizeHint()
const;
128 virtual QSize minimumSizeHint()
const;
134 virtual void setValue(
double val );
137 virtual void drawLiquid( QPainter *,
const QRect & )
const;
140 virtual void paintEvent( QPaintEvent * );
141 virtual void resizeEvent( QResizeEvent * );
142 virtual void changeEvent( QEvent * );
146 QRect pipeRect()
const;
149 void layoutThermo(
bool );