10 #ifndef QWT_ABSTRACT_SLIDER_H 11 #define QWT_ABSTRACT_SLIDER_H 36 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER
true )
38 Q_PROPERTY( uint totalSteps READ totalSteps WRITE setTotalSteps )
39 Q_PROPERTY( uint singleSteps READ singleSteps WRITE setSingleSteps )
40 Q_PROPERTY( uint pageSteps READ pageSteps WRITE setPageSteps )
41 Q_PROPERTY(
bool stepAlignment READ stepAlignment WRITE setStepAlignment )
43 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly )
44 Q_PROPERTY(
bool tracking READ isTracking WRITE setTracking )
45 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping )
47 Q_PROPERTY(
bool invertedControls READ invertedControls WRITE setInvertedControls )
53 void setValid(
bool );
58 void setWrapping(
bool );
59 bool wrapping() const;
61 void setTotalSteps( uint );
62 uint totalSteps() const;
64 void setSingleSteps( uint );
65 uint singleSteps() const;
67 void setPageSteps( uint );
68 uint pageSteps() const;
70 void setStepAlignment(
bool );
71 bool stepAlignment() const;
73 void setTracking(
bool );
74 bool isTracking() const;
76 void setReadOnly(
bool );
77 bool isReadOnly() const;
79 void setInvertedControls(
bool );
80 bool invertedControls() const;
83 void setValue(
double val );
97 void valueChanged(
double value );
103 void sliderPressed();
109 void sliderReleased();
119 void sliderMoved(
double value );
122 virtual
void mousePressEvent( QMouseEvent * );
123 virtual
void mouseReleaseEvent( QMouseEvent * );
124 virtual
void mouseMoveEvent( QMouseEvent * );
125 virtual
void keyPressEvent( QKeyEvent * );
126 virtual
void wheelEvent( QWheelEvent * );
136 virtual
bool isScrollPosition( const QPoint &pos ) const = 0;
147 virtual
double scrolledTo( const QPoint &pos ) const = 0;
149 void incrementValue(
int numSteps );
151 virtual
void scaleChange();
154 virtual
void sliderChange();
156 double incrementedValue(
157 double value,
int stepCount ) const;
160 double alignedValue(
double ) const;
161 double boundedValue(
double ) const;
An abstract base class for widgets having a scale.
An abstract base class for slider widgets with a scale.