-
Notifications
You must be signed in to change notification settings - Fork 0
/
ermainwindow.hxx
46 lines (39 loc) · 1.06 KB
/
ermainwindow.hxx
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
#ifndef ERMAINWINDOW_HXX
#define ERMAINWINDOW_HXX
#include <QMainWindow>
#include <QImage>
#include <QMap>
#include <QSvgWidget>
#include <QSoundEffect>
#include <QColor>
#include <QScreen>
#include <algorithm>
#include "leverframe.hxx"
#include "scaling.hxx"
#include "blocksection.hxx"
#include "signalindicator.hxx"
#include "signal.hxx"
#include "points.hxx"
#include "interlocking.hxx"
#include "dispatcher.hxx"
QT_BEGIN_NAMESPACE
namespace Ui { class ERMainWindow; }
QT_END_NAMESPACE
class ERMainWindow : public QMainWindow
{
Q_OBJECT
public:
ERMainWindow(QWidget *parent = nullptr);
~ERMainWindow();
private:
Ui::ERMainWindow *ui;
EWRB::Dispatcher* _dispatcher = new EWRB::Dispatcher;
EWRB::LeverFrame* _lever_frame = new EWRB::LeverFrame(this);
EWRB::InterLocking* _interlocking = new EWRB::InterLocking(_lever_frame);
QMap<int, QPushButton*> _lever_frame_buttons;
void _add_indicators();
public:
void _lever_action(const int& i);
EWRB::Dispatcher* getDispatcher() const {return _dispatcher;}
};
#endif // ERMAINWINDOW_HXX