annotate src/station_gui.h @ 11436:caf4456fbbf3 draft

(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
author rubidium <rubidium@openttd.org>
date Sat, 21 Mar 2009 22:46:17 +0000
parents 1ec1f1ef7377
children f57a7afa131f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8016
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
1 /* $Id$ */
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
2
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
3 /** @file station_gui.h Contains enums and function declarations connected with stations GUI */
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
4
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
5 #ifndef STATION_GUI_H
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
6 #define STATION_GUI_H
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
7
10626
3189a053f43a (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
rubidium <rubidium@openttd.org>
parents: 10565
diff changeset
8 #include "command_type.h"
3189a053f43a (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
rubidium <rubidium@openttd.org>
parents: 10565
diff changeset
9
8016
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
10 /** Enum for StationView, referring to _station_view_widgets and _station_view_expanded_widgets */
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
11 enum StationViewWidgets {
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
12 SVW_CLOSEBOX = 0, ///< Close 'X' button
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
13 SVW_CAPTION = 1, ///< Caption of the window
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
14 SVW_WAITING = 3, ///< List of waiting cargo
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
15 SVW_ACCEPTLIST = 5, ///< List of accepted cargos
8420
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
16 SVW_RATINGLIST = 5, ///< Ratings of cargos
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
17 SVW_LOCATION = 6, ///< 'Location' button
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
18 SVW_RATINGS = 7, ///< 'Ratings' button
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
19 SVW_ACCEPTS = 7, ///< 'Accepts' button
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
20 SVW_RENAME = 8, ///< 'Rename' button
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
21 SVW_TRAINS = 9, ///< List of scheduled trains button
8016
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
22 SVW_ROADVEHS, ///< List of scheduled road vehs button
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
23 SVW_PLANES, ///< List of scheduled planes button
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
24 SVW_SHIPS, ///< List of scheduled ships button
8420
370ea805f591 (svn r11990) -Codechange: Show all cargo sources (en-route from) in the station view
peter1138 <peter1138@openttd.org>
parents: 8338
diff changeset
25 SVW_RESIZE, ///< Resize button
8016
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
26 };
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
27
8107
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
28 enum StationCoverageType {
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
29 SCT_PASSENGERS_ONLY,
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
30 SCT_NON_PASSENGERS_ONLY,
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
31 SCT_ALL
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
32 };
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
33
8846
838e1d6a0321 (svn r12596) -Feature: show what cargos a station could be supplied with. Patch by Roujin.
rubidium <rubidium@openttd.org>
parents: 8423
diff changeset
34 int DrawStationCoverageAreaText(int sx, int sy, StationCoverageType sct, int rad, bool supplies);
8107
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
35 void CheckRedrawStationCoverage(const Window *w);
f65cf2bc3255 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium <rubidium@openttd.org>
parents: 8016
diff changeset
36
10626
3189a053f43a (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
rubidium <rubidium@openttd.org>
parents: 10565
diff changeset
37 void ShowSelectStationIfNeeded(CommandContainer cmd, int w, int h);
3189a053f43a (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
rubidium <rubidium@openttd.org>
parents: 10565
diff changeset
38
8016
f60addd19e1a (svn r11576) -Codechange: enumerize and comment station GUI
smatz <smatz@openttd.org>
parents:
diff changeset
39 #endif /* STATION_GUI_H */