-
Notifications
You must be signed in to change notification settings - Fork 17
/
ConListWidget.h
67 lines (60 loc) · 1.65 KB
/
ConListWidget.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
/* 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 CONLISTWIDGET_H
#define CONLISTWIDGET_H
#include <QWidget>
#include <QtWidgets>
#include <QVector>
class EngLib;
class Eng;
class Consist;
class ConListWidget : public QWidget {
Q_OBJECT
public:
ConListWidget();
virtual ~ConListWidget();
void fillConList();
void fillConList(QString n);
void newConsist();
void newConsist(Consist * con);
void getUnsaed(QVector<int> &unsavedConIds);
void getUnsaedAct(QVector<int> &unsavedActIds);
void findConsistsByEng(int id);
bool isActivity();
int getCurrentActivityId();
void getEngSets(Eng *e, QVector<int>& sets);
void deleteCurrentCon();
void updateCurrentCon();
//EngLib* englib;
public slots:
void itemsSelected(QListWidgetItem* it);
void conFChan(QString n);
void conTChan(QString n);
void routeTChan(QString n);
void actTChan(QString n);
signals:
void conListSelected(int id);
void conListSelected(int aid, int id);
private:
void fillConListLastQuery();
void fillConListAct();
void routeFill();
int currentConType = 0;
QListWidget query;
QLineEdit totalVal;
QListWidget items;
QComboBox conType;
QComboBox conShow;
QComboBox routeShow;
QComboBox actShow;
QWidget conTypeList;
QWidget actTypeList;
};
#endif /* CONLISTWIDGET_H */