forked from GokuMK/TSRE5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEngListWidget.h
60 lines (50 loc) · 1.49 KB
/
EngListWidget.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
/* This file is part of TSRE5.
*
* TSRE5 - train sim game engine and MSTS/OR Editors.
* Copyright (C) 2016 Piotr Gadecki <[email protected]>
*
* Licensed under GNU General Public License 3.0 or later.
*
* See LICENSE.md or https://www.gnu.org/licenses/gpl.html
*/
#ifndef ENGLISTWIDGET_H
#define ENGLISTWIDGET_H
#include <QWidget>
#include <QtWidgets>
class EngLib;
class EngListWidget : public QWidget {
Q_OBJECT
public:
EngListWidget();
virtual ~EngListWidget();
void fillEngList();
void fillEngList(QString engFilter, QString couplingFilter, QString searchFilter);
//EngLib* englib;
public slots:
void itemsSelected();
void addBegButtonSelected();
void addCurButtonSelected();
void addEndButtonSelected();
void addRndButtonSelected();
void fs(QString n);
bool eventFilter(QObject *obj, QEvent *event);
signals:
void engListSelected(int id);
void addToConSelected(int id, int pos, int count);
void addToRandomConsist(int id);
private:
void addBegButtonSelected(int count);
void addCurButtonSelected(int count);
void addEndButtonSelected(int count);
QListWidget items;
QComboBox engType;
QComboBox couplingType;
QPushButton addBegButton;
QPushButton addEndButton;
QPushButton addCurButton;
QPushButton addRandButton;
QLineEdit totalVal;
QLineEdit addNum;
QLineEdit searchBox;
};
#endif /* ENGLISTWIDGET_H */