-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainhandler.h
75 lines (55 loc) · 1.61 KB
/
mainhandler.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
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef MAINHANDLER_H
#define MAINHANDLER_H
#include <QObject>
#include <QCoreApplication>
#include "classes/chnlclass_simple.h"
#include "classes/loggerthread.h"
#include "classes/globalvars.h"
#include "firstwindow.h"
#include "mainwindow.h"
#include "graphwin.h"
#include "configchwin.h"
#include "debugwin.h"
#include "newdebug.h"
#include "QProcess"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainHandler : public QObject
{
Q_OBJECT
public:
explicit MainHandler(QObject *parent = nullptr);
signals:
void tx_saalsdfj();
public slots:
void initial_Start();
void rx_generate_ThisGUI(GUI_WIN guiEnum);
void generate_firstWindow();
void generate_logConfig();
void generate_graphWin();
void generate_ConfigCHWin();
void generate_DebugWin();
void rx_ClosingWindow_FirstWin(bool shutDown);
void rx_ClosingWindow_logConfig();
void rx_ClosingWindow_graphWin();
void rx_ClosingWindow_ConfigCHWin();
void rx_ClosingWindow_DebugWin();
private slots:
void on_timer_generateGUI_Elapsed();
void on_timer_SingleShot_elapsed();
private:
FirstWindow *firstWin = nullptr;
MainWindow *logConfig = nullptr;
ConfigChWin *configCH = nullptr;
NewDebug *debgWn = nullptr;
graphWin *grphW = nullptr;
QTimer *timer_generateGUI;
QTimer *timer_SingleShots;
int index_singleShot = 0;
void GUIobjectInitializer();
loggerThread *loggerClass;
QThread *thrd;
GUI_WIN local_generateGUI = gui_LOG_CONFIG_WIN;
};
#endif // MAINHANDLER_H