Qwt User's Guide 6.1.4

qwt_plot_panner.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10 #ifndef QWT_PLOT_PANNER_H
11 #define QWT_PLOT_PANNER_H 1
12
13 #include "qwt_global.h"
14 #include "qwt_panner.h"
15
16 class QwtPlot;
17
31 class QWT_EXPORT QwtPlotPanner: public QwtPanner
32 {
33 Q_OBJECT
34
35 public:
36 explicit QwtPlotPanner( QWidget * );
37 virtual ~QwtPlotPanner();
38
39 QWidget *canvas();
40 const QWidget *canvas() const;
41
42 QwtPlot *plot();
43 const QwtPlot *plot() const;
44
45 void setAxisEnabled( int axis, bool on );
46 bool isAxisEnabled( int axis ) const;
47
48 protected Q_SLOTS:
49 virtual void moveCanvas( int dx, int dy );
50
51 protected:
52 virtual QBitmap contentsMask() const;
53 virtual QPixmap grab() const;
54
55 private:
56 class PrivateData;
57 PrivateData *d_data;
58 };
59
60 #endif
QwtPanner::contentsMask
virtual QBitmap contentsMask() const
Calculate a mask for the contents of the panned widget.
Definition: qwt_panner.cpp:299
QwtPlotPanner
QwtPlotPanner provides panning of a plot canvas.
Definition: qwt_plot_panner.h:31
QwtPanner
QwtPanner provides panning of a widget.
Definition: qwt_panner.h:35
QwtPanner::grab
virtual QPixmap grab() const
Definition: qwt_panner.cpp:308
QwtPlot
A 2-D plotting widget.
Definition: qwt_plot.h:75