Factor out OnClick dispatching in Window::HandleEditBoxKey
[openttd/fttd.git] / src / gui.h
blob5637979069b2e806cba0514bc12e99e1603b3531
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file gui.h GUI functions that shouldn't be here. */
12 #ifndef GUI_H
13 #define GUI_H
15 #include "map/coord.h"
16 #include "vehicle_type.h"
17 #include "economy_type.h"
18 #include "transport_type.h"
19 #include "story_type.h"
20 #include "company_type.h"
22 struct Window;
24 /* main_gui.cpp */
25 void HandleOnEditText(const char *str);
26 void InitializeGUI();
28 /* settings_gui.cpp */
29 void ShowGameOptions();
30 void ShowGameSettings();
32 /* train_gui.cpp */
33 void ShowOrdersWindow(const Vehicle *v);
35 /* dock_gui.cpp */
36 Window *ShowBuildDocksToolbar();
37 Window *ShowBuildDocksScenToolbar();
39 /* airport_gui.cpp */
40 Window *ShowBuildAirToolbar();
42 /* tgp_gui.cpp */
43 void ShowGenerateLandscape();
44 void ShowHeightmapLoad();
46 /* misc_gui.cpp */
47 void ShowLandInfo(TileIndex tile);
48 void ShowAboutWindow();
49 void ShowBuildTreesToolbar();
50 void ShowTownDirectory();
51 void ShowIndustryDirectory();
52 void ShowIndustryCargoesWindow();
53 void ShowSubsidiesList();
54 void ShowGoalsList(CompanyID company);
55 void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question);
56 void ShowStoryBook(CompanyID company, uint16 page_id = INVALID_STORY_PAGE);
58 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
60 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
61 void ShowExtraViewPortWindowForTileUnderCursor();
63 /* bridge_gui.cpp */
64 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
66 void ShowBuildIndustryWindow();
67 void ShowFoundTownWindow();
68 void ShowMusicWindow();
70 #endif /* GUI_H */