-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruntest.h
91 lines (73 loc) · 2.05 KB
/
runtest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef RUNTEST_H
#define RUNTEST_H
#include <QWidget>
#include <QVector>
#include <QByteArray>
#include <QTimer>
#include "tmodels.h"
#include "utilities.h"
#include "datainterpreter.h"
#include "signals.h"
namespace Ui {
class RUNTEST;
}
class PlotWindow;
class SERIALREADER;
class UDPReader;
class AFRTABLE;
class Highlighter;
class MAINRUNTEST;
class RUNTEST : public QWidget
{
Q_OBJECT
public:
RUNTEST(MAINRUNTEST* mrtparent, QWidget *parent = 0);
~RUNTEST();
int saveData();
int clearData();
void setDataLocked(bool yes = true);
void stopPlotting(PlotWindow* sender);
bool isCollectingData() const;
Signals* getTransceiver();
public slots:
void hitDataTimer();
void xItemChanged(QModelIndex xindex);
void yItemChanged(QModelIndex yindex);
void on_StartDCButton_clicked();
void on_EndDCButton_clicked();
void on_OpenAFRTableButton_clicked();
void on_PlotDataButton_clicked();
void on_setSerialPortButton_clicked();
void handleIPAddressEditFinished();
void handlePortNoEditFinished();
void handleStreamRefrTimeout();
void handle_triggerDataRefrTimer_button();
void handle_connectionTerminated();
private slots:
void on_sampleRateSlider_sliderMoved(int position);
void on_sampleRateEdit_editingFinished();
private:
void addData();
Ui::RUNTEST *ui;
LIST_CHOICES_MODEL* m_xlmodel;
LIST_CHOICES_MODEL* m_ylmodel;
AFRTABLE* m_afrtable;
Highlighter* highlighter;
QTimer* m_dataRefrTimer;
QTimer m_streamRefrTimer;
unsigned long long int m_ndp;
QVector<PlotWindow*> pw;
SERIALREADER* m_serialReader;
Signals* transceiver;
UDPReader* m_udpReader;
QByteArray* m_bytebuf;
int expectedNumFields;
ByteFilter filter;
MAINRUNTEST* mrtparent;
QVector<QVector<double>> m_xData;
QVector<QVector<double>> m_yData;
std::pair<QString, int> m_xLabel;
std::pair<QString, int> m_yLabel;
QByteArray buffer;
};
#endif // RUNTEST_H