-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.h
70 lines (49 loc) · 1.36 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
60
61
62
63
64
65
66
67
68
69
70
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "support/MainWindowExt.h"
#include "CentralView.h"
#include <QMainWindow>
#include <QButtonGroup>
namespace Ui {
class MainWindow;
}
class BrowserView;
class CentralView;
class OpcUaView;
class OpcUaCheck;
class SettingsView;
class StatusIndicator;
class LogView;
class MainWindow : public MainWindowExt
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
void initializeOdbc();
void initializeOpcua();
void initializeMenuBar();
void initializeToolBar();
void initializeStatusBar();
void setView(CentralView::EView view);
void createLogWindow(const QString& name, bool showWindow);
void applicationQuit() override;
private slots:
void toolBarButtons_buttonClicked(int);
void browserView_statusMessage(int type, const QString &message);
void opcuaView_statusMessage(int type, const QString &message);
private:
Ui::MainWindow* ui;
BrowserView* m_browserView;
OpcUaView* m_opcuaView;
SettingsView* m_settingsView;
CentralView* m_centralView;
LogView* m_logView;
OpcUaCheck* m_opcuaCheck;
QButtonGroup* m_toolBarButtons;
CentralView::EView m_lastView;
StatusIndicator* m_statusDbs;
StatusIndicator* m_statusOpcua;
};
#endif // MAINWINDOW_H