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 );
82 bool isInverted()
const;
84 void setWrapping(
bool );
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 min,
double max );
98 void setMinimum(
double );
99 double minimum()
const;
101 void setMaximum(
double );
102 double maximum()
const;
104 void setUpdateInterval(
int );
105 int updateInterval()
const;
107 void setTracking(
bool );
108 bool isTracking()
const;
113 void setValue(
double );
114 void setTotalAngle (
double );
115 void setViewAngle(
double );
116 void setMass(
double );
151 virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
152 virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
153 virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
154 virtual void mouseMoveEvent( QMouseEvent* ) QWT_OVERRIDE;
155 virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
156 virtual void wheelEvent( QWheelEvent* ) QWT_OVERRIDE;
157 virtual void timerEvent( QTimerEvent* ) QWT_OVERRIDE;
161 QRect wheelRect()
const;
163 virtual QSize sizeHint() const QWT_OVERRIDE;
164 virtual QSize minimumSizeHint() const QWT_OVERRIDE;
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;