author | convert-repo |
Mon, 07 Apr 2008 16:21:55 +0000 | |
changeset 10076 | dfd70e42c4ae |
parent 9241 | 38c0bd6beae1 |
child 10225 | 8becb17444a7 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
3 |
/** @file gui.h */ |
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
4 |
|
0 | 5 |
#ifndef GUI_H |
6 |
#define GUI_H |
|
7 |
||
8603
88c5ce6a5215
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
rubidium
parents:
8602
diff
changeset
|
8 |
#include "window_type.h" |
8617
931e0970d509
(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:
8615
diff
changeset
|
9 |
#include "vehicle_type.h" |
8619
c2434269c3eb
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium
parents:
8617
diff
changeset
|
10 |
#include "gfx_type.h" |
8627
448ebf3a8291
(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:
8620
diff
changeset
|
11 |
#include "economy_type.h" |
8634
5ffca02f9115
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents:
8627
diff
changeset
|
12 |
#include "tile_type.h" |
8760
ce0891c412ce
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
rubidium
parents:
8750
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 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
15 |
/* main_gui.cpp */ |
1977
4392ae3d8e31
(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); |
4392ae3d8e31
(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); |
9219
d232ad03c54c
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
9054
diff
changeset
|
18 |
void HandleOnEditText(const char *str); |
d232ad03c54c
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
9054
diff
changeset
|
19 |
void InitializeGUI(); |
d232ad03c54c
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
9054
diff
changeset
|
20 |
Window *PopupMainPlayerToolbMenu(Window *w, int main_button, int gray); |
d232ad03c54c
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
9054
diff
changeset
|
21 |
Window *PopupMainToolbMenu(Window *w, uint16 parent_button, StringID base_string, byte item_count, byte disabled_mask); |
0 | 22 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
23 |
/* settings_gui.cpp */ |
6573 | 24 |
void ShowGameOptions(); |
25 |
void ShowGameDifficulty(); |
|
26 |
void ShowPatchesSelection(); |
|
4211
d8c4c40eba62
(svn r5714) Backport from branches/TGP (r5701 and r5711)
miham
parents:
4171
diff
changeset
|
27 |
void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right); |
0 | 28 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
29 |
/* graph_gui.cpp */ |
6573 | 30 |
void ShowOperatingProfitGraph(); |
31 |
void ShowIncomeGraph(); |
|
32 |
void ShowDeliveredCargoGraph(); |
|
33 |
void ShowPerformanceHistoryGraph(); |
|
34 |
void ShowCompanyValueGraph(); |
|
35 |
void ShowCargoPaymentRates(); |
|
36 |
void ShowCompanyLeagueTable(); |
|
37 |
void ShowPerformanceRatingDetail(); |
|
0 | 38 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
39 |
/* news_gui.cpp */ |
6573 | 40 |
void ShowLastNewsMessage(); |
41 |
void ShowMessageOptions(); |
|
42 |
void ShowMessageHistory(); |
|
0 | 43 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
44 |
/* train_gui.cpp */ |
4171 | 45 |
void ShowOrdersWindow(const Vehicle *v); |
0 | 46 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
47 |
/* dock_gui.cpp */ |
6573 | 48 |
void ShowBuildDocksToolbar(); |
0 | 49 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
50 |
/* aircraft_gui.cpp */ |
6573 | 51 |
void ShowBuildAirToolbar(); |
0 | 52 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
53 |
/* tgp_gui.cpp */ |
6573 | 54 |
void ShowGenerateLandscape(); |
55 |
void ShowHeightmapLoad(); |
|
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
56 |
|
7166
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
57 |
/** Drag and drop selection process, or, what to do with an area of land when |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
58 |
* you've selected it. */ |
7165
37eb253f3c06
(svn r9900) -Codechange: Separate the variables for how to highlight a land area and what to do with it afterwards.
maedhros
parents:
7162
diff
changeset
|
59 |
enum { |
7166
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
60 |
DDSP_DEMOLISH_AREA, |
8692
5408c091b204
(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:
8634
diff
changeset
|
61 |
DDSP_RAISE_AND_LEVEL_AREA, |
5408c091b204
(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:
8634
diff
changeset
|
62 |
DDSP_LOWER_AND_LEVEL_AREA, |
7166
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
63 |
DDSP_LEVEL_AREA, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
64 |
DDSP_CREATE_DESERT, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
65 |
DDSP_CREATE_ROCKS, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
66 |
DDSP_CREATE_WATER, |
8856
7f8b5c11bea6
(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:
8764
diff
changeset
|
67 |
DDSP_CREATE_RIVER, |
7166
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
68 |
DDSP_PLANT_TREES, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
69 |
DDSP_BUILD_BRIDGE, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
70 |
|
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
71 |
/* Rail specific actions */ |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
72 |
DDSP_PLACE_RAIL_NE, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
73 |
DDSP_PLACE_RAIL_NW, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
74 |
DDSP_PLACE_AUTORAIL, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
75 |
DDSP_BUILD_SIGNALS, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
76 |
DDSP_BUILD_STATION, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
77 |
DDSP_REMOVE_STATION, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
78 |
DDSP_CONVERT_RAIL, |
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
79 |
|
3937d5ea59df
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
maedhros
parents:
7165
diff
changeset
|
80 |
/* Road specific actions */ |
8391
533d149e52a9
(svn r11446) -Codechange: change the naming of road related code parts to something more descriptive
skidd13
parents:
8320
diff
changeset
|
81 |
DDSP_PLACE_ROAD_X_DIR, |
533d149e52a9
(svn r11446) -Codechange: change the naming of road related code parts to something more descriptive
skidd13
parents:
8320
diff
changeset
|
82 |
DDSP_PLACE_ROAD_Y_DIR, |
8285
1f026f023f27
(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:
7982
diff
changeset
|
83 |
DDSP_PLACE_AUTOROAD, |
1632
c4ae19bfebf7
(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 |
|
9241
38c0bd6beae1
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
rubidium
parents:
9219
diff
changeset
|
86 |
/* timetable_gui.cpp */ |
38c0bd6beae1
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
rubidium
parents:
9219
diff
changeset
|
87 |
void ShowTimetableWindow(const Vehicle *v); |
38c0bd6beae1
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
rubidium
parents:
9219
diff
changeset
|
88 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
89 |
/* misc_gui.cpp */ |
6573 | 90 |
void PlaceLandBlockInfo(); |
91 |
void ShowAboutWindow(); |
|
92 |
void ShowBuildTreesToolbar(); |
|
93 |
void ShowBuildTreesScenToolbar(); |
|
94 |
void ShowTownDirectory(); |
|
95 |
void ShowIndustryDirectory(); |
|
96 |
void ShowSubsidiesList(); |
|
0 | 97 |
|
7486
d130c10f4dab
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
rubidium
parents:
7166
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 |
||
6573 | 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 |
||
6573 | 107 |
void ShowCheatWindow(); |
0 | 108 |
|
6573 | 109 |
void BuildFileList(); |
543
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
110 |
void SetFiosType(const byte fiostype); |
e3b43338096b
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
111 |
|
4434
4175805666a5
(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 */ |
8320
6ffad7a5d242
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
belugas
parents:
8285
diff
changeset
|
113 |
extern const TextColour _fios_colors[]; |
0 | 114 |
|
6505
abcb0580d976
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
belugas
parents:
6417
diff
changeset
|
115 |
/* bridge_gui.cpp */ |
9054
281e9ddd2dd0
(svn r12136) -Fix(r12135): Code style compliance and... code style as such
belugas
parents:
9053
diff
changeset
|
116 |
void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type); |
0 | 117 |
|
6573 | 118 |
void ShowBuildIndustryWindow(); |
9219
d232ad03c54c
(svn r12398) -Codechange [FS#1770]: Move toolbar related code to it's own little neighbourhood. Based on a patch by Dominik.
rubidium
parents:
9054
diff
changeset
|
119 |
void ShowBuildTownWindow(); |
6573 | 120 |
void ShowMusicWindow(); |
0 | 121 |
|
1246
45f15251412b
(svn r1750) - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz)
darkvater
parents:
1093
diff
changeset
|
122 |
|
0 | 123 |
#endif /* GUI_H */ |