Files
GoldenCheetah/qwt/examples/refreshtest/plot.h
Damien 2f9130cd76 Qwt 6.0.1 Support
Upgrade to QWT 6.0.1, but still uses a locally patched copy
since support for 8 axes has not been included, despite it
being a relatively simple patch.

Fixes #634.
Fixes #567.
2012-02-12 10:43:15 +00:00

39 lines
540 B
C++

#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