OpenTTD Source: src/widgets/rail_widget.h Source File

OpenTTD Source 12.2

rail_widget.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
7
10 #ifndef WIDGETS_RAIL_WIDGET_H
11 #define WIDGETS_RAIL_WIDGET_H
12
14 enum RailToolbarWidgets {
15 /* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
16 WID_RAT_CAPTION,
17 WID_RAT_BUILD_NS,
18 WID_RAT_BUILD_X,
19 WID_RAT_BUILD_EW,
20 WID_RAT_BUILD_Y,
21 WID_RAT_AUTORAIL,
22 WID_RAT_DEMOLISH,
23 WID_RAT_BUILD_DEPOT,
24 WID_RAT_BUILD_WAYPOINT,
25 WID_RAT_BUILD_STATION,
26 WID_RAT_BUILD_SIGNALS,
27 WID_RAT_BUILD_BRIDGE,
28 WID_RAT_BUILD_TUNNEL,
29 WID_RAT_REMOVE,
30 WID_RAT_CONVERT_RAIL,
31 };
32
34 enum BuildRailStationWidgets {
35 /* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
36 WID_BRAS_PLATFORM_DIR_X,
37 WID_BRAS_PLATFORM_DIR_Y,
38
39 WID_BRAS_PLATFORM_NUM_1,
40 WID_BRAS_PLATFORM_NUM_2,
41 WID_BRAS_PLATFORM_NUM_3,
42 WID_BRAS_PLATFORM_NUM_4,
43 WID_BRAS_PLATFORM_NUM_5,
44 WID_BRAS_PLATFORM_NUM_6,
45 WID_BRAS_PLATFORM_NUM_7,
46
47 WID_BRAS_PLATFORM_LEN_1,
48 WID_BRAS_PLATFORM_LEN_2,
49 WID_BRAS_PLATFORM_LEN_3,
50 WID_BRAS_PLATFORM_LEN_4,
51 WID_BRAS_PLATFORM_LEN_5,
52 WID_BRAS_PLATFORM_LEN_6,
53 WID_BRAS_PLATFORM_LEN_7,
54
55 WID_BRAS_PLATFORM_DRAG_N_DROP,
56
57 WID_BRAS_HIGHLIGHT_OFF,
58 WID_BRAS_HIGHLIGHT_ON,
59 WID_BRAS_COVERAGE_TEXTS,
60
61 WID_BRAS_MATRIX,
62 WID_BRAS_IMAGE,
63 WID_BRAS_MATRIX_SCROLL,
64
65 WID_BRAS_FILTER_CONTAINER,
66 WID_BRAS_FILTER_EDITBOX,
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_CAPTION,
82 WID_BS_TOGGLE_SIZE,
83 WID_BS_SEMAPHORE_NORM,
84 WID_BS_SEMAPHORE_ENTRY,
85 WID_BS_SEMAPHORE_EXIT,
86 WID_BS_SEMAPHORE_COMBO,
87 WID_BS_SEMAPHORE_PBS,
88 WID_BS_SEMAPHORE_PBS_OWAY,
89 WID_BS_ELECTRIC_NORM,
90 WID_BS_ELECTRIC_ENTRY,
91 WID_BS_ELECTRIC_EXIT,
92 WID_BS_ELECTRIC_COMBO,
93 WID_BS_ELECTRIC_PBS,
94 WID_BS_ELECTRIC_PBS_OWAY,
95 WID_BS_CONVERT,
96 WID_BS_DRAG_SIGNALS_DENSITY_LABEL,
97 WID_BS_DRAG_SIGNALS_DENSITY_DECREASE,
98 WID_BS_DRAG_SIGNALS_DENSITY_INCREASE,
99 WID_BS_SEMAPHORE_NORM_SEL,
100 WID_BS_ELECTRIC_NORM_SEL,
101 WID_BS_SEMAPHORE_ENTRY_SEL,
102 WID_BS_ELECTRIC_ENTRY_SEL,
103 WID_BS_SEMAPHORE_EXIT_SEL,
104 WID_BS_ELECTRIC_EXIT_SEL,
105 WID_BS_SEMAPHORE_COMBO_SEL,
106 WID_BS_ELECTRIC_COMBO_SEL,
107 };
108
110 enum BuildRailDepotWidgets {
111 /* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
112 WID_BRAD_DEPOT_NE,
113 WID_BRAD_DEPOT_SE,
114 WID_BRAD_DEPOT_SW,
115 WID_BRAD_DEPOT_NW,
116 };
117
119 enum BuildRailWaypointWidgets {
120 WID_BRW_WAYPOINT_MATRIX,
121 WID_BRW_WAYPOINT,
122 WID_BRW_SCROLL,
123 };
124
125 #endif /* WIDGETS_RAIL_WIDGET_H */
WID_BRAS_PLATFORM_LEN_6
@ WID_BRAS_PLATFORM_LEN_6
Button to select 6 tiles length station platforms.
Definition: rail_widget.h:52
WID_BRAS_PLATFORM_DRAG_N_DROP
@ WID_BRAS_PLATFORM_DRAG_N_DROP
Button to enable drag and drop type station placement.
Definition: rail_widget.h:55
WID_RAT_DEMOLISH
@ WID_RAT_DEMOLISH
Destroy something with dynamite!
Definition: rail_widget.h:22
WID_BS_SEMAPHORE_EXIT
@ WID_BS_SEMAPHORE_EXIT
Build a semaphore exit block signal.
Definition: rail_widget.h:85
WID_BS_TOGGLE_SIZE
@ WID_BS_TOGGLE_SIZE
Toggle showing advanced signal types.
Definition: rail_widget.h:82
WID_RAT_BUILD_SIGNALS
@ WID_RAT_BUILD_SIGNALS
Build signals.
Definition: rail_widget.h:26
WID_RAT_BUILD_Y
@ WID_RAT_BUILD_Y
Build rail along the game grid Y axis.
Definition: rail_widget.h:20
WID_RAT_CAPTION
@ WID_RAT_CAPTION
Caption of the window.
Definition: rail_widget.h:16
WID_BRAD_DEPOT_SE
@ WID_BRAD_DEPOT_SE
Build a depot with the entrance in the south east.
Definition: rail_widget.h:113
WID_BRAS_SHOW_NEWST_MATRIX
@ WID_BRAS_SHOW_NEWST_MATRIX
Selection for newstation image matrix.
Definition: rail_widget.h:69
WID_BRAD_DEPOT_SW
@ WID_BRAD_DEPOT_SW
Build a depot with the entrance in the south west.
Definition: rail_widget.h:114
WID_BS_SEMAPHORE_ENTRY_SEL
@ WID_BS_SEMAPHORE_ENTRY_SEL
NWID_SELECTION for WID_BS_SEMAPHORE_ENTRY.
Definition: rail_widget.h:101
WID_BRAS_PLATFORM_NUM_BEGIN
@ WID_BRAS_PLATFORM_NUM_BEGIN
Helper for determining the chosen platform width.
Definition: rail_widget.h:75
WID_BS_SEMAPHORE_PBS_OWAY
@ WID_BS_SEMAPHORE_PBS_OWAY
Build a semaphore one way path signal.
Definition: rail_widget.h:88
WID_BRAS_HIGHLIGHT_ON
@ WID_BRAS_HIGHLIGHT_ON
Button for turning coverage highlighting on.
Definition: rail_widget.h:58
WID_BS_ELECTRIC_NORM
@ WID_BS_ELECTRIC_NORM
Build an electric normal block signal.
Definition: rail_widget.h:89
WID_RAT_AUTORAIL
@ WID_RAT_AUTORAIL
Autorail tool.
Definition: rail_widget.h:21
WID_BRAD_DEPOT_NE
@ WID_BRAD_DEPOT_NE
Build a depot with the entrance in the north east.
Definition: rail_widget.h:112
WID_BRAS_PLATFORM_LEN_1
@ WID_BRAS_PLATFORM_LEN_1
Button to select single tile length station platforms.
Definition: rail_widget.h:47
WID_BRAS_SHOW_NEWST_TYPE
@ WID_BRAS_SHOW_NEWST_TYPE
Display of selected station type.
Definition: rail_widget.h:71
WID_BS_ELECTRIC_NORM_SEL
@ WID_BS_ELECTRIC_NORM_SEL
NWID_SELECTION for WID_BS_ELECTRIC_NORM.
Definition: rail_widget.h:100
WID_RAT_BUILD_STATION
@ WID_RAT_BUILD_STATION
Build a station.
Definition: rail_widget.h:25
WID_BRAS_PLATFORM_LEN_4
@ WID_BRAS_PLATFORM_LEN_4
Button to select 4 tiles length station platforms.
Definition: rail_widget.h:50
WID_BRAS_PLATFORM_DIR_X
@ WID_BRAS_PLATFORM_DIR_X
Button to select '/' view.
Definition: rail_widget.h:36
WID_BRAD_DEPOT_NW
@ WID_BRAD_DEPOT_NW
Build a depot with the entrance in the north west.
Definition: rail_widget.h:115
WID_BRAS_FILTER_CONTAINER
@ WID_BRAS_FILTER_CONTAINER
Container for the filter text box for the station class list.
Definition: rail_widget.h:65
WID_BRAS_SHOW_NEWST_DEFSIZE
@ WID_BRAS_SHOW_NEWST_DEFSIZE
Selection for default-size button for newstation.
Definition: rail_widget.h:67
WID_BS_SEMAPHORE_EXIT_SEL
@ WID_BS_SEMAPHORE_EXIT_SEL
NWID_SELECTION for WID_BS_SEMAPHORE_EXIT.
Definition: rail_widget.h:103
BuildRailDepotWidgets
BuildRailDepotWidgets
Widgets of the BuildRailDepotWindow class.
Definition: rail_widget.h:110
WID_BS_DRAG_SIGNALS_DENSITY_DECREASE
@ WID_BS_DRAG_SIGNALS_DENSITY_DECREASE
Decrease the signal density.
Definition: rail_widget.h:97
WID_BRAS_SHOW_NEWST_RESIZE
@ WID_BRAS_SHOW_NEWST_RESIZE
Selection for panel and resize at bottom right for newstation.
Definition: rail_widget.h:70
WID_RAT_BUILD_X
@ WID_RAT_BUILD_X
Build rail along the game grid X axis.
Definition: rail_widget.h:18
WID_BRAS_PLATFORM_NUM_6
@ WID_BRAS_PLATFORM_NUM_6
Button to select stations with 6 platforms.
Definition: rail_widget.h:44
WID_BS_ELECTRIC_EXIT_SEL
@ WID_BS_ELECTRIC_EXIT_SEL
NWID_SELECTION for WID_BS_ELECTRIC_EXIT.
Definition: rail_widget.h:104
BuildRailStationWidgets
BuildRailStationWidgets
Widgets of the BuildRailStationWindow class.
Definition: rail_widget.h:34
WID_RAT_BUILD_WAYPOINT
@ WID_RAT_BUILD_WAYPOINT
Build a waypoint.
Definition: rail_widget.h:24
WID_RAT_BUILD_BRIDGE
@ WID_RAT_BUILD_BRIDGE
Build a bridge.
Definition: rail_widget.h:27
WID_BS_SEMAPHORE_COMBO
@ WID_BS_SEMAPHORE_COMBO
Build a semaphore combo block signal.
Definition: rail_widget.h:86
WID_BS_SEMAPHORE_COMBO_SEL
@ WID_BS_SEMAPHORE_COMBO_SEL
NWID_SELECTION for WID_BS_SEMAPHORE_COMBO.
Definition: rail_widget.h:105
WID_BS_ELECTRIC_PBS
@ WID_BS_ELECTRIC_PBS
Build an electric path signal.
Definition: rail_widget.h:93
WID_BRAS_PLATFORM_NUM_7
@ WID_BRAS_PLATFORM_NUM_7
Button to select stations with 7 platforms.
Definition: rail_widget.h:45
WID_BRAS_PLATFORM_LEN_5
@ WID_BRAS_PLATFORM_LEN_5
Button to select 5 tiles length station platforms.
Definition: rail_widget.h:51
RailToolbarWidgets
RailToolbarWidgets
Widgets of the BuildRailToolbarWindow class.
Definition: rail_widget.h:14
WID_BS_ELECTRIC_COMBO_SEL
@ WID_BS_ELECTRIC_COMBO_SEL
NWID_SELECTION for WID_BS_ELECTRIC_COMBO.
Definition: rail_widget.h:106
WID_RAT_CONVERT_RAIL
@ WID_RAT_CONVERT_RAIL
Convert other rail to this type.
Definition: rail_widget.h:30
WID_BS_DRAG_SIGNALS_DENSITY_LABEL
@ WID_BS_DRAG_SIGNALS_DENSITY_LABEL
The current signal density.
Definition: rail_widget.h:96
WID_RAT_BUILD_TUNNEL
@ WID_RAT_BUILD_TUNNEL
Build a tunnel.
Definition: rail_widget.h:28
WID_BRAS_MATRIX_SCROLL
@ WID_BRAS_MATRIX_SCROLL
Scrollbar of the matrix widget.
Definition: rail_widget.h:63
BuildSignalWidgets
BuildSignalWidgets
Widgets of the BuildSignalWindow class.
Definition: rail_widget.h:80
WID_BS_SEMAPHORE_NORM
@ WID_BS_SEMAPHORE_NORM
Build a semaphore normal block signal.
Definition: rail_widget.h:83
WID_RAT_BUILD_EW
@ WID_RAT_BUILD_EW
Build rail along the game view X axis.
Definition: rail_widget.h:19
WID_BS_ELECTRIC_PBS_OWAY
@ WID_BS_ELECTRIC_PBS_OWAY
Build an electric one way path signal.
Definition: rail_widget.h:94
WID_BRW_WAYPOINT_MATRIX
@ WID_BRW_WAYPOINT_MATRIX
Matrix with waypoints.
Definition: rail_widget.h:120
WID_RAT_REMOVE
@ WID_RAT_REMOVE
Bulldozer to remove rail.
Definition: rail_widget.h:29
WID_BRAS_COVERAGE_TEXTS
@ WID_BRAS_COVERAGE_TEXTS
Empty space for the coverage texts.
Definition: rail_widget.h:59
WID_BRAS_PLATFORM_LEN_3
@ WID_BRAS_PLATFORM_LEN_3
Button to select 3 tiles length station platforms.
Definition: rail_widget.h:49
WID_BRW_SCROLL
@ WID_BRW_SCROLL
Scrollbar for the matrix.
Definition: rail_widget.h:122
WID_BRW_WAYPOINT
@ WID_BRW_WAYPOINT
A single waypoint.
Definition: rail_widget.h:121
WID_BRAS_FILTER_EDITBOX
@ WID_BRAS_FILTER_EDITBOX
Filter text box for the station class list.
Definition: rail_widget.h:66
WID_BRAS_NEWST_LIST
@ WID_BRAS_NEWST_LIST
List with available newstation classes.
Definition: rail_widget.h:72
WID_BS_SEMAPHORE_PBS
@ WID_BS_SEMAPHORE_PBS
Build a semaphore path signal.
Definition: rail_widget.h:87
WID_BRAS_HIGHLIGHT_OFF
@ WID_BRAS_HIGHLIGHT_OFF
Button for turning coverage highlighting off.
Definition: rail_widget.h:57
WID_BRAS_PLATFORM_NUM_5
@ WID_BRAS_PLATFORM_NUM_5
Button to select stations with 5 platforms.
Definition: rail_widget.h:43
WID_BRAS_PLATFORM_NUM_2
@ WID_BRAS_PLATFORM_NUM_2
Button to select stations with 2 platforms.
Definition: rail_widget.h:40
WID_BRAS_IMAGE
@ WID_BRAS_IMAGE
Panel used at each cell of the matrix.
Definition: rail_widget.h:62
WID_BS_CONVERT
@ WID_BS_CONVERT
Convert the signal.
Definition: rail_widget.h:95
WID_BS_ELECTRIC_EXIT
@ WID_BS_ELECTRIC_EXIT
Build an electric exit block signal.
Definition: rail_widget.h:91
WID_BRAS_PLATFORM_NUM_4
@ WID_BRAS_PLATFORM_NUM_4
Button to select stations with 4 platforms.
Definition: rail_widget.h:42
WID_BS_DRAG_SIGNALS_DENSITY_INCREASE
@ WID_BS_DRAG_SIGNALS_DENSITY_INCREASE
Increase the signal density.
Definition: rail_widget.h:98
WID_BS_ELECTRIC_COMBO
@ WID_BS_ELECTRIC_COMBO
Build an electric combo block signal.
Definition: rail_widget.h:92
WID_RAT_BUILD_NS
@ WID_RAT_BUILD_NS
Build rail along the game view Y axis.
Definition: rail_widget.h:17
WID_RAT_BUILD_DEPOT
@ WID_RAT_BUILD_DEPOT
Build a depot.
Definition: rail_widget.h:23
WID_BS_SEMAPHORE_ENTRY
@ WID_BS_SEMAPHORE_ENTRY
Build a semaphore entry block signal.
Definition: rail_widget.h:84
WID_BRAS_PLATFORM_NUM_3
@ WID_BRAS_PLATFORM_NUM_3
Button to select stations with 3 platforms.
Definition: rail_widget.h:41
WID_BRAS_MATRIX
@ WID_BRAS_MATRIX
Matrix widget displaying the available stations.
Definition: rail_widget.h:61
WID_BRAS_PLATFORM_DIR_Y
@ WID_BRAS_PLATFORM_DIR_Y
Button to select '\' view.
Definition: rail_widget.h:37
WID_BS_CAPTION
@ WID_BS_CAPTION
Caption for the Signal Selection window.
Definition: rail_widget.h:81
WID_BS_ELECTRIC_ENTRY
@ WID_BS_ELECTRIC_ENTRY
Build an electric entry block signal.
Definition: rail_widget.h:90
BuildRailWaypointWidgets
BuildRailWaypointWidgets
Widgets of the BuildRailWaypointWindow class.
Definition: rail_widget.h:119
WID_BS_ELECTRIC_ENTRY_SEL
@ WID_BS_ELECTRIC_ENTRY_SEL
NWID_SELECTION for WID_BS_ELECTRIC_ENTRY.
Definition: rail_widget.h:102
WID_BRAS_NEWST_SCROLL
@ WID_BRAS_NEWST_SCROLL
Scrollbar of the WID_BRAS_NEWST_LIST.
Definition: rail_widget.h:73
WID_BRAS_PLATFORM_LEN_BEGIN
@ WID_BRAS_PLATFORM_LEN_BEGIN
Helper for determining the chosen platform length.
Definition: rail_widget.h:76
WID_BRAS_PLATFORM_LEN_2
@ WID_BRAS_PLATFORM_LEN_2
Button to select 2 tiles length station platforms.
Definition: rail_widget.h:48
WID_BS_SEMAPHORE_NORM_SEL
@ WID_BS_SEMAPHORE_NORM_SEL
NWID_SELECTION for WID_BS_SEMAPHORE_NORM.
Definition: rail_widget.h:99
WID_BRAS_PLATFORM_NUM_1
@ WID_BRAS_PLATFORM_NUM_1
Button to select stations with a single platform.
Definition: rail_widget.h:39
WID_BRAS_SHOW_NEWST_ADDITIONS
@ WID_BRAS_SHOW_NEWST_ADDITIONS
Selection for newstation class selection list.
Definition: rail_widget.h:68
WID_BRAS_PLATFORM_LEN_7
@ WID_BRAS_PLATFORM_LEN_7
Button to select 7 tiles length station platforms.
Definition: rail_widget.h:53