Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_renderer.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_renderer.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1212
    1313#include "qwt_global.h"
     14#include "qwt_axis_id.h"
     15
    1416#include <qobject.h>
    1517#include <qsize.h>
    … …  
    3436    \brief Renderer for exporting a plot to a document, a printer
    3537           or anything else, that is supported by QPainter/QPaintDevice
    36 */
    37 class QWT_EXPORT QwtPlotRenderer: public QObject
     38 */
     39class QWT_EXPORT QwtPlotRenderer : public QObject
    3840{
    3941    Q_OBJECT
    4042
    41 public:
    42     //! Disard flags
     43  public:
     44    //! Discard flags
    4345    enum DiscardFlag
    4446    {
    … …  
    7274    };
    7375
    74     //! Disard flags
    75     typedef QFlags<DiscardFlag> DiscardFlags;
     76    Q_DECLARE_FLAGS( DiscardFlags, DiscardFlag )
    7677
    7778    /*!
    … …  
    8586
    8687        /*!
    87           Instead of the scales a box is painted around the plot canvas,
    88           where the scale ticks are aligned to.
     88           Instead of the scales a box is painted around the plot canvas,
     89           where the scale ticks are aligned to.
    8990         */
    9091        FrameWithScales = 0x01
    9192    };
    9293
    93     //! Layout flags
    94     typedef QFlags<LayoutFlag> LayoutFlags;
     94    Q_DECLARE_FLAGS( LayoutFlags, LayoutFlag )
    9595
    96     explicit QwtPlotRenderer( QObject * = NULL );
     96    explicit QwtPlotRenderer( QObject* = NULL );
    9797    virtual ~QwtPlotRenderer();
    9898
    … …  
    109109    LayoutFlags layoutFlags() const;
    110110
    111     void renderDocument( QwtPlot *, const QString &fileName,
    112         const QSizeF &sizeMM, int resolution = 85 );
     111    void renderDocument( QwtPlot*, const QString& fileName,
     112        const QSizeF& sizeMM, int resolution = 85 );
    113113
    114     void renderDocument( QwtPlot *,
    115         const QString &fileName, const QString &format,
    116         const QSizeF &sizeMM, int resolution = 85 );
     114    void renderDocument( QwtPlot*,
     115        const QString& fileName, const QString& format,
     116        const QSizeF& sizeMM, int resolution = 85 );
    117117
    118118#ifndef QWT_NO_SVG
    119119#ifdef QT_SVG_LIB
    120 #if QT_VERSION >= 0x040500
    121     void renderTo( QwtPlot *, QSvgGenerator & ) const;
    122 #endif
     120    void renderTo( QwtPlot*, QSvgGenerator& ) const;
    123121#endif
    124122#endif
    125123
    126124#ifndef QT_NO_PRINTER
    127     void renderTo( QwtPlot *, QPrinter & ) const;
     125    void renderTo( QwtPlot*, QPrinter& ) const;
    128126#endif
    129127
    130     void renderTo( QwtPlot *, QPaintDevice & ) const;
     128    void renderTo( QwtPlot*, QPaintDevice& ) const;
    131129
    132     virtual void render( QwtPlot *,
    133         QPainter *, const QRectF &plotRect ) const;
     130    virtual void render( QwtPlot*,
     131        QPainter*, const QRectF& plotRect ) const;
    134132
    135     virtual void renderTitle( const QwtPlot *,
    136         QPainter *, const QRectF &titleRect ) const;
     133    virtual void renderTitle( const QwtPlot*,
     134        QPainter*, const QRectF& titleRect ) const;
    137135
    138     virtual void renderFooter( const QwtPlot *,
    139         QPainter *, const QRectF &footerRect ) const;
     136    virtual void renderFooter( const QwtPlot*,
     137        QPainter*, const QRectF& footerRect ) const;
    140138
    141     virtual void renderScale( const QwtPlot *, QPainter *,
    142         int axisId, int startDist, int endDist,
    143         int baseDist, const QRectF &scaleRect ) const;
     139    virtual void renderScale( const QwtPlot*, QPainter*,
     140        QwtAxisId, int startDist, int endDist,
     141        int baseDist, const QRectF& scaleRect ) const;
    144142
    145     virtual void renderCanvas( const QwtPlot *,
    146         QPainter *, const QRectF &canvasRect,
     143    virtual void renderCanvas( const QwtPlot*,
     144        QPainter*, const QRectF& canvasRect,
    147145        const QwtScaleMap* maps ) const;
    148146
    149147    virtual void renderLegend(
    150         const QwtPlot *, QPainter *, const QRectF &legendRect ) const;
     148        const QwtPlot*, QPainter*, const QRectF& legendRect ) const;
    151149
    152     bool exportTo( QwtPlot *, const QString &documentName,
    153         const QSizeF &sizeMM = QSizeF( 300, 200 ), int resolution = 85 );
     150    bool exportTo( QwtPlot*, const QString& documentName,
     151        const QSizeF& sizeMM = QSizeF( 300, 200 ), int resolution = 85 );
    154152
    155 private:
    156     void buildCanvasMaps( const QwtPlot *,
    157         const QRectF &, QwtScaleMap maps[] ) const;
     153  private:
     154    void buildCanvasMaps( const QwtPlot*,
     155        const QRectF&, QwtScaleMap maps[] ) const;
    158156
    159     bool updateCanvasMargins( QwtPlot *,
    160         const QRectF &, const QwtScaleMap maps[] ) const;
     157    bool updateCanvasMargins( QwtPlot*,
     158        const QRectF&, const QwtScaleMap maps[] ) const;
    161159
    162 private:
     160  private:
    163161    class PrivateData;
    164     PrivateData *d_data;
     162    PrivateData* m_data;
    165163};
    166164
Note: See TracChangeset for help on using the changeset viewer.