-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmainwindow.h
More file actions
53 lines (48 loc) · 1.12 KB
/
mainwindow.h
File metadata and controls
53 lines (48 loc) · 1.12 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDebug>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QStringList>
#include <QString>
#include <QComboBox>
#include <QMessageBox>
#include <QPlainTextEdit>
//********* *Charts*****************//
#include <QtCharts/QChartView>
#include <QtCharts/QSplineSeries>
#include <QTimer>
#include <QtCharts/QChart>
#include <QValueAxis>
#include <QGraphicsView>
#define MAX_X 50
#define MAX_Y 50
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
QSerialPort *Serialport;
QChart *chart;
QSplineSeries *splineserives;
QTimer *s_timer;
QTimer *rec_timer;
int buf1 = 0;
QByteArray buf;
private slots:
void on_cont_B_clicked();
void serialportread();
void on_Close_B_clicked();
void Chart_Init();
void DrawLine();
void TimeOut();
void TimeRead();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H