#include <qwt_thermo.h>
Inheritance diagram for QwtThermo::

Public Types | |
| enum | ScalePos { None, Left, Right, Top, Bottom } |
Public Slots | |
| void | setValue (double val) |
Public Methods | |
| QwtThermo (QWidget *parent=0, const char *name=0) | |
| virtual | ~QwtThermo () |
| void | setOrientation (Qt::Orientation o, ScalePos s) |
| void | setBorderWidth (int w) |
| void | setFillColor (const QColor &c) |
| void | setAlarmColor (const QColor &c) |
| void | setAlarmLevel (double v) |
| void | setAlarmEnabled (int tf) |
| void | setPipeWidth (int w) |
| void | setRange (double vmin, double vmax) |
| void | setMargin (int m) |
| double | maxValue () |
| double | minValue () |
| double | value () |
| virtual QSize | sizeHint () const |
| virtual QSize | minimumSizeHint () const |
| virtual QSizePolicy | sizePolicy () const |
Protected Methods | |
| void | draw (QPainter *p, const QRect &update_rect) |
| void | drawThermo (QPainter *p) |
| void | layoutThermo (bool update=TRUE) |
| virtual void | scaleChange () |
| virtual void | fontChange (const QFont &oldFont) |
| virtual void | paintEvent (QPaintEvent *e) |
| virtual void | resizeEvent (QResizeEvent *e) |
|
|
Position of the scale
|
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
redraw the thermo.
|
|
|
Redraw the thermometer.
|
|
|
notify changed font.
|
|
|
Recalculate the thermo's geometry and layout based on.
|
|
|
|
|
|
Return a minimum size hint.
|
|
|
|
|
|
Qt paint event.
|
|
|
Qt resize event handler.
|
|
|
notify changed scale.
Reimplemented from QwtScaleIf. |
|
|
Specify liquid color above the alarm threshold.
|
|
|
Enable or disable alarm threshold.
|
|
|
Specify the alarm threshold.
|
|
|
Set the border width of the pipe.
|
|
|
Change the color of the liquid.
|
|
|
Specify the distance between the pipe's endpoints and the widget's border.
The margin is used to leave some space for the scale labels. If a large font is used, it is advisable to adjust the margins.
|
|
||||||||||||
|
Change the thermometer's orientation.
The scale position None disables the scale.
|
|
|
Change the width of the pipe.
|
|
||||||||||||
|
Set the range.
|
|
|
Set the current value.
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001