00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 #ifndef QWT_PLOT_PANNER_H
00011 #define QWT_PLOT_PANNER_H 1
00012 
00013 #include "qwt_global.h"
00014 #include "qwt_panner.h"
00015 
00016 class QwtPlotCanvas;
00017 class QwtPlot;
00018 
00032 class QWT_EXPORT QwtPlotPanner: public QwtPanner
00033 {
00034     Q_OBJECT
00035 
00036 public:
00037     explicit QwtPlotPanner(QwtPlotCanvas *);
00038     virtual ~QwtPlotPanner();
00039 
00040     QwtPlotCanvas *canvas();
00041     const QwtPlotCanvas *canvas() const;
00042 
00043     QwtPlot *plot();
00044     const QwtPlot *plot() const;
00045 
00046     void setAxisEnabled(int axis, bool on);
00047     bool isAxisEnabled(int axis) const;
00048 
00049 protected slots:
00050     virtual void moveCanvas(int dx, int dy);
00051 
00052 private:
00053     class PrivateData;
00054     PrivateData *d_data;
00055 };
00056 
00057 #endif