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


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

deprecated functions exchanged libs updated

File:
1 edited

Legend:

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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1313#include "qwt_global.h"
    1414#include "qwt_plot_item.h"
    15 #include "qwt_scale_div.h"
    1615
    1716class QPainter;
    … …  
    2120
    2221/*!
    23   \brief A class which draws a coordinate grid
     22   \brief A class which draws a coordinate grid
    2423
    25   The QwtPlotGrid class can be used to draw a coordinate grid.
    26   A coordinate grid consists of major and minor vertical
    27   and horizontal grid lines. The locations of the grid lines
    28   are determined by the X and Y scale divisions which can
    29   be assigned with setXDiv() and setYDiv().
    30   The draw() member draws the grid within a bounding
    31   rectangle.
    32 */
     24   The QwtPlotGrid class can be used to draw a coordinate grid.
     25   A coordinate grid consists of major and minor vertical
     26   and horizontal grid lines. The locations of the grid lines
     27   are determined by the X and Y scale divisions which can
     28   be assigned with setXDiv() and setYDiv().
     29   The draw() member draws the grid within a bounding
     30   rectangle.
     31 */
    3332
    34 class QWT_EXPORT QwtPlotGrid: public QwtPlotItem
     33class QWT_EXPORT QwtPlotGrid : public QwtPlotItem
    3534{
    36 public:
     35  public:
    3736    explicit QwtPlotGrid();
    3837    virtual ~QwtPlotGrid();
    3938
    40     virtual int rtti() const;
     39    virtual int rtti() const QWT_OVERRIDE;
    4140
    4241    void enableX( bool );
    … …  
    5251    bool yMinEnabled() const;
    5352
    54     void setXDiv( const QwtScaleDiv & );
    55     const QwtScaleDiv &xScaleDiv() const;
     53    void setXDiv( const QwtScaleDiv& );
     54    const QwtScaleDiv& xScaleDiv() const;
    5655
    57     void setYDiv( const QwtScaleDiv & );
    58     const QwtScaleDiv &yScaleDiv() const;
     56    void setYDiv( const QwtScaleDiv& );
     57    const QwtScaleDiv& yScaleDiv() const;
    5958
    60     void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    61     void setPen( const QPen & );
     59    void setPen( const QColor&,
     60        qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    6261
    63     void setMajorPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    64     void setMajorPen( const QPen & );
     62    void setPen( const QPen& );
     63
     64    void setMajorPen( const QColor&,
     65        qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
     66
     67    void setMajorPen( const QPen& );
    6568    const QPen& majorPen() const;
    6669
    67     void setMinorPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    68     void setMinorPen( const QPen & );
     70    void setMinorPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
     71    void setMinorPen( const QPen& );
    6972    const QPen& minorPen() const;
    7073
    71     virtual void draw( QPainter *,
    72         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    73         const QRectF &canvasRect ) const;
     74    virtual void draw( QPainter*,
     75        const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     76        const QRectF& canvasRect ) const QWT_OVERRIDE;
    7477
    7578    virtual void updateScaleDiv(
    76         const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv );
     79        const QwtScaleDiv& xScaleDiv, const QwtScaleDiv& yScaleDiv ) QWT_OVERRIDE;
    7780
    78 private:
    79     void drawLines( QPainter *, const QRectF &,
    80         Qt::Orientation, const QwtScaleMap &,
    81         const QList<double> & ) const;
     81  private:
     82    void drawLines( QPainter*, const QRectF&,
     83        Qt::Orientation, const QwtScaleMap&,
     84        const QList< double >& ) const;
    8285
    8386    class PrivateData;
    84     PrivateData *d_data;
     87    PrivateData* m_data;
    8588};
    8689
Note: See TracChangeset for help on using the changeset viewer.