.TH "QwtSlider" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtSlider \- .PP The Slider Widget. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtAbstractSlider\fP, and \fBQwtAbstractScale\fP. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBBGSTYLE\fP { \fBBgTrough\fP = 0x1, \fBBgSlot\fP = 0x2, \fBBgBoth\fP = BgTrough | BgSlot }" .br .ti -1c .RI "enum \fBScalePos\fP { \fBNoScale\fP, \fBLeftScale\fP, \fBRightScale\fP, \fBTopScale\fP, \fBBottomScale\fP }" .br .ti -1c .RI "enum \fBScrollMode\fP { \fBScrNone\fP, \fBScrMouse\fP, \fBScrTimer\fP, \fBScrDirect\fP, \fBScrPage\fP }" .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 "virtual void \fBsetReadOnly\fP (bool)" .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 "bool \fBautoScale\fP () const " .br .ti -1c .RI "\fBBGSTYLE\fP \fBbgStyle\fP () const " .br .ti -1c .RI "int \fBborderWidth\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 "virtual double \fBmass\fP () const " .br .ti -1c .RI "double \fBmaxValue\fP () const " .br .ti -1c .RI "virtual QSize \fBminimumSizeHint\fP () const " .br .ti -1c .RI "double \fBminValue\fP () const " .br .ti -1c .RI "Qt::Orientation \fBorientation\fP () const " .br .ti -1c .RI "int \fBpageSize\fP () const " .br .ti -1c .RI "bool \fBperiodic\fP () const " .br .ti -1c .RI "\fBQwtSlider\fP (QWidget *parent, Qt::Orientation=Qt::Horizontal, \fBScalePos\fP=NoScale, \fBBGSTYLE\fP bgStyle=BgTrough)" .br .ti -1c .RI "const \fBQwtScaleDraw\fP * \fBscaleDraw\fP () const " .br .ti -1c .RI "const \fBQwtScaleEngine\fP * \fBscaleEngine\fP () const " .br .ti -1c .RI "\fBQwtScaleEngine\fP * \fBscaleEngine\fP ()" .br .ti -1c .RI "const \fBQwtScaleMap\fP & \fBscaleMap\fP () const " .br .ti -1c .RI "int \fBscaleMaxMajor\fP () const " .br .ti -1c .RI "int \fBscaleMaxMinor\fP () const " .br .ti -1c .RI "\fBScalePos\fP \fBscalePosition\fP () const " .br .ti -1c .RI "void \fBsetAutoScale\fP ()" .br .ti -1c .RI "void \fBsetBgStyle\fP (\fBBGSTYLE\fP)" .br .ti -1c .RI "void \fBsetBorderWidth\fP (int bw)" .br .ti -1c .RI "void \fBsetMargins\fP (int x, int y)" .br .ti -1c .RI "virtual void \fBsetMass\fP (double val)" .br .ti -1c .RI "virtual void \fBsetOrientation\fP (Qt::Orientation)" .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 "void \fBsetScale\fP (double vmin, double vmax, double step=0.0)" .br .ti -1c .RI "void \fBsetScale\fP (const \fBQwtScaleDiv\fP &s)" .br .ti -1c .RI "void \fBsetScale\fP (const \fBQwtDoubleInterval\fP &, double step=0.0)" .br .ti -1c .RI "void \fBsetScaleDraw\fP (\fBQwtScaleDraw\fP *)" .br .ti -1c .RI "void \fBsetScaleEngine\fP (\fBQwtScaleEngine\fP *)" .br .ti -1c .RI "void \fBsetScaleMaxMajor\fP (int ticks)" .br .ti -1c .RI "void \fBsetScaleMaxMinor\fP (int ticks)" .br .ti -1c .RI "void \fBsetScalePosition\fP (\fBScalePos\fP s)" .br .ti -1c .RI "void \fBsetStep\fP (double)" .br .ti -1c .RI "void \fBsetThumbLength\fP (int l)" .br .ti -1c .RI "void \fBsetThumbWidth\fP (int w)" .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 QSize \fBsizeHint\fP () const " .br .ti -1c .RI "double \fBstep\fP () const " .br .ti -1c .RI "void \fBstopMoving\fP ()" .br .ti -1c .RI "int \fBthumbLength\fP () const " .br .ti -1c .RI "int \fBthumbWidth\fP () const " .br .ti -1c .RI "double \fBvalue\fP () const " .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "const \fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP () const " .br .ti -1c .RI "\fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP ()" .br .ti -1c .RI "void \fBdraw\fP (QPainter *p, const QRect &update_rect)" .br .ti -1c .RI "virtual void \fBdrawSlider\fP (QPainter *p, const QRect &r)" .br .ti -1c .RI "virtual void \fBdrawThumb\fP (QPainter *p, const QRect &, int pos)" .br .ti -1c .RI "double \fBexactPrevValue\fP () const " .br .ti -1c .RI "double \fBexactValue\fP () const " .br .ti -1c .RI "virtual void \fBfontChange\fP (const QFont &oldFont)" .br .ti -1c .RI "virtual void \fBgetScrollMode\fP (const QPoint &p, int &scrollMode, int &direction)" .br .ti -1c .RI "virtual double \fBgetValue\fP (const QPoint &p)" .br .ti -1c .RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *e)" .br .ti -1c .RI "void \fBlayoutSlider\fP (bool update=true)" .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 *e)" .br .ti -1c .RI "double \fBprevValue\fP () const " .br .ti -1c .RI "virtual void \fBrangeChange\fP ()" .br .ti -1c .RI "void \fBrescale\fP (double vmin, double vmax, double step=0.0)" .br .ti -1c .RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)" .br .ti -1c .RI "virtual void \fBscaleChange\fP ()" .br .ti -1c .RI "\fBQwtScaleDraw\fP * \fBscaleDraw\fP ()" .br .ti -1c .RI "int \fBscrollMode\fP () const " .br .ti -1c .RI "void \fBsetAbstractScaleDraw\fP (\fBQwtAbstractScaleDraw\fP *)" .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 \fBvalueChange\fP ()" .br .ti -1c .RI "virtual void \fBwheelEvent\fP (QWheelEvent *e)" .br .ti -1c .RI "int \fBxyPosition\fP (double v) const " .br .in -1c .SH "Detailed Description" .PP The Slider Widget. \fBQwtSlider\fP is a slider widget which operates on an interval of type double. \fBQwtSlider\fP supports different layouts as well as a scale. .PP .PP \fBSee also:\fP .RS 4 \fBQwtAbstractSlider\fP and \fBQwtAbstractScale\fP for the descriptions of the inherited members. .RE .PP .SH "Member Enumeration Documentation" .PP .SS "enum \fBQwtSlider::BGSTYLE\fP"Background style. .PP \fBSee also:\fP .RS 4 \fBQwtSlider()\fP .RE .PP .SS "enum \fBQwtSlider::ScalePos\fP"Scale position. \fBQwtSlider\fP tries to enforce valid combinations of its orientation and scale position: .IP "\(bu" 2 Qt::Horizonal combines with NoScale, TopScale and BottomScale .IP "\(bu" 2 Qt::Vertical combines with NoScale, LeftScale and RightScale .PP .PP \fBSee also:\fP .RS 4 \fBQwtSlider()\fP .RE .PP .SS "enum \fBQwtAbstractSlider::ScrollMode\fP\fC [inherited]\fP"Scroll mode .PP \fBSee also:\fP .RS 4 \fBgetScrollMode()\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "QwtSlider::QwtSlider (QWidget *parent, Qt::Orientationorientation = \fCQt::Horizontal\fP, \fBScalePos\fPscalePos = \fCNoScale\fP, \fBBGSTYLE\fPbgStyle = \fCBgTrough\fP)\fC [explicit]\fP" .PP Constructor. \fBParameters:\fP .RS 4 \fIparent\fP parent widget .br \fIorientation\fP Orientation of the slider. Can be Qt::Horizontal or Qt::Vertical. Defaults to Qt::Horizontal. .br \fIscalePos\fP Position of the scale. Defaults to QwtSlider::NoScale. .br \fIbgStyle\fP Background style. QwtSlider::BgTrough draws the slider button in a trough, QwtSlider::BgSlot draws a slot underneath the button. An or-combination of both may also be used. The default is QwtSlider::BgTrough. .RE .PP \fBQwtSlider\fP enforces valid combinations of its orientation and scale position. If the combination is invalid, the scale position will be set to NoScale. Valid combinations are: .IP "\(bu" 2 Qt::Horizonal with NoScale, TopScale, or BottomScale; .IP "\(bu" 2 Qt::Vertical with NoScale, LeftScale, or RightScale. .PP .SH "Member Function Documentation" .PP .SS "const \fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw () const\fC [protected, inherited]\fP"\fBReturns:\fP .RS 4 Scale draw .RE .PP \fBSee also:\fP .RS 4 \fBsetAbstractScaleDraw()\fP .RE .PP .SS "\fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw ()\fC [protected, inherited]\fP"\fBReturns:\fP .RS 4 Scale draw .RE .PP \fBSee also:\fP .RS 4 \fBsetAbstractScaleDraw()\fP .RE .PP .SS "bool QwtAbstractScale::autoScale () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 \fCtrue\fP if autoscaling is enabled .RE .PP .SS "\fBQwtSlider::BGSTYLE\fP QwtSlider::bgStyle () const"\fBReturns:\fP .RS 4 the background style. .RE .PP .SS "int QwtSlider::borderWidth () const"\fBReturns:\fP .RS 4 the border width. .RE .PP .SS "void QwtSlider::draw (QPainter *p, const QRect &update_rect)\fC [protected]\fP" .PP Draw the \fBQwtSlider\fP. .SS "void QwtSlider::drawSlider (QPainter *painter, const QRect &r)\fC [protected, virtual]\fP"Draw the slider into the specified rectangle. .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIr\fP Rectangle .RE .PP .SS "void QwtSlider::drawThumb (QPainter *painter, const QRect &sliderRect, intpos)\fC [protected, virtual]\fP"Draw the thumb at a position .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIsliderRect\fP Bounding rectangle of the slider .br \fIpos\fP Position of the slider thumb .RE .PP .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 "void QwtSlider::fontChange (const QFont &oldFont)\fC [protected, virtual]\fP" .PP Notify change in font. .SS "void QwtSlider::getScrollMode (const QPoint &p, int &scrollMode, int &direction)\fC [protected, virtual]\fP" .PP Determine scrolling mode and direction. \fBParameters:\fP .RS 4 \fIp\fP point .br \fIscrollMode\fP Scrolling mode .br \fIdirection\fP Direction .RE .PP .PP Implements \fBQwtAbstractSlider\fP. .SS "double QwtSlider::getValue (const QPoint &pos)\fC [protected, virtual]\fP"Determine the value corresponding to a specified mouse location. .PP \fBParameters:\fP .RS 4 \fIpos\fP Mouse position .RE .PP .PP Implements \fBQwtAbstractSlider\fP. .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 QwtAbstractSlider::keyPressEvent (QKeyEvent *e)\fC [protected, virtual, inherited]\fP"Handles key events .PP .IP "\(bu" 2 Key_Down, KeyLeft .br Decrement by 1 .IP "\(bu" 2 Key_Up, Key_Right .br Increment by 1 .PP .PP \fBParameters:\fP .RS 4 \fIe\fP Key event .RE .PP \fBSee also:\fP .RS 4 \fBisReadOnly()\fP .RE .PP .PP Reimplemented in \fBQwtCompass\fP, and \fBQwtDial\fP. .SS "void QwtSlider::layoutSlider (boolupdate_geometry = \fCtrue\fP)\fC [protected]\fP"Recalculate the slider's geometry and layout based on the current rect and fonts. .PP \fBParameters:\fP .RS 4 \fIupdate_geometry\fP notify the layout system and call update to redraw the scale .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 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 QwtSlider::minimumSizeHint () const\fC [virtual]\fP" .PP Return a minimum size hint. \fBWarning:\fP .RS 4 The return value of \fBQwtSlider::minimumSizeHint()\fP depends on the font and the scale. .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 "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 "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 "int QwtDoubleRange::pageSize () const\fC [inherited]\fP" .PP Returns the page size in steps. .SS "void QwtSlider::paintEvent (QPaintEvent *event)\fC [protected, virtual]\fP"Qt paint event .PP \fBParameters:\fP .RS 4 \fIevent\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 QwtSlider::rangeChange ()\fC [protected, virtual]\fP" .PP Notify change of range. .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtAbstractScale::rescale (doublevmin, doublevmax, doublestepSize = \fC0.0\fP)\fC [protected, inherited]\fP"Recalculate the scale division and update the scale draw. .PP \fBParameters:\fP .RS 4 \fIvmin\fP Lower limit of the scale interval .br \fIvmax\fP Upper limit of the scale interval .br \fIstepSize\fP Major step size .RE .PP \fBSee also:\fP .RS 4 \fBscaleChange()\fP .RE .PP .SS "void QwtSlider::resizeEvent (QResizeEvent *e)\fC [protected, virtual]\fP" .PP Qt resize event. .SS "void QwtSlider::scaleChange ()\fC [protected, virtual]\fP" .PP Notify changed scale. .PP Reimplemented from \fBQwtAbstractScale\fP. .SS "const \fBQwtScaleDraw\fP * QwtSlider::scaleDraw () const"\fBReturns:\fP .RS 4 the scale draw of the slider .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleDraw()\fP .RE .PP .SS "\fBQwtScaleDraw\fP * QwtSlider::scaleDraw ()\fC [protected]\fP"\fBReturns:\fP .RS 4 the scale draw of the slider .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleDraw()\fP .RE .PP .SS "const \fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Scale engine .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleEngine()\fP .RE .PP .SS "\fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine ()\fC [inherited]\fP"\fBReturns:\fP .RS 4 Scale engine .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleEngine()\fP .RE .PP .SS "const \fBQwtScaleMap\fP & QwtAbstractScale::scaleMap () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 \fBabstractScaleDraw()\fP->\fBscaleMap()\fP .RE .PP .SS "int QwtAbstractScale::scaleMaxMajor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Max. number of major tick intervals The default value is 5. .RE .PP .SS "int QwtAbstractScale::scaleMaxMinor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Max. number of minor tick intervals The default value is 3. .RE .PP .SS "\fBQwtSlider::ScalePos\fP QwtSlider::scalePosition () const" .PP Return the scale position. .SS "void QwtAbstractScale::setAbstractScaleDraw (\fBQwtAbstractScaleDraw\fP *scaleDraw)\fC [protected, inherited]\fP" .PP Set a scale draw. scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw. .SS "void QwtAbstractScale::setAutoScale ()\fC [inherited]\fP" .PP Advise the widget to control the scale range internally. Autoscaling is on by default. .PP \fBSee also:\fP .RS 4 \fBsetScale()\fP, \fBautoScale()\fP .RE .PP .SS "void QwtSlider::setBgStyle (\fBBGSTYLE\fPst)"Set the background style. .SS "void QwtSlider::setBorderWidth (intbd)" .PP Change the slider's border width. \fBParameters:\fP .RS 4 \fIbd\fP border width .RE .PP .SS "void QwtSlider::setMargins (intxMargin, intyMargin)" .PP Set distances between the widget's border and internals. \fBParameters:\fP .RS 4 \fIxMargin\fP Horizontal margin .br \fIyMargin\fP Vertical margin .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 QwtSlider::setOrientation (Qt::Orientationo)\fC [virtual]\fP" .PP Set the orientation. \fBParameters:\fP .RS 4 \fIo\fP Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. .RE .PP If the new orientation and the old scale position are an invalid combination, the scale position will be set to QwtSlider::NoScale. .PP \fBSee also:\fP .RS 4 \fBQwtAbstractSlider::orientation()\fP .RE .PP .PP Reimplemented from \fBQwtAbstractSlider\fP. .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 QwtAbstractScale::setScale (const \fBQwtDoubleInterval\fP &interval, doublestepSize = \fC0.0\fP)\fC [inherited]\fP" .PP Specify a scale. Disable autoscaling and define a scale by an interval and a step size .PP \fBParameters:\fP .RS 4 \fIinterval\fP Interval .br \fIstepSize\fP major step size .RE .PP \fBSee also:\fP .RS 4 \fBsetAutoScale()\fP .RE .PP .SS "void QwtAbstractScale::setScale (doublevmin, doublevmax, doublestepSize = \fC0.0\fP)\fC [inherited]\fP" .PP Specify a scale. Disable autoscaling and define a scale by an interval and a step size .PP \fBParameters:\fP .RS 4 \fIvmin\fP lower limit of the scale interval .br \fIvmax\fP upper limit of the scale interval .br \fIstepSize\fP major step size .RE .PP \fBSee also:\fP .RS 4 \fBsetAutoScale()\fP .RE .PP .SS "void QwtAbstractScale::setScale (const \fBQwtScaleDiv\fP &scaleDiv)\fC [inherited]\fP" .PP Specify a scale. Disable autoscaling and define a scale by a scale division .PP \fBParameters:\fP .RS 4 \fIscaleDiv\fP Scale division .RE .PP \fBSee also:\fP .RS 4 \fBsetAutoScale()\fP .RE .PP .SS "void QwtSlider::setScaleDraw (\fBQwtScaleDraw\fP *scaleDraw)" .PP Set a scale draw. For changing the labels of the scales, it is necessary to derive from \fBQwtScaleDraw\fP and overload \fBQwtScaleDraw::label()\fP. .PP \fBParameters:\fP .RS 4 \fIscaleDraw\fP ScaleDraw object, that has to be created with new and will be deleted in ~QwtSlider or the next call of \fBsetScaleDraw()\fP. .RE .PP .SS "void QwtAbstractScale::setScaleEngine (\fBQwtScaleEngine\fP *scaleEngine)\fC [inherited]\fP" .PP Set a scale engine. The scale engine is responsible for calculating the scale division, and in case of auto scaling how to align the scale. .PP scaleEngine has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setScaleEngine. .SS "void QwtAbstractScale::setScaleMaxMajor (intticks)\fC [inherited]\fP" .PP Set the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5. .PP \fBParameters:\fP .RS 4 \fIticks\fP maximal number of major ticks. .RE .PP \fBSee also:\fP .RS 4 \fBQwtAbstractScaleDraw\fP .RE .PP .SS "void QwtAbstractScale::setScaleMaxMinor (intticks)\fC [inherited]\fP" .PP Set the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3. .PP \fBParameters:\fP .RS 4 \fIticks\fP .RE .PP \fBSee also:\fP .RS 4 \fBQwtAbstractScaleDraw\fP .RE .PP .SS "void QwtSlider::setScalePosition (\fBScalePos\fPs)" .PP Change the scale position (and slider orientation). \fBParameters:\fP .RS 4 \fIs\fP Position of the scale. .RE .PP A valid combination of scale position and orientation is enforced: .IP "\(bu" 2 if the new scale position is Left or Right, the scale orientation will become Qt::Vertical; .IP "\(bu" 2 if the new scale position is Bottom or Top the scale orientation will become Qt::Horizontal; .IP "\(bu" 2 if the new scale position is QwtSlider::NoScale, the scale orientation will not change. .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 QwtSlider::setThumbLength (intthumbLength)" .PP Set the slider's thumb length. \fBParameters:\fP .RS 4 \fIthumbLength\fP new length .RE .PP .SS "void QwtSlider::setThumbWidth (intw)" .PP Change the width of the thumb. \fBParameters:\fP .RS 4 \fIw\fP new width .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 "QSize QwtSlider::sizeHint () const\fC [virtual]\fP"\fBReturns:\fP .RS 4 \fBQwtSlider::minimumSizeHint()\fP .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 "int QwtSlider::thumbLength () const"\fBReturns:\fP .RS 4 the thumb length. .RE .PP .SS "int QwtSlider::thumbWidth () const"\fBReturns:\fP .RS 4 the thumb width. .RE .PP .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 "double QwtDoubleRange::value () const\fC [inherited]\fP" .PP Returns the current value. .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtSlider::valueChange ()\fC [protected, virtual]\fP" .PP Notify change of value. .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 "int QwtSlider::xyPosition (doublevalue) const\fC [protected]\fP"Find the x/y position for a given value v .PP \fBParameters:\fP .RS 4 \fIvalue\fP Value .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.