Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_renderer.h


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

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

    r4271 r8127  
    1313#include "qwt_global.h"
    1414#include <qobject.h>
     15#include <qsize.h>
    1516
    1617class QwtPlot;
    1718class QwtScaleMap;
    18 class QSizeF;
    1919class QRectF;
    2020class QPainter;
     
    5656
    5757        //! Don't render the background of the canvas
    58         DiscardCanvasBackground = 0x08
     58        DiscardCanvasBackground = 0x08,
     59
     60        //! Don't render the footer of the plot
     61        DiscardFooter           = 0x10,
     62
     63        /*!
     64            Don't render the frame of the canvas
     65
     66            \note This flag has no effect when using
     67                  style sheets, where the frame is part
     68                  of the background
     69         */
     70        DiscardCanvasFrame           = 0x20
     71
    5972    };
    6073
     
    6881    enum LayoutFlag
    6982    {
    70         //! Use the default layout without margins and frames
     83        //! Use the default layout as on screen
    7184        DefaultLayout   = 0x00,
    72 
    73         //! Render all frames of the plot
    74         KeepFrames      = 0x01,
    7585
    7686        /*!
     
    7888          where the scale ticks are aligned to.
    7989         */
    80         FrameWithScales = 0x02
     90        FrameWithScales = 0x01
    8191    };
    8292
     
    99109    LayoutFlags layoutFlags() const;
    100110
    101     void renderDocument( QwtPlot *, const QString &format,
     111    void renderDocument( QwtPlot *, const QString &fileName,
    102112        const QSizeF &sizeMM, int resolution = 85 );
    103113
    104114    void renderDocument( QwtPlot *,
    105         const QString &title, const QString &format,
     115        const QString &fileName, const QString &format,
    106116        const QSizeF &sizeMM, int resolution = 85 );
    107117
     
    123133        QPainter *, const QRectF &rect ) const;
    124134
    125     virtual void renderLegendItem( const QwtPlot *,
    126         QPainter *, const QWidget *, const QRectF & ) const;
     135    virtual void renderTitle( const QwtPlot *,
     136        QPainter *, const QRectF & ) const;
    127137
    128     virtual void renderTitle( const QwtPlot *,
     138    virtual void renderFooter( const QwtPlot *,
    129139        QPainter *, const QRectF & ) const;
    130140
     
    140150        const QwtPlot *, QPainter *, const QRectF & ) const;
    141151
    142 protected:
     152    bool exportTo( QwtPlot *, const QString &documentName,
     153        const QSizeF &sizeMM = QSizeF( 300, 200 ), int resolution = 85 );
     154
     155private:
    143156    void buildCanvasMaps( const QwtPlot *,
    144157        const QRectF &, QwtScaleMap maps[] ) const;
     158
     159    bool updateCanvasMargins( QwtPlot *,
     160        const QRectF &, const QwtScaleMap maps[] ) const;
    145161
    146162private:
Note: See TracChangeset for help on using the changeset viewer.