Fix: CmdSetAutoReplace didn't validate group type and engine type match (#9950)
[openttd-github.git] / src / widgets / road_widget.h
blob3d49e9ae9db061db39d7c640d6fed7a5d73a6523
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 */
8 /** @file road_widget.h Types related to the road widgets. */
10 #ifndef WIDGETS_ROAD_WIDGET_H
11 #define WIDGETS_ROAD_WIDGET_H
13 /** Widgets of the #BuildRoadToolbarWindow class. */
14 enum RoadToolbarWidgets {
15 /* Name starts with RO instead of R, because of collision with RailToolbarWidgets */
16 WID_ROT_CAPTION, ///< Caption of the window
17 WID_ROT_ROAD_X, ///< Build road in x-direction.
18 WID_ROT_ROAD_Y, ///< Build road in y-direction.
19 WID_ROT_AUTOROAD, ///< Autorail.
20 WID_ROT_DEMOLISH, ///< Demolish.
21 WID_ROT_DEPOT, ///< Build depot.
22 WID_ROT_BUS_STATION, ///< Build bus station.
23 WID_ROT_TRUCK_STATION, ///< Build truck station.
24 WID_ROT_ONE_WAY, ///< Build one-way road.
25 WID_ROT_BUILD_BRIDGE, ///< Build bridge.
26 WID_ROT_BUILD_TUNNEL, ///< Build tunnel.
27 WID_ROT_REMOVE, ///< Remove road.
28 WID_ROT_CONVERT_ROAD, ///< Convert road.
31 /** Widgets of the #BuildRoadDepotWindow class. */
32 enum BuildRoadDepotWidgets {
33 /* Name starts with BRO instead of BR, because of collision with BuildRailDepotWidgets */
34 WID_BROD_CAPTION, ///< Caption of the window.
35 WID_BROD_DEPOT_NE, ///< Depot with NE entry.
36 WID_BROD_DEPOT_SE, ///< Depot with SE entry.
37 WID_BROD_DEPOT_SW, ///< Depot with SW entry.
38 WID_BROD_DEPOT_NW, ///< Depot with NW entry.
41 /** Widgets of the #BuildRoadStationWindow class. */
42 enum BuildRoadStationWidgets {
43 /* Name starts with BRO instead of BR, because of collision with BuildRailStationWidgets */
44 WID_BROS_CAPTION, ///< Caption of the window.
45 WID_BROS_BACKGROUND, ///< Background of the window.
46 WID_BROS_STATION_NE, ///< Terminal station with NE entry.
47 WID_BROS_STATION_SE, ///< Terminal station with SE entry.
48 WID_BROS_STATION_SW, ///< Terminal station with SW entry.
49 WID_BROS_STATION_NW, ///< Terminal station with NW entry.
50 WID_BROS_STATION_X, ///< Drive-through station in x-direction.
51 WID_BROS_STATION_Y, ///< Drive-through station in y-direction.
52 WID_BROS_LT_OFF, ///< Turn off area highlight.
53 WID_BROS_LT_ON, ///< Turn on area highlight.
54 WID_BROS_INFO, ///< Station acceptance info.
57 #endif /* WIDGETS_ROAD_WIDGET_H */