author | rubidium |
Sun, 25 May 2008 19:17:03 +0000 | |
changeset 9354 | 845e07db4549 |
parent 9297 | 1cb8d7bbdc8a |
child 10207 | c291a21b304e |
permissions | -rw-r--r-- |
8016
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
1 |
/* $Id$ */ |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
2 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
3 |
/** @file station_gui.h Contains enums and function declarations connected with stations GUI */ |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
4 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
5 |
#ifndef STATION_GUI_H |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
6 |
#define STATION_GUI_H |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
7 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
8 |
/** Enum for PlayerStations, referring to _player_stations_widgets */ |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
9 |
enum StationListWidgets { |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
10 |
SLW_CLOSEBOX = 0, ///< Close 'X' button |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
11 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
12 |
SLW_LIST = 3, ///< The main panel, list of stations |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
13 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
14 |
SLW_TRAIN = 6, ///< 'TRAIN' button - list only facilities where is a railroad station |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
15 |
SLW_TRUCK, |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
16 |
SLW_BUS, |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
17 |
SLW_AIRPLANE, |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
18 |
SLW_SHIP, |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
19 |
SLW_FACILALL, ///< 'ALL' button - list all facilities |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
20 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
21 |
SLW_PAN_BETWEEN = 12, ///< Small panel between list of types of ficilities and list of cargo types |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
22 |
SLW_NOCARGOWAITING = 13, ///< 'NO' button - list stations where no cargo is waiting |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
23 |
SLW_CARGOALL = 14, ///< 'ALL' button - list all stations |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
24 |
SLW_PAN_RIGHT = 15, ///< Panel right of list of cargo types |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
25 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
26 |
SLW_SORTBY = 16, ///< 'Sort by' button - reverse sort direction |
8338
598af8119b97
(svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
peter1138
parents:
8268
diff
changeset
|
27 |
SLW_SORTDROPBTN = 17, ///< Dropdown button |
598af8119b97
(svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
peter1138
parents:
8268
diff
changeset
|
28 |
SLW_PAN_SORT_RIGHT = 18, ///< Panel right of sorting options |
8016
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
29 |
|
8338
598af8119b97
(svn r11904) -Codechange: use dropdown widget in 3 more windows, build vehicle, group vehicle list and station list.
peter1138
parents:
8268
diff
changeset
|
30 |
SLW_CARGOSTART = 19, ///< Widget numbers used for list of cargo types (not present in _player_stations_widgets) |
8016
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
31 |
}; |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
32 |
|
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
33 |
/** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */ |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
34 |
enum StationViewWidgets { |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
35 |
SVW_CLOSEBOX = 0, ///< Close 'X' button |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
36 |
SVW_CAPTION = 1, ///< Caption of the window |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
37 |
SVW_WAITING = 3, ///< List of waiting cargo |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
38 |
SVW_ACCEPTLIST = 5, ///< List of accepted cargos |
8420
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
39 |
SVW_RATINGLIST = 5, ///< Ratings of cargos |
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
40 |
SVW_LOCATION = 6, ///< 'Location' button |
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
41 |
SVW_RATINGS = 7, ///< 'Ratings' button |
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
42 |
SVW_ACCEPTS = 7, ///< 'Accepts' button |
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
43 |
SVW_RENAME = 8, ///< 'Rename' button |
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
44 |
SVW_TRAINS = 9, ///< List of scheduled trains button |
8016
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
45 |
SVW_ROADVEHS, ///< List of scheduled road vehs button |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
46 |
SVW_PLANES, ///< List of scheduled planes button |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
47 |
SVW_SHIPS, ///< List of scheduled ships button |
8420
4ebc9752e7bd
(svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138
parents:
8338
diff
changeset
|
48 |
SVW_RESIZE, ///< Resize button |
8016
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
49 |
}; |
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
50 |
|
8107
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
51 |
enum StationCoverageType { |
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
52 |
SCT_PASSENGERS_ONLY, |
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
53 |
SCT_NON_PASSENGERS_ONLY, |
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
54 |
SCT_ALL |
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
55 |
}; |
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
56 |
|
8846
1b90782b2c4e
(svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
rubidium
parents:
8423
diff
changeset
|
57 |
int DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad, bool supplies); |
8107
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
58 |
void CheckRedrawStationCoverage(const Window *w); |
bb7deea89175
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8016
diff
changeset
|
59 |
|
8268
5027ad5e70a0
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
rubidium
parents:
8107
diff
changeset
|
60 |
extern bool _station_show_coverage; |
5027ad5e70a0
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
rubidium
parents:
8107
diff
changeset
|
61 |
|
8016
1c7062ad5f50
(svn r11576) -Codechange: enumerize and comment station GUI
smatz
parents:
diff
changeset
|
62 |
#endif /* STATION_GUI_H */ |