author | rubidium |
Fri, 18 Apr 2008 15:13:45 +0000 | |
changeset 8976 | 1a8367713b73 |
parent 8975 | 678648173fcf |
child 9094 | 48004fcef409 |
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" |
8264
b1e85998c7d3
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
rubidium
parents:
8254
diff
changeset
|
13 |
#include "strings_type.h" |
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
14 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
15 |
/* main_gui.cpp */ |
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1879
diff
changeset
|
16 |
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
|
17 |
void CcBuildCanal(bool success, TileIndex tile, uint32 p1, uint32 p2); |
8723
e513a23c2797
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
8558
diff
changeset
|
18 |
void HandleOnEditText(const char *str); |
e513a23c2797
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
8558
diff
changeset
|
19 |
void InitializeGUI(); |
0 | 20 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
21 |
/* settings_gui.cpp */ |
6247 | 22 |
void ShowGameOptions(); |
23 |
void ShowGameDifficulty(); |
|
24 |
void ShowPatchesSelection(); |
|
4211
5ee54ab361c9
(svn r5714) Backport from branches/TGP (r5701 and r5711)
miham
parents:
4171
diff
changeset
|
25 |
void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right); |
0 | 26 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
27 |
/* graph_gui.cpp */ |
6247 | 28 |
void ShowOperatingProfitGraph(); |
29 |
void ShowIncomeGraph(); |
|
30 |
void ShowDeliveredCargoGraph(); |
|
31 |
void ShowPerformanceHistoryGraph(); |
|
32 |
void ShowCompanyValueGraph(); |
|
33 |
void ShowCargoPaymentRates(); |
|
34 |
void ShowCompanyLeagueTable(); |
|
35 |
void ShowPerformanceRatingDetail(); |
|
0 | 36 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
37 |
/* train_gui.cpp */ |
4171 | 38 |
void ShowOrdersWindow(const Vehicle *v); |
0 | 39 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
40 |
/* dock_gui.cpp */ |
6247 | 41 |
void ShowBuildDocksToolbar(); |
0 | 42 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
43 |
/* aircraft_gui.cpp */ |
6247 | 44 |
void ShowBuildAirToolbar(); |
0 | 45 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
46 |
/* tgp_gui.cpp */ |
6247 | 47 |
void ShowGenerateLandscape(); |
48 |
void ShowHeightmapLoad(); |
|
4300
c7e43c47a2b9
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
49 |
|
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
|
50 |
/** 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
|
51 |
* 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
|
52 |
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
|
53 |
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
|
54 |
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
|
55 |
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
|
56 |
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
|
57 |
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
|
58 |
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
|
59 |
DDSP_CREATE_WATER, |
8360
3021c928de6c
(svn r11926) -Feature: Rivers. Graphics must be provided by NewGRF else rivers are drawn as canals. Rivers can currently only be placed with-in the scenario editor.
peter1138
parents:
8268
diff
changeset
|
60 |
DDSP_CREATE_RIVER, |
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
|
61 |
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
|
62 |
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
|
63 |
|
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 |
/* 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
|
65 |
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
|
66 |
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
|
67 |
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
|
68 |
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
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
|
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 |
/* 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
|
74 |
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
|
75 |
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
|
76 |
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
|
77 |
}; |
0 | 78 |
|
8745
5bfa77abab47
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
rubidium
parents:
8723
diff
changeset
|
79 |
/* timetable_gui.cpp */ |
5bfa77abab47
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
rubidium
parents:
8723
diff
changeset
|
80 |
void ShowTimetableWindow(const Vehicle *v); |
5bfa77abab47
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
rubidium
parents:
8723
diff
changeset
|
81 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
82 |
/* misc_gui.cpp */ |
6247 | 83 |
void PlaceLandBlockInfo(); |
84 |
void ShowAboutWindow(); |
|
85 |
void ShowBuildTreesToolbar(); |
|
86 |
void ShowBuildTreesScenToolbar(); |
|
87 |
void ShowTownDirectory(); |
|
88 |
void ShowIndustryDirectory(); |
|
89 |
void ShowSubsidiesList(); |
|
0 | 90 |
|
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
|
91 |
void ShowEstimatedCostOrIncome(Money cost, int x, int y); |
0 | 92 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
93 |
||
6247 | 94 |
void ShowSmallMap(); |
95 |
void ShowExtraViewPortWindow(); |
|
0 | 96 |
void SetVScrollCount(Window *w, int num); |
842 | 97 |
void SetVScroll2Count(Window *w, int num); |
0 | 98 |
void SetHScrollCount(Window *w, int num); |
99 |
||
6247 | 100 |
void BuildFileList(); |
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
101 |
void SetFiosType(const byte fiostype); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
102 |
|
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
|
103 |
/* 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
|
104 |
extern const TextColour _fios_colors[]; |
0 | 105 |
|
6179
d19b0137d8e4
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6091
diff
changeset
|
106 |
/* bridge_gui.cpp */ |
8558
2f50ad3af2a9
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
belugas
parents:
8557
diff
changeset
|
107 |
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type); |
0 | 108 |
|
6247 | 109 |
void ShowBuildIndustryWindow(); |
8723
e513a23c2797
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
8558
diff
changeset
|
110 |
void ShowBuildTownWindow(); |
6247 | 111 |
void ShowMusicWindow(); |
0 | 112 |
|
1246
eb66ff34348f
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
113 |
|
0 | 114 |
#endif /* GUI_H */ |