OpenTTD: src/widgets/rail_widget.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

rail_widget.h
Go to the documentation of this file.
1 /* $Id: rail_widget.h 25464 2013-06-25 20:22:08Z frosch $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
9
12 #ifndef WIDGETS_RAIL_WIDGET_H
13 #define WIDGETS_RAIL_WIDGET_H
14
16 enum RailToolbarWidgets {
17 /* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
18 WID_RAT_CAPTION,
19 WID_RAT_BUILD_NS,
20 WID_RAT_BUILD_X,
21 WID_RAT_BUILD_EW,
22 WID_RAT_BUILD_Y,
23 WID_RAT_AUTORAIL,
24 WID_RAT_DEMOLISH,
25 WID_RAT_BUILD_DEPOT,
26 WID_RAT_BUILD_WAYPOINT,
27 WID_RAT_BUILD_STATION,
28 WID_RAT_BUILD_SIGNALS,
29 WID_RAT_BUILD_BRIDGE,
30 WID_RAT_BUILD_TUNNEL,
31 WID_RAT_REMOVE,
32 WID_RAT_CONVERT_RAIL,
33 };
34
36 enum BuildRailStationWidgets {
37 /* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
38 WID_BRAS_PLATFORM_DIR_X,
39 WID_BRAS_PLATFORM_DIR_Y,
40
41 WID_BRAS_PLATFORM_NUM_1,
42 WID_BRAS_PLATFORM_NUM_2,
43 WID_BRAS_PLATFORM_NUM_3,
44 WID_BRAS_PLATFORM_NUM_4,
45 WID_BRAS_PLATFORM_NUM_5,
46 WID_BRAS_PLATFORM_NUM_6,
47 WID_BRAS_PLATFORM_NUM_7,
48
49 WID_BRAS_PLATFORM_LEN_1,
50 WID_BRAS_PLATFORM_LEN_2,
51 WID_BRAS_PLATFORM_LEN_3,
52 WID_BRAS_PLATFORM_LEN_4,
53 WID_BRAS_PLATFORM_LEN_5,
54 WID_BRAS_PLATFORM_LEN_6,
55 WID_BRAS_PLATFORM_LEN_7,
56
57 WID_BRAS_PLATFORM_DRAG_N_DROP,
58
59 WID_BRAS_HIGHLIGHT_OFF,
60 WID_BRAS_HIGHLIGHT_ON,
61 WID_BRAS_COVERAGE_TEXTS,
62
63 WID_BRAS_MATRIX,
64 WID_BRAS_IMAGE,
65 WID_BRAS_MATRIX_SCROLL,
66
67 WID_BRAS_SHOW_NEWST_DEFSIZE,
68 WID_BRAS_SHOW_NEWST_ADDITIONS,
69 WID_BRAS_SHOW_NEWST_MATRIX,
70 WID_BRAS_SHOW_NEWST_RESIZE,
71 WID_BRAS_SHOW_NEWST_TYPE,
72 WID_BRAS_NEWST_LIST,
73 WID_BRAS_NEWST_SCROLL,
74
75 WID_BRAS_PLATFORM_NUM_BEGIN = WID_BRAS_PLATFORM_NUM_1 - 1,
76 WID_BRAS_PLATFORM_LEN_BEGIN = WID_BRAS_PLATFORM_LEN_1 - 1,
77 };
78
80 enum BuildSignalWidgets {
81 WID_BS_SEMAPHORE_NORM,
82 WID_BS_SEMAPHORE_ENTRY,
83 WID_BS_SEMAPHORE_EXIT,
84 WID_BS_SEMAPHORE_COMBO,
85 WID_BS_SEMAPHORE_PBS,
86 WID_BS_SEMAPHORE_PBS_OWAY,
87 WID_BS_ELECTRIC_NORM,
88 WID_BS_ELECTRIC_ENTRY,
89 WID_BS_ELECTRIC_EXIT,
90 WID_BS_ELECTRIC_COMBO,
91 WID_BS_ELECTRIC_PBS,
92 WID_BS_ELECTRIC_PBS_OWAY,
93 WID_BS_CONVERT,
94 WID_BS_DRAG_SIGNALS_DENSITY_LABEL,
95 WID_BS_DRAG_SIGNALS_DENSITY_DECREASE,
96 WID_BS_DRAG_SIGNALS_DENSITY_INCREASE,
97 };
98
100 enum BuildRailDepotWidgets {
101 /* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
102 WID_BRAD_DEPOT_NE,
103 WID_BRAD_DEPOT_SE,
104 WID_BRAD_DEPOT_SW,
105 WID_BRAD_DEPOT_NW,
106 };
107
109 enum BuildRailWaypointWidgets {
110 WID_BRW_WAYPOINT_MATRIX,
111 WID_BRW_WAYPOINT,
112 WID_BRW_SCROLL,
113 };
114
115 #endif /* WIDGETS_RAIL_WIDGET_H */