17 #include "qwt_global.h" 
   18 #include "qwt_abstract_scale.h" 
   75     Q_PROPERTY( QBrush alarmBrush READ alarmBrush WRITE setAlarmBrush )
 
   76     Q_PROPERTY( QColor alarmColor READ alarmColor WRITE setAlarmColor )
 
   77     Q_PROPERTY( 
bool alarmEnabled READ alarmEnabled WRITE setAlarmEnabled )
 
   78     Q_PROPERTY( 
double alarmLevel READ alarmLevel WRITE setAlarmLevel )
 
   79     Q_PROPERTY( ScalePos scalePosition READ scalePosition
 
   80         WRITE setScalePosition )
 
   81     Q_PROPERTY( 
int borderWidth READ borderWidth WRITE setBorderWidth )
 
   82     Q_PROPERTY( QBrush fillBrush READ fillBrush WRITE setFillBrush )
 
   83     Q_PROPERTY( QColor fillColor READ fillColor WRITE setFillColor )
 
   84     Q_PROPERTY( 
double maxValue READ maxValue WRITE setMaxValue )
 
   85     Q_PROPERTY( 
double minValue READ minValue WRITE setMinValue )
 
   86     Q_PROPERTY( 
int pipeWidth READ pipeWidth WRITE setPipeWidth )
 
   87     Q_PROPERTY( 
double value READ value WRITE setValue )
 
  107     explicit QwtThermo(QWidget *parent = NULL);
 
  108 #if QT_VERSION < 0x040000 
  109     explicit QwtThermo(QWidget *parent, 
const char *name);
 
  113     void setOrientation(Qt::Orientation o, ScalePos s);
 
  115     void setScalePosition(ScalePos s);
 
  116     ScalePos scalePosition() 
const;
 
  118     void setBorderWidth(
int w);
 
  119     int borderWidth() 
const;
 
  121     void setFillBrush(
const QBrush &b);
 
  122     const QBrush &fillBrush() 
const;
 
  124     void setFillColor(
const QColor &c);
 
  125     const QColor &fillColor() 
const;
 
  127     void setAlarmBrush(
const QBrush &b);
 
  128     const QBrush &alarmBrush() 
const;
 
  130     void setAlarmColor(
const QColor &c);
 
  131     const QColor &alarmColor() 
const;
 
  133     void setAlarmLevel(
double v);
 
  134     double alarmLevel() 
const;
 
  136     void setAlarmEnabled(
bool tf);
 
  137     bool alarmEnabled() 
const;
 
  139     void setPipeWidth(
int w);
 
  140     int pipeWidth() 
const;
 
  142     void setMaxValue(
double v);
 
  143     double maxValue() 
const;
 
  145     void setMinValue(
double v);
 
  146     double minValue() 
const;
 
  148     double value() 
const;
 
  150     void setRange(
double vmin, 
double vmax, 
bool lg = 
false);
 
  151     void setMargin(
int m);
 
  153     virtual QSize sizeHint() 
const;
 
  154     virtual QSize minimumSizeHint() 
const;
 
  160     void setValue(
double val);
 
  163     void draw(QPainter *p, 
const QRect& update_rect);
 
  164     void drawThermo(QPainter *p);
 
  165     void layoutThermo( 
bool update = 
true );
 
  167     virtual void fontChange(
const QFont &oldFont);
 
  169     virtual void paintEvent(QPaintEvent *e);
 
  170     virtual void resizeEvent(QResizeEvent *e);
 
  176     int transform(
double v) 
const;