gui.h

Go to the documentation of this file.
00001 /* $Id: gui.h 12136 2008-02-14 03:10:22Z belugas $ */
00002 
00005 #ifndef GUI_H
00006 #define GUI_H
00007 
00008 #include "window_type.h"
00009 #include "vehicle_type.h"
00010 #include "gfx_type.h"
00011 #include "economy_type.h"
00012 #include "tile_type.h"
00013 #include "strings_type.h"
00014 
00015 /* main_gui.cpp */
00016 void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2);
00017 void CcBuildCanal(bool success, TileIndex tile, uint32 p1, uint32 p2);
00018 
00019 /* settings_gui.cpp */
00020 void ShowGameOptions();
00021 void ShowGameDifficulty();
00022 void ShowPatchesSelection();
00023 void DrawArrowButtons(int x, int y, int ctab, byte state, bool clickable_left, bool clickable_right);
00024 
00025 /* graph_gui.cpp */
00026 void ShowOperatingProfitGraph();
00027 void ShowIncomeGraph();
00028 void ShowDeliveredCargoGraph();
00029 void ShowPerformanceHistoryGraph();
00030 void ShowCompanyValueGraph();
00031 void ShowCargoPaymentRates();
00032 void ShowCompanyLeagueTable();
00033 void ShowPerformanceRatingDetail();
00034 
00035 /* news_gui.cpp */
00036 void ShowLastNewsMessage();
00037 void ShowMessageOptions();
00038 void ShowMessageHistory();
00039 
00040 /* train_gui.cpp */
00041 void ShowOrdersWindow(const Vehicle *v);
00042 
00043 /* dock_gui.cpp */
00044 void ShowBuildDocksToolbar();
00045 
00046 /* aircraft_gui.cpp */
00047 void ShowBuildAirToolbar();
00048 
00049 /* tgp_gui.cpp */
00050 void ShowGenerateLandscape();
00051 void ShowHeightmapLoad();
00052 
00055 enum {
00056   DDSP_DEMOLISH_AREA,
00057   DDSP_RAISE_AND_LEVEL_AREA,
00058   DDSP_LOWER_AND_LEVEL_AREA,
00059   DDSP_LEVEL_AREA,
00060   DDSP_CREATE_DESERT,
00061   DDSP_CREATE_ROCKS,
00062   DDSP_CREATE_WATER,
00063   DDSP_CREATE_RIVER,
00064   DDSP_PLANT_TREES,
00065   DDSP_BUILD_BRIDGE,
00066 
00067   /* Rail specific actions */
00068   DDSP_PLACE_RAIL_NE,
00069   DDSP_PLACE_RAIL_NW,
00070   DDSP_PLACE_AUTORAIL,
00071   DDSP_BUILD_SIGNALS,
00072   DDSP_BUILD_STATION,
00073   DDSP_REMOVE_STATION,
00074   DDSP_CONVERT_RAIL,
00075 
00076   /* Road specific actions */
00077   DDSP_PLACE_ROAD_X_DIR,
00078   DDSP_PLACE_ROAD_Y_DIR,
00079   DDSP_PLACE_AUTOROAD,
00080 };
00081 
00082 /* misc_gui.cpp */
00083 void PlaceLandBlockInfo();
00084 void ShowAboutWindow();
00085 void ShowBuildTreesToolbar();
00086 void ShowBuildTreesScenToolbar();
00087 void ShowTownDirectory();
00088 void ShowIndustryDirectory();
00089 void ShowSubsidiesList();
00090 
00091 void ShowEstimatedCostOrIncome(Money cost, int x, int y);
00092 void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y);
00093 
00094 void ShowSmallMap();
00095 void ShowExtraViewPortWindow();
00096 void SetVScrollCount(Window *w, int num);
00097 void SetVScroll2Count(Window *w, int num);
00098 void SetHScrollCount(Window *w, int num);
00099 
00100 void ShowCheatWindow();
00101 
00102 void BuildFileList();
00103 void SetFiosType(const byte fiostype);
00104 
00105 /* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */
00106 extern const TextColour _fios_colors[];
00107 
00108 /* bridge_gui.cpp */
00109 void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transport_type, byte bridge_type);
00110 
00111 void ShowBuildIndustryWindow();
00112 void ShowMusicWindow();
00113 
00114 /* main_gui.cpp */
00115 void HandleOnEditText(const char *str);
00116 
00117 void InitializeGUI();
00118 
00119 #endif /* GUI_H */

Generated on Mon Sep 22 20:34:15 2008 for openttd by  doxygen 1.5.6