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

    r8127 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#ifndef QWT_PLOT_PANNER_H
    11 #define QWT_PLOT_PANNER_H 1
     11#define QWT_PLOT_PANNER_H
    1212
    1313#include "qwt_global.h"
    1414#include "qwt_panner.h"
     15#include "qwt_axis_id.h"
    1516
    1617class QwtPlot;
    1718
    1819/*!
    19   \brief QwtPlotPanner provides panning of a plot canvas
     20   \brief QwtPlotPanner provides panning of a plot canvas
    2021
    21   QwtPlotPanner is a panner for a plot canvas, that
    22   adjusts the scales of the axes after dropping
    23   the canvas on its new position.
     22   QwtPlotPanner is a panner for a plot canvas, that
     23   adjusts the scales of the axes after dropping
     24   the canvas on its new position.
    2425
    25   Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways
    26   of navigating on a QwtPlot widget can be implemented easily.
     26   Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways
     27   of navigating on a QwtPlot widget can be implemented easily.
    2728
    28   \note The axes are not updated, while dragging the canvas
    29   \sa QwtPlotZoomer, QwtPlotMagnifier
    30 */
    31 class QWT_EXPORT QwtPlotPanner: public QwtPanner
     29   \note The axes are not updated, while dragging the canvas
     30   \sa QwtPlotZoomer, QwtPlotMagnifier
     31 */
     32class QWT_EXPORT QwtPlotPanner : public QwtPanner
    3233{
    3334    Q_OBJECT
    3435
    35 public:
    36     explicit QwtPlotPanner( QWidget * );
     36  public:
     37    explicit QwtPlotPanner( QWidget* );
    3738    virtual ~QwtPlotPanner();
    3839
    39     QWidget *canvas();
    40     const QWidget *canvas() const;
     40    QWidget* canvas();
     41    const QWidget* canvas() const;
    4142
    42     QwtPlot *plot();
    43     const QwtPlot *plot() const;
     43    QwtPlot* plot();
     44    const QwtPlot* plot() const;
    4445
    45     void setAxisEnabled( int axis, bool on );
    46     bool isAxisEnabled( int axis ) const;
     46    void setAxisEnabled( QwtAxisId axisId, bool on );
     47    bool isAxisEnabled( QwtAxisId ) const;
    4748
    48 protected Q_SLOTS:
     49  public Q_SLOTS:
    4950    virtual void moveCanvas( int dx, int dy );
    5051
    51 protected:
    52     virtual QBitmap contentsMask() const;
    53     virtual QPixmap grab() const;
     52  protected:
     53    virtual QBitmap contentsMask() const QWT_OVERRIDE;
     54    virtual QPixmap grab() const QWT_OVERRIDE;
    5455
    55 private:
     56  private:
    5657    class PrivateData;
    57     PrivateData *d_data;
     58    PrivateData* m_data;
    5859};
    5960
Note: See TracChangeset for help on using the changeset viewer.