-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
62 lines (51 loc) · 1.76 KB
/
mainwindow.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
///**************** include the libraries *********************************************************************///
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include "qcustomplot.h"
#include <math.h>
#include <QFile>
#include <QTextStream>
#include <QString>
///******************* START THE HEADER *********************************************************************///
using namespace std;
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow //inherit from "QMainWindow"
{
Q_OBJECT //object macro to activate signal and slots
//****************** PUBLIC MEMBERS ***********************************************************************//
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
int record = 0;
int record1 = 0;
QString rx;
QString test;
bool stop = false;
QButtonGroup *button;
//***************** PUBLIC SLOTS ************************************************************************//
public slots:
void on_pushButton_2_clicked();
void readResponse();
//***************** PRIVATE SLOTS **********************************************************************//
private slots:
void on_pushButton_clicked();
void plotting();
//**************** SIGNALS ***************************************************************************//
signals:
void clicked1(bool x);
void plottingData(QString rxget);
//*************** PRIVATE MEMBERS *******************************************************************//
private:
Ui::MainWindow *ui;
QTimer dataTimer, Timer;
double rxplot;
int fileData[];
int j=0;
};
///************** THE END OF HEADER ***************************************************************///
#endif // MAINWINDOW_H