You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
3 weeks ago
|
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||
|
* QwtPolar Widget Library
|
||
|
* Copyright (C) 2008 Uwe Rathmann
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the Qwt License, Version 1.0
|
||
|
*****************************************************************************/
|
||
|
|
||
|
#ifndef QWT_POLAR_PANNER_H
|
||
|
#define QWT_POLAR_PANNER_H 1
|
||
|
|
||
|
#include "qwt_polar_global.h"
|
||
|
#include "qwt_panner.h"
|
||
|
|
||
|
class QwtPolarPlot;
|
||
|
class QwtPolarCanvas;
|
||
|
|
||
|
/*!
|
||
|
\brief QwtPolarPanner provides panning of a polar plot canvas
|
||
|
|
||
|
QwtPolarPanner is a panner for a QwtPolarCanvas, that
|
||
|
adjusts the visible area after dropping
|
||
|
the canvas on its new position.
|
||
|
|
||
|
Together with QwtPolarMagnifier individual ways
|
||
|
of navigating on a QwtPolarPlot widget can be implemented easily.
|
||
|
|
||
|
\sa QwtPolarMagnifier
|
||
|
*/
|
||
|
|
||
|
class QWT_POLAR_EXPORT QwtPolarPanner: public QwtPanner
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit QwtPolarPanner( QwtPolarCanvas * );
|
||
|
virtual ~QwtPolarPanner();
|
||
|
|
||
|
QwtPolarPlot *plot();
|
||
|
const QwtPolarPlot *plot() const;
|
||
|
|
||
|
QwtPolarCanvas *canvas();
|
||
|
const QwtPolarCanvas *canvas() const;
|
||
|
|
||
|
protected Q_SLOTS:
|
||
|
virtual void movePlot( int dx, int dy );
|
||
|
|
||
|
protected:
|
||
|
virtual void widgetMousePressEvent( QMouseEvent * );
|
||
|
};
|
||
|
|
||
|
#endif
|