Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_abstract_scale.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_abstract_scale.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_abstract_scale.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 21 21 22 22 /*! 23 \brief An abstract base class for widgets having a scale 23 \brief An abstract base class for widgets having a scale 24 24 25 The scale of an QwtAbstractScale is determined by a QwtScaleDiv 26 definition, that contains the boundaries and the ticks of the scale. 27 The scale is painted using a QwtScaleDraw object. 25 The scale of an QwtAbstractScale is determined by a QwtScaleDiv 26 definition, that contains the boundaries and the ticks of the scale. 27 The scale is painted using a QwtScaleDraw object. 28 28 29 The scale division might be assigned explicitly - but usually 30 it is calculated from the boundaries using a QwtScaleEngine. 29 The scale division might be assigned explicitly - but usually 30 it is calculated from the boundaries using a QwtScaleEngine. 31 31 32 The scale engine also decides the type of transformation of the scale 33 ( linear, logarithmic ... ). 34 */ 32 The scale engine also decides the type of transformation of the scale 33 ( linear, logarithmic ... ). 34 */ 35 35 36 class QWT_EXPORT QwtAbstractScale: public QWidget 36 class QWT_EXPORT QwtAbstractScale : public QWidget 37 37 { 38 38 Q_OBJECT … … 46 46 Q_PROPERTY( double scaleStepSize READ scaleStepSize WRITE setScaleStepSize ) 47 47 48 public: 49 QwtAbstractScale( QWidget *parent = NULL );48 public: 49 explicit QwtAbstractScale( QWidget* parent = NULL ); 50 50 virtual ~QwtAbstractScale(); 51 51 52 52 void setScale( double lowerBound, double upperBound ); 53 void setScale( const QwtInterval & );54 void setScale( const QwtScaleDiv & );53 void setScale( const QwtInterval& ); 54 void setScale( const QwtScaleDiv& ); 55 55 56 56 const QwtScaleDiv& scaleDiv() const; … … 71 71 int scaleMaxMajor() const; 72 72 73 void setScaleEngine( QwtScaleEngine * );74 const QwtScaleEngine *scaleEngine() const;75 QwtScaleEngine *scaleEngine();73 void setScaleEngine( QwtScaleEngine* ); 74 const QwtScaleEngine* scaleEngine() const; 75 QwtScaleEngine* scaleEngine(); 76 76 77 77 int transform( double ) const; … … 83 83 double maximum() const; 84 84 85 const QwtScaleMap &scaleMap() const;85 const QwtScaleMap& scaleMap() const; 86 86 87 protected: 87 protected: 88 virtual void changeEvent( QEvent* ) QWT_OVERRIDE; 89 88 90 void rescale( double lowerBound, 89 91 double upperBound, double stepSize ); 90 92 91 void setAbstractScaleDraw( QwtAbstractScaleDraw * );93 void setAbstractScaleDraw( QwtAbstractScaleDraw* ); 92 94 93 const QwtAbstractScaleDraw *abstractScaleDraw() const;94 QwtAbstractScaleDraw *abstractScaleDraw();95 const QwtAbstractScaleDraw* abstractScaleDraw() const; 96 QwtAbstractScaleDraw* abstractScaleDraw(); 95 97 98 void updateScaleDraw(); 96 99 virtual void scaleChange(); 97 100 98 private: 99 void updateScaleDraw(); 100 101 private: 101 102 class PrivateData; 102 PrivateData *d_data;103 PrivateData* m_data; 103 104 }; 104 105
Note:
See TracChangeset
for help on using the changeset viewer.
