diff options
author | rubidium <rubidium@openttd.org> | 2007-12-21 07:38:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-21 07:38:36 +0000 |
commit | a6b1526c13506c47e892f1b66e2445c7a7e2beed (patch) | |
tree | fff45a0d36f14044846f8b90ef3a59e442c80c6d | |
parent | 30c0d6da99c66ab82a459a5ab4e5d730c16f6dfd (diff) | |
download | openttd-a6b1526c13506c47e892f1b66e2445c7a7e2beed.tar.xz |
(svn r11672) -Codechange: refactor some stuff out of gui.h.
-rw-r--r-- | src/elrail.cpp | 2 | ||||
-rw-r--r-- | src/group_gui.h | 12 | ||||
-rw-r--r-- | src/gui.h | 16 | ||||
-rw-r--r-- | src/main_gui.cpp | 2 | ||||
-rw-r--r-- | src/rail_gui.h | 13 | ||||
-rw-r--r-- | src/road_gui.h | 13 | ||||
-rw-r--r-- | src/vehicle_gui.cpp | 1 |
7 files changed, 43 insertions, 16 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index f5acc08ff..837e04e42 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -63,7 +63,7 @@ #include "table/elrail_data.h" #include "vehicle.h" #include "train.h" -#include "gui.h" +#include "rail_gui.h" #include "transparency.h" #include "tunnelbridge_map.h" diff --git a/src/group_gui.h b/src/group_gui.h new file mode 100644 index 000000000..a20318901 --- /dev/null +++ b/src/group_gui.h @@ -0,0 +1,12 @@ +/* $Id$ */ + +/** @file group_gui.h Functions/definitions that have something to do with groups. */ + +#ifndef GROUP_GUI_H +#define GROUP_GUI_H + +#include "vehicle_type.h" + +void ShowPlayerGroup(PlayerID player, VehicleType veh); + +#endif /* GROUP_GUI_H */ @@ -7,9 +7,6 @@ #include "string.h" #include "window_type.h" -#include "rail_type.h" -#include "road_type.h" -#include "vehicle_type.h" /* main_gui.cpp */ void CcPlaySound10(bool success, TileIndex tile, uint32 p1, uint32 p2); @@ -37,18 +34,9 @@ void ShowLastNewsMessage(); void ShowMessageOptions(); void ShowMessageHistory(); -/* rail_gui.cpp */ -void ShowBuildRailToolbar(RailType railtype, int button); -void PlaceProc_BuyLand(TileIndex tile); -void ReinitGuiAfterToggleElrail(bool disable); - /* train_gui.cpp */ void ShowOrdersWindow(const Vehicle *v); -/* road_gui.cpp */ -void ShowBuildRoadToolbar(RoadType roadtype); -void ShowBuildRoadScenToolbar(); - /* dock_gui.cpp */ void ShowBuildDocksToolbar(); @@ -64,6 +52,7 @@ void ShowHeightmapLoad(); void PlaceProc_DemolishArea(TileIndex tile); void PlaceProc_LevelLand(TileIndex tile); +void PlaceProc_BuyLand(TileIndex tile); bool GUIPlaceProcDragXY(const WindowEvent *e); /** Drag and drop selection process, or, what to do with an area of land when @@ -132,9 +121,6 @@ void HandleOnEditText(const char *str); VARDEF bool _station_show_coverage; VARDEF PlaceProc *_place_proc; -/* vehicle_gui.cpp */ void InitializeGUI(); -void ShowPlayerGroup(PlayerID player, VehicleType veh); - #endif /* GUI_H */ diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 24df0f3ae..f451170a5 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -42,6 +42,8 @@ #include "vehicle_gui.h" #include "transparency_gui.h" #include "newgrf_config.h" +#include "rail_gui.h" +#include "road_gui.h" #include "network/network_data.h" #include "network/network_client.h" diff --git a/src/rail_gui.h b/src/rail_gui.h new file mode 100644 index 000000000..67d590211 --- /dev/null +++ b/src/rail_gui.h @@ -0,0 +1,13 @@ +/* $Id$ */ + +/** @file rail_gui.h Functions/types etc. related to the rail GUI. */ + +#ifndef RAIL_GUI_H +#define RAIL_GUI_H + +#include "rail_type.h" + +void ShowBuildRailToolbar(RailType railtype, int button); +void ReinitGuiAfterToggleElrail(bool disable); + +#endif /* RAIL_GUI_H */ diff --git a/src/road_gui.h b/src/road_gui.h new file mode 100644 index 000000000..1ffe7d438 --- /dev/null +++ b/src/road_gui.h @@ -0,0 +1,13 @@ +/* $Id$ */ + +/** @file road_gui.h Functions/types related to the road GUIs. */ + +#ifndef ROAD_GUI_H +#define ROAD_GUI_H + +#include "road_type.h" + +void ShowBuildRoadToolbar(RoadType roadtype); +void ShowBuildRoadScenToolbar(); + +#endif /* ROAD_GUI_H */ diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 89d8592d2..a6d77c60f 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -33,6 +33,7 @@ #include "helpers.hpp" #include "cargotype.h" #include "group.h" +#include "group_gui.h" struct Sorting { Listing aircraft; |