source: ntrip/trunk/BNC/qwt/qwt_plot_panner.h@ 10299

Last change on this file since 10299 was 8127, checked in by stoecker, 8 years ago

update qwt and qwtpolar, many QT5 fixes (unfinished)

File size: 1.5 KB
RevLine 
[4271]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
16class QwtPlot;
17
18/*!
19 \brief QwtPlotPanner provides panning of a plot canvas
20
[8127]21 QwtPlotPanner is a panner for a plot canvas, that
[4271]22 adjusts the scales of the axes after dropping
23 the canvas on its new position.
24
25 Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways
26 of navigating on a QwtPlot widget can be implemented easily.
27
28 \note The axes are not updated, while dragging the canvas
29 \sa QwtPlotZoomer, QwtPlotMagnifier
30*/
31class QWT_EXPORT QwtPlotPanner: public QwtPanner
32{
33 Q_OBJECT
34
35public:
[8127]36 explicit QwtPlotPanner( QWidget * );
[4271]37 virtual ~QwtPlotPanner();
38
[8127]39 QWidget *canvas();
40 const QWidget *canvas() const;
[4271]41
42 QwtPlot *plot();
43 const QwtPlot *plot() const;
44
45 void setAxisEnabled( int axis, bool on );
46 bool isAxisEnabled( int axis ) const;
47
48protected Q_SLOTS:
49 virtual void moveCanvas( int dx, int dy );
50
51protected:
52 virtual QBitmap contentsMask() const;
[8127]53 virtual QPixmap grab() const;
[4271]54
55private:
56 class PrivateData;
57 PrivateData *d_data;
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.