Qwt User's Guide
|
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 QwtPlot; 00017 00031 class QWT_EXPORT QwtPlotPanner: public QwtPanner 00032 { 00033 Q_OBJECT 00034 00035 public: 00036 explicit QwtPlotPanner( QWidget * ); 00037 virtual ~QwtPlotPanner(); 00038 00039 QWidget *canvas(); 00040 const QWidget *canvas() const; 00041 00042 QwtPlot *plot(); 00043 const QwtPlot *plot() const; 00044 00045 void setAxisEnabled( int axis, bool on ); 00046 bool isAxisEnabled( int axis ) const; 00047 00048 protected Q_SLOTS: 00049 virtual void moveCanvas( int dx, int dy ); 00050 00051 protected: 00052 virtual QBitmap contentsMask() const; 00053 virtual QPixmap grab() const; 00054 00055 private: 00056 class PrivateData; 00057 PrivateData *d_data; 00058 }; 00059 00060 #endif