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 #include "rail.h"
00022 
00023 struct Window;
00024 
00025 /* main_gui.cpp */
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 /* train_gui.cpp */
00036 void ShowOrdersWindow(const Vehicle *v);
00037 
00038 /* dock_gui.cpp */
00039 Window *ShowBuildDocksToolbar();
00040 Window *ShowBuildDocksScenToolbar();
00041 
00042 /* airport_gui.cpp */
00043 Window *ShowBuildAirToolbar();
00044 
00045 /* tgp_gui.cpp */
00046 void ShowGenerateLandscape();
00047 void ShowHeightmapLoad();
00048 
00049 /* copy_paste_gui.cpp */
00050 void ShowCopyPasteToolbarGui();        // Using the buttons in terraform_gui.cpp
00051 void ShowCopyPasteToolbar(int button); // Using the shortcuts
00052 
00053 /* misc_gui.cpp */
00054 void ShowLandInfo(TileIndex tile);
00055 void ShowAboutWindow();
00056 void ShowSystemTimeWindow();
00057 void ShowBuildTreesToolbar();
00058 void ShowTownDirectory();
00059 void ShowIndustryDirectory();
00060 void ShowSubsidiesList();
00061 
00062 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
00063 
00065 enum WarningLevel {
00066   WL_INFO,     
00067   WL_WARNING,  
00068   WL_ERROR,    
00069   WL_CRITICAL, 
00070 };
00071 
00072 void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0);
00073 
00074 void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
00075 void ShowExtraViewPortWindowForTileUnderCursor();
00076 
00077 /* bridge_gui.cpp */
00078 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
00079 
00080 void ShowBuildIndustryWindow();
00081 void ShowFoundTownWindow();
00082 void ShowMusicWindow();
00083 
00084 #endif /* GUI_H */