27#ifndef QWT_ABSTRACT_SLIDER_H
28#define QWT_ABSTRACT_SLIDER_H
30#include "qwt_global.h"
31#include "qwt_abstract_scale.h"
50 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER
true)
52 Q_PROPERTY(uint totalSteps READ totalSteps WRITE setTotalSteps)
53 Q_PROPERTY(uint singleSteps READ singleSteps WRITE setSingleSteps)
54 Q_PROPERTY(uint pageSteps READ pageSteps WRITE setPageSteps)
55 Q_PROPERTY(
bool stepAlignment READ stepAlignment WRITE setStepAlignment)
57 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
58 Q_PROPERTY(
bool tracking READ isTracking WRITE setTracking)
59 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping)
61 Q_PROPERTY(
bool invertedControls READ invertedControls WRITE setInvertedControls)
80 void setWrapping(
bool);
83 bool wrapping()
const;
86 void setTotalSteps(uint);
89 uint totalSteps()
const;
92 void setSingleSteps(uint);
95 uint singleSteps()
const;
98 void setPageSteps(uint);
101 uint pageSteps()
const;
104 void setStepAlignment(
bool);
107 bool stepAlignment()
const;
110 void setTracking(
bool);
113 bool isTracking()
const;
116 void setReadOnly(
bool);
119 bool isReadOnly()
const;
122 void setInvertedControls(
bool);
125 bool invertedControls()
const;
129 void setValue(
double value);
161 virtual void mousePressEvent(QMouseEvent*)
override;
164 virtual void mouseReleaseEvent(QMouseEvent*)
override;
167 virtual void mouseMoveEvent(QMouseEvent*)
override;
170 virtual void keyPressEvent(QKeyEvent*)
override;
173 virtual void wheelEvent(QWheelEvent*)
override;
176 virtual bool isScrollPosition(
const QPoint& pos)
const = 0;
179 virtual double scrolledTo(
const QPoint& pos)
const = 0;
182 void incrementValue(
int stepCount);
189 virtual void sliderChange();
192 double incrementedValue(
double value,
int stepCount)
const;
195 double alignedValue(
double)
const;
196 double boundedValue(
double)
const;
An abstract base class for widgets having a scale
Definition qwt_abstract_scale.h:51
virtual void scaleChange()
Notify about scale changes (English only)
Definition qwt_abstract_scale.cpp:423
An abstract base class for slider widgets with a scale
Definition qwt_abstract_slider.h:47
void valueChanged(double value)
Notify a change of value
~QwtAbstractSlider() override
Destructor for QwtAbstractSlider (English only)
void sliderReleased()
Signal emitted when the user releases the movable part of the slider
void sliderMoved(double value)
Signal emitted when the user moves the slider with the mouse
void sliderPressed()
Signal emitted when the user presses the movable part of the slider