src/station_gui.h
branchnoai
changeset 9723 eee46cb39750
child 9724 b39bc69bb2f2
equal deleted inserted replaced
9722:ebf0ece7d8f6 9723:eee46cb39750
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file station_gui.h Contains enums and function declarations connected with stations GUI */
       
     4 
       
     5 #ifndef STATION_GUI_H
       
     6 #define STATION_GUI_H
       
     7 
       
     8 /** Enum for PlayerStations, referring to _player_stations_widgets */
       
     9 enum StationListWidgets {
       
    10 	SLW_CLOSEBOX       =  0, ///< Close 'X' button
       
    11 
       
    12 	SLW_LIST           =  3, ///< The main panel, list of stations
       
    13 
       
    14 	SLW_TRAIN          =  6, ///< 'TRAIN' button - list only facilities where is a railroad station
       
    15 	SLW_TRUCK,
       
    16 	SLW_BUS,
       
    17 	SLW_AIRPLANE,
       
    18 	SLW_SHIP,
       
    19 	SLW_FACILALL,            ///< 'ALL' button - list all facilities
       
    20 
       
    21 	SLW_PAN_BETWEEN    = 12, ///< Small panel between list of types of ficilities and list of cargo types
       
    22 	SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting
       
    23 	SLW_CARGOALL       = 14, ///< 'ALL' button - list all stations
       
    24 	SLW_PAN_RIGHT      = 15, ///< Panel right of list of cargo types
       
    25 
       
    26 	SLW_SORTBY         = 16, ///< 'Sort by' button - reverse sort direction
       
    27 	SLW_SORTCRITERIA   = 17, ///< Button - list of criteria
       
    28 	SLW_SORTDROPBTN    = 18, ///< Dropdown button
       
    29 	SLW_PAN_SORT_RIGHT = 19, ///< Panel right of sorting options
       
    30 
       
    31 	SLW_CARGOSTART     = 20, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets)
       
    32 };
       
    33 
       
    34 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */
       
    35 enum StationViewWidgets {
       
    36 	SVW_CLOSEBOX   =  0, ///< Close 'X' button
       
    37 	SVW_CAPTION    =  1, ///< Caption of the window
       
    38 	SVW_WAITING    =  3, ///< List of waiting cargo
       
    39 	SVW_ACCEPTLIST =  5, ///< List of accepted cargos
       
    40 	SVW_RATINGLIST =  6, ///< Ratings of cargos
       
    41 	SVW_LOCATION   =  7, ///< 'Location' button
       
    42 	SVW_RATINGS    =  8, ///< 'Ratings' button
       
    43 	SVW_ACCEPTS    =  8, ///< 'Accepts' button
       
    44 	SVW_RENAME     =  9, ///< 'Rename' button
       
    45 	SVW_TRAINS     = 10, ///< List of scheduled trains button
       
    46 	SVW_ROADVEHS,        ///< List of scheduled road vehs button
       
    47 	SVW_PLANES,          ///< List of scheduled planes button
       
    48 	SVW_SHIPS,           ///< List of scheduled ships button
       
    49 };
       
    50 
       
    51 /* sorter stuff */
       
    52 void RebuildStationLists();
       
    53 void ResortStationLists();
       
    54 
       
    55 enum StationCoverageType {
       
    56 	SCT_PASSENGERS_ONLY,
       
    57 	SCT_NON_PASSENGERS_ONLY,
       
    58 	SCT_ALL
       
    59 };
       
    60 
       
    61 void DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad);
       
    62 void CheckRedrawStationCoverage(const Window *w);
       
    63 
       
    64 #endif /* STATION_GUI_H */