13 #include "qwt_global.h"
52 Q_PROPERTY(
double value READ value WRITE setValue )
53 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum )
54 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum )
55 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep )
57 Q_PROPERTY(
int numButtons READ numButtons WRITE setNumButtons )
58 Q_PROPERTY(
int stepButton1 READ stepButton1 WRITE setStepButton1 )
59 Q_PROPERTY(
int stepButton2 READ stepButton2 WRITE setStepButton2 )
60 Q_PROPERTY(
int stepButton3 READ stepButton3 WRITE setStepButton3 )
62 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly )
63 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping )
85 void setValid(
bool );
88 void setWrapping(
bool );
89 bool wrapping()
const;
91 bool isReadOnly()
const;
92 void setReadOnly(
bool );
94 void setNumButtons(
int );
95 int numButtons()
const;
100 virtual QSize sizeHint()
const;
102 double singleStep()
const;
103 void setSingleStep(
double stepSize );
105 void setRange(
double min,
double max );
107 double minimum()
const;
108 void setMinimum(
double );
110 double maximum()
const;
111 void setMaximum(
double );
113 void setStepButton1(
int nSteps );
114 int stepButton1()
const;
116 void setStepButton2(
int nSteps );
117 int stepButton2()
const;
119 void setStepButton3(
int nSteps );
120 int stepButton3()
const;
122 double value()
const;
125 void setValue(
double );
142 virtual bool event( QEvent * );
143 virtual void wheelEvent( QWheelEvent * );
144 virtual void keyPressEvent( QKeyEvent * );
152 void incrementValue(
int numSteps );
154 void updateButtons();
155 void showNumber(
double );