#include <qwt_thermo.h>
Inherits QWidget, and QwtScaleIf.
Inheritance diagram for QwtThermo

Public Types | |
| enum | Orientation { Horizontal, Vertical } |
| enum | ScalePos { None, Left, Right, Top, Bottom } |
Public Methods | |
| QwtThermo (QWidget *parent = 0, const char *name = 0) | |
| ~QwtThermo () | |
| void | setOrientation (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 () |
Public Slots | |
| void | setValue (double val) |
Protected Methods | |
| void | paintEvent (QPaintEvent *e) |
| void | resizeEvent (QResizeEvent *e) |
| void | scaleChange () |
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Qt paint event handler.
|
|
|
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.3 written by Dimitri van Heesch,
© 1997-2000