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