summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-03 13:54:47 +0000
committeralberth <alberth@openttd.org>2009-05-03 13:54:47 +0000
commit8ae0696447fd875d178fb55bb9cff5fb33142101 (patch)
tree1c37c1aeeebf5013aafd8b364dc1ec13f8a0894e
parentc8ac8decce9a2f0dfcb65193759604e1c7a6979e (diff)
downloadopenttd-8ae0696447fd875d178fb55bb9cff5fb33142101.tar.xz
(svn r16218) -Codechange: Move BuildRoadStationWidgets enum outside window struct.
-rw-r--r--src/road_gui.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 70666494e..35ba8150b 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -890,25 +890,23 @@ static void ShowRoadDepotPicker(Window *parent)
new BuildRoadDepotWindow(&_build_road_depot_desc, parent);
}
+/** Enum referring to the widgets of the build road station window */
+enum BuildRoadStationWidgets {
+ BRSW_CLOSEBOX = 0,
+ BRSW_CAPTION,
+ BRSW_BACKGROUND,
+ BRSW_STATION_NE,
+ BRSW_STATION_SE,
+ BRSW_STATION_SW,
+ BRSW_STATION_NW,
+ BRSW_STATION_X,
+ BRSW_STATION_Y,
+ BRSW_LT_OFF,
+ BRSW_LT_ON,
+ BRSW_INFO,
+};
+
struct BuildRoadStationWindow : public PickerWindowBase {
-private:
- /** Enum referring to the widgets of the build road station window */
- enum BuildRoadStationWidgets {
- BRSW_CLOSEBOX = 0,
- BRSW_CAPTION,
- BRSW_BACKGROUND,
- BRSW_STATION_NE,
- BRSW_STATION_SE,
- BRSW_STATION_SW,
- BRSW_STATION_NW,
- BRSW_STATION_X,
- BRSW_STATION_Y,
- BRSW_LT_OFF,
- BRSW_LT_ON,
- BRSW_INFO,
- };
-
-public:
BuildRoadStationWindow(const WindowDesc *desc, Window *parent, RoadStopType rs) : PickerWindowBase(desc, parent)
{
/* Trams don't have non-drivethrough stations */