mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
PC Application: partial firmware update dialog
This commit is contained in:
parent
8c8749accd
commit
07ba714f1f
134 changed files with 13954 additions and 7 deletions
38
Software/PC_Application/Traces/tracemodel.h
Normal file
38
Software/PC_Application/Traces/tracemodel.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef TRACEMODEL_H
|
||||
#define TRACEMODEL_H
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include "trace.h"
|
||||
#include <vector>
|
||||
#include "Device/device.h"
|
||||
|
||||
class TraceModel : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TraceModel(QObject *parent = 0);
|
||||
|
||||
void addTrace(Trace *t);
|
||||
void removeTrace(unsigned int index);
|
||||
Trace *trace(unsigned int index);
|
||||
void toggleVisibility(unsigned int index);
|
||||
void togglePause(unsigned int index);
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
|
||||
std::vector<Trace*> getTraces();
|
||||
signals:
|
||||
void traceAdded(Trace *t);
|
||||
void traceRemoved(Trace *t);
|
||||
|
||||
public slots:
|
||||
void clearVNAData();
|
||||
void addVNAData(Protocol::Datapoint d);
|
||||
|
||||
private:
|
||||
std::vector<Trace*> traces;
|
||||
};
|
||||
|
||||
#endif // TRACEMODEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue