smatz@8016: /* $Id$ */ smatz@8016: smatz@8016: /** @file station_gui.h Contains enums and function declarations connected with stations GUI */ smatz@8016: smatz@8016: #ifndef STATION_GUI_H smatz@8016: #define STATION_GUI_H smatz@8016: rubidium@10207: /** Enum for CompanyStations, referring to _company_stations_widgets */ smatz@8016: enum StationListWidgets { smatz@8016: SLW_CLOSEBOX = 0, ///< Close 'X' button smatz@8016: smatz@8016: SLW_LIST = 3, ///< The main panel, list of stations smatz@8016: smatz@8016: SLW_TRAIN = 6, ///< 'TRAIN' button - list only facilities where is a railroad station smatz@8016: SLW_TRUCK, smatz@8016: SLW_BUS, smatz@8016: SLW_AIRPLANE, smatz@8016: SLW_SHIP, smatz@8016: SLW_FACILALL, ///< 'ALL' button - list all facilities smatz@8016: smatz@8016: SLW_PAN_BETWEEN = 12, ///< Small panel between list of types of ficilities and list of cargo types smatz@8016: SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting smatz@8016: SLW_CARGOALL = 14, ///< 'ALL' button - list all stations smatz@8016: SLW_PAN_RIGHT = 15, ///< Panel right of list of cargo types smatz@8016: smatz@8016: SLW_SORTBY = 16, ///< 'Sort by' button - reverse sort direction peter1138@8338: SLW_SORTDROPBTN = 17, ///< Dropdown button peter1138@8338: SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options smatz@8016: rubidium@10207: SLW_CARGOSTART = 19, ///< Widget numbers used for list of cargo types (not present in _company_stations_widgets) smatz@8016: }; smatz@8016: smatz@8016: /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */ smatz@8016: enum StationViewWidgets { smatz@8016: SVW_CLOSEBOX = 0, ///< Close 'X' button smatz@8016: SVW_CAPTION = 1, ///< Caption of the window smatz@8016: SVW_WAITING = 3, ///< List of waiting cargo smatz@8016: SVW_ACCEPTLIST = 5, ///< List of accepted cargos peter1138@8420: SVW_RATINGLIST = 5, ///< Ratings of cargos peter1138@8420: SVW_LOCATION = 6, ///< 'Location' button peter1138@8420: SVW_RATINGS = 7, ///< 'Ratings' button peter1138@8420: SVW_ACCEPTS = 7, ///< 'Accepts' button peter1138@8420: SVW_RENAME = 8, ///< 'Rename' button peter1138@8420: SVW_TRAINS = 9, ///< List of scheduled trains button smatz@8016: SVW_ROADVEHS, ///< List of scheduled road vehs button smatz@8016: SVW_PLANES, ///< List of scheduled planes button smatz@8016: SVW_SHIPS, ///< List of scheduled ships button peter1138@8420: SVW_RESIZE, ///< Resize button smatz@8016: }; smatz@8016: rubidium@8107: enum StationCoverageType { rubidium@8107: SCT_PASSENGERS_ONLY, rubidium@8107: SCT_NON_PASSENGERS_ONLY, rubidium@8107: SCT_ALL rubidium@8107: }; rubidium@8107: rubidium@8846: int DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad, bool supplies); rubidium@8107: void CheckRedrawStationCoverage(const Window *w); rubidium@8107: rubidium@8268: extern bool _station_show_coverage; rubidium@8268: smatz@8016: #endif /* STATION_GUI_H */