(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h

This commit is contained in:
truebrain
2011-12-15 22:22:55 +00:00
parent fd559171b4
commit 2aa774e831
111 changed files with 3165 additions and 1624 deletions

View File

@@ -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: