From 8ae0696447fd875d178fb55bb9cff5fb33142101 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 3 May 2009 13:54:47 +0000 Subject: (svn r16218) -Codechange: Move BuildRoadStationWidgets enum outside window struct. --- src/road_gui.cpp | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'src/road_gui.cpp') 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 */ -- cgit v1.2.3-70-g09d2