mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-13 12:42:20 +00:00
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.
45 lines
788 B
C++
45 lines
788 B
C++
#include <qwt_plot.h>
|
|
#include <qwt_interval.h>
|
|
#include <qwt_system_clock.h>
|
|
|
|
class QwtPlotCurve;
|
|
class QwtPlotMarker;
|
|
class QwtPlotDirectPainter;
|
|
|
|
class Plot: public QwtPlot
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Plot(QWidget * = NULL);
|
|
virtual ~Plot();
|
|
|
|
void start();
|
|
virtual void replot();
|
|
|
|
public Q_SLOTS:
|
|
void setIntervalLength(double);
|
|
|
|
protected:
|
|
virtual void showEvent(QShowEvent *);
|
|
virtual void resizeEvent(QResizeEvent *);
|
|
virtual void timerEvent(QTimerEvent *);
|
|
|
|
private:
|
|
void initGradient();
|
|
|
|
void updateCurve();
|
|
void incrementInterval();
|
|
|
|
QwtPlotMarker *d_origin;
|
|
QwtPlotCurve *d_curve;
|
|
int d_paintedPoints;
|
|
|
|
QwtPlotDirectPainter *d_directPainter;
|
|
|
|
QwtInterval d_interval;
|
|
int d_timerId;
|
|
|
|
QwtSystemClock d_clock;
|
|
};
|