Increase the number of road and tram subtypes to 32.
[openttd-joker.git] / src / widgets / station_widget.h
blob1c69f60ec9ca96da6facdbc7e9e27e86bd10da28
1 /* $Id: station_widget.h 25365 2013-06-09 13:08:52Z fonsinchen $ */
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 */
10 /** @file station_widget.h Types related to the station widgets. */
12 #ifndef WIDGETS_STATION_WIDGET_H
13 #define WIDGETS_STATION_WIDGET_H
15 /** Widgets of the #StationViewWindow class. */
16 enum StationViewWidgets {
17 WID_SV_CAPTION, ///< Caption of the window.
18 WID_SV_SORT_ORDER, ///< 'Sort order' button
19 WID_SV_SORT_BY, ///< 'Sort by' button
20 WID_SV_GROUP, ///< label for "group by"
21 WID_SV_GROUP_BY, ///< 'Group by' button
22 WID_SV_WAITING, ///< List of waiting cargo.
23 WID_SV_SCROLLBAR, ///< Scrollbar.
24 WID_SV_ACCEPT_RATING_LIST, ///< List of accepted cargoes / rating of cargoes.
25 WID_SV_LOCATION, ///< 'Location' button.
26 WID_SV_COVERAGE, ///< Show area coverage button
27 WID_SV_ACCEPTS_RATINGS, ///< 'Accepts' / 'Ratings' button.
28 WID_SV_RENAME, ///< 'Rename' button.
29 WID_SV_CLOSE_AIRPORT, ///< 'Close airport' button.
30 WID_SV_TRAINS, ///< List of scheduled trains button.
31 WID_SV_ROADVEHS, ///< List of scheduled road vehs button.
32 WID_SV_SHIPS, ///< List of scheduled ships button.
33 WID_SV_PLANES, ///< List of scheduled planes button.
34 WID_SV_DEPARTURES, ///< Departures button.
35 WID_SV_HISTORY, ///< Cargo history button.
38 /** Widgets of the #CompanyStationsWindow class. */
39 enum StationListWidgets {
40 /* Name starts with ST instead of S, because of collision with SaveLoadWidgets */
41 WID_STL_CAPTION, ///< Caption of the window.
42 WID_STL_LIST, ///< The main panel, list of stations.
43 WID_STL_SCROLLBAR, ///< Scrollbar next to the main panel.
45 /* Vehicletypes need to be in order of StationFacility due to bit magic */
46 WID_STL_TRAIN, ///< 'TRAIN' button - list only facilities where is a railroad station.
47 WID_STL_TRUCK, ///< 'TRUCK' button - list only facilities where is a truck stop.
48 WID_STL_BUS, ///< 'BUS' button - list only facilities where is a bus stop.
49 WID_STL_AIRPLANE, ///< 'AIRPLANE' button - list only facilities where is an airport.
50 WID_STL_SHIP, ///< 'SHIP' button - list only facilities where is a dock.
51 WID_STL_FACILALL, ///< 'ALL' button - list all facilities.
53 WID_STL_NOCARGOWAITING, ///< 'NO' button - list stations where no cargo is waiting.
54 WID_STL_CARGOALL, ///< 'ALL' button - list all stations.
56 WID_STL_SORTBY, ///< 'Sort by' button - reverse sort direction.
57 WID_STL_SORTDROPBTN, ///< Dropdown button.
59 WID_STL_CARGOSTART, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
62 /** Widgets of the #SelectStationWindow class. */
63 enum JoinStationWidgets {
64 WID_JS_CAPTION, // Caption of the window.
65 WID_JS_PANEL, // Main panel.
66 WID_JS_SCROLLBAR, // Scrollbar of the panel.
69 #endif /* WIDGETS_STATION_WIDGET_H */