|
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_SORTDROPBTN = 17, ///< Dropdown button |
|
28 SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options |
|
29 |
|
30 SLW_CARGOSTART = 19, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets) |
|
31 }; |
|
32 |
|
33 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */ |
|
34 enum StationViewWidgets { |
|
35 SVW_CLOSEBOX = 0, ///< Close 'X' button |
|
36 SVW_CAPTION = 1, ///< Caption of the window |
|
37 SVW_WAITING = 3, ///< List of waiting cargo |
|
38 SVW_ACCEPTLIST = 5, ///< List of accepted cargos |
|
39 SVW_RATINGLIST = 6, ///< Ratings of cargos |
|
40 SVW_LOCATION = 7, ///< 'Location' button |
|
41 SVW_RATINGS = 8, ///< 'Ratings' button |
|
42 SVW_ACCEPTS = 8, ///< 'Accepts' button |
|
43 SVW_RENAME = 9, ///< 'Rename' button |
|
44 SVW_TRAINS = 10, ///< List of scheduled trains button |
|
45 SVW_ROADVEHS, ///< List of scheduled road vehs button |
|
46 SVW_PLANES, ///< List of scheduled planes button |
|
47 SVW_SHIPS, ///< List of scheduled ships button |
|
48 }; |
|
49 |
|
50 /* sorter stuff */ |
|
51 void RebuildStationLists(); |
|
52 void ResortStationLists(); |
|
53 |
|
54 enum StationCoverageType { |
|
55 SCT_PASSENGERS_ONLY, |
|
56 SCT_NON_PASSENGERS_ONLY, |
|
57 SCT_ALL |
|
58 }; |
|
59 |
|
60 void DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad); |
|
61 void CheckRedrawStationCoverage(const Window *w); |
|
62 |
|
63 extern bool _station_show_coverage; |
|
64 |
|
65 #endif /* STATION_GUI_H */ |