2011-12-15 22:22:55 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file rail_widget.h Types related to the rail widgets. */
|
|
|
|
|
|
|
|
#ifndef WIDGETS_RAIL_WIDGET_H
|
|
|
|
#define WIDGETS_RAIL_WIDGET_H
|
|
|
|
|
2013-01-08 22:46:42 +00:00
|
|
|
/** Widgets of the #BuildRailToolbarWindow class. */
|
2011-12-15 22:22:55 +00:00
|
|
|
enum RailToolbarWidgets {
|
2011-12-16 16:53:16 +00:00
|
|
|
/* Name starts with RA instead of R, because of collision with RoadToolbarWidgets */
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_RAT_CAPTION, ///< Caption of the window.
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_RAT_BUILD_NS, ///< Build rail along the game view Y axis.
|
|
|
|
WID_RAT_BUILD_X, ///< Build rail along the game grid X axis.
|
|
|
|
WID_RAT_BUILD_EW, ///< Build rail along the game view X axis.
|
|
|
|
WID_RAT_BUILD_Y, ///< Build rail along the game grid Y axis.
|
|
|
|
WID_RAT_AUTORAIL, ///< Autorail tool.
|
2016-04-13 20:03:48 +00:00
|
|
|
WID_RAT_POLYRAIL, ///< Polyline rail tool.
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_RAT_DEMOLISH, ///< Destroy something with dynamite!
|
|
|
|
WID_RAT_BUILD_DEPOT, ///< Build a depot.
|
|
|
|
WID_RAT_BUILD_WAYPOINT, ///< Build a waypoint.
|
|
|
|
WID_RAT_BUILD_STATION, ///< Build a station.
|
|
|
|
WID_RAT_BUILD_SIGNALS, ///< Build signals.
|
|
|
|
WID_RAT_BUILD_BRIDGE, ///< Build a bridge.
|
|
|
|
WID_RAT_BUILD_TUNNEL, ///< Build a tunnel.
|
|
|
|
WID_RAT_REMOVE, ///< Bulldozer to remove rail.
|
|
|
|
WID_RAT_CONVERT_RAIL, ///< Convert other rail to this type.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #BuildRailStationWindow class. */
|
2011-12-16 18:47:46 +00:00
|
|
|
enum BuildRailStationWidgets {
|
2011-12-16 18:57:27 +00:00
|
|
|
/* Name starts with BRA instead of BR, because of collision with BuildRoadStationWidgets */
|
|
|
|
WID_BRAS_PLATFORM_DIR_X, ///< Button to select '/' view.
|
|
|
|
WID_BRAS_PLATFORM_DIR_Y, ///< Button to select '\' view.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_PLATFORM_NUM_1, ///< Button to select stations with a single platform.
|
|
|
|
WID_BRAS_PLATFORM_NUM_2, ///< Button to select stations with 2 platforms.
|
|
|
|
WID_BRAS_PLATFORM_NUM_3, ///< Button to select stations with 3 platforms.
|
|
|
|
WID_BRAS_PLATFORM_NUM_4, ///< Button to select stations with 4 platforms.
|
|
|
|
WID_BRAS_PLATFORM_NUM_5, ///< Button to select stations with 5 platforms.
|
|
|
|
WID_BRAS_PLATFORM_NUM_6, ///< Button to select stations with 6 platforms.
|
|
|
|
WID_BRAS_PLATFORM_NUM_7, ///< Button to select stations with 7 platforms.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_PLATFORM_LEN_1, ///< Button to select single tile length station platforms.
|
|
|
|
WID_BRAS_PLATFORM_LEN_2, ///< Button to select 2 tiles length station platforms.
|
|
|
|
WID_BRAS_PLATFORM_LEN_3, ///< Button to select 3 tiles length station platforms.
|
|
|
|
WID_BRAS_PLATFORM_LEN_4, ///< Button to select 4 tiles length station platforms.
|
|
|
|
WID_BRAS_PLATFORM_LEN_5, ///< Button to select 5 tiles length station platforms.
|
|
|
|
WID_BRAS_PLATFORM_LEN_6, ///< Button to select 6 tiles length station platforms.
|
|
|
|
WID_BRAS_PLATFORM_LEN_7, ///< Button to select 7 tiles length station platforms.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_PLATFORM_DRAG_N_DROP, ///< Button to enable drag and drop type station placement.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_HIGHLIGHT_OFF, ///< Button for turning coverage highlighting off.
|
|
|
|
WID_BRAS_HIGHLIGHT_ON, ///< Button for turning coverage highlighting on.
|
|
|
|
WID_BRAS_COVERAGE_TEXTS, ///< Empty space for the coverage texts.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_MATRIX, ///< Matrix widget displaying the available stations.
|
|
|
|
WID_BRAS_IMAGE, ///< Panel used at each cell of the matrix.
|
|
|
|
WID_BRAS_MATRIX_SCROLL, ///< Scrollbar of the matrix widget.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2021-03-13 09:00:36 +00:00
|
|
|
WID_BRAS_FILTER_CONTAINER, ///< Container for the filter text box for the station class list.
|
|
|
|
WID_BRAS_FILTER_EDITBOX, ///< Filter text box for the station class list.
|
2013-06-25 20:22:08 +00:00
|
|
|
WID_BRAS_SHOW_NEWST_DEFSIZE, ///< Selection for default-size button for newstation.
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_SHOW_NEWST_ADDITIONS, ///< Selection for newstation class selection list.
|
|
|
|
WID_BRAS_SHOW_NEWST_MATRIX, ///< Selection for newstation image matrix.
|
|
|
|
WID_BRAS_SHOW_NEWST_RESIZE, ///< Selection for panel and resize at bottom right for newstation.
|
|
|
|
WID_BRAS_SHOW_NEWST_TYPE, ///< Display of selected station type.
|
|
|
|
WID_BRAS_NEWST_LIST, ///< List with available newstation classes.
|
|
|
|
WID_BRAS_NEWST_SCROLL, ///< Scrollbar of the #WID_BRAS_NEWST_LIST.
|
2011-12-16 18:43:38 +00:00
|
|
|
|
2011-12-16 18:57:27 +00:00
|
|
|
WID_BRAS_PLATFORM_NUM_BEGIN = WID_BRAS_PLATFORM_NUM_1 - 1, ///< Helper for determining the chosen platform width.
|
|
|
|
WID_BRAS_PLATFORM_LEN_BEGIN = WID_BRAS_PLATFORM_LEN_1 - 1, ///< Helper for determining the chosen platform length.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #BuildSignalWindow class. */
|
2011-12-16 18:47:46 +00:00
|
|
|
enum BuildSignalWidgets {
|
2021-09-05 18:22:27 +00:00
|
|
|
WID_BS_CAPTION, ///< Caption for the Signal Selection window.
|
2021-10-17 18:24:50 +00:00
|
|
|
WID_BS_TOGGLE_SIZE, ///< Toggle showing advanced signal types.
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BS_SEMAPHORE_NORM, ///< Build a semaphore normal block signal
|
|
|
|
WID_BS_SEMAPHORE_ENTRY, ///< Build a semaphore entry block signal
|
|
|
|
WID_BS_SEMAPHORE_EXIT, ///< Build a semaphore exit block signal
|
|
|
|
WID_BS_SEMAPHORE_COMBO, ///< Build a semaphore combo block signal
|
2019-12-05 18:13:35 +00:00
|
|
|
WID_BS_SEMAPHORE_PROG, ///< Build a semahore programmable pre-signal
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BS_SEMAPHORE_PBS, ///< Build a semaphore path signal.
|
|
|
|
WID_BS_SEMAPHORE_PBS_OWAY, ///< Build a semaphore one way path signal.
|
2021-09-04 02:14:09 +00:00
|
|
|
WID_BS_SEMAPHORE_NO_ENTRY, ///< Build a semaphore no-entry signal.
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BS_ELECTRIC_NORM, ///< Build an electric normal block signal
|
|
|
|
WID_BS_ELECTRIC_ENTRY, ///< Build an electric entry block signal
|
|
|
|
WID_BS_ELECTRIC_EXIT, ///< Build an electric exit block signal
|
|
|
|
WID_BS_ELECTRIC_COMBO, ///< Build an electric combo block signal
|
2019-12-05 18:13:35 +00:00
|
|
|
WID_BS_ELECTRIC_PROG, ///< Build an electric programmable pre-signal
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BS_ELECTRIC_PBS, ///< Build an electric path signal.
|
|
|
|
WID_BS_ELECTRIC_PBS_OWAY, ///< Build an electric one way path signal.
|
2021-09-04 02:14:09 +00:00
|
|
|
WID_BS_ELECTRIC_NO_ENTRY, ///< Build an electric no-entry signal.
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BS_CONVERT, ///< Convert the signal.
|
2015-07-21 23:28:53 +00:00
|
|
|
WID_BS_TRACE_RESTRICT, ///< Open trace restrict window.
|
2014-01-14 20:32:07 +00:00
|
|
|
WID_BS_PROGRAM, ///< Enter program to prog signal
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BS_DRAG_SIGNALS_DENSITY_LABEL, ///< The current signal density.
|
|
|
|
WID_BS_DRAG_SIGNALS_DENSITY_DECREASE, ///< Decrease the signal density.
|
|
|
|
WID_BS_DRAG_SIGNALS_DENSITY_INCREASE, ///< Increase the signal density.
|
2021-11-03 00:51:31 +00:00
|
|
|
WID_BS_TOGGLE_SIZE_SEL, ///< NWID_SELECTION for WID_BS_TOGGLE_SIZE
|
2021-11-02 19:23:24 +00:00
|
|
|
WID_BS_SEMAPHORE_NORM_SEL, ///< NWID_SELECTION for WID_BS_SEMAPHORE_NORM
|
|
|
|
WID_BS_ELECTRIC_NORM_SEL, ///< NWID_SELECTION for WID_BS_ELECTRIC_NORM
|
2021-01-25 02:33:14 +00:00
|
|
|
WID_BS_SEMAPHORE_ENTRY_SEL, ///< NWID_SELECTION for WID_BS_SEMAPHORE_ENTRY
|
|
|
|
WID_BS_ELECTRIC_ENTRY_SEL, ///< NWID_SELECTION for WID_BS_ELECTRIC_ENTRY
|
|
|
|
WID_BS_SEMAPHORE_EXIT_SEL, ///< NWID_SELECTION for WID_BS_SEMAPHORE_EXIT
|
|
|
|
WID_BS_ELECTRIC_EXIT_SEL, ///< NWID_SELECTION for WID_BS_ELECTRIC_EXIT
|
|
|
|
WID_BS_SEMAPHORE_COMBO_SEL, ///< NWID_SELECTION for WID_BS_SEMAPHORE_COMBO
|
|
|
|
WID_BS_ELECTRIC_COMBO_SEL, ///< NWID_SELECTION for WID_BS_ELECTRIC_COMBO
|
2017-09-04 18:27:39 +00:00
|
|
|
WID_BS_SEMAPHORE_PROG_SEL, ///< NWID_SELECTION for WID_BS_SEMAPHORE_PROG
|
|
|
|
WID_BS_ELECTRIC_PROG_SEL, ///< NWID_SELECTION for WID_BS_ELECTRIC_PROG
|
2021-09-04 02:14:09 +00:00
|
|
|
WID_BS_SEMAPHORE_NOEN_SEL, ///< NWID_SELECTION for WID_BS_SEMAPHORE_NO_ENTRY
|
|
|
|
WID_BS_ELECTRIC_NOEN_SEL, ///< NWID_SELECTION for WID_BS_ELECTRIC_NO_ENTRY
|
2017-09-04 18:27:39 +00:00
|
|
|
WID_BS_PROGRAM_SEL, ///< NWID_SELECTION for WID_BS_PROGRAM
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #BuildRailDepotWindow class. */
|
2011-12-16 18:47:46 +00:00
|
|
|
enum BuildRailDepotWidgets {
|
2011-12-16 16:53:16 +00:00
|
|
|
/* Name starts with BRA instead of BR, because of collision with BuildRoadDepotWidgets */
|
2013-01-08 22:46:42 +00:00
|
|
|
WID_BRAD_DEPOT_NE, ///< Build a depot with the entrance in the north east.
|
|
|
|
WID_BRAD_DEPOT_SE, ///< Build a depot with the entrance in the south east.
|
|
|
|
WID_BRAD_DEPOT_SW, ///< Build a depot with the entrance in the south west.
|
|
|
|
WID_BRAD_DEPOT_NW, ///< Build a depot with the entrance in the north west.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
2011-12-19 20:46:17 +00:00
|
|
|
/** Widgets of the #BuildRailWaypointWindow class. */
|
2011-12-16 18:47:46 +00:00
|
|
|
enum BuildRailWaypointWidgets {
|
2011-12-16 18:43:38 +00:00
|
|
|
WID_BRW_WAYPOINT_MATRIX, ///< Matrix with waypoints.
|
|
|
|
WID_BRW_WAYPOINT, ///< A single waypoint.
|
|
|
|
WID_BRW_SCROLL, ///< Scrollbar for the matrix.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* WIDGETS_RAIL_WIDGET_H */
|