diff options
author | alberth <alberth@openttd.org> | 2009-05-03 13:54:47 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-05-03 13:54:47 +0000 |
commit | 8ae0696447fd875d178fb55bb9cff5fb33142101 (patch) | |
tree | 1c37c1aeeebf5013aafd8b364dc1ec13f8a0894e /src | |
parent | c8ac8decce9a2f0dfcb65193759604e1c7a6979e (diff) | |
download | openttd-8ae0696447fd875d178fb55bb9cff5fb33142101.tar.xz |
(svn r16218) -Codechange: Move BuildRoadStationWidgets enum outside window struct.
Diffstat (limited to 'src')
-rw-r--r-- | src/road_gui.cpp | 34 |
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 */ |