author | darkvater |
Fri, 25 Mar 2005 15:30:51 +0000 | |
changeset 1558 | 62eeea72497d |
parent 1397 | fa8539dcab46 |
child 1575 | 1f403d3c354f |
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 */ |
|
1397
fa8539dcab46
(svn r1901) - Fix: unwanted behaviour of the savegame dialog, as well as a bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
Darkvater
parents:
1390
diff
changeset
|
67 |
|
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
|
68 |
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
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
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
|
73 |
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
|
74 |
void ShowSubsidiesList(void); |
0 | 75 |
void ShowPlayerStations(int player); |
76 |
void ShowPlayerFinances(int player); |
|
77 |
void ShowPlayerCompany(int player); |
|
78 |
||
79 |
void ShowEstimatedCostOrIncome(int32 cost, int x, int y); |
|
80 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
|
81 |
||
568
b0d0df062880
(svn r979) Allow more realistically sized catchment areas
Celestar
parents:
543
diff
changeset
|
82 |
void DrawStationCoverageAreaText(int sx, int sy, uint mask,int rad); |
0 | 83 |
void CheckRedrawStationCoverage(Window *w); |
84 |
||
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
|
85 |
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
|
86 |
void ShowExtraViewPortWindow(void); |
0 | 87 |
void SetVScrollCount(Window *w, int num); |
842 | 88 |
void SetVScroll2Count(Window *w, int num); |
0 | 89 |
void SetHScrollCount(Window *w, int num); |
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); |
|
1390
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
96 |
int HandleEditBoxKey(Window *w, int wid, WindowEvent *we); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
97 |
bool HandleCaret(Textbuf *tb); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
98 |
|
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
99 |
bool DeleteTextBufferChar(Textbuf *tb, int delmode); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
100 |
bool InsertTextBufferChar(Textbuf *tb, byte key); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
101 |
bool InsertTextBufferClipboard(Textbuf *tb); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
102 |
bool MoveTextBufferPos(Textbuf *tb, int navmode); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
103 |
void UpdateTextBufferSize(Textbuf *tb); |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
104 |
/* IS_INT_INSIDE = filter for ascii-function codes like BELL and so on [we need an special filter here later] */ |
e7cdf3ce0fb6
(svn r1894) - Codechange: cleaned up the console a bit, wholly unified handling of text with that of editboxes
Darkvater
parents:
1386
diff
changeset
|
105 |
static inline bool IsValidAsciiChar(byte key) {return IS_INT_INSIDE(key, ' ', 256);} |
0 | 106 |
|
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
|
107 |
void BuildFileList(void); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
108 |
void SetFiosType(const byte fiostype); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
109 |
|
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
110 |
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */ |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
111 |
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
|
112 |
|
0 | 113 |
|
114 |
/* 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
|
115 |
void ShowNetworkGameWindow(void); |
649 | 116 |
void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
0 | 117 |
|
118 |
/* bridge_gui.c */ |
|
119 |
void ShowBuildBridgeWindow(uint start, uint end, byte type); |
|
120 |
||
121 |
enum { |
|
122 |
ZOOM_IN = 0, |
|
123 |
ZOOM_OUT = 1, |
|
124 |
ZOOM_NONE = 2, // hack, used to update the button status |
|
125 |
}; |
|
126 |
||
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
|
127 |
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
|
128 |
void ShowBuildIndustryWindow(void); |
1386
0de4f8541aea
(svn r1890) Begin to clean up the edit box: Remove one global variable and split the combined edit/original buffer into two
tron
parents:
1246
diff
changeset
|
129 |
void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth, WindowClass window_class, WindowNumber 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
|
130 |
void ShowMusicWindow(void); |
0 | 131 |
|
132 |
/* main_gui.c */ |
|
133 |
VARDEF byte _newspaper_flag; |
|
134 |
VARDEF byte _construct_mode; |
|
135 |
VARDEF byte _station_show_coverage; |
|
136 |
VARDEF PlaceProc *_place_proc; |
|
137 |
VARDEF bool _no_button_sound; |
|
138 |
||
1246
eb66ff34348f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
139 |
/* vehicle_gui.c */ |
eb66ff34348f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
140 |
void InitializeGUI(void); |
eb66ff34348f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
141 |
|
0 | 142 |
#endif /* GUI_H */ |