# gui.h

Go to the documentation of this file.

    00001 /* $Id$ */
    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 struct Window;
    00023
    00024 /* main_gui.cpp */
    00025 void HandleOnEditText(const char *str);
    00026 void InitializeGUI();
    00027
    00028 /* settings_gui.cpp */
    00029 void ShowGameOptions();
    00030 void ShowGameDifficulty();
    00031 void ShowGameSettings();
    00032 void DrawArrowButtons(int x, int y, Colours button_colour, byte state, bool clickable_left, bool clickable_right);
    00033
    00034 /* train_gui.cpp */
    00035 void ShowOrdersWindow(const Vehicle *v);
    00036
    00037 /* dock_gui.cpp */
    00038 Window *ShowBuildDocksToolbar();
    00039 Window *ShowBuildDocksScenToolbar();
    00040
    00041 /* airport_gui.cpp */
    00042 Window *ShowBuildAirToolbar();
    00043
    00044 /* tgp_gui.cpp */
    00045 void ShowGenerateLandscape();
    00046 void ShowHeightmapLoad();
    00047
    00048 /* misc_gui.cpp */
    00049 void ShowLandInfo(TileIndex tile);
    00050 void ShowAboutWindow();
    00051 void ShowBuildTreesToolbar();
    00052 void ShowTownDirectory();
    00053 void ShowIndustryDirectory();
    00054 void ShowSubsidiesList();
    00055
    00056 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
    00057
    00059 enum WarningLevel {
    00060   WL_INFO,
    00061   WL_WARNING,
    00062   WL_ERROR,
    00063   WL_CRITICAL,
    00064 };
    00065
    00066 void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0);
    00067
    00068 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
    00069 void ShowExtraViewPortWindowForTileUnderCursor();
    00070
    00071 /* bridge_gui.cpp */
    00072 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
    00073
    00074 void ShowBuildIndustryWindow();
    00075 void ShowFoundTownWindow();
    00076 void ShowMusicWindow();
    00077
    00078 #endif /* GUI_H */