-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
37 lines (29 loc) · 884 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "delaysettings.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow() override;
private slots:
void on_pushButton_GET_DelaySettings_clicked();
void on_pushButton_SET_DelaySettings_clicked();
void on_pushButton_StartTrigger_clicked() const;
void on_pushButton_StopTrigger_clicked() const;
void on_actionExit_2_triggered();
void on_pushButton_SET_ChannelSettings_clicked();
private:
Ui::MainWindow *ui;
void OpenUART();
void CloseUART() const;
void GetDelay(unsigned int ID);
void SetDelay(unsigned int ID);
int m_SerialPort{};
std::shared_ptr<DelaySettings> m_DelaySettings;
};
#endif // MAINWINDOW_H