author | rubidium |
Sun, 23 Dec 2007 10:56:02 +0000 | |
changeset 8123 | ce31d2843a95 |
parent 8121 | 3bc6351e7369 |
child 8124 | 59aee7f98ff9 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
3 |
/** @file gui.h */ |
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
4 |
|
0 | 5 |
#ifndef GUI_H |
6 |
#define GUI_H |
|
7 |
||
4299
91f5d2bedcff
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4211
diff
changeset
|
8 |
#include "string.h" |
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:
8106
diff
changeset
|
9 |
#include "window_type.h" |
8121
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
10 |
#include "vehicle_type.h" |
8123
ce31d2843a95
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium
parents:
8121
diff
changeset
|
11 |
#include "gfx_type.h" |
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
12 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
13 |
/* main_gui.cpp */ |
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
14 |
void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2); |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
15 |
void CcBuildCanal(bool success, TileIndex tile, uint32 p1, uint32 p2); |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
16 |
void CcTerraform(bool success, TileIndex tile, uint32 p1, uint32 p2); |
0 | 17 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
18 |
/* settings_gui.cpp */ |
6247 | 19 |
void ShowGameOptions(); |
20 |
void ShowGameDifficulty(); |
|
21 |
void ShowPatchesSelection(); |
|
4211
5ee54ab361c9
(svn r5714) Backport from branches/TGP (r5701 and r5711)
miham
parents:
4171
diff
changeset
|
22 |
void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right); |
0 | 23 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
24 |
/* graph_gui.cpp */ |
6247 | 25 |
void ShowOperatingProfitGraph(); |
26 |
void ShowIncomeGraph(); |
|
27 |
void ShowDeliveredCargoGraph(); |
|
28 |
void ShowPerformanceHistoryGraph(); |
|
29 |
void ShowCompanyValueGraph(); |
|
30 |
void ShowCargoPaymentRates(); |
|
31 |
void ShowCompanyLeagueTable(); |
|
32 |
void ShowPerformanceRatingDetail(); |
|
0 | 33 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
34 |
/* news_gui.cpp */ |
6247 | 35 |
void ShowLastNewsMessage(); |
36 |
void ShowMessageOptions(); |
|
37 |
void ShowMessageHistory(); |
|
0 | 38 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
39 |
/* train_gui.cpp */ |
4171 | 40 |
void ShowOrdersWindow(const Vehicle *v); |
0 | 41 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
42 |
/* dock_gui.cpp */ |
6247 | 43 |
void ShowBuildDocksToolbar(); |
0 | 44 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
45 |
/* aircraft_gui.cpp */ |
6247 | 46 |
void ShowBuildAirToolbar(); |
0 | 47 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
48 |
/* terraform_gui.cpp */ |
5860 | 49 |
void ShowTerraformToolbar(Window *link = NULL); |
1632
10c391e108b7
(svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr)
Darkvater
parents:
1575
diff
changeset
|
50 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
51 |
/* tgp_gui.cpp */ |
6247 | 52 |
void ShowGenerateLandscape(); |
53 |
void ShowHeightmapLoad(); |
|
4300
c7e43c47a2b9
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
54 |
|
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
55 |
void PlaceProc_DemolishArea(TileIndex tile); |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
56 |
void PlaceProc_LevelLand(TileIndex tile); |
8111
02d19f43eea6
(svn r11672) -Codechange: refactor some stuff out of gui.h.
rubidium
parents:
8108
diff
changeset
|
57 |
void PlaceProc_BuyLand(TileIndex tile); |
4634
07699ac2bf37
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
belugas
parents:
4434
diff
changeset
|
58 |
bool GUIPlaceProcDragXY(const WindowEvent *e); |
1632
10c391e108b7
(svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr)
Darkvater
parents:
1575
diff
changeset
|
59 |
|
6670
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
60 |
/** Drag and drop selection process, or, what to do with an area of land when |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
61 |
* you've selected it. */ |
6669
bb48a810a509
(svn r9900) -Codechange: Separate the variables for how to highlight a land area and what to do with it afterwards.
maedhros
parents:
6666
diff
changeset
|
62 |
enum { |
6670
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
63 |
DDSP_DEMOLISH_AREA, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
64 |
DDSP_LEVEL_AREA, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
65 |
DDSP_CREATE_DESERT, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
66 |
DDSP_CREATE_ROCKS, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
67 |
DDSP_CREATE_WATER, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
68 |
DDSP_PLANT_TREES, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
69 |
DDSP_BUILD_BRIDGE, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
70 |
|
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
71 |
/* Rail specific actions */ |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
72 |
DDSP_PLACE_RAIL_NE, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
73 |
DDSP_PLACE_RAIL_NW, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
74 |
DDSP_PLACE_AUTORAIL, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
75 |
DDSP_BUILD_SIGNALS, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
76 |
DDSP_BUILD_STATION, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
77 |
DDSP_REMOVE_STATION, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
78 |
DDSP_CONVERT_RAIL, |
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
79 |
|
f0300bf50643
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
6669
diff
changeset
|
80 |
/* Road specific actions */ |
7895
2ac7de1f03e6
(svn r11446) -Codechange: change the naming of road related code parts to something more descriptive
skidd13
parents:
7824
diff
changeset
|
81 |
DDSP_PLACE_ROAD_X_DIR, |
2ac7de1f03e6
(svn r11446) -Codechange: change the naming of road related code parts to something more descriptive
skidd13
parents:
7824
diff
changeset
|
82 |
DDSP_PLACE_ROAD_Y_DIR, |
7789
ffac1a901f54
(svn r11339) -Add: autoroad; same as autorail, but for road and trams and only on X and Y direction. Patch by Octopussy and skidd13.
rubidium
parents:
7486
diff
changeset
|
83 |
DDSP_PLACE_AUTOROAD, |
1632
10c391e108b7
(svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr)
Darkvater
parents:
1575
diff
changeset
|
84 |
}; |
0 | 85 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
86 |
/* misc_gui.cpp */ |
6247 | 87 |
void PlaceLandBlockInfo(); |
88 |
void ShowAboutWindow(); |
|
89 |
void ShowBuildTreesToolbar(); |
|
90 |
void ShowBuildTreesScenToolbar(); |
|
91 |
void ShowTownDirectory(); |
|
92 |
void ShowIndustryDirectory(); |
|
93 |
void ShowSubsidiesList(); |
|
2475 | 94 |
void ShowPlayerStations(PlayerID player); |
95 |
void ShowPlayerFinances(PlayerID player); |
|
96 |
void ShowPlayerCompany(PlayerID player); |
|
0 | 97 |
|
6990
136a08baf0ed
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
rubidium
parents:
6670
diff
changeset
|
98 |
void ShowEstimatedCostOrIncome(Money cost, int x, int y); |
0 | 99 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
100 |
||
6247 | 101 |
void ShowSmallMap(); |
102 |
void ShowExtraViewPortWindow(); |
|
0 | 103 |
void SetVScrollCount(Window *w, int num); |
842 | 104 |
void SetVScroll2Count(Window *w, int num); |
0 | 105 |
void SetHScrollCount(Window *w, int num); |
106 |
||
6247 | 107 |
void ShowCheatWindow(); |
0 | 108 |
|
6247 | 109 |
void BuildFileList(); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
110 |
void SetFiosType(const byte fiostype); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
111 |
|
4434
a08cb4b5c179
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
rubidium
parents:
4408
diff
changeset
|
112 |
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */ |
7824
5a63d41b59ea
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
belugas
parents:
7789
diff
changeset
|
113 |
extern const TextColour _fios_colors[]; |
0 | 114 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
115 |
/* bridge_gui.cpp */ |
0 | 116 |
void ShowBuildBridgeWindow(uint start, uint end, byte type); |
117 |
||
6247 | 118 |
void ShowBuildIndustryWindow(); |
119 |
void ShowMusicWindow(); |
|
0 | 120 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
121 |
/* main_gui.cpp */ |
5431
6e56b4f13dd7
(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the
Darkvater
parents:
5418
diff
changeset
|
122 |
void HandleOnEditText(const char *str); |
5587
167d9a91ef02
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
rubidium
parents:
5475
diff
changeset
|
123 |
VARDEF bool _station_show_coverage; |
0 | 124 |
VARDEF PlaceProc *_place_proc; |
125 |
||
6247 | 126 |
void InitializeGUI(); |
1246
eb66ff34348f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
127 |
|
0 | 128 |
#endif /* GUI_H */ |