-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
59 lines (46 loc) · 1.21 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include<libloaderapi.h>
#include <windows.h>
#include "cgms_prm.h"
#include <QLabel>
#include "optiondialog.h"
#define ENABLE_QBUG 1
#define APP_VER "P3A_Programm_Tool V1.0.1"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
bool is_SN_OK(QString &sn);
private slots:
void on_BT_Programm_clicked();
void on_BT_ChooseFile_clicked();
void on_BT_WriteParam_clicked();
void on_actionOpen_triggered();
void on_actionOption_triggered();
void on_menuOption_triggered();
void on_help_triggered();
void on_optiondialog_accepted();
void on_optiondialog_rejected();
void on_timeout_handle();
private:
Ui::MainWindow *ui;
OptionDialog *opdialog;
QTimer *timer;
QLabel *status_lable_speed;
QLabel *status_lable_interface;
QLabel *status_lable_path;
QLabel *status_lable_datetime;
//Define dll handle
HMODULE hdl_dll;
QString strLoadFileDir;
uint8_t Device_MAC[6];
char local_path[_MAX_PATH];
};
#endif // MAINWINDOW_H