author | bjarni |
Sat, 22 Jan 2005 23:55:45 +0000 | |
changeset 1099 | ad7522bd5c1c |
parent 1093 | 4fdc46eaf423 |
child 1246 | eb66ff34348f |
permissions | -rw-r--r-- |
0 | 1 |
#ifndef GUI_H |
2 |
#define GUI_H |
|
3 |
||
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
4 |
#include "window.h" |
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
5 |
|
0 | 6 |
/* main_gui.c */ |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
7 |
void SetupColorsAndInitialWindow(void); |
0 | 8 |
void CcPlaySound10(bool success, uint tile, uint32 p1, uint32 p2); |
9 |
||
10 |
/* settings_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
11 |
void ShowGameOptions(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
12 |
void ShowGameDifficulty(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
13 |
void ShowPatchesSelection(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
14 |
void ShowNewgrf(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
15 |
void ShowCustCurrency(void); |
0 | 16 |
|
17 |
/* graph_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
18 |
void ShowOperatingProfitGraph(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
19 |
void ShowIncomeGraph(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
20 |
void ShowDeliveredCargoGraph(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
21 |
void ShowPerformanceHistoryGraph(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
22 |
void ShowCompanyValueGraph(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
23 |
void ShowCargoPaymentRates(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
24 |
void ShowCompanyLeagueTable(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
25 |
void ShowPerformanceRatingDetail(void); |
0 | 26 |
|
27 |
/* news_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
28 |
void ShowLastNewsMessage(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
29 |
void ShowMessageOptions(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
30 |
void ShowMessageHistory(void); |
0 | 31 |
|
32 |
/* traintoolb_gui.c */ |
|
33 |
void ShowBuildRailToolbar(int index, int button); |
|
34 |
void PlaceProc_BuyLand(uint tile); |
|
35 |
||
36 |
/* train_gui.c */ |
|
588 | 37 |
void ShowPlayerTrains(int player, int station); |
0 | 38 |
void ShowTrainViewWindow(Vehicle *v); |
39 |
void ShowTrainDetailsWindow(Vehicle *v); |
|
40 |
void ShowOrdersWindow(Vehicle *v); |
|
41 |
||
42 |
void ShowRoadVehViewWindow(Vehicle *v); |
|
43 |
||
44 |
/* road_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
45 |
void ShowBuildRoadToolbar(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
46 |
void ShowBuildRoadScenToolbar(void); |
588 | 47 |
void ShowPlayerRoadVehicles(int player, int station); |
0 | 48 |
|
49 |
/* dock_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
50 |
void ShowBuildDocksToolbar(void); |
588 | 51 |
void ShowPlayerShips(int player, int station); |
0 | 52 |
|
53 |
void ShowShipViewWindow(Vehicle *v); |
|
54 |
||
55 |
/* aircraft_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
56 |
void ShowBuildAirToolbar(void); |
588 | 57 |
void ShowPlayerAircraft(int player, int station); |
0 | 58 |
|
59 |
/* terraform_gui.c */ |
|
60 |
void PlaceProc_DemolishArea(uint tile); |
|
61 |
void PlaceProc_LowerLand(uint tile); |
|
62 |
void PlaceProc_RaiseLand(uint tile); |
|
63 |
void PlaceProc_LevelLand(uint tile); |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
64 |
void ShowTerraformToolbar(void); |
0 | 65 |
|
66 |
/* misc_gui.c */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
67 |
void PlaceLandBlockInfo(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
68 |
void ShowAboutWindow(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
69 |
void ShowBuildTreesToolbar(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
70 |
void ShowBuildTreesScenToolbar(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
71 |
void ShowTownDirectory(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
72 |
void ShowIndustryDirectory(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
73 |
void ShowSubsidiesList(void); |
0 | 74 |
void ShowPlayerStations(int player); |
75 |
void ShowPlayerFinances(int player); |
|
76 |
void ShowPlayerCompany(int player); |
|
77 |
||
78 |
void ShowEstimatedCostOrIncome(int32 cost, int x, int y); |
|
79 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
|
80 |
||
568
b0d0df062880
(svn r979) Allow more realistically sized catchment areas
Celestar
parents:
543
diff
changeset
|
81 |
void DrawStationCoverageAreaText(int sx, int sy, uint mask,int rad); |
0 | 82 |
void CheckRedrawStationCoverage(Window *w); |
83 |
||
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
84 |
void ShowSmallMap(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
85 |
void ShowExtraViewPortWindow(void); |
0 | 86 |
void SetVScrollCount(Window *w, int num); |
842 | 87 |
void SetVScroll2Count(Window *w, int num); |
0 | 88 |
void SetHScrollCount(Window *w, int num); |
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
89 |
int HandleEditBoxKey(Window *w, int wid, WindowEvent *we); |
0 | 90 |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
91 |
void ShowCheatWindow(void); |
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
92 |
void AskForNewGameToStart(void); |
0 | 93 |
|
94 |
void DrawEditBox(Window *w, int wid); |
|
95 |
void HandleEditBox(Window *w, int wid); |
|
96 |
||
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
97 |
void BuildFileList(void); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
98 |
void SetFiosType(const byte fiostype); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
99 |
|
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
100 |
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */ |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
101 |
static const byte _fios_colors[] = {13, 9, 9, 6, 5, 6, 5}; |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
102 |
|
0 | 103 |
|
104 |
/* network gui */ |
|
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
105 |
void ShowNetworkGameWindow(void); |
649 | 106 |
void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
0 | 107 |
|
108 |
/* bridge_gui.c */ |
|
109 |
void ShowBuildBridgeWindow(uint start, uint end, byte type); |
|
110 |
||
111 |
enum { |
|
112 |
ZOOM_IN = 0, |
|
113 |
ZOOM_OUT = 1, |
|
114 |
ZOOM_NONE = 2, // hack, used to update the button status |
|
115 |
}; |
|
116 |
||
152
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
116
diff
changeset
|
117 |
bool DoZoomInOutWindow(int how, Window * w); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
118 |
void ShowBuildIndustryWindow(void); |
0 | 119 |
void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
988
diff
changeset
|
120 |
void ShowMusicWindow(void); |
0 | 121 |
|
122 |
/* main_gui.c */ |
|
123 |
VARDEF byte _newspaper_flag; |
|
124 |
VARDEF byte _construct_mode; |
|
125 |
VARDEF byte _station_show_coverage; |
|
126 |
VARDEF PlaceProc *_place_proc; |
|
127 |
VARDEF bool _no_button_sound; |
|
128 |
||
129 |
#endif /* GUI_H */ |