10 #ifndef QWT_ABSTRACT_SCALE_H 11 #define QWT_ABSTRACT_SCALE_H 40 Q_PROPERTY(
double lowerBound READ lowerBound WRITE setLowerBound )
41 Q_PROPERTY(
double upperBound READ upperBound WRITE setUpperBound )
43 Q_PROPERTY(
int scaleMaxMajor READ scaleMaxMajor WRITE setScaleMaxMajor )
44 Q_PROPERTY(
int scaleMaxMinor READ scaleMaxMinor WRITE setScaleMaxMinor )
46 Q_PROPERTY(
double scaleStepSize READ scaleStepSize WRITE setScaleStepSize )
52 void setScale(
double lowerBound,
double upperBound );
56 const QwtScaleDiv& scaleDiv() const;
58 void setLowerBound(
double value );
59 double lowerBound() const;
61 void setUpperBound(
double value );
62 double upperBound() const;
64 void setScaleStepSize(
double stepSize );
65 double scaleStepSize() const;
67 void setScaleMaxMajor(
int ticks );
68 int scaleMaxMinor() const;
70 void setScaleMaxMinor(
int ticks );
71 int scaleMaxMajor() const;
74 const QwtScaleEngine *scaleEngine() const;
75 QwtScaleEngine *scaleEngine();
77 int transform(
double ) const;
78 double invTransform(
int ) const;
80 bool isInverted() const;
82 double minimum() const;
83 double maximum() const;
88 virtual
void changeEvent( QEvent * );
90 void rescale(
double lowerBound,
91 double upperBound,
double stepSize );
95 const QwtAbstractScaleDraw *abstractScaleDraw() const;
96 QwtAbstractScaleDraw *abstractScaleDraw();
98 void updateScaleDraw();
99 virtual
void scaleChange();
A abstract base class for drawing scales.
An abstract base class for widgets having a scale.
A class representing an interval.
A class representing a scale division.
Base class for scale engines.