22 SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting |
22 SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting |
23 SLW_CARGOALL = 14, ///< 'ALL' button - list all stations |
23 SLW_CARGOALL = 14, ///< 'ALL' button - list all stations |
24 SLW_PAN_RIGHT = 15, ///< Panel right of list of cargo types |
24 SLW_PAN_RIGHT = 15, ///< Panel right of list of cargo types |
25 |
25 |
26 SLW_SORTBY = 16, ///< 'Sort by' button - reverse sort direction |
26 SLW_SORTBY = 16, ///< 'Sort by' button - reverse sort direction |
27 SLW_SORTCRITERIA = 17, ///< Button - list of criteria |
27 SLW_SORTDROPBTN = 17, ///< Dropdown button |
28 SLW_SORTDROPBTN = 18, ///< Dropdown button |
28 SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options |
29 SLW_PAN_SORT_RIGHT = 19, ///< Panel right of sorting options |
|
30 |
29 |
31 SLW_CARGOSTART = 20, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets) |
30 SLW_CARGOSTART = 19, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets) |
32 }; |
31 }; |
33 |
32 |
34 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */ |
33 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */ |
35 enum StationViewWidgets { |
34 enum StationViewWidgets { |
36 SVW_CLOSEBOX = 0, ///< Close 'X' button |
35 SVW_CLOSEBOX = 0, ///< Close 'X' button |
37 SVW_CAPTION = 1, ///< Caption of the window |
36 SVW_CAPTION = 1, ///< Caption of the window |
38 SVW_WAITING = 3, ///< List of waiting cargo |
37 SVW_WAITING = 3, ///< List of waiting cargo |
39 SVW_ACCEPTLIST = 5, ///< List of accepted cargos |
38 SVW_ACCEPTLIST = 5, ///< List of accepted cargos |
40 SVW_RATINGLIST = 6, ///< Ratings of cargos |
39 SVW_RATINGLIST = 5, ///< Ratings of cargos |
41 SVW_LOCATION = 7, ///< 'Location' button |
40 SVW_LOCATION = 6, ///< 'Location' button |
42 SVW_RATINGS = 8, ///< 'Ratings' button |
41 SVW_RATINGS = 7, ///< 'Ratings' button |
43 SVW_ACCEPTS = 8, ///< 'Accepts' button |
42 SVW_ACCEPTS = 7, ///< 'Accepts' button |
44 SVW_RENAME = 9, ///< 'Rename' button |
43 SVW_RENAME = 8, ///< 'Rename' button |
45 SVW_TRAINS = 10, ///< List of scheduled trains button |
44 SVW_TRAINS = 9, ///< List of scheduled trains button |
46 SVW_ROADVEHS, ///< List of scheduled road vehs button |
45 SVW_ROADVEHS, ///< List of scheduled road vehs button |
47 SVW_PLANES, ///< List of scheduled planes button |
46 SVW_PLANES, ///< List of scheduled planes button |
48 SVW_SHIPS, ///< List of scheduled ships button |
47 SVW_SHIPS, ///< List of scheduled ships button |
|
48 SVW_RESIZE, ///< Resize button |
49 }; |
49 }; |
50 |
50 |
51 /* sorter stuff */ |
51 /* sorter stuff */ |
52 void RebuildStationLists(); |
52 void RebuildStationLists(); |
53 void ResortStationLists(); |
53 void ResortStationLists(); |