Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_abstract_scale.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (4 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_abstract_scale.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    2121
    2222/*!
    23   \brief An abstract base class for widgets having a scale
     23   \brief An abstract base class for widgets having a scale
    2424
    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.
    2828
    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.
    3131
    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 */
    3535
    36 class QWT_EXPORT QwtAbstractScale: public QWidget
     36class QWT_EXPORT QwtAbstractScale : public QWidget
    3737{
    3838    Q_OBJECT
    … …  
    4646    Q_PROPERTY( double scaleStepSize READ scaleStepSize WRITE setScaleStepSize )
    4747
    48 public:
    49     QwtAbstractScale( QWidget *parent = NULL );
     48  public:
     49    explicit QwtAbstractScale( QWidget* parent = NULL );
    5050    virtual ~QwtAbstractScale();
    5151
    5252    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& );
    5555
    5656    const QwtScaleDiv& scaleDiv() const;
    … …  
    7171    int scaleMaxMajor() const;
    7272
    73     void setScaleEngine( QwtScaleEngine * );
    74     const QwtScaleEngine *scaleEngine() const;
    75     QwtScaleEngine *scaleEngine();
     73    void setScaleEngine( QwtScaleEngine* );
     74    const QwtScaleEngine* scaleEngine() const;
     75    QwtScaleEngine* scaleEngine();
    7676
    7777    int transform( double ) const;
    … …  
    8383    double maximum() const;
    8484
    85     const QwtScaleMap &scaleMap() const;
     85    const QwtScaleMap& scaleMap() const;
    8686
    87 protected:
     87  protected:
     88    virtual void changeEvent( QEvent* ) QWT_OVERRIDE;
     89
    8890    void rescale( double lowerBound,
    8991        double upperBound, double stepSize );
    9092
    91     void setAbstractScaleDraw( QwtAbstractScaleDraw * );
     93    void setAbstractScaleDraw( QwtAbstractScaleDraw* );
    9294
    93     const QwtAbstractScaleDraw *abstractScaleDraw() const;
    94     QwtAbstractScaleDraw *abstractScaleDraw();
     95    const QwtAbstractScaleDraw* abstractScaleDraw() const;
     96    QwtAbstractScaleDraw* abstractScaleDraw();
    9597
     98    void updateScaleDraw();
    9699    virtual void scaleChange();
    97100
    98 private:
    99     void updateScaleDraw();
    100 
     101  private:
    101102    class PrivateData;
    102     PrivateData *d_data;
     103    PrivateData* m_data;
    103104};
    104105
Note: See TracChangeset for help on using the changeset viewer.