27#ifndef QWT_ABSTRACT_SLIDER_H
28#define QWT_ABSTRACT_SLIDER_H
30#include "qwt_global.h"
31#include "qwt_abstract_scale.h"
53 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER
true )
55 Q_PROPERTY( uint totalSteps READ totalSteps WRITE setTotalSteps )
56 Q_PROPERTY( uint singleSteps READ singleSteps WRITE setSingleSteps )
57 Q_PROPERTY( uint pageSteps READ pageSteps WRITE setPageSteps )
58 Q_PROPERTY(
bool stepAlignment READ stepAlignment WRITE setStepAlignment )
60 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly )
61 Q_PROPERTY(
bool tracking READ isTracking WRITE setTracking )
62 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping )
64 Q_PROPERTY(
bool invertedControls READ invertedControls WRITE setInvertedControls )
70 void setValid(
bool );
75 void setWrapping(
bool );
76 bool wrapping()
const;
78 void setTotalSteps( uint );
79 uint totalSteps()
const;
81 void setSingleSteps( uint );
82 uint singleSteps()
const;
84 void setPageSteps( uint );
85 uint pageSteps()
const;
87 void setStepAlignment(
bool );
88 bool stepAlignment()
const;
90 void setTracking(
bool );
91 bool isTracking()
const;
93 void setReadOnly(
bool );
94 bool isReadOnly()
const;
96 void setInvertedControls(
bool );
97 bool invertedControls()
const;
100 void setValue(
double value );
139 virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
140 virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
141 virtual void mouseMoveEvent( QMouseEvent* ) QWT_OVERRIDE;
142 virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
143 virtual void wheelEvent( QWheelEvent* ) QWT_OVERRIDE;
166 void incrementValue(
int stepCount );
171 virtual
void sliderChange();
173 double incrementedValue(
174 double value,
int stepCount ) const;
177 double alignedValue(
double ) const;
178 double boundedValue(
double ) const;
An abstract base class for widgets having a scale.
Definition qwt_abstract_scale.h:54
virtual void scaleChange()
Notify changed scale.
Definition qwt_abstract_scale.cpp:420
An abstract base class for slider widgets with a scale.
Definition qwt_abstract_slider.h:50
void valueChanged(double value)
Notify a change of value.
void sliderReleased()
This signal is emitted when the user releases the movable part of the slider.
void sliderMoved(double value)
This signal is emitted when the user moves the slider with the mouse.
virtual bool isScrollPosition(const QPoint &pos) const =0
Determine what to do when the user presses a mouse button.
virtual double scrolledTo(const QPoint &pos) const =0
Determine the value for a new position of the movable part of the slider.
void sliderPressed()
This signal is emitted when the user presses the movable part of the slider.