1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
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
*****************************************************************************/
10
#ifndef QWT_PLOT_PANNER_H
11
#define QWT_PLOT_PANNER_H 1
13
#include "qwt_global.h"
14
#include "qwt_panner.h"
20
\brief QwtPlotPanner provides panning of a plot canvas
22
QwtPlotPanner is a panner for a QwtPlotCanvas, that
23
adjusts the scales of the axes after dropping
24
the canvas on its new position.
26
Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways
27
of navigating on a QwtPlot widget can be implemented easily.
29
\note The axes are not updated, while dragging the canvas
30
\sa QwtPlotZoomer, QwtPlotMagnifier
32
class QWT_EXPORT QwtPlotPanner: public QwtPanner
37
explicit QwtPlotPanner(QwtPlotCanvas *);
38
virtual ~QwtPlotPanner();
40
QwtPlotCanvas *canvas();
41
const QwtPlotCanvas *canvas() const;
44
const QwtPlot *plot() const;
46
void setAxisEnabled(int axis, bool on);
47
bool isAxisEnabled(int axis) const;
50
virtual void moveCanvas(int dx, int dy);