~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.1/src/qwt_plot_panner.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
16
 
class QwtPlotCanvas;
17
 
class QwtPlot;
18
 
 
19
 
/*!
20
 
  \brief QwtPlotPanner provides panning of a plot canvas 
21
 
 
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.
25
 
 
26
 
  Together with QwtPlotZoomer and QwtPlotMagnifier powerful ways 
27
 
  of navigating on a QwtPlot widget can be implemented easily.
28
 
  
29
 
  \note The axes are not updated, while dragging the canvas
30
 
  \sa QwtPlotZoomer, QwtPlotMagnifier
31
 
*/
32
 
class QWT_EXPORT QwtPlotPanner: public QwtPanner
33
 
{
34
 
    Q_OBJECT
35
 
 
36
 
public:
37
 
    explicit QwtPlotPanner(QwtPlotCanvas *);
38
 
    virtual ~QwtPlotPanner();
39
 
 
40
 
    QwtPlotCanvas *canvas();
41
 
    const QwtPlotCanvas *canvas() const;
42
 
 
43
 
    QwtPlot *plot();
44
 
    const QwtPlot *plot() const;
45
 
 
46
 
    void setAxisEnabled(int axis, bool on);
47
 
    bool isAxisEnabled(int axis) const;
48
 
 
49
 
protected slots:
50
 
    virtual void moveCanvas(int dx, int dy);
51
 
 
52
 
private:
53
 
    class PrivateData;
54
 
    PrivateData *d_data;
55
 
};
56
 
 
57
 
#endif