31 Q_PROPERTY( Qt::Orientation orientation
32 READ orientation WRITE setOrientation )
34 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER true )
36 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum )
37 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum )
39 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep )
40 Q_PROPERTY(
int pageStepCount READ pageStepCount WRITE setPageStepCount )
41 Q_PROPERTY(
bool stepAlignment READ stepAlignment WRITE setStepAlignment )
43 Q_PROPERTY(
bool tracking READ isTracking WRITE setTracking )
44 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping )
45 Q_PROPERTY(
bool inverted READ isInverted WRITE setInverted )
47 Q_PROPERTY(
double mass READ mass WRITE setMass )
48 Q_PROPERTY(
int updateInterval READ updateInterval WRITE setUpdateInterval )
50 Q_PROPERTY(
double totalAngle READ totalAngle WRITE setTotalAngle )
51 Q_PROPERTY(
double viewAngle READ viewAngle WRITE setViewAngle )
52 Q_PROPERTY(
int tickCount READ tickCount WRITE setTickCount )
53 Q_PROPERTY(
int wheelWidth READ wheelWidth WRITE setWheelWidth )
54 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
55 Q_PROPERTY(
int wheelBorderWidth READ wheelBorderWidth WRITE setWheelBorderWidth )
58 explicit
QwtWheel( QWidget *parent = NULL );
63 void setOrientation(
Qt::Orientation );
64 Qt::Orientation orientation() const;
66 double totalAngle() const;
67 double viewAngle() const;
69 void setTickCount(
int );
70 int tickCount() const;
72 void setWheelWidth(
int );
73 int wheelWidth() const;
75 void setWheelBorderWidth(
int );
76 int wheelBorderWidth() const;
78 void setBorderWidth(
int );
79 int borderWidth() const;
81 void setInverted(
bool tf );
82 bool isInverted() const;
84 void setWrapping(
bool tf );
85 bool wrapping() const;
87 void setSingleStep(
double );
88 double singleStep() const;
90 void setPageStepCount(
int );
91 int pageStepCount() const;
93 void setStepAlignment(
bool on );
94 bool stepAlignment() const;
96 void setRange(
double vmin,
double vmax );
98 void setMinimum(
double min );
99 double minimum() const;
101 void setMaximum(
double max );
102 double maximum() const;
104 void setUpdateInterval(
int );
105 int updateInterval() const;
107 void setTracking(
bool enable );
108 bool isTracking() const;
113 void setValue(
double );
114 void setTotalAngle (
double );
115 void setViewAngle(
double );
116 void setMass(
double );
129 void valueChanged(
double value );
140 void wheelReleased();
148 void wheelMoved(
double value );
151 virtual
void paintEvent( QPaintEvent * );
152 virtual
void mousePressEvent( QMouseEvent * );
153 virtual
void mouseReleaseEvent( QMouseEvent * );
154 virtual
void mouseMoveEvent( QMouseEvent * );
155 virtual
void keyPressEvent( QKeyEvent * );
156 virtual
void wheelEvent( QWheelEvent * );
157 virtual
void timerEvent( QTimerEvent * );
161 QRect wheelRect() const;
163 virtual QSize sizeHint() const;
164 virtual QSize minimumSizeHint() const;
166 virtual
void drawTicks( QPainter *, const QRectF & );
167 virtual
void drawWheelBackground( QPainter *, const QRectF & );
169 virtual
double valueAt( const QPoint & ) const;
172 double alignedValue(
double ) const;
173 double boundedValue(
double ) const;