diff options
author | truebrain <truebrain@openttd.org> | 2011-12-15 22:22:55 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-15 22:22:55 +0000 |
commit | 2aa774e831ad1cb7849c998759449ef777c5c664 (patch) | |
tree | 37293298be999cb3446fe4af7f11e107bfa17c3d /src/vehicle_gui.cpp | |
parent | fd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff) | |
download | openttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz |
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 6c85e3f9c..8018896c3 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -356,19 +356,6 @@ static void DrawVehicleRefitWindow(const SubtypeList list[NUM_CARGO], int sel, u } } -/** Widget numbers of the vehicle refit window. */ -enum VehicleRefitWidgets { - VRW_CAPTION, - VRW_VEHICLE_PANEL_DISPLAY, - VRW_SHOW_HSCROLLBAR, - VRW_HSCROLLBAR, - VRW_SELECTHEADER, - VRW_MATRIX, - VRW_SCROLLBAR, - VRW_INFOPANEL, - VRW_REFITBUTTON, -}; - /** Refit cargo window. */ struct RefitWindow : public Window { int sel; ///< Index in refit options, \c -1 if nothing is selected. @@ -1173,19 +1160,6 @@ void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index) ChangeVehicleWindow(WC_VEHICLE_TIMETABLE, from_index, to_index); } -enum VehicleListWindowWidgets { - VLW_WIDGET_CAPTION, - VLW_WIDGET_SORT_ORDER, - VLW_WIDGET_SORT_BY_PULLDOWN, - VLW_WIDGET_LIST, - VLW_WIDGET_SCROLLBAR, - VLW_WIDGET_HIDE_BUTTONS, - VLW_WIDGET_AVAILABLE_VEHICLES, - VLW_WIDGET_MANAGE_VEHICLES_DROPDOWN, - VLW_WIDGET_STOP_ALL, - VLW_WIDGET_START_ALL, -}; - static const NWidgetPart _nested_vehicle_list[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_GREY), @@ -1715,23 +1689,6 @@ void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type, TileInde /* Unified vehicle GUI - Vehicle Details Window */ -/** Constants of vehicle details widget indices */ -enum VehicleDetailsWindowWidgets { - VLD_WIDGET_CAPTION, - VLD_WIDGET_RENAME_VEHICLE, - VLD_WIDGET_TOP_DETAILS, - VLD_WIDGET_INCREASE_SERVICING_INTERVAL, - VLD_WIDGET_DECREASE_SERVICING_INTERVAL, - VLD_WIDGET_SERVICING_INTERVAL, - VLD_WIDGET_MIDDLE_DETAILS, - VLD_WIDGET_MATRIX, - VLD_WIDGET_SCROLLBAR, - VLD_WIDGET_DETAILS_CARGO_CARRIED, - VLD_WIDGET_DETAILS_TRAIN_VEHICLES, - VLD_WIDGET_DETAILS_CAPACITY_OF_EACH, - VLD_WIDGET_DETAILS_TOTAL_CARGO, -}; - assert_compile(VLD_WIDGET_DETAILS_CARGO_CARRIED == VLD_WIDGET_DETAILS_CARGO_CARRIED + TDW_TAB_CARGO ); assert_compile(VLD_WIDGET_DETAILS_TRAIN_VEHICLES == VLD_WIDGET_DETAILS_CARGO_CARRIED + TDW_TAB_INFO ); assert_compile(VLD_WIDGET_DETAILS_CAPACITY_OF_EACH == VLD_WIDGET_DETAILS_CARGO_CARRIED + TDW_TAB_CAPACITY); |