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/transparency_gui.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'src/transparency_gui.cpp') diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp index d7fcf082e..77247fa12 100644 --- a/src/transparency_gui.cpp +++ b/src/transparency_gui.cpp @@ -14,6 +14,8 @@ #include "transparency.h" #include "sound_func.h" +#include "widgets/transparency_widget.h" + #include "table/sprites.h" #include "table/strings.h" @@ -22,25 +24,6 @@ TransparencyOptionBits _transparency_lock; ///< Prevent these bits from flipping TransparencyOptionBits _invisibility_opt; ///< The bits that should be invisible. byte _display_opt; ///< What do we want to draw/do? -/** Widget numbers of the transparency window. */ -enum TransparencyToolbarWidgets { - /* Button row. */ - TTW_WIDGET_BEGIN, ///< First toggle button. - TTW_WIDGET_SIGNS = TTW_WIDGET_BEGIN, ///< Signs background transparency toggle button. - TTW_WIDGET_TREES, ///< Trees transparency toggle button. - TTW_WIDGET_HOUSES, ///< Houses transparency toggle button. - TTW_WIDGET_INDUSTRIES, ///< industries transparency toggle button. - TTW_WIDGET_BUILDINGS, ///< Company buildings and structures transparency toggle button. - TTW_WIDGET_BRIDGES, ///< Bridges transparency toggle button. - TTW_WIDGET_STRUCTURES, ///< Object structure transparency toggle button. - TTW_WIDGET_CATENARY, ///< Catenary transparency toggle button. - TTW_WIDGET_LOADING, ///< Loading indicators transparency toggle button. - TTW_WIDGET_END, ///< End of toggle buttons. - - /* Panel with buttons for invisibility */ - TTW_WIDGET_BUTTONS, ///< Panel with 'invisibility' buttons. -}; - class TransparenciesWindow : public Window { public: -- cgit v1.2.3-54-g00ecf