Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_panner.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_panner.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_panner.h
r8127 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 9 9 10 10 #ifndef QWT_PLOT_PANNER_H 11 #define QWT_PLOT_PANNER_H 111 #define QWT_PLOT_PANNER_H 12 12 13 13 #include "qwt_global.h" 14 14 #include "qwt_panner.h" 15 #include "qwt_axis_id.h" 15 16 16 17 class QwtPlot; 17 18 18 19 /*! 19 \brief QwtPlotPanner provides panning of a plot canvas 20 \brief QwtPlotPanner provides panning of a plot canvas 20 21 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. 24 25 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. 27 28 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 */ 32 class QWT_EXPORT QwtPlotPanner : public QwtPanner 32 33 { 33 34 Q_OBJECT 34 35 35 public: 36 explicit QwtPlotPanner( QWidget * );36 public: 37 explicit QwtPlotPanner( QWidget* ); 37 38 virtual ~QwtPlotPanner(); 38 39 39 QWidget *canvas();40 const QWidget *canvas() const;40 QWidget* canvas(); 41 const QWidget* canvas() const; 41 42 42 QwtPlot *plot();43 const QwtPlot *plot() const;43 QwtPlot* plot(); 44 const QwtPlot* plot() const; 44 45 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; 47 48 48 protectedQ_SLOTS:49 public Q_SLOTS: 49 50 virtual void moveCanvas( int dx, int dy ); 50 51 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; 54 55 55 private: 56 private: 56 57 class PrivateData; 57 PrivateData *d_data;58 PrivateData* m_data; 58 59 }; 59 60
Note:
See TracChangeset
for help on using the changeset viewer.
