-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
43 lines (37 loc) · 941 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
38
39
40
41
42
43
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "serialportworker.h"
#include <QMainWindow>
#include <QThread>
#include <QKeyEvent>
#define APP_VERSION "1.1.0"
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_connectButton_clicked();
void on_stopButton_clicked();
void on_saveConfigAsButton_clicked();
void on_saveButton_clicked();
void on_aboutButton_clicked();
void on_checkUpdatesButton_clicked();
void on_advancedViewButton_clicked();
void on_keyboard_handler();
void on_set_limit_handler();
void on_movement_handler(QString data);
private:
Ui::MainWindow *ui;
QThread *workerThread;
SerialPortWorker *worker;
void detectSerialPorts();
void keyPressEvent(QKeyEvent *event);
};
#endif // MAINWINDOW_H