1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#ifndef _PLOT_H_
#define _PLOT_H_ 1
#include <qwt_plot.h>
#include <qwt_system_clock.h>
#include "settings.h"
class QwtPlotGrid;
class QwtPlotCurve;
class Plot: public QwtPlot
{
Q_OBJECT
public:
Plot( QWidget* = NULL );
public Q_SLOTS:
void setSettings( const Settings & );
protected:
virtual void timerEvent( QTimerEvent *e );
private:
void alignScales();
QwtPlotGrid *d_grid;
QwtPlotCurve *d_curve;
QwtSystemClock d_clock;
double d_interval;
int d_timerId;
Settings d_settings;
};
#endif
|