1
0
Fork 0

(svn r16218) -Codechange: Move BuildRoadStationWidgets enum outside window struct.

release/1.0
alberth 2009-05-03 13:54:47 +00:00
parent c8ac8decce
commit 8ae0696447
1 changed files with 16 additions and 18 deletions

View File

@ -890,25 +890,23 @@ static void ShowRoadDepotPicker(Window *parent)
new BuildRoadDepotWindow(&_build_road_depot_desc, parent); new BuildRoadDepotWindow(&_build_road_depot_desc, parent);
} }
struct BuildRoadStationWindow : public PickerWindowBase { /** Enum referring to the widgets of the build road station window */
private: enum BuildRoadStationWidgets {
/** Enum referring to the widgets of the build road station window */ BRSW_CLOSEBOX = 0,
enum BuildRoadStationWidgets { BRSW_CAPTION,
BRSW_CLOSEBOX = 0, BRSW_BACKGROUND,
BRSW_CAPTION, BRSW_STATION_NE,
BRSW_BACKGROUND, BRSW_STATION_SE,
BRSW_STATION_NE, BRSW_STATION_SW,
BRSW_STATION_SE, BRSW_STATION_NW,
BRSW_STATION_SW, BRSW_STATION_X,
BRSW_STATION_NW, BRSW_STATION_Y,
BRSW_STATION_X, BRSW_LT_OFF,
BRSW_STATION_Y, BRSW_LT_ON,
BRSW_LT_OFF, BRSW_INFO,
BRSW_LT_ON, };
BRSW_INFO,
};
public: struct BuildRoadStationWindow : public PickerWindowBase {
BuildRoadStationWindow(const WindowDesc *desc, Window *parent, RoadStopType rs) : PickerWindowBase(desc, parent) BuildRoadStationWindow(const WindowDesc *desc, Window *parent, RoadStopType rs) : PickerWindowBase(desc, parent)
{ {
/* Trams don't have non-drivethrough stations */ /* Trams don't have non-drivethrough stations */