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

Public Types | |
| enum | ScalePos { None, Left, Right, Top, Bottom } |
Public Slots | |
| void | setValue (double val) |
Public Member Functions | |
| 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 Member Functions | |
| 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) |
Private Member Functions | |
| void | init () |
Private Attributes | |
| QwtDiMap | d_map |
| QRect | d_thermoRect |
| QColor | d_fillColor |
| QColor | d_alarmColor |
| Qt::Orientation | d_orient |
| ScalePos | d_scalePos |
| int | d_borderWidth |
| int | d_scaleDist |
| int | d_thermoWidth |
| double | d_minValue |
| double | d_maxValue |
| double | d_value |
| double | d_alarmLevel |
| int | d_alarmEnabled |
Definition at line 24 of file qwt_thermo.h.
|
|
Position of the scale
Definition at line 33 of file qwt_thermo.h. |
|
||||||||||||
|
Constructor.
Definition at line 19 of file qwt_thermo.cpp. References init(). |
|
|
Destructor.
Definition at line 26 of file qwt_thermo.cpp. |
|
||||||||||||
|
redraw the thermo
Definition at line 78 of file qwt_thermo.cpp. References d_borderWidth, QwtScaleIf::d_scaleDraw, d_scalePos, d_thermoRect, QwtScaleDraw::draw(), drawThermo(), and None. Referenced by paintEvent(). |
|
|
Redraw the thermometer.
Definition at line 252 of file qwt_thermo.cpp. References d_alarmColor, d_alarmEnabled, d_alarmLevel, d_fillColor, d_map, d_maxValue, d_minValue, d_orient, d_thermoRect, d_value, and QwtDiMap::limTransform(). Referenced by draw(). |
|
|
notify changed font
Definition at line 238 of file qwt_thermo.cpp. References layoutThermo(). |
|
|
initialize data members
Definition at line 31 of file qwt_thermo.cpp. References d_alarmColor, d_alarmEnabled, d_alarmLevel, d_borderWidth, d_fillColor, d_map, QwtScaleIf::d_maxMajor, QwtScaleIf::d_maxMinor, d_maxValue, d_minValue, d_orient, d_scaleDist, QwtScaleIf::d_scaleDraw, d_scalePos, d_thermoWidth, d_value, Left, QwtDiMap::setDblRange(), and QwtScaleDraw::setScale(). Referenced by QwtThermo(). |
|
|
Recalculate the thermo's geometry and layout based on.
Definition at line 105 of file qwt_thermo.cpp. References QwtScaleDraw::Bottom, Bottom, d_borderWidth, d_map, d_orient, d_scaleDist, QwtScaleIf::d_scaleDraw, d_scalePos, d_thermoRect, d_thermoWidth, QwtScaleDraw::Left, Left, QwtScaleDraw::minBorderDist(), None, QwtScaleDraw::Right, Right, QwtScaleDraw::setGeometry(), QwtDiMap::setIntRange(), QwtScaleDraw::Top, and Top. Referenced by fontChange(), resizeEvent(), scaleChange(), setBorderWidth(), setOrientation(), setPipeWidth(), and setRange(). |
|
|
Definition at line 48 of file qwt_thermo.h. |
|
|
Return a minimum size hint.
Definition at line 546 of file qwt_thermo.cpp. References d_borderWidth, d_orient, d_scaleDist, QwtScaleIf::d_scaleDraw, d_scalePos, d_thermoWidth, QwtScaleDraw::minHeight(), QwtScaleDraw::minWidth(), and None. Referenced by sizeHint(). |
|
|
Definition at line 50 of file qwt_thermo.h. |
|
|
Qt paint event.
Definition at line 66 of file qwt_thermo.cpp. References draw(), and QwtPaintBuffer::painter(). |
|
|
Qt resize event handler.
Definition at line 96 of file qwt_thermo.cpp. References layoutThermo(). |
|
|
notify changed scale
Implements QwtScaleIf. Definition at line 245 of file qwt_thermo.cpp. References layoutThermo(). Referenced by setRange(). |
|
|
Specify liquid color above the alarm threshold.
Definition at line 456 of file qwt_thermo.cpp. References d_alarmColor. |
|
|
Enable or disable alarm threshold.
Definition at line 504 of file qwt_thermo.cpp. References d_alarmEnabled. |
|
|
Specify the alarm threshold.
Definition at line 463 of file qwt_thermo.cpp. References d_alarmEnabled, and d_alarmLevel. |
|
|
Set the border width of the pipe.
Definition at line 410 of file qwt_thermo.cpp. References d_borderWidth, d_thermoRect, layoutThermo(), and qwtMin. |
|
|
Change the color of the liquid.
Definition at line 446 of file qwt_thermo.cpp. References d_fillColor. |
|
|
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.
Definition at line 495 of file qwt_thermo.cpp. |
|
||||||||||||
|
Change the thermometer's orientation. The scale position None disables the scale.
Definition at line 214 of file qwt_thermo.cpp. References Bottom, d_orient, d_scalePos, layoutThermo(), Left, None, Right, and Top. |
|
|
Change the width of the pipe.
Definition at line 471 of file qwt_thermo.cpp. References d_thermoWidth, and layoutThermo(). |
|
||||||||||||
|
Set the range.
Definition at line 425 of file qwt_thermo.cpp. References d_map, QwtScaleIf::d_maxMajor, QwtScaleIf::d_maxMinor, d_maxValue, d_minValue, QwtScaleIf::d_scaleDraw, QwtScaleIf::hasUserScale(), layoutThermo(), scaleChange(), QwtScaleDraw::scaleDiv(), QwtDiMap::setDblRange(), and QwtScaleDraw::setScale(). |
|
|
Set the current value.
Definition at line 56 of file qwt_thermo.cpp. References d_value. |
|
|
Definition at line 536 of file qwt_thermo.cpp. References minimumSizeHint(). |
|
|
Definition at line 515 of file qwt_thermo.cpp. References QwtScaleIf::d_scaleDraw, QwtScaleDraw::Left, QwtScaleDraw::orientation(), and QwtScaleDraw::Right. |
|
|
Definition at line 52 of file qwt_thermo.h. |
|
|
Definition at line 77 of file qwt_thermo.h. Referenced by drawThermo(), init(), and setAlarmColor(). |
|
|
Definition at line 89 of file qwt_thermo.h. Referenced by drawThermo(), init(), setAlarmEnabled(), and setAlarmLevel(). |
|
|
Definition at line 88 of file qwt_thermo.h. Referenced by drawThermo(), init(), and setAlarmLevel(). |
|
|
Definition at line 81 of file qwt_thermo.h. Referenced by draw(), init(), layoutThermo(), minimumSizeHint(), and setBorderWidth(). |
|
|
Definition at line 76 of file qwt_thermo.h. Referenced by drawThermo(), init(), and setFillColor(). |
|
|
Definition at line 74 of file qwt_thermo.h. Referenced by drawThermo(), init(), layoutThermo(), and setRange(). |
|
|
Definition at line 86 of file qwt_thermo.h. Referenced by drawThermo(), init(), and setRange(). |
|
|
Definition at line 85 of file qwt_thermo.h. Referenced by drawThermo(), init(), and setRange(). |
|
|
Definition at line 79 of file qwt_thermo.h. Referenced by drawThermo(), init(), layoutThermo(), minimumSizeHint(), and setOrientation(). |
|
|
Definition at line 82 of file qwt_thermo.h. Referenced by init(), layoutThermo(), and minimumSizeHint(). |
|
|
Definition at line 80 of file qwt_thermo.h. Referenced by draw(), init(), layoutThermo(), minimumSizeHint(), and setOrientation(). |
|
|
Definition at line 75 of file qwt_thermo.h. Referenced by draw(), drawThermo(), layoutThermo(), and setBorderWidth(). |
|
|
Definition at line 83 of file qwt_thermo.h. Referenced by init(), layoutThermo(), minimumSizeHint(), and setPipeWidth(). |
|
|
Definition at line 87 of file qwt_thermo.h. Referenced by drawThermo(), init(), and setValue(). |
1.3.2