13 #include "qwt_global.h"
31 Q_PROPERTY( Qt::Orientation orientation
32 READ orientation WRITE setOrientation )
34 Q_PROPERTY(
double value READ value WRITE setValue )
35 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum )
36 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum )
38 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep )
39 Q_PROPERTY(
int pageStepCount READ pageStepCount WRITE setPageStepCount )
40 Q_PROPERTY(
bool stepAlignment READ stepAlignment WRITE setStepAlignment )
42 Q_PROPERTY(
bool tracking READ isTracking WRITE setTracking )
43 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping )
44 Q_PROPERTY(
bool inverted READ isInverted WRITE setInverted )
46 Q_PROPERTY(
double mass READ mass WRITE setMass )
47 Q_PROPERTY(
int updateInterval READ updateInterval WRITE setUpdateInterval )
49 Q_PROPERTY(
double totalAngle READ totalAngle WRITE setTotalAngle )
50 Q_PROPERTY(
double viewAngle READ viewAngle WRITE setViewAngle )
51 Q_PROPERTY(
int tickCount READ tickCount WRITE setTickCount )
52 Q_PROPERTY(
int wheelWidth READ wheelWidth WRITE setWheelWidth )
53 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
54 Q_PROPERTY(
int wheelBorderWidth READ wheelBorderWidth WRITE setWheelBorderWidth )
57 explicit QwtWheel( QWidget *parent = NULL );
62 void setOrientation( Qt::Orientation );
63 Qt::Orientation orientation()
const;
65 double totalAngle()
const;
66 double viewAngle()
const;
68 void setTickCount(
int );
69 int tickCount()
const;
71 void setWheelWidth(
int );
72 int wheelWidth()
const;
74 void setWheelBorderWidth(
int );
75 int wheelBorderWidth()
const;
77 void setBorderWidth(
int );
78 int borderWidth()
const;
80 void setInverted(
bool );
81 bool isInverted()
const;
83 void setWrapping(
bool );
84 bool wrapping()
const;
86 void setSingleStep(
double );
87 double singleStep()
const;
89 void setPageStepCount(
int );
90 int pageStepCount()
const;
92 void setStepAlignment(
bool on );
93 bool stepAlignment()
const;
95 void setRange(
double min,
double max );
97 void setMinimum(
double );
98 double minimum()
const;
100 void setMaximum(
double );
101 double maximum()
const;
103 void setUpdateInterval(
int );
104 int updateInterval()
const;
106 void setTracking(
bool );
107 bool isTracking()
const;
112 void setValue(
double );
113 void setTotalAngle (
double );
114 void setViewAngle(
double );
115 void setMass(
double );
150 virtual void paintEvent( QPaintEvent * );
151 virtual void mousePressEvent( QMouseEvent * );
152 virtual void mouseReleaseEvent( QMouseEvent * );
153 virtual void mouseMoveEvent( QMouseEvent * );
154 virtual void keyPressEvent( QKeyEvent * );
155 virtual void wheelEvent( QWheelEvent * );
156 virtual void timerEvent( QTimerEvent * );
160 QRect wheelRect()
const;
162 virtual QSize sizeHint()
const;
163 virtual QSize minimumSizeHint()
const;
165 virtual void drawTicks( QPainter *,
const QRectF & );
166 virtual void drawWheelBackground( QPainter *,
const QRectF & );
168 virtual double valueAt(
const QPoint & )
const;
171 double alignedValue(
double )
const;
172 double boundedValue(
double )
const;