qwt_plot_panner.h
Go to the documentation of this file.
1 /******************************************************************************
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
12 
13 #include "qwt_global.h"
14 #include "qwt_panner.h"
15 #include "qwt_axis_id.h"
16 
17 class QwtPlot;
18 
33 {
34  Q_OBJECT
35 
36  public:
37  explicit QwtPlotPanner( QWidget* );
38  virtual ~QwtPlotPanner();
39 
40  QWidget* canvas();
41  const QWidget* canvas() const;
42 
43  QwtPlot* plot();
44  const QwtPlot* plot() const;
45 
46  void setAxisEnabled( QwtAxisId axisId, bool on );
47  bool isAxisEnabled( QwtAxisId ) const;
48 
49  public Q_SLOTS:
50  virtual void moveCanvas( int dx, int dy );
51 
52  protected:
53  virtual QBitmap contentsMask() const QWT_OVERRIDE;
54  virtual QPixmap grab() const QWT_OVERRIDE;
55 
56  private:
57  class PrivateData;
59 };
60 
61 #endif
QwtPanner::grab
virtual QPixmap grab() const
Definition: qwt_panner.cpp:306
QwtPanner
QwtPanner provides panning of a widget.
Definition: qwt_panner.h:35
QwtPlot
A 2-D plotting widget.
Definition: qwt_plot.h:78
qwt_global.h
QwtPlotPanner::m_data
PrivateData * m_data
Definition: qwt_plot_panner.h:57
qwt_axis_id.h
QwtAxisId
int QwtAxisId
Axis identifier.
Definition: qwt_axis_id.h:26
QwtPanner::contentsMask
virtual QBitmap contentsMask() const
Calculate a mask for the contents of the panned widget.
Definition: qwt_panner.cpp:297
QwtPlotPanner
QwtPlotPanner provides panning of a plot canvas.
Definition: qwt_plot_panner.h:32
qwt_panner.h
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition: qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition: qwt_global.h:38
QwtPlotPanner::PrivateData
Definition: qwt_plot_panner.cpp:107


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:24