# gui.h

Go to the documentation of this file.

    00001 /* $Id: gui.h 25372 2013-06-09 13:23:03Z zuu $ */
    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 #include "story_type.h"
    00020 #include "company_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 ShowGameSettings();
    00031
    00032 /* train_gui.cpp */
    00033 void ShowOrdersWindow(const Vehicle *v);
    00034
    00035 /* dock_gui.cpp */
    00036 Window *ShowBuildDocksToolbar();
    00037 Window *ShowBuildDocksScenToolbar();
    00038
    00039 /* airport_gui.cpp */
    00040 Window *ShowBuildAirToolbar();
    00041
    00042 /* tgp_gui.cpp */
    00043 void ShowGenerateLandscape();
    00044 void ShowHeightmapLoad();
    00045
    00046 /* misc_gui.cpp */
    00047 void ShowLandInfo(TileIndex tile);
    00048 void ShowAboutWindow();
    00049 void ShowBuildTreesToolbar();
    00050 void ShowTownDirectory();
    00051 void ShowIndustryDirectory();
    00052 void ShowIndustryCargoesWindow();
    00053 void ShowSubsidiesList();
    00054 void ShowGoalsList(CompanyID company);
    00055 void ShowGoalQuestion(uint16 id, byte type, uint32 button_mask, const char *question);
    00056 void ShowStoryBook(CompanyID company, uint16 page_id = INVALID_STORY_PAGE);
    00057
    00058 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
    00059
    00060 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
    00061 void ShowExtraViewPortWindowForTileUnderCursor();
    00062
    00063 /* bridge_gui.cpp */
    00064 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
    00065
    00066 void ShowBuildIndustryWindow();
    00067 void ShowFoundTownWindow();
    00068 void ShowMusicWindow();
    00069
    00070 #endif /* GUI_H */