~l3on/ubuntu/oneiric/qwt/fix-921430

« back to all changes in this revision

Viewing changes to qwt-5.0.1/examples/data_plot/data_plot.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _DATA_PLOT_H
2
 
#define _DATA_PLOT_H 1
3
 
 
4
 
#include <qwt_plot.h>
5
 
 
6
 
const int PLOT_SIZE = 201;      // 0 to 200
7
 
 
8
 
class DataPlot : public QwtPlot
9
 
{
10
 
    Q_OBJECT
11
 
 
12
 
public:
13
 
    DataPlot(QWidget* = NULL);
14
 
 
15
 
public slots:
16
 
    void setTimerInterval(double interval);
17
 
 
18
 
protected:
19
 
    virtual void timerEvent(QTimerEvent *e);
20
 
 
21
 
private:
22
 
    void alignScales();
23
 
 
24
 
    double d_x[PLOT_SIZE]; 
25
 
    double d_y[PLOT_SIZE]; 
26
 
    double d_z[PLOT_SIZE];
27
 
 
28
 
    int d_interval; // timer in ms
29
 
    int d_timerId;
30
 
};
31
 
 
32
 
#endif