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: smatz@8016: /** Enum for PlayerStations, referring to _player_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 smatz@8016: SLW_SORTCRITERIA = 17, ///< Button - list of criteria smatz@8016: SLW_SORTDROPBTN = 18, ///< Dropdown button smatz@8016: SLW_PAN_SORT_RIGHT = 19, ///< Panel right of sorting options smatz@8016: smatz@8016: SLW_CARGOSTART = 20, ///< Widget numbers used for list of cargo types (not present in _player_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 smatz@8016: SVW_RATINGLIST = 6, ///< Ratings of cargos smatz@8016: SVW_LOCATION = 7, ///< 'Location' button smatz@8016: SVW_RATINGS = 8, ///< 'Ratings' button smatz@8016: SVW_ACCEPTS = 8, ///< 'Accepts' button smatz@8016: SVW_RENAME = 9, ///< 'Rename' button smatz@8016: SVW_TRAINS = 10, ///< 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 smatz@8016: }; smatz@8016: smatz@8016: /* sorter stuff */ smatz@8016: void RebuildStationLists(); smatz@8016: void ResortStationLists(); smatz@8016: smatz@8016: #endif /* STATION_GUI_H */