Qwt User's Guide 5.2.2

- Main Page
- Related Pages
- Classes
- Files

- File List

# qwt_plot_panner.h

    00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
    00002  * Qwt Widget Library
    00003  * Copyright (C) 1997   Josef Wilgen
    00004  * Copyright (C) 2002   Uwe Rathmann
    00005  *
    00006  * This library is free software; you can redistribute it and/or
    00007  * modify it under the terms of the Qwt License, Version 1.0
    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