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/widgets/vehicle_widget.h | |
parent | fd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff) | |
download | openttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz |
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/widgets/vehicle_widget.h')
-rw-r--r-- | src/widgets/vehicle_widget.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/widgets/vehicle_widget.h b/src/widgets/vehicle_widget.h new file mode 100644 index 000000000..d66ff5ee4 --- /dev/null +++ b/src/widgets/vehicle_widget.h @@ -0,0 +1,77 @@ +/* $Id$ */ + +/* + * This file is part of OpenTTD. + * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. + * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. + */ + +/** @file vehicle_widget.h Types related to the vehicle widgets. */ + +#ifndef WIDGETS_VEHICLE_WIDGET_H +#define WIDGETS_VEHICLE_WIDGET_H + +/** Widgets of the WC_VEHICLE_VIEW. */ +enum VehicleViewWindowWidgets { + VVW_WIDGET_CAPTION, + VVW_WIDGET_VIEWPORT, ///< Viewport widget. + VVW_WIDGET_START_STOP_VEH, + VVW_WIDGET_CENTER_MAIN_VIEH, + VVW_WIDGET_GOTO_DEPOT, + VVW_WIDGET_REFIT_VEH, + VVW_WIDGET_SHOW_ORDERS, + VVW_WIDGET_SHOW_DETAILS, + VVW_WIDGET_CLONE_VEH, + VVW_WIDGET_SELECT_DEPOT_CLONE, ///< Selection widget between 'goto depot', and 'clone vehicle' buttons. + VVW_WIDGET_SELECT_REFIT_TURN, ///< Selection widget between 'refit' and 'turn around' buttons. + VVW_WIDGET_TURN_AROUND, + VVW_WIDGET_FORCE_PROCEED, +}; + +/** Widgets of the WC_VEHICLE_REFIT. */ +enum VehicleRefitWidgets { + VRW_CAPTION, + VRW_VEHICLE_PANEL_DISPLAY, + VRW_SHOW_HSCROLLBAR, + VRW_HSCROLLBAR, + VRW_SELECTHEADER, + VRW_MATRIX, + VRW_SCROLLBAR, + VRW_INFOPANEL, + VRW_REFITBUTTON, +}; + +/** Widgets of the WC_VEHICLE_DETAILS. */ +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, +}; + +/** Widgets of the vehicle lists (WC_INVALID). */ +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, +}; + + +#endif /* WIDGETS_VEHICLE_WIDGET_H */ |