[go: up one dir, main page]

Menu

[7d9f7c]: / src / pectool.h  Maximize  Restore  History

Download this file

60 lines (47 with data), 1.1 kB

 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
#ifndef PECTOOL_H
#define PECTOOL_H
#include <QMainWindow>
#include <QString>
#define ACTION_IDLE 0
#define ACTION_TRAIN 1
#define ACTION_PLAY 2
namespace Ui {
class PECTool;
}
class PECTool : public QMainWindow
{
Q_OBJECT
public:
int port;
int action;
bool terminate;
// QMutex com;
QVector<double> PEC;
explicit PECTool(QWidget *parent = 0);
~PECTool();
void InitDummyPEC(int size);
int readFileCSV(QString fname);
int writeFileCSV(QString fname);
void enableButtons(bool status);
void FindSerials();
void showGraphMarkStart(int where);
void showGraphMarkCurrent(int where);
void hideGraphMarkStart();
void hideGraphMarkCurrent();
void redrawPEC();
private slots:
void load_file();
void save_file();
void average_data();
void about();
void on_btnConnect_clicked();
void on_btnTrain_clicked();
void on_btnDownload_clicked();
void on_btnUpload_clicked();
void on_btnPlayback_clicked();
void on_btnSeek_clicked();
private:
Ui::PECTool *ui;
bool ready_for_Record_Playback();
};
#endif // PECTOOL_H