-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.h
52 lines (39 loc) · 907 Bytes
/
gui.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
#ifndef GUI_H
#define GUI_H
#include "ui_gui.h"
#include "serialport.h"
#include "PCMdekoder.h"
#include <QTimer>
#include "DLogger.h"
#include "DPlotter.h"
#include "Dfft.h"
class gui : public QMainWindow, public Ui::MainWindow{
Q_OBJECT
public:
gui (QMainWindow *parent = 0);
~gui();
public slots:
void setBaudrate(int newBaudrate);
void setBasename(QString newBasename);
void setVerbosity(int newVerbosity);
void newData(const QString name, const double data);
signals:
private:
PCMdekoder *myDekoder;
DLogger *myLog;
DPlotter *myPlot;
Dfft *myFFT;
QTimer guiTimer;
int mVerboseLevel;
int mBaudrate;
QList<double> PCMmeasurement;
private slots:
void refresh_serialports();
void trigger_serialport();
void started_connection();
void stopped_connection();
void started_recording();
void stopped_recording();
void updateGui();
};
#endif //GUI_H