author | peter1138 |
Fri, 04 Jan 2008 18:18:46 +0000 | |
changeset 8196 | 784ea9554da3 |
parent 8138 | dbfdc08fa6b9 |
child 8205 | 2bde724f1b5d |
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 |
||
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
|
8 |
#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
|
9 |
#include "vehicle_type.h" |
8123
ce31d2843a95
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium
parents:
8121
diff
changeset
|
10 |
#include "gfx_type.h" |
8131
160939e24ed3
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
rubidium
parents:
8124
diff
changeset
|
11 |
#include "economy_type.h" |
8138
dbfdc08fa6b9
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents:
8131
diff
changeset
|
12 |
#include "tile_type.h" |
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
13 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
14 |
/* main_gui.cpp */ |
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
15 |
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
|
16 |
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
|
17 |
void CcTerraform(bool success, TileIndex tile, uint32 p1, uint32 p2); |
0 | 18 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
19 |
/* settings_gui.cpp */ |
6247 | 20 |
void ShowGameOptions(); |
21 |
void ShowGameDifficulty(); |
|
22 |
void ShowPatchesSelection(); |
|
4211
5ee54ab361c9
(svn r5714) Backport from branches/TGP (r5701 and r5711)
miham
parents:
4171
diff
changeset
|
23 |
void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right); |
0 | 24 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
25 |
/* graph_gui.cpp */ |
6247 | 26 |
void ShowOperatingProfitGraph(); |
27 |
void ShowIncomeGraph(); |
|
28 |
void ShowDeliveredCargoGraph(); |
|
29 |
void ShowPerformanceHistoryGraph(); |
|
30 |
void ShowCompanyValueGraph(); |
|
31 |
void ShowCargoPaymentRates(); |
|
32 |
void ShowCompanyLeagueTable(); |
|
33 |
void ShowPerformanceRatingDetail(); |
|
0 | 34 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
35 |
/* news_gui.cpp */ |
6247 | 36 |
void ShowLastNewsMessage(); |
37 |
void ShowMessageOptions(); |
|
38 |
void ShowMessageHistory(); |
|
0 | 39 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
40 |
/* train_gui.cpp */ |
4171 | 41 |
void ShowOrdersWindow(const Vehicle *v); |
0 | 42 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
43 |
/* dock_gui.cpp */ |
6247 | 44 |
void ShowBuildDocksToolbar(); |
0 | 45 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
46 |
/* aircraft_gui.cpp */ |
6247 | 47 |
void ShowBuildAirToolbar(); |
0 | 48 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
49 |
/* terraform_gui.cpp */ |
5860 | 50 |
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
|
51 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
52 |
/* tgp_gui.cpp */ |
6247 | 53 |
void ShowGenerateLandscape(); |
54 |
void ShowHeightmapLoad(); |
|
4300
c7e43c47a2b9
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
55 |
|
8138
dbfdc08fa6b9
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents:
8131
diff
changeset
|
56 |
typedef void PlaceProc(TileIndex tile); |
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
57 |
void PlaceProc_DemolishArea(TileIndex tile); |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
58 |
void PlaceProc_LevelLand(TileIndex tile); |
8111
02d19f43eea6
(svn r11672) -Codechange: refactor some stuff out of gui.h.
rubidium
parents:
8108
diff
changeset
|
59 |
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
|
60 |
bool GUIPlaceProcDragXY(const WindowEvent *e); |
8138
dbfdc08fa6b9
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents:
8131
diff
changeset
|
61 |
VARDEF PlaceProc *_place_proc; |
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
|
62 |
|
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 |
/** 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
|
64 |
* 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
|
65 |
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
|
66 |
DDSP_DEMOLISH_AREA, |
8196
784ea9554da3
(svn r11759) -Feature: Add drag-n-drop support to the raise/lower land tools. Land is raised/lowered at the start and the rest of the area levelled to match. Patch by Roujin.
peter1138
parents:
8138
diff
changeset
|
67 |
DDSP_RAISE_AND_LEVEL_AREA, |
784ea9554da3
(svn r11759) -Feature: Add drag-n-drop support to the raise/lower land tools. Land is raised/lowered at the start and the rest of the area levelled to match. Patch by Roujin.
peter1138
parents:
8138
diff
changeset
|
68 |
DDSP_LOWER_AND_LEVEL_AREA, |
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
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
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
|
73 |
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
|
74 |
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
|
75 |
|
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 |
/* 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
|
77 |
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
|
78 |
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
|
79 |
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
|
80 |
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
|
81 |
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
|
82 |
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
|
83 |
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
|
84 |
|
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
|
85 |
/* 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
|
86 |
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
|
87 |
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
|
88 |
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
|
89 |
}; |
0 | 90 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
91 |
/* misc_gui.cpp */ |
6247 | 92 |
void PlaceLandBlockInfo(); |
93 |
void ShowAboutWindow(); |
|
94 |
void ShowBuildTreesToolbar(); |
|
95 |
void ShowBuildTreesScenToolbar(); |
|
96 |
void ShowTownDirectory(); |
|
97 |
void ShowIndustryDirectory(); |
|
98 |
void ShowSubsidiesList(); |
|
2475 | 99 |
void ShowPlayerStations(PlayerID player); |
100 |
void ShowPlayerFinances(PlayerID player); |
|
101 |
void ShowPlayerCompany(PlayerID player); |
|
0 | 102 |
|
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
|
103 |
void ShowEstimatedCostOrIncome(Money cost, int x, int y); |
0 | 104 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
105 |
||
6247 | 106 |
void ShowSmallMap(); |
107 |
void ShowExtraViewPortWindow(); |
|
0 | 108 |
void SetVScrollCount(Window *w, int num); |
842 | 109 |
void SetVScroll2Count(Window *w, int num); |
0 | 110 |
void SetHScrollCount(Window *w, int num); |
111 |
||
6247 | 112 |
void ShowCheatWindow(); |
0 | 113 |
|
6247 | 114 |
void BuildFileList(); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
115 |
void SetFiosType(const byte fiostype); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
116 |
|
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
|
117 |
/* 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
|
118 |
extern const TextColour _fios_colors[]; |
0 | 119 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
120 |
/* bridge_gui.cpp */ |
0 | 121 |
void ShowBuildBridgeWindow(uint start, uint end, byte type); |
122 |
||
6247 | 123 |
void ShowBuildIndustryWindow(); |
124 |
void ShowMusicWindow(); |
|
0 | 125 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
126 |
/* 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
|
127 |
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
|
128 |
VARDEF bool _station_show_coverage; |
0 | 129 |
|
6247 | 130 |
void InitializeGUI(); |
1246
eb66ff34348f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
131 |
|
0 | 132 |
#endif /* GUI_H */ |