mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
* require qwt >=6.2 (and fallback to internal 6.3 if system's qwt doesn't suffice) * debian doesn't have qwt for Qt6 and won't have it for trixie
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/******************************************************************************
|
|
* 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
|
|
|
|
#include "qwt_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_EXPORT QwtPolarPanner : public QwtPanner
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QwtPolarPanner( QwtPolarCanvas* );
|
|
virtual ~QwtPolarPanner();
|
|
|
|
QwtPolarPlot* plot();
|
|
const QwtPolarPlot* plot() const;
|
|
|
|
QwtPolarCanvas* canvas();
|
|
const QwtPolarCanvas* canvas() const;
|
|
|
|
public Q_SLOTS:
|
|
virtual void movePlot( int dx, int dy );
|
|
|
|
protected:
|
|
virtual void widgetMousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
|
|
};
|
|
|
|
#endif
|