2011-12-15 22:22:55 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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 station_widget.h Types related to the station widgets. */
|
|
|
|
|
|
|
|
#ifndef WIDGETS_STATION_WIDGET_H
|
|
|
|
#define WIDGETS_STATION_WIDGET_H
|
|
|
|
|
|
|
|
/** Widgets of the WC_STATION_VIEW. */
|
|
|
|
enum StationViewWidgets {
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_SV_CAPTION, ///< Caption of the window.
|
|
|
|
WID_SV_WAITING, ///< List of waiting cargo.
|
|
|
|
WID_SV_SCROLLBAR, ///< Scrollbar.
|
|
|
|
WID_SV_ACCEPT_RATING_LIST, ///< List of accepted cargoes / rating of cargoes.
|
|
|
|
WID_SV_LOCATION, ///< 'Location' button.
|
|
|
|
WID_SV_ACCEPTS_RATINGS, ///< 'Accepts' / 'Ratings' button.
|
|
|
|
WID_SV_RENAME, ///< 'Rename' button.
|
|
|
|
WID_SV_TRAINS, ///< List of scheduled trains button.
|
|
|
|
WID_SV_ROADVEHS, ///< List of scheduled road vehs button.
|
|
|
|
WID_SV_SHIPS, ///< List of scheduled ships button.
|
|
|
|
WID_SV_PLANES, ///< List of scheduled planes button.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/** Widgets of the WC_STATION_LIST. */
|
|
|
|
enum StationListWidgets {
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_SL_CAPTION, ///< Caption of the window.
|
|
|
|
WID_SL_LIST, ///< The main panel, list of stations.
|
|
|
|
WID_SL_SCROLLBAR, ///< Scrollbar next to the main panel.
|
2011-12-15 22:22:55 +00:00
|
|
|
|
|
|
|
/* Vehicletypes need to be in order of StationFacility due to bit magic */
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_SL_TRAIN, ///< 'TRAIN' button - list only facilities where is a railroad station.
|
|
|
|
WID_SL_TRUCK, ///< 'TRUCK' button - list only facilities where is a truck stop.
|
|
|
|
WID_SL_BUS, ///< 'BUS' button - list only facilities where is a bus stop.
|
|
|
|
WID_SL_AIRPLANE, ///< 'AIRPLANE' button - list only facilities where is an airport.
|
|
|
|
WID_SL_SHIP, ///< 'SHIP' button - list only facilities where is a dock.
|
|
|
|
WID_SL_FACILALL, ///< 'ALL' button - list all facilities.
|
2011-12-15 22:22:55 +00:00
|
|
|
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_SL_NOCARGOWAITING, ///< 'NO' button - list stations where no cargo is waiting.
|
|
|
|
WID_SL_CARGOALL, ///< 'ALL' button - list all stations.
|
2011-12-15 22:22:55 +00:00
|
|
|
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_SL_SORTBY, ///< 'Sort by' button - reverse sort direction.
|
|
|
|
WID_SL_SORTDROPBTN, ///< Dropdown button.
|
2011-12-15 22:22:55 +00:00
|
|
|
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_SL_CARGOSTART, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets).
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/** Widgets of the WC_SELECT_STATION. */
|
|
|
|
enum JoinStationWidgets {
|
2011-12-16 18:14:11 +00:00
|
|
|
WID_JS_CAPTION, // Caption of the window.
|
|
|
|
WID_JS_PANEL, // Main panel.
|
|
|
|
WID_JS_SCROLLBAR, // Scrollbar of the panel.
|
2011-12-15 22:22:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* WIDGETS_STATION_WIDGET_H */
|