OpenCurves  0.9
plotpanner.h
1 //
2 // author Kazys Stepanas
3 //
4 // Copyright (c) CSIRO 2015
5 //
6 #ifndef PLOTPANNER_H_
7 #define PLOTPANNER_H_
8 
9 #include "ocurvesconfig.h"
10 
11 #include "qwt_plot_panner.h"
12 
15 class PlotPanner : public QwtPlotPanner
16 {
17  Q_OBJECT
18 public:
20  typedef QwtPlotPanner Super;
21 
24  explicit PlotPanner(QWidget *parent = nullptr);
25 
26 public slots:
35  void syncPan(int dx, int dy);
36 
37 protected:
41  void moveCanvas(int dx, int dy) override;
42 
43 private:
44  bool _ignoreEvents;
45 };
46 
47 #endif // PLOTPANNER_H_
void moveCanvas(int dx, int dy) override
Override to mark ignoring of syncPan() events.
void syncPan(int dx, int dy)
Synchronised panning event.
PlotPanner(QWidget *parent=nullptr)
Constructor.
Extension of QwtPlotPanner to expose moveCanvas() for synchronised panning.
Definition: plotpanner.h:15
QwtPlotPanner Super
Alias for the parent class.
Definition: plotpanner.h:20