00001 /* $Id: gui.h 24791 2012-12-05 19:37:15Z frosch $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * 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. 00006 * 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. 00007 * 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/>. 00008 */ 00009 00012 #ifndef GUI_H 00013 #define GUI_H 00014 00015 #include "vehicle_type.h" 00016 #include "economy_type.h" 00017 #include "tile_type.h" 00018 #include "transport_type.h" 00019 00020 struct Window; 00021 00022 /* main_gui.cpp */ 00023 void HandleOnEditText(const char *str); 00024 void InitializeGUI(); 00025 00026 /* settings_gui.cpp */ 00027 void ShowGameOptions(); 00028 void ShowGameSettings(); 00029 00030 /* train_gui.cpp */ 00031 void ShowOrdersWindow(const Vehicle *v); 00032 00033 /* dock_gui.cpp */ 00034 Window *ShowBuildDocksToolbar(); 00035 Window *ShowBuildDocksScenToolbar(); 00036 00037 /* airport_gui.cpp */ 00038 Window *ShowBuildAirToolbar(); 00039 00040 /* tgp_gui.cpp */ 00041 void ShowGenerateLandscape(); 00042 void ShowHeightmapLoad(); 00043 00044 /* misc_gui.cpp */ 00045 void ShowLandInfo(TileIndex tile); 00046 void ShowAboutWindow(); 00047 void ShowBuildTreesToolbar(); 00048 void ShowTownDirectory(); 00049 void ShowIndustryDirectory(); 00050 void ShowIndustryCargoesWindow(); 00051 void ShowSubsidiesList(); 00052 void ShowGoalsList(); 00053 void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question); 00054 00055 void ShowEstimatedCostOrIncome(Money cost, int x, int y); 00056 00057 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE); 00058 void ShowExtraViewPortWindowForTileUnderCursor(); 00059 00060 /* bridge_gui.cpp */ 00061 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type); 00062 00063 void ShowBuildIndustryWindow(); 00064 void ShowFoundTownWindow(); 00065 void ShowMusicWindow(); 00066 00067 #endif /* GUI_H */