13 #include "qwt_global.h"
14 #include "qwt_abstract_scale.h"
15 #include "qwt_interval.h"
89 Q_PROPERTY(
bool alarmEnabled READ alarmEnabled WRITE setAlarmEnabled )
90 Q_PROPERTY(
double alarmLevel READ alarmLevel WRITE setAlarmLevel )
91 Q_PROPERTY(
ScalePos scalePosition READ scalePosition
92 WRITE setScalePosition )
93 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
94 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
95 Q_PROPERTY(
double maxValue READ maxValue WRITE setMaxValue )
96 Q_PROPERTY(
double minValue READ minValue WRITE setMinValue )
97 Q_PROPERTY(
int pipeWidth READ pipeWidth WRITE setPipeWidth )
98 Q_PROPERTY(
double value READ value WRITE setValue )
128 explicit QwtThermo( QWidget *parent = NULL );
131 void setOrientation( Qt::Orientation, ScalePos );
133 void setScalePosition( ScalePos s );
134 ScalePos scalePosition()
const;
136 void setSpacing(
int );
139 void setBorderWidth(
int w );
140 int borderWidth()
const;
142 void setFillBrush(
const QBrush &b );
143 const QBrush &fillBrush()
const;
145 void setAlarmBrush(
const QBrush &b );
146 const QBrush &alarmBrush()
const;
148 void setAlarmLevel(
double v );
149 double alarmLevel()
const;
151 void setAlarmEnabled(
bool tf );
152 bool alarmEnabled()
const;
158 void setPipeWidth(
int w );
159 int pipeWidth()
const;
164 void setMaxValue(
double v );
165 double maxValue()
const;
167 void setMinValue(
double v );
168 double minValue()
const;
170 double value()
const;
172 void setRange(
double vmin,
double vmax,
bool lg =
false );
174 virtual QSize sizeHint()
const;
175 virtual QSize minimumSizeHint()
const;
181 virtual void setValue(
double val );
184 virtual void drawLiquid( QPainter *,
const QRect & )
const;
187 virtual void paintEvent( QPaintEvent * );
188 virtual void resizeEvent( QResizeEvent * );
189 virtual void changeEvent( QEvent * );
193 QRect pipeRect()
const;
196 void layoutThermo(
bool );