.TH "QwtAnalogClock" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtAnalogClock \- .PP An analog clock. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtDial\fP. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBDirection\fP { \fBClockwise\fP, \fBCounterClockwise\fP }" .br .ti -1c .RI "enum \fBHand\fP { \fBSecondHand\fP, \fBMinuteHand\fP, \fBHourHand\fP, \fBNHands\fP }" .br .ti -1c .RI "enum \fBMode\fP { \fBRotateNeedle\fP, \fBRotateScale\fP }" .br .ti -1c .RI "enum \fBScaleOptions\fP { \fBScaleBackbone\fP = 1, \fBScaleTicks\fP = 2, \fBScaleLabel\fP = 4 }" .br .ti -1c .RI "enum \fBScrollMode\fP { \fBScrNone\fP, \fBScrMouse\fP, \fBScrTimer\fP, \fBScrDirect\fP, \fBScrPage\fP }" .br .ti -1c .RI "enum \fBShadow\fP { \fBPlain\fP = QFrame::Plain, \fBRaised\fP = QFrame::Raised, \fBSunken\fP = QFrame::Sunken }" .br .in -1c .SS "Public Slots" .in +1c .ti -1c .RI "virtual void \fBfitValue\fP (double val)" .br .ti -1c .RI "virtual void \fBincValue\fP (int steps)" .br .ti -1c .RI "void \fBsetCurrentTime\fP ()" .br .ti -1c .RI "virtual void \fBsetReadOnly\fP (bool)" .br .ti -1c .RI "void \fBsetTime\fP (const QTime &=QTime::currentTime())" .br .ti -1c .RI "virtual void \fBsetValue\fP (double val)" .br .in -1c .SS "Signals" .in +1c .ti -1c .RI "void \fBsliderMoved\fP (double value)" .br .ti -1c .RI "void \fBsliderPressed\fP ()" .br .ti -1c .RI "void \fBsliderReleased\fP ()" .br .ti -1c .RI "void \fBvalueChanged\fP (double value)" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "QRect \fBboundingRect\fP () const " .br .ti -1c .RI "QRect \fBcontentsRect\fP () const " .br .ti -1c .RI "\fBDirection\fP \fBdirection\fP () const " .br .ti -1c .RI "\fBShadow\fP \fBframeShadow\fP () const " .br .ti -1c .RI "\fBQwtDialNeedle\fP * \fBhand\fP (\fBHand\fP)" .br .ti -1c .RI "const \fBQwtDialNeedle\fP * \fBhand\fP (\fBHand\fP) const " .br .ti -1c .RI "bool \fBhasVisibleBackground\fP () const " .br .ti -1c .RI "virtual void \fBincPages\fP (int)" .br .ti -1c .RI "bool \fBisReadOnly\fP () const " .br .ti -1c .RI "bool \fBisValid\fP () const " .br .ti -1c .RI "int \fBlineWidth\fP () const " .br .ti -1c .RI "virtual double \fBmass\fP () const " .br .ti -1c .RI "double \fBmaxScaleArc\fP () const " .br .ti -1c .RI "double \fBmaxValue\fP () const " .br .ti -1c .RI "virtual QSize \fBminimumSizeHint\fP () const " .br .ti -1c .RI "double \fBminScaleArc\fP () const " .br .ti -1c .RI "double \fBminValue\fP () const " .br .ti -1c .RI "\fBMode\fP \fBmode\fP () const " .br .ti -1c .RI "const \fBQwtDialNeedle\fP * \fBneedle\fP () const " .br .ti -1c .RI "\fBQwtDialNeedle\fP * \fBneedle\fP ()" .br .ti -1c .RI "Qt::Orientation \fBorientation\fP () const " .br .ti -1c .RI "double \fBorigin\fP () const " .br .ti -1c .RI "int \fBpageSize\fP () const " .br .ti -1c .RI "bool \fBperiodic\fP () const " .br .ti -1c .RI "\fBQwtAnalogClock\fP (QWidget *parent=NULL)" .br .ti -1c .RI "virtual QRect \fBscaleContentsRect\fP () const " .br .ti -1c .RI "\fBQwtDialScaleDraw\fP * \fBscaleDraw\fP ()" .br .ti -1c .RI "const \fBQwtDialScaleDraw\fP * \fBscaleDraw\fP () const " .br .ti -1c .RI "void \fBsetDirection\fP (\fBDirection\fP)" .br .ti -1c .RI "void \fBsetFrameShadow\fP (\fBShadow\fP)" .br .ti -1c .RI "virtual void \fBsetHand\fP (\fBHand\fP, \fBQwtDialNeedle\fP *)" .br .ti -1c .RI "void \fBsetLineWidth\fP (int)" .br .ti -1c .RI "virtual void \fBsetMass\fP (double val)" .br .ti -1c .RI "void \fBsetMode\fP (\fBMode\fP)" .br .ti -1c .RI "virtual void \fBsetOrientation\fP (Qt::Orientation o)" .br .ti -1c .RI "virtual void \fBsetOrigin\fP (double)" .br .ti -1c .RI "void \fBsetPeriodic\fP (bool tf)" .br .ti -1c .RI "void \fBsetRange\fP (double vmin, double vmax, double vstep=0.0, int pagesize=1)" .br .ti -1c .RI "virtual void \fBsetScale\fP (int maxMajIntv, int maxMinIntv, double step=0.0)" .br .ti -1c .RI "void \fBsetScaleArc\fP (double min, double max)" .br .ti -1c .RI "virtual void \fBsetScaleDraw\fP (\fBQwtDialScaleDraw\fP *)" .br .ti -1c .RI "void \fBsetScaleOptions\fP (int)" .br .ti -1c .RI "void \fBsetScaleTicks\fP (int minLen, int medLen, int majLen, int penWidth=1)" .br .ti -1c .RI "void \fBsetStep\fP (double)" .br .ti -1c .RI "void \fBsetTracking\fP (bool enable)" .br .ti -1c .RI "void \fBsetUpdateTime\fP (int t)" .br .ti -1c .RI "void \fBsetValid\fP (bool valid)" .br .ti -1c .RI "virtual void \fBsetWrapping\fP (bool)" .br .ti -1c .RI "void \fBshowBackground\fP (bool)" .br .ti -1c .RI "virtual QSize \fBsizeHint\fP () const " .br .ti -1c .RI "double \fBstep\fP () const " .br .ti -1c .RI "void \fBstopMoving\fP ()" .br .ti -1c .RI "double \fBvalue\fP () const " .br .ti -1c .RI "bool \fBwrapping\fP () const " .br .ti -1c .RI "virtual \fB~QwtAnalogClock\fP ()" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBdrawContents\fP (QPainter *) const " .br .ti -1c .RI "virtual void \fBdrawFocusIndicator\fP (QPainter *) const " .br .ti -1c .RI "virtual void \fBdrawFrame\fP (QPainter *p)" .br .ti -1c .RI "virtual void \fBdrawHand\fP (QPainter *, \fBHand\fP, const QPoint &, int radius, double direction, QPalette::ColorGroup) const " .br .ti -1c .RI "virtual void \fBdrawNeedle\fP (QPainter *, const QPoint &, int radius, double direction, QPalette::ColorGroup) const " .br .ti -1c .RI "virtual void \fBdrawScale\fP (QPainter *, const QPoint ¢er, int radius, double origin, double arcMin, double arcMax) const " .br .ti -1c .RI "virtual void \fBdrawScaleContents\fP (QPainter *painter, const QPoint ¢er, int radius) const " .br .ti -1c .RI "double \fBexactPrevValue\fP () const " .br .ti -1c .RI "double \fBexactValue\fP () const " .br .ti -1c .RI "virtual void \fBgetScrollMode\fP (const QPoint &, int &scrollMode, int &direction)" .br .ti -1c .RI "virtual double \fBgetValue\fP (const QPoint &)" .br .ti -1c .RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBmouseMoveEvent\fP (QMouseEvent *e)" .br .ti -1c .RI "double \fBmouseOffset\fP () const " .br .ti -1c .RI "virtual void \fBmousePressEvent\fP (QMouseEvent *e)" .br .ti -1c .RI "virtual void \fBmouseReleaseEvent\fP (QMouseEvent *e)" .br .ti -1c .RI "virtual void \fBpaintEvent\fP (QPaintEvent *)" .br .ti -1c .RI "double \fBprevValue\fP () const " .br .ti -1c .RI "virtual void \fBrangeChange\fP ()" .br .ti -1c .RI "virtual void \fBresizeEvent\fP (QResizeEvent *)" .br .ti -1c .RI "virtual \fBQwtText\fP \fBscaleLabel\fP (double) const " .br .ti -1c .RI "int \fBscrollMode\fP () const " .br .ti -1c .RI "void \fBsetMouseOffset\fP (double)" .br .ti -1c .RI "virtual void \fBsetPosition\fP (const QPoint &)" .br .ti -1c .RI "virtual void \fBstepChange\fP ()" .br .ti -1c .RI "virtual void \fBtimerEvent\fP (QTimerEvent *e)" .br .ti -1c .RI "virtual void \fBupdateMask\fP ()" .br .ti -1c .RI "void \fBupdateScale\fP ()" .br .ti -1c .RI "virtual void \fBvalueChange\fP ()" .br .ti -1c .RI "virtual void \fBwheelEvent\fP (QWheelEvent *e)" .br .in -1c .SH "Detailed Description" .PP An analog clock. .PP \fBExample\fP .RS 4 .PP .nf #include QwtAnalogClock *clock = new QwtAnalogClock(...); clock->scaleDraw()->setPenWidth(3); clock->setLineWidth(6); clock->setFrameShadow(QwtDial::Sunken); clock->setTime(); // update the clock every second QTimer *timer = new QTimer(clock); timer->connect(timer, SIGNAL(timeout()), clock, SLOT(setCurrentTime())); timer->start(1000); .fi .PP .RE .PP Qwt is missing a set of good looking hands. Contributions are very welcome. .PP \fBNote:\fP .RS 4 The examples/dials example shows how to use \fBQwtAnalogClock\fP. .RE .PP .SH "Member Enumeration Documentation" .PP .SS "enum \fBQwtDial::Direction\fP\fC [inherited]\fP"Direction of the dial .SS "enum \fBQwtAnalogClock::Hand\fP"Hand type .PP \fBSee also:\fP .RS 4 \fBsetHand()\fP, \fBhand()\fP .RE .PP .SS "enum \fBQwtDial::Mode\fP\fC [inherited]\fP"In case of RotateNeedle the needle is rotating, in case of RotateScale, the needle points to \fBorigin()\fP and the scale is rotating. .SS "enum \fBQwtDial::ScaleOptions\fP\fC [inherited]\fP" .PP see \fBQwtDial::setScaleOptions\fP .SS "enum \fBQwtAbstractSlider::ScrollMode\fP\fC [inherited]\fP"Scroll mode .PP \fBSee also:\fP .RS 4 \fBgetScrollMode()\fP .RE .PP .SS "enum \fBQwtDial::Shadow\fP\fC [inherited]\fP" .PP Frame shadow. Unfortunately it is not possible to use QFrame::Shadow as a property of a widget that is not derived from QFrame. The following enum is made for the designer only. It is safe to use QFrame::Shadow instead. .SH "Constructor & Destructor Documentation" .PP .SS "QwtAnalogClock::QwtAnalogClock (QWidget *parent = \fCNULL\fP)\fC [explicit]\fP"Constructor .PP \fBParameters:\fP .RS 4 \fIparent\fP Parent widget .RE .PP .SS "QwtAnalogClock::~QwtAnalogClock ()\fC [virtual]\fP" .PP Destructor. .SH "Member Function Documentation" .PP .SS "QRect QwtDial::boundingRect () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 bounding rect of the dial including the frame .RE .PP \fBSee also:\fP .RS 4 \fBsetLineWidth()\fP, \fBscaleContentsRect()\fP, \fBcontentsRect()\fP .RE .PP .SS "QRect QwtDial::contentsRect () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 bounding rect of the circle inside the frame .RE .PP \fBSee also:\fP .RS 4 \fBsetLineWidth()\fP, \fBscaleContentsRect()\fP, \fBboundingRect()\fP .RE .PP .SS "\fBQwtDial::Direction\fP QwtDial::direction () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Direction of the dial .RE .PP The default direction of a dial is QwtDial::Clockwise .PP \fBSee also:\fP .RS 4 \fBsetDirection()\fP .RE .PP .SS "void QwtDial::drawContents (QPainter *painter) const\fC [protected, virtual, inherited]\fP" .PP Draw the contents inside the frame. QColorGroup::Background is the background color outside of the frame. QColorGroup::Base is the background color inside the frame. QColorGroup::Foreground is the background color inside the scale. .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .RE .PP \fBSee also:\fP .RS 4 \fBboundingRect()\fP, \fBcontentsRect()\fP, \fBscaleContentsRect()\fP, QWidget::setPalette() .RE .PP .SS "void QwtDial::drawFocusIndicator (QPainter *painter) const\fC [protected, virtual, inherited]\fP"Draw a dotted round circle, if !isReadOnly() .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .RE .PP .SS "void QwtDial::drawFrame (QPainter *painter)\fC [protected, virtual, inherited]\fP"Draw the frame around the dial .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .RE .PP \fBSee also:\fP .RS 4 \fBlineWidth()\fP, \fBframeShadow()\fP .RE .PP .SS "void QwtAnalogClock::drawHand (QPainter *painter, \fBHand\fPhd, const QPoint ¢er, intradius, doubledirection, QPalette::ColorGroupcg) const\fC [protected, virtual]\fP"Draw a clock hand .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIhd\fP Specify the type of hand .br \fIcenter\fP Center of the clock .br \fIradius\fP Maximum length for the hands .br \fIdirection\fP Direction of the hand in degrees, counter clockwise .br \fIcg\fP ColorGroup .RE .PP .SS "void QwtAnalogClock::drawNeedle (QPainter *painter, const QPoint ¢er, intradius, doubledirection, QPalette::ColorGroupcg) const\fC [protected, virtual]\fP" .PP Draw the needle. A clock has no single needle but three hands instead. drawNeedle translates \fBvalue()\fP into directions for the hands and calls \fBdrawHand()\fP. .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIcenter\fP Center of the clock .br \fIradius\fP Maximum length for the hands .br \fIdirection\fP Dummy, not used. .br \fIcg\fP ColorGroup .RE .PP \fBSee also:\fP .RS 4 \fBdrawHand()\fP .RE .PP .PP Reimplemented from \fBQwtDial\fP. .SS "void QwtDial::drawScale (QPainter *painter, const QPoint ¢er, intradius, doubleorigin, doubleminArc, doublemaxArc) const\fC [protected, virtual, inherited]\fP"Draw the scale .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIcenter\fP Center of the dial .br \fIradius\fP Radius of the scale .br \fIorigin\fP Origin of the scale .br \fIminArc\fP Minimum of the arc .br \fImaxArc\fP Minimum of the arc .RE .PP \fBSee also:\fP .RS 4 QwtAbstractScaleDraw::setAngleRange() .RE .PP .SS "void QwtDial::drawScaleContents (QPainter *painter, const QPoint ¢er, intradius) const\fC [protected, virtual, inherited]\fP"Draw the contents inside the scale .PP Paints nothing. .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIcenter\fP Center of the contents circle .br \fIradius\fP Radius of the contents circle .RE .PP .PP Reimplemented in \fBQwtCompass\fP. .SS "double QwtDoubleRange::exactPrevValue () const\fC [protected, inherited]\fP" .PP Returns the exact previous value. .SS "double QwtDoubleRange::exactValue () const\fC [protected, inherited]\fP" .PP Returns the exact value. The exact value is the value which \fBQwtDoubleRange::value\fP would return if the value were not adjusted to the step raster. It differs from the current value only if \fBQwtDoubleRange::fitValue\fP or \fBQwtDoubleRange::incValue\fP have been used before. This function is intended for internal use in derived classes. .SS "void QwtAbstractSlider::fitValue (doublevalue)\fC [virtual, slot, inherited]\fP" .PP Set the slider's value to the nearest integer multiple of the step size. \fBParameters:\fP .RS 4 \fIvalue\fP Value .RE .PP \fBSee also:\fP .RS 4 \fBsetValue()\fP, \fBincValue()\fP .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "\fBQwtDial::Shadow\fP QwtDial::frameShadow () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Frame shadow /sa \fBsetFrameShadow()\fP, \fBlineWidth()\fP, QFrame::frameShadow .RE .PP .SS "void QwtDial::getScrollMode (const QPoint &pos, int &scrollMode, int &direction)\fC [protected, virtual, inherited]\fP"See \fBQwtAbstractSlider::getScrollMode()\fP .PP \fBParameters:\fP .RS 4 \fIpos\fP point where the mouse was pressed .RE .PP \fBReturn values:\fP .RS 4 \fIscrollMode\fP The scrolling mode .br \fIdirection\fP direction: 1, 0, or \-1. .RE .PP \fBSee also:\fP .RS 4 \fBQwtAbstractSlider::getScrollMode()\fP .RE .PP .PP Implements \fBQwtAbstractSlider\fP. .SS "double QwtDial::getValue (const QPoint &pos)\fC [protected, virtual, inherited]\fP"Find the value for a given position .PP \fBParameters:\fP .RS 4 \fIpos\fP Position .RE .PP \fBReturns:\fP .RS 4 Value .RE .PP .PP Implements \fBQwtAbstractSlider\fP. .SS "\fBQwtDialNeedle\fP * QwtAnalogClock::hand (\fBHand\fPhd)"\fBReturns:\fP .RS 4 Clock hand .RE .PP \fBParameters:\fP .RS 4 \fIhd\fP Specifies the type of hand .RE .PP \fBSee also:\fP .RS 4 \fBsetHand()\fP .RE .PP .SS "const \fBQwtDialNeedle\fP * QwtAnalogClock::hand (\fBHand\fPhd) const"\fBReturns:\fP .RS 4 Clock hand .RE .PP \fBParameters:\fP .RS 4 \fIhd\fP Specifies the type of hand .RE .PP \fBSee also:\fP .RS 4 \fBsetHand()\fP .RE .PP .SS "bool QwtDial::hasVisibleBackground () const\fC [inherited]\fP"true when the area outside of the frame is visible .PP \fBSee also:\fP .RS 4 \fBshowBackground()\fP, setMask() .RE .PP .SS "void QwtDoubleRange::incPages (intnPages)\fC [virtual, inherited]\fP" .PP Increment the value by a specified number of pages. \fBParameters:\fP .RS 4 \fInPages\fP Number of pages to increment. A negative number decrements the value. .RE .PP \fBWarning:\fP .RS 4 The Page size is specified in the constructor. .RE .PP .SS "void QwtAbstractSlider::incValue (intsteps)\fC [virtual, slot, inherited]\fP" .PP Increment the value by a specified number of steps. \fBParameters:\fP .RS 4 \fIsteps\fP number of steps .RE .PP \fBSee also:\fP .RS 4 \fBsetValue()\fP .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "bool QwtAbstractSlider::isReadOnly () const\fC [inherited]\fP"In read only mode the slider can't be controlled by mouse or keyboard. .PP \fBReturns:\fP .RS 4 true if read only .RE .PP \fBSee also:\fP .RS 4 \fBsetReadOnly()\fP .RE .PP .SS "bool QwtAbstractSlider::isValid () const\fC [inline, inherited]\fP"\fBSee also:\fP .RS 4 QwtDblRange::isValid() .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtDial::keyPressEvent (QKeyEvent *event)\fC [protected, virtual, inherited]\fP"Handles key events .PP .IP "\(bu" 2 Key_Down, KeyLeft .br Decrement by 1 .IP "\(bu" 2 Key_Prior .br Decrement by \fBpageSize()\fP .IP "\(bu" 2 Key_Home .br Set the value to \fBminValue()\fP .PP .PP .IP "\(bu" 2 Key_Up, KeyRight .br Increment by 1 .IP "\(bu" 2 Key_Next .br Increment by \fBpageSize()\fP .IP "\(bu" 2 Key_End .br Set the value to \fBmaxValue()\fP .PP .PP \fBParameters:\fP .RS 4 \fIevent\fP Key event .RE .PP \fBSee also:\fP .RS 4 \fBisReadOnly()\fP .RE .PP .PP Reimplemented from \fBQwtAbstractSlider\fP. .PP Reimplemented in \fBQwtCompass\fP. .SS "int QwtDial::lineWidth () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Line width of the frame .RE .PP \fBSee also:\fP .RS 4 \fBsetLineWidth()\fP, \fBframeShadow()\fP, \fBlineWidth()\fP .RE .PP .SS "double QwtAbstractSlider::mass () const\fC [virtual, inherited]\fP"\fBReturns:\fP .RS 4 mass .RE .PP \fBSee also:\fP .RS 4 \fBsetMass()\fP .RE .PP .PP Reimplemented in \fBQwtWheel\fP. .SS "double QwtDial::maxScaleArc () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Upper limit of the scale arc .RE .PP .SS "double QwtDoubleRange::maxValue () const\fC [inherited]\fP" .PP Returns the value of the second border of the range. maxValue returns the value which has been specified as the second parameter in \fBQwtDoubleRange::setRange\fP. .PP \fBSee also:\fP .RS 4 \fBsetRange()\fP .RE .PP .SS "QSize QwtDial::minimumSizeHint () const\fC [virtual, inherited]\fP" .PP Return a minimum size hint. \fBWarning:\fP .RS 4 The return value of \fBQwtDial::minimumSizeHint()\fP depends on the font and the scale. .RE .PP .SS "double QwtDial::minScaleArc () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Lower limit of the scale arc .RE .PP .SS "double QwtDoubleRange::minValue () const\fC [inherited]\fP" .PP Returns the value at the first border of the range. minValue returns the value which has been specified as the first parameter in \fBsetRange()\fP. .PP \fBSee also:\fP .RS 4 \fBsetRange()\fP .RE .PP .SS "\fBQwtDial::Mode\fP QwtDial::mode () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 mode of the dial. .RE .PP The value of the dial is indicated by the difference between the origin and the direction of the needle. In case of QwtDial::RotateNeedle the scale arc is fixed to the \fBorigin()\fP and the needle is rotating, in case of QwtDial::RotateScale, the needle points to \fBorigin()\fP and the scale is rotating. .PP The default mode is QwtDial::RotateNeedle. .PP \fBSee also:\fP .RS 4 \fBsetMode()\fP, \fBorigin()\fP, \fBsetScaleArc()\fP, \fBvalue()\fP .RE .PP .SS "void QwtAbstractSlider::mouseMoveEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Mouse Move Event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Mouse event .RE .PP .SS "void QwtAbstractSlider::mousePressEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Mouse press event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Mouse event .RE .PP .SS "void QwtAbstractSlider::mouseReleaseEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Mouse Release Event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Mouse event .RE .PP .SS "const \fBQwtDialNeedle\fP * QwtDial::needle () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 needle .RE .PP \fBSee also:\fP .RS 4 \fBsetNeedle()\fP .RE .PP .SS "\fBQwtDialNeedle\fP * QwtDial::needle ()\fC [inherited]\fP"\fBReturns:\fP .RS 4 needle .RE .PP \fBSee also:\fP .RS 4 \fBsetNeedle()\fP .RE .PP .SS "Qt::Orientation QwtAbstractSlider::orientation () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Orientation .RE .PP \fBSee also:\fP .RS 4 \fBsetOrientation()\fP .RE .PP .SS "double QwtDial::origin () const\fC [inherited]\fP"The origin is the angle where scale and needle is relative to. .PP \fBReturns:\fP .RS 4 Origin of the dial .RE .PP \fBSee also:\fP .RS 4 \fBsetOrigin()\fP .RE .PP .SS "int QwtDoubleRange::pageSize () const\fC [inherited]\fP" .PP Returns the page size in steps. .SS "void QwtDial::paintEvent (QPaintEvent *e)\fC [protected, virtual, inherited]\fP"Paint the dial .PP \fBParameters:\fP .RS 4 \fIe\fP Paint event .RE .PP .SS "bool QwtDoubleRange::periodic () const\fC [inherited]\fP" .PP Returns true if the range is periodic. \fBSee also:\fP .RS 4 \fBsetPeriodic()\fP .RE .PP .SS "double QwtDoubleRange::prevValue () const\fC [protected, inherited]\fP" .PP Returns the previous value. .SS "void QwtDial::rangeChange ()\fC [protected, virtual, inherited]\fP" .PP \fBQwtDoubleRange\fP update hook. .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtDial::resizeEvent (QResizeEvent *e)\fC [protected, virtual, inherited]\fP"Resize the dial widget .PP \fBParameters:\fP .RS 4 \fIe\fP Resize event .RE .PP .SS "QRect QwtDial::scaleContentsRect () const\fC [virtual, inherited]\fP"\fBReturns:\fP .RS 4 rect inside the scale .RE .PP \fBSee also:\fP .RS 4 \fBsetLineWidth()\fP, \fBboundingRect()\fP, \fBcontentsRect()\fP .RE .PP .SS "\fBQwtDialScaleDraw\fP * QwtDial::scaleDraw ()\fC [inherited]\fP" .PP Return the scale draw. .SS "const \fBQwtDialScaleDraw\fP * QwtDial::scaleDraw () const\fC [inherited]\fP" .PP Return the scale draw. .SS "\fBQwtText\fP QwtAnalogClock::scaleLabel (doublevalue) const\fC [protected, virtual]\fP"Find the scale label for a given value .PP \fBParameters:\fP .RS 4 \fIvalue\fP Value .RE .PP \fBReturns:\fP .RS 4 Label .RE .PP .PP Reimplemented from \fBQwtDial\fP. .SS "void QwtAnalogClock::setCurrentTime ()\fC [slot]\fP" .PP Set the current time. This is the same as \fBQwtAnalogClock::setTime()\fP, but Qt < 3.0 can't handle default parameters for slots. .SS "void QwtDial::setDirection (\fBDirection\fPdirection)\fC [inherited]\fP"Set the direction of the dial (clockwise/counterclockwise) .PP Direction direction .PP \fBSee also:\fP .RS 4 \fBdirection()\fP .RE .PP .SS "void QwtDial::setFrameShadow (\fBShadow\fPshadow)\fC [inherited]\fP"Sets the frame shadow value from the frame style. .PP \fBParameters:\fP .RS 4 \fIshadow\fP Frame shadow .RE .PP \fBSee also:\fP .RS 4 \fBsetLineWidth()\fP, QFrame::setFrameShadow() .RE .PP .SS "void QwtAnalogClock::setHand (\fBHand\fPhand, \fBQwtDialNeedle\fP *needle)\fC [virtual]\fP"Set a clockhand .PP \fBParameters:\fP .RS 4 \fIhand\fP Specifies the type of hand .br \fIneedle\fP Hand .RE .PP \fBSee also:\fP .RS 4 \fBhand()\fP .RE .PP .SS "void QwtDial::setLineWidth (intlineWidth)\fC [inherited]\fP"Sets the line width .PP \fBParameters:\fP .RS 4 \fIlineWidth\fP Line width .RE .PP \fBSee also:\fP .RS 4 \fBsetFrameShadow()\fP .RE .PP .SS "void QwtAbstractSlider::setMass (doubleval)\fC [virtual, inherited]\fP" .PP Set the slider's mass for flywheel effect. If the slider's mass is greater then 0, it will continue to move after the mouse button has been released. Its speed decreases with time at a rate depending on the slider's mass. A large mass means that it will continue to move for a long time. .PP Derived widgets may overload this function to make it public. .PP \fBParameters:\fP .RS 4 \fIval\fP New mass in kg .RE .PP \fBSee also:\fP .RS 4 \fBmass()\fP .RE .PP .PP Reimplemented in \fBQwtWheel\fP. .SS "void QwtDial::setMode (\fBMode\fPmode)\fC [inherited]\fP" .PP Change the mode of the meter. \fBParameters:\fP .RS 4 \fImode\fP New mode .RE .PP The value of the meter is indicated by the difference between north of the scale and the direction of the needle. In case of QwtDial::RotateNeedle north is pointing to the \fBorigin()\fP and the needle is rotating, in case of QwtDial::RotateScale, the needle points to \fBorigin()\fP and the scale is rotating. .PP The default mode is QwtDial::RotateNeedle. .PP \fBSee also:\fP .RS 4 \fBmode()\fP, \fBsetValue()\fP, \fBsetOrigin()\fP .RE .PP .SS "void QwtAbstractSlider::setOrientation (Qt::Orientationo)\fC [virtual, inherited]\fP" .PP Set the orientation. \fBParameters:\fP .RS 4 \fIo\fP Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. .RE .PP .PP Reimplemented in \fBQwtSlider\fP, and \fBQwtWheel\fP. .SS "void QwtDial::setOrigin (doubleorigin)\fC [virtual, inherited]\fP" .PP Change the origin. The origin is the angle where scale and needle is relative to. .PP \fBParameters:\fP .RS 4 \fIorigin\fP New origin .RE .PP \fBSee also:\fP .RS 4 \fBorigin()\fP .RE .PP .SS "void QwtDoubleRange::setPeriodic (booltf)\fC [inherited]\fP" .PP Make the range periodic. When the range is periodic, the value will be set to a point inside the interval such that .PP .PP .nf point = value + n * width .fi .PP .PP if the user tries to set a new value which is outside the range. If the range is nonperiodic (the default), values outside the range will be clipped. .PP \fBParameters:\fP .RS 4 \fItf\fP true for a periodic range .RE .PP .SS "void QwtAbstractSlider::setPosition (const QPoint &p)\fC [protected, virtual, inherited]\fP"Move the slider to a specified point, adjust the value and emit signals if necessary. .SS "void QwtDoubleRange::setRange (doublevmin, doublevmax, doublevstep = \fC0.0\fP, intpageSize = \fC1\fP)\fC [inherited]\fP" .PP Specify range and step size. \fBParameters:\fP .RS 4 \fIvmin\fP lower boundary of the interval .br \fIvmax\fP higher boundary of the interval .br \fIvstep\fP step width .br \fIpageSize\fP page size in steps .RE .PP \fBWarning:\fP .RS 4 .PD 0 .IP "\(bu" 2 A change of the range changes the value if it lies outside the new range. The current value will *not* be adjusted to the new step raster. .IP "\(bu" 2 vmax < vmin is allowed. .IP "\(bu" 2 If the step size is left out or set to zero, it will be set to 1/100 of the interval length. .IP "\(bu" 2 If the step size has an absurd value, it will be corrected to a better one. .PP .RE .PP .SS "void QwtAbstractSlider::setReadOnly (boolreadOnly)\fC [virtual, slot, inherited]\fP"En/Disable read only mode .PP In read only mode the slider can't be controlled by mouse or keyboard. .PP \fBParameters:\fP .RS 4 \fIreadOnly\fP Enables in case of true .RE .PP \fBSee also:\fP .RS 4 \fBisReadOnly()\fP .RE .PP .SS "void QwtDial::setScale (intmaxMajIntv, intmaxMinIntv, doublestep = \fC0.0\fP)\fC [virtual, inherited]\fP"Change the intervals of the scale .PP \fBSee also:\fP .RS 4 QwtAbstractScaleDraw::setScale() .RE .PP .SS "void QwtDial::setScaleArc (doubleminArc, doublemaxArc)\fC [inherited]\fP"Change the arc of the scale .PP \fBParameters:\fP .RS 4 \fIminArc\fP Lower limit .br \fImaxArc\fP Upper limit .RE .PP .SS "void QwtDial::setScaleDraw (\fBQwtDialScaleDraw\fP *scaleDraw)\fC [virtual, inherited]\fP"Set an individual scale draw .PP \fBParameters:\fP .RS 4 \fIscaleDraw\fP Scale draw .RE .PP \fBWarning:\fP .RS 4 The previous scale draw is deleted .RE .PP .SS "void QwtDial::setScaleOptions (intoptions)\fC [inherited]\fP"A wrapper method for accessing the scale draw. .PP .IP "\(bu" 2 options == 0 .br No visible scale: setScaleDraw(NULL) .IP "\(bu" 2 options & ScaleBackbone .br En/disable the backbone of the scale. .IP "\(bu" 2 options & ScaleTicks .br En/disable the ticks of the scale. .IP "\(bu" 2 options & ScaleLabel .br En/disable scale labels .PP .PP \fBSee also:\fP .RS 4 \fBQwtAbstractScaleDraw::enableComponent()\fP .RE .PP .SS "void QwtDial::setScaleTicks (intminLen, intmedLen, intmajLen, intpenWidth = \fC1\fP)\fC [inherited]\fP"Assign length and width of the ticks .PP \fBParameters:\fP .RS 4 \fIminLen\fP Length of the minor ticks .br \fImedLen\fP Length of the medium ticks .br \fImajLen\fP Length of the major ticks .br \fIpenWidth\fP Width of the pen for all ticks .RE .PP \fBSee also:\fP .RS 4 \fBQwtAbstractScaleDraw::setTickLength()\fP, \fBQwtDialScaleDraw::setPenWidth()\fP .RE .PP .SS "void QwtDoubleRange::setStep (doublevstep)\fC [inherited]\fP" .PP Change the step raster. \fBParameters:\fP .RS 4 \fIvstep\fP new step width .RE .PP \fBWarning:\fP .RS 4 The value will \fInot\fP be adjusted to the new step raster. .RE .PP .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtAnalogClock::setTime (const QTime &time = \fCQTime::currentTime()\fP)\fC [slot]\fP"Set a time .PP \fBParameters:\fP .RS 4 \fItime\fP Time to display .RE .PP .SS "void QwtAbstractSlider::setTracking (boolenable)\fC [inherited]\fP" .PP Enables or disables tracking. If tracking is enabled, the slider emits a \fBvalueChanged()\fP signal whenever its value changes (the default behaviour). If tracking is disabled, the value changed() signal will only be emitted if: .PD 0 .IP "\(bu" 2 the user releases the mouse button and the value has changed or .IP "\(bu" 2 at the end of automatic scrolling. .PP Tracking is enabled by default. .PP \fBParameters:\fP .RS 4 \fIenable\fP \fCtrue\fP (enable) or \fCfalse\fP (disable) tracking. .RE .PP .SS "void QwtAbstractSlider::setUpdateTime (intt)\fC [inherited]\fP" .PP Specify the update interval for automatic scrolling. \fBParameters:\fP .RS 4 \fIt\fP update interval in milliseconds .RE .PP \fBSee also:\fP .RS 4 \fBgetScrollMode()\fP .RE .PP .SS "void QwtAbstractSlider::setValid (boolvalid)\fC [inline, inherited]\fP"\fBParameters:\fP .RS 4 \fIvalid\fP true/false .RE .PP \fBSee also:\fP .RS 4 QwtDblRange::isValid() .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtAbstractSlider::setValue (doubleval)\fC [virtual, slot, inherited]\fP" .PP Move the slider to a specified value. This function can be used to move the slider to a value which is not an integer multiple of the step size. .PP \fBParameters:\fP .RS 4 \fIval\fP new value .RE .PP \fBSee also:\fP .RS 4 \fBfitValue()\fP .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtDial::setWrapping (boolwrapping)\fC [virtual, inherited]\fP"Sets whether it is possible to step the value from the highest value to the lowest value and vice versa to on. .PP \fBParameters:\fP .RS 4 \fIwrapping\fP en/disables wrapping .RE .PP \fBSee also:\fP .RS 4 \fBwrapping()\fP, \fBQwtDoubleRange::periodic()\fP .RE .PP \fBNote:\fP .RS 4 The meaning of wrapping is like the wrapping property of QSpinBox, but not like it is used in QDial. .RE .PP .SS "void QwtDial::showBackground (boolshow)\fC [inherited]\fP"Show/Hide the area outside of the frame .PP \fBParameters:\fP .RS 4 \fIshow\fP Show if true, hide if false .RE .PP \fBSee also:\fP .RS 4 \fBhasVisibleBackground()\fP, setMask() .RE .PP \fBWarning:\fP .RS 4 When \fBQwtDial\fP is a toplevel widget the window border might disappear too. .RE .PP .SS "QSize QwtDial::sizeHint () const\fC [virtual, inherited]\fP"\fBReturns:\fP .RS 4 Size hint .RE .PP .SS "void QwtAbstractSlider::sliderMoved (doublevalue)\fC [signal, inherited]\fP"This signal is emitted when the user moves the slider with the mouse. .PP \fBParameters:\fP .RS 4 \fIvalue\fP new value .RE .PP .SS "void QwtAbstractSlider::sliderPressed ()\fC [signal, inherited]\fP"This signal is emitted when the user presses the movable part of the slider (start ScrMouse Mode). .SS "void QwtAbstractSlider::sliderReleased ()\fC [signal, inherited]\fP"This signal is emitted when the user releases the movable part of the slider. .SS "double QwtDoubleRange::step () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 the step size .RE .PP \fBSee also:\fP .RS 4 \fBsetStep()\fP, \fBsetRange()\fP .RE .PP .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtDoubleRange::stepChange ()\fC [protected, virtual, inherited]\fP" .PP Notify a change of the step size. This virtual function is called whenever the step size changes. The default implementation does nothing. .SS "void QwtAbstractSlider::stopMoving ()\fC [inherited]\fP" .PP Stop updating if automatic scrolling is active. .SS "void QwtAbstractSlider::timerEvent (QTimerEvent *e)\fC [protected, virtual, inherited]\fP"Qt timer event .PP \fBParameters:\fP .RS 4 \fIe\fP Timer event .RE .PP .SS "void QwtDial::updateMask ()\fC [protected, virtual, inherited]\fP" .PP Update the mask of the dial. In case of 'hasVisibleBackground() == false', the backgound is transparent by a mask. .PP \fBSee also:\fP .RS 4 \fBshowBackground()\fP, \fBhasVisibleBackground()\fP .RE .PP .SS "void QwtDial::updateScale ()\fC [protected, inherited]\fP"Update the scale with the current attributes .PP \fBSee also:\fP .RS 4 \fBsetScale()\fP .RE .PP .SS "double QwtDoubleRange::value () const\fC [inherited]\fP" .PP Returns the current value. .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtDial::valueChange ()\fC [protected, virtual, inherited]\fP" .PP \fBQwtDoubleRange\fP update hook. .PP Reimplemented from \fBQwtAbstractSlider\fP. .SS "void QwtAbstractSlider::valueChanged (doublevalue)\fC [signal, inherited]\fP" .PP Notify a change of value. In the default setting (tracking enabled), this signal will be emitted every time the value changes ( see \fBsetTracking()\fP ). .PP \fBParameters:\fP .RS 4 \fIvalue\fP new value .RE .PP .SS "void QwtAbstractSlider::wheelEvent (QWheelEvent *e)\fC [protected, virtual, inherited]\fP"Wheel Event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Whell event .RE .PP .SS "bool QwtDial::wrapping () const\fC [inherited]\fP"\fBwrapping()\fP holds whether it is possible to step the value from the highest value to the lowest value and vice versa. .PP \fBSee also:\fP .RS 4 \fBsetWrapping()\fP, \fBQwtDoubleRange::setPeriodic()\fP .RE .PP \fBNote:\fP .RS 4 The meaning of wrapping is like the wrapping property of QSpinBox, but not like it is used in QDial. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.