Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_layout.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_layout.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.h"
     15#include "qwt_axis_id.h"
    1516
    1617/*!
    17   \brief Layout engine for QwtPlot.
     18   \brief Layout engine for QwtPlot.
    1819
    19   It is used by the QwtPlot widget to organize its internal widgets
    20   or by QwtPlot::print() to render its content to a QPaintDevice like
    21   a QPrinter, QPixmap/QImage or QSvgRenderer.
     20   It is used by the QwtPlot widget to organize its internal widgets
     21   or by QwtPlot::print() to render its content to a QPaintDevice like
     22   a QPrinter, QPixmap/QImage or QSvgRenderer.
    2223
    23   \sa QwtPlot::setPlotLayout()
    24 */
     24   \sa QwtPlot::setPlotLayout()
     25 */
    2526
    2627class QWT_EXPORT QwtPlotLayout
    2728{
    28 public:
     29  public:
    2930    /*!
    30       Options to configure the plot layout engine
    31       \sa activate(), QwtPlotRenderer
     31       Options to configure the plot layout engine
     32       \sa activate(), QwtPlotRenderer
    3233     */
    3334    enum Option
    … …  
    3738
    3839        /*!
    39           Ignore the dimension of the scrollbars. There are no
    40           scrollbars, when the plot is not rendered to widgets.
     40           Ignore the dimension of the scrollbars. There are no
     41           scrollbars, when the plot is not rendered to widgets.
    4142         */
    4243        IgnoreScrollbars = 0x02,
    … …  
    5556    };
    5657
    57     //! Layout options
    58     typedef QFlags<Option> Options;
     58    Q_DECLARE_FLAGS( Options, Option )
    5959
    6060    explicit QwtPlotLayout();
    … …  
    7979    double legendRatio() const;
    8080
    81     virtual QSize minimumSizeHint( const QwtPlot * ) const;
     81    virtual QSize minimumSizeHint( const QwtPlot* ) const;
    8282
    83     virtual void activate( const QwtPlot *,
    84         const QRectF &plotRect, Options options = Options() );
     83    virtual void activate( const QwtPlot*,
     84        const QRectF& plotRect, Options options = Options() );
    8585
    8686    virtual void invalidate();
    … …  
    8989    QRectF footerRect() const;
    9090    QRectF legendRect() const;
    91     QRectF scaleRect( int axis ) const;
     91    QRectF scaleRect( QwtAxisId ) const;
    9292    QRectF canvasRect() const;
    9393
    94     class LayoutData;
     94  protected:
    9595
    96 protected:
     96    void setTitleRect( const QRectF& );
     97    void setFooterRect( const QRectF& );
     98    void setLegendRect( const QRectF& );
     99    void setScaleRect( QwtAxisId, const QRectF& );
     100    void setCanvasRect( const QRectF& );
    97101
    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 & );
     102  private:
     103    Q_DISABLE_COPY(QwtPlotLayout)
    103104
    104     QRectF layoutLegend( Options options, const QRectF & ) const;
    105     QRectF alignLegend( const QRectF &canvasRect,
    106         const QRectF &legendRect ) const;
    107 
    108     void expandLineBreaks( Options options, const QRectF &rect,
    109         int &dimTitle, int &dimFooter, int dimAxes[QwtPlot::axisCnt] ) const;
    110 
    111     void alignScales( Options options, QRectF &canvasRect,
    112         QRectF scaleRect[QwtPlot::axisCnt] ) const;
    113 
    114 private:
    115105    class PrivateData;
    116 
    117     PrivateData *d_data;
     106    PrivateData* m_data;
    118107};
    119108
Note: See TracChangeset for help on using the changeset viewer.