forked from GokuMK/TSRE5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActivityTools.h
149 lines (131 loc) · 4.18 KB
/
ActivityTools.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* This file is part of TSRE5.
*
* TSRE5 - train sim game engine and MSTS/OR Editors.
* Copyright (C) 2016 Piotr Gadecki <pgadecki@gmail.com>
*
* Licensed under GNU General Public License 3.0 or later.
*
* See LICENSE.md or https://www.gnu.org/licenses/gpl.html
*/
#ifndef ACTIVITYTOOLS_H
#define ACTIVITYTOOLS_H
#include <QtWidgets>
#include <QString>
class Route;
class GameObj;
class Activity;
class ActivityServiceDefinition;
class PreciseTileCoordinate;
class ActivityTools : public QWidget{
Q_OBJECT
public:
ActivityTools(QString name);
virtual ~ActivityTools();
public slots:
void loadActFiles();
void activitySelected(QString n);
void conFilesShowEnabled(QString);
void routeLoaded(Route* r);
void actNewLooseConsistToolEnabled(bool val);
void actPathsEditToolEnabled();
void actConsistDeleteEnabled();
void actConsistJumpEnabled();
void actFailedSignalsJumpEnabled();
void actFailedSignalNewToolEnabled();
void actFailedSignalDeleteEnabled();
void actFailedSignalDeleteAllEnabled();
void actReducedSpeedZonesEnabled();
void actZoneNewToolEnabled(bool val);
void actZoneDeleteEnabled();
void actZoneDeleteAllEnabled();
void newActButtonEnabled();
void cServiceEnabled(QString val);
void cTrafficEnabled(QString val);
//void actServiceNewEnabled();
//void actServiceEditEnabled();
void msg(QString text);
void msg(QString text, QString val);
void eFileNameEnabled(QString val);
void eDisplayNameEnabled(QString val);
void cDifficultyEnabled(int val);
void eDurationEnabled();
void eStartTimeEnabled();
void cSeasonEnabled(int val);
void cWeatherEnabled(int val);
void cHornAtCrossingsEnabled(int val);
void eFuelCoalEnabled(QString val);
void sFuelCoalEnabled();
void eFuelDieselEnabled(QString val);
void sFuelDieselEnabled();
void eFuelWaterEnabled(QString val);
void sFuelWaterEnabled();
void eHazardAnimalEnabled(QString val);
void sHazardAnimalEnabled();
void eHazardPeopleEnabled(QString val);
void sHazardPeopleEnabled();
void descriptionOpenEnabled();
void briefingOpenEnabled();
void eDescriptionEnabled();
void eBriefingEnabled();
void actEventsOpenEnabled();
void actServiceOpenEnabled();
void actTrafficOpenEnabled();
void actTimetableOpenEnabled();
void actSettingsOpenEnabled();
void actPlayEnabled();
void actSaveEnabled();
void reloadActivityList();
void reloadServicesList();
void reloadTrafficsList();
void reloadPathsList();
void conFilesRefreshSelected();
void actPathsRefreshListSelected();
signals:
void enableTool(QString name);
void sendMsg(QString);
void objectSelected(GameObj* obj);
void showActivityEventEditor();
void showActivityServiceEditor();
void showEvents(Activity *a);
void showServices(Route *r);
void showActivityTrafficEditor();
void showTraffic(Route *r);
void showActivityTimetableEditor();
void showTimetable(Activity *a);
void jumpTo(PreciseTileCoordinate* c);
private:
Route *route = NULL;
QComboBox consists;
QComboBox speedZones;
QComboBox failedSignals;
QComboBox actShow;
QComboBox conFilesShow;
QMap<QString, QPushButton*> buttonTools;
QLineEdit eDisplayName;
QLineEdit eFileName;
QTimeEdit eDuration;
QTimeEdit eStartTime;
QLineEdit* eHazardAnimal;
QLineEdit* eHazardPeople;
QLineEdit* eFuelCoal;
QLineEdit* eFuelWater;
QLineEdit* eFuelDiesel;
QSlider sHazardAnimal;
QSlider sHazardPeople;
QSlider sFuelCoal;
QSlider sFuelWater;
QSlider sFuelDiesel;
QComboBox cDifficulty;
QComboBox cSeason;
QComboBox cWeather;
QCheckBox cHornAtCrossings;
QComboBox cService;
QComboBox cTraffic;
QComboBox cPath;
QWidget settingsWidget;
QPlainTextEdit eDescription;
QPlainTextEdit eBriefing;
PreciseTileCoordinate* coordinate = NULL;
void reloadActivityObjectLists();
};
#endif /* ACTIVITYTOOLS_H */