Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_layout.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_layout.h

    r4271 r8127  
    2020  or by QwtPlot::print() to render its content to a QPaintDevice like
    2121  a QPrinter, QPixmap/QImage or QSvgRenderer.
     22
     23  \sa QwtPlot::setPlotLayout()
    2224*/
    2325
     
    4446
    4547        //! Ignore the legend.
    46         IgnoreLegend = 0x08
     48        IgnoreLegend = 0x08,
     49
     50        //! Ignore the title.
     51        IgnoreTitle = 0x10,
     52
     53        //! Ignore the footer.
     54        IgnoreFooter = 0x20
    4755    };
    4856
     
    5765
    5866    void setAlignCanvasToScales( bool );
    59     bool alignCanvasToScales() const;
     67
     68    void setAlignCanvasToScale( int axisId, bool );
     69    bool alignCanvasToScale( int axisId ) const;
    6070
    6171    void setSpacing( int );
     
    7686    virtual void invalidate();
    7787
    78     const QRectF &titleRect() const;
    79     const QRectF &legendRect() const;
    80     const QRectF &scaleRect( int axis ) const;
    81     const QRectF &canvasRect() const;
     88    QRectF titleRect() const;
     89    QRectF footerRect() const;
     90    QRectF legendRect() const;
     91    QRectF scaleRect( int axis ) const;
     92    QRectF canvasRect() const;
    8293
    8394    class LayoutData;
     
    8596protected:
    8697
     98    void setTitleRect( const QRectF & );
     99    void setFooterRect( const QRectF & );
     100    void setLegendRect( const QRectF & );
     101    void setScaleRect( int axis, const QRectF & );
     102    void setCanvasRect( const QRectF & );
     103
    87104    QRectF layoutLegend( Options options, const QRectF & ) const;
    88105    QRectF alignLegend( const QRectF &canvasRect,
    89106        const QRectF &legendRect ) const;
    90107
    91     void expandLineBreaks( int options, const QRectF &rect,
    92         int &dimTitle, int dimAxes[QwtPlot::axisCnt] ) const;
     108    void expandLineBreaks( Options options, const QRectF &rect,
     109        int &dimTitle, int &dimFooter, int dimAxes[QwtPlot::axisCnt] ) const;
    93110
    94     void alignScales( int options, QRectF &canvasRect,
     111    void alignScales( Options options, QRectF &canvasRect,
    95112        QRectF scaleRect[QwtPlot::axisCnt] ) const;
    96113
Note: See TracChangeset for help on using the changeset viewer.