2016-11-06 03:28:08 +01:00
|
|
|
#ifndef CADENCEGRAPH_H
|
|
|
|
#define CADENCEGRAPH_H
|
|
|
|
|
|
|
|
#include "graphtab.h"
|
|
|
|
|
2019-08-25 10:54:25 +02:00
|
|
|
class CadenceGraphItem;
|
|
|
|
|
2016-11-06 03:28:08 +01:00
|
|
|
class CadenceGraph : public GraphTab
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CadenceGraph(QWidget *parent = 0);
|
2019-08-25 10:54:25 +02:00
|
|
|
~CadenceGraph();
|
2016-11-06 03:28:08 +01:00
|
|
|
|
|
|
|
QString label() const {return tr("Cadence");}
|
2018-05-04 19:36:37 +02:00
|
|
|
QList<GraphItem*> loadData(const Data &data);
|
2016-11-06 03:28:08 +01:00
|
|
|
void clear();
|
|
|
|
void showTracks(bool show);
|
|
|
|
|
|
|
|
private:
|
|
|
|
qreal avg() const;
|
|
|
|
qreal max() const {return bounds().bottom();}
|
|
|
|
void setInfo();
|
|
|
|
|
2019-03-15 19:43:17 +01:00
|
|
|
QVector<QPointF> _avg;
|
2016-11-06 03:28:08 +01:00
|
|
|
|
|
|
|
bool _showTracks;
|
2019-08-25 10:54:25 +02:00
|
|
|
QList<CadenceGraphItem *> _tracks;
|
2016-11-06 03:28:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CADENCEGRAPH_H
|