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/object_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/object_gui.cpp')
-rw-r--r-- | src/object_gui.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index 6b89c4784..83b2e276e 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -19,26 +19,14 @@ #include "viewport_func.h" #include "window_gui.h" +#include "widgets/object_widget.h" + #include "table/strings.h" static ObjectClassID _selected_object_class; ///< the currently visible object class static int _selected_object_index; ///< the index of the selected object in the current class or -1 static uint8 _selected_object_view; ///< the view of the selected object -/** Object widgets in the object picker window. */ -enum BuildObjectWidgets { - BOW_CLASS_LIST, ///< The list with classes. - BOW_SCROLLBAR, ///< The scrollbar associated with the list. - BOW_OBJECT_MATRIX, ///< The matrix with preview sprites. - BOW_OBJECT_SPRITE, ///< A preview sprite of the object. - BOW_OBJECT_SIZE, ///< The size of an object. - BOW_INFO, ///< Other information about the object (from the NewGRF). - - BOW_SELECT_MATRIX, ///< Selection preview matrix of objects of a given class. - BOW_SELECT_IMAGE, ///< Preview image in the #BOW_SELECT_MATRIX. - BOW_SELECT_SCROLL, ///< Scrollbar next to the #BOW_SELECT_MATRIX. -}; - /** The window used for building objects. */ class BuildObjectWindow : public PickerWindowBase { static const int OBJECT_MARGIN = 4; ///< The margin (in pixels) around an object. |