# gui.h

Go to the documentation of this file.

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