source: ntrip/branches/BNC_2.11.0/qwtpolar/qwt_polar_panner.h@ 6214

Last change on this file since 6214 was 4272, checked in by mervart, 12 years ago
File size: 1.3 KB
Line 
1/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * QwtPolar Widget Library
3 * Copyright (C) 2008 Uwe Rathmann
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the Qwt License, Version 1.0
7 *****************************************************************************/
8
9#ifndef QWT_POLAR_PANNER_H
10#define QWT_POLAR_PANNER_H 1
11
12#include "qwt_polar_global.h"
13#include "qwt_panner.h"
14
15class QwtPolarPlot;
16class QwtPolarCanvas;
17
18/*!
19 \brief QwtPolarPanner provides panning of a polar plot canvas
20
21 QwtPolarPanner is a panner for a QwtPolarCanvas, that
22 adjusts the visible area after dropping
23 the canvas on its new position.
24
25 Together with QwtPolarMagnifier individual ways
26 of navigating on a QwtPolarPlot widget can be implemented easily.
27
28 \sa QwtPolarMagnifier
29*/
30
31class QWT_POLAR_EXPORT QwtPolarPanner: public QwtPanner
32{
33 Q_OBJECT
34
35public:
36 explicit QwtPolarPanner( QwtPolarCanvas * );
37 virtual ~QwtPolarPanner();
38
39 QwtPolarPlot *plot();
40 const QwtPolarPlot *plot() const;
41
42 QwtPolarCanvas *canvas();
43 const QwtPolarCanvas *canvas() const;
44
45protected Q_SLOTS:
46 virtual void movePlot( int dx, int dy );
47
48protected:
49 virtual void widgetMousePressEvent( QMouseEvent * );
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.