2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
8 /** @file newgrf_debug_widget.h Types related to the newgrf debug widgets. */
10 #ifndef WIDGETS_NEWGRF_DEBUG_WIDGET_H
11 #define WIDGETS_NEWGRF_DEBUG_WIDGET_H
13 /** Widgets of the #NewGRFInspectWindow class. */
14 enum NewGRFInspectWidgets
: WidgetID
{
15 WID_NGRFI_CAPTION
, ///< The caption bar of course.
16 WID_NGRFI_PARENT
, ///< Inspect the parent.
17 WID_NGRFI_VEH_PREV
, ///< Go to previous vehicle in chain.
18 WID_NGRFI_VEH_NEXT
, ///< Go to next vehicle in chain.
19 WID_NGRFI_VEH_CHAIN
, ///< Display for vehicle chain.
20 WID_NGRFI_MAINPANEL
, ///< Panel widget containing the actual data.
21 WID_NGRFI_SCROLLBAR
, ///< Scrollbar.
24 /** Widgets of the #SpriteAlignerWindow class. */
25 enum SpriteAlignerWidgets
: WidgetID
{
26 WID_SA_CAPTION
, ///< Caption of the window.
27 WID_SA_PREVIOUS
, ///< Skip to the previous sprite.
28 WID_SA_GOTO
, ///< Go to a given sprite.
29 WID_SA_NEXT
, ///< Skip to the next sprite.
30 WID_SA_UP
, ///< Move the sprite up.
31 WID_SA_LEFT
, ///< Move the sprite to the left.
32 WID_SA_RIGHT
, ///< Move the sprite to the right.
33 WID_SA_DOWN
, ///< Move the sprite down.
34 WID_SA_SPRITE
, ///< The actual sprite.
35 WID_SA_OFFSETS_ABS
, ///< The sprite offsets (absolute).
36 WID_SA_OFFSETS_REL
, ///< The sprite offsets (relative).
37 WID_SA_PICKER
, ///< Sprite picker.
38 WID_SA_LIST
, ///< Queried sprite list.
39 WID_SA_SCROLLBAR
, ///< Scrollbar for sprite list.
40 WID_SA_ZOOM
, ///< Zoom level buttons (from ZOOM_LVL_BEGIN to ZOOM_LVL_END).
41 WID_SA_ZOOM_LAST
= WID_SA_ZOOM
+ ZOOM_LVL_END
- 1, ///< Marker for last zoom level button.
42 WID_SA_RESET_REL
, ///< Reset relative sprite offset
43 WID_SA_CENTRE
, ///< Toggle centre sprite.
44 WID_SA_CROSSHAIR
, ///< Toggle crosshair.
47 #endif /* WIDGETS_NEWGRF_DEBUG_WIDGET_H */