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.
34 lines
541 B
C++
34 lines
541 B
C++
#ifndef _SIGNAL_DATA_H_
|
|
#define _SIGNAL_DATA_H_ 1
|
|
|
|
#include <qrect.h>
|
|
|
|
class SignalData
|
|
{
|
|
public:
|
|
static SignalData &instance();
|
|
|
|
void append(const QPointF &pos);
|
|
void clearStaleValues(double min);
|
|
|
|
int size() const;
|
|
QPointF value(int index) const;
|
|
|
|
QRectF boundingRect() const;
|
|
|
|
void lock();
|
|
void unlock();
|
|
|
|
private:
|
|
SignalData();
|
|
SignalData(const SignalData &);
|
|
SignalData &operator=( const SignalData & );
|
|
|
|
virtual ~SignalData();
|
|
|
|
class PrivateData;
|
|
PrivateData *d_data;
|
|
};
|
|
|
|
#endif
|