From 2aa774e831ad1cb7849c998759449ef777c5c664 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 15 Dec 2011 22:22:55 +0000 Subject: (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h --- src/newgrf_debug_gui.cpp | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'src/newgrf_debug_gui.cpp') diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index 03c811057..253c7a333 100644 --- a/src/newgrf_debug_gui.cpp +++ b/src/newgrf_debug_gui.cpp @@ -33,6 +33,8 @@ #include "newgrf_station.h" #include "newgrf_town.h" +#include "widgets/newgrf_debug_widget.h" + #include "table/strings.h" /** The sprite picker. */ @@ -274,15 +276,6 @@ static inline const NIHelper *GetFeatureHelper(uint window_number) return GetFeature(window_number)->helper; } - -/** Widget numbers of settings window */ -enum NewGRFInspectWidgets { - NIW_CAPTION, ///< The caption bar ofcourse - NIW_PARENT, ///< Inspect the parent - NIW_MAINPANEL, ///< Panel widget containing the actual data - NIW_SCROLLBAR, ///< Scrollbar -}; - /** Window used for inspecting NewGRFs. */ struct NewGRFInspectWindow : Window { static const int LEFT_OFFSET = 5; ///< Position of left edge @@ -643,23 +636,6 @@ GrfSpecFeature GetGrfSpecFeature(VehicleType type) /**** Sprite Aligner ****/ -/** Widgets we want (some) influence over. */ -enum SpriteAlignerWidgets { - SAW_CAPTION, ///< Caption of the window - SAW_PREVIOUS, ///< Skip to the previous sprite - SAW_GOTO, ///< Go to a given sprite - SAW_NEXT, ///< Skip to the next sprite - SAW_UP, ///< Move the sprite up - SAW_LEFT, ///< Move the sprite to the left - SAW_RIGHT, ///< Move the sprite to the right - SAW_DOWN, ///< Move the sprite down - SAW_SPRITE, ///< The actual sprite - SAW_OFFSETS, ///< The sprite offsets - SAW_PICKER, ///< Sprite picker - SAW_LIST, ///< Queried sprite list - SAW_SCROLLBAR,///< Scrollbar for sprite list -}; - /** Window used for aligning sprites. */ struct SpriteAlignerWindow : Window { SpriteID current_sprite; ///< The currently shown sprite -- cgit v1.2.3-54-g00ecf