gui.h

Go to the documentation of this file.
00001 /* $Id: gui.h 18809 2010-01-15 16:41:15Z rubidium $ */
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 "gfx_type.h"
00017 #include "economy_type.h"
00018 #include "tile_type.h"
00019 #include "strings_type.h"
00020 #include "transport_type.h"
00021 
00022 /* main_gui.cpp */
00023 void HandleOnEditText(const char *str);
00024 void InitializeGUI();
00025 
00026 /* settings_gui.cpp */
00027 void ShowGameOptions();
00028 void ShowGameDifficulty();
00029 void ShowGameSettings();
00030 void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
00031 
00032 /* graph_gui.cpp */
00033 void ShowOperatingProfitGraph();
00034 void ShowIncomeGraph();
00035 void ShowDeliveredCargoGraph();
00036 void ShowPerformanceHistoryGraph();
00037 void ShowCompanyValueGraph();
00038 void ShowCargoPaymentRates();
00039 void ShowCompanyLeagueTable();
00040 void ShowPerformanceRatingDetail();
00041 
00042 /* train_gui.cpp */
00043 void ShowOrdersWindow(const Vehicle *v);
00044 
00045 /* dock_gui.cpp */
00046 void ShowBuildDocksToolbar();
00047 void ShowBuildDocksScenToolbar();
00048 
00049 /* aircraft_gui.cpp */
00050 void ShowBuildAirToolbar();
00051 
00052 /* tgp_gui.cpp */
00053 void ShowGenerateLandscape();
00054 void ShowHeightmapLoad();
00055 
00056 /* misc_gui.cpp */
00057 void PlaceLandBlockInfo();
00058 void ShowAboutWindow();
00059 void ShowBuildTreesToolbar();
00060 void ShowTownDirectory();
00061 void ShowIndustryDirectory();
00062 void ShowSubsidiesList();
00063 
00064 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
00065 void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, int x, int y, bool no_timeout = false);
00066 
00067 void ShowSmallMap();
00068 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
00069 
00070 void BuildFileList();
00071 void SetFiosType(const byte fiostype);
00072 
00073 /* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */
00074 extern const TextColour _fios_colours[];
00075 
00076 /* bridge_gui.cpp */
00077 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
00078 
00079 void ShowBuildIndustryWindow();
00080 void ShowFoundTownWindow();
00081 void ShowMusicWindow();
00082 
00083 
00084 #endif /* GUI_H */

Generated on Thu Feb 4 17:20:24 2010 for OpenTTD by  doxygen 1.5.6