diff options
author | alberth <alberth@openttd.org> | 2009-04-10 16:24:12 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-04-10 16:24:12 +0000 |
commit | f663b77dbb6b5e478c755449cfe549ef8f8f86f2 (patch) | |
tree | 59d20f111835933423ed3c9541655a016a20817f | |
parent | 5bac7a339ff19eeed7ee3d954794f4f8e5b53698 (diff) | |
download | openttd-f663b77dbb6b5e478c755449cfe549ef8f8f86f2.tar.xz |
(svn r16016) -Codechange: Moving the TransparencyToolbarWidgets outside the window class.
-rw-r--r-- | src/transparency_gui.cpp | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp index eff3f2754..7725b62a6 100644 --- a/src/transparency_gui.cpp +++ b/src/transparency_gui.cpp @@ -15,27 +15,28 @@ TransparencyOptionBits _transparency_opt; TransparencyOptionBits _transparency_lock; TransparencyOptionBits _invisibility_opt; +/** Widget numbers of the transparency window. */ +enum TransparencyToolbarWidgets { + TTW_WIDGET_CLOSEBOX, ///< Closebox + TTW_WIDGET_CAPTION, ///< Titlebar caption + TTW_WIDGET_STICKYBOX, ///< Stickybox + TTW_WIDGET_SIGNS, ///< Make signs background transparent + TTW_WIDGET_TREES, ///< Make trees transparent + TTW_WIDGET_HOUSES, ///< Make houses transparent + TTW_WIDGET_INDUSTRIES, ///< Make Industries transparent + TTW_WIDGET_BUILDINGS, ///< Make company buildings and structures transparent + TTW_WIDGET_BRIDGES, ///< Make bridges transparent + TTW_WIDGET_STRUCTURES, ///< Make unmovable structures transparent + TTW_WIDGET_CATENARY, ///< Make catenary transparent + TTW_WIDGET_LOADING, ///< Make loading indicators transparent + TTW_WIDGET_END, ///< End of toggle buttons + + /* Panel with buttons for invisibility */ + TTW_BUTTONS = 12, ///< Panel with 'invisibility' buttons +}; + class TransparenciesWindow : public Window { - enum TransparencyToolbarWidgets{ - TTW_WIDGET_CLOSEBOX, ///< Closebox - TTW_WIDGET_CAPTION, ///< Titlebar caption - TTW_WIDGET_STICKYBOX, ///< Stickybox - TTW_WIDGET_SIGNS, ///< Make signs background transparent - TTW_WIDGET_TREES, ///< Make trees transparent - TTW_WIDGET_HOUSES, ///< Make houses transparent - TTW_WIDGET_INDUSTRIES, ///< Make Industries transparent - TTW_WIDGET_BUILDINGS, ///< Make company buildings and structures transparent - TTW_WIDGET_BRIDGES, ///< Make bridges transparent - TTW_WIDGET_STRUCTURES, ///< Make unmovable structures transparent - TTW_WIDGET_CATENARY, ///< Make catenary transparent - TTW_WIDGET_LOADING, ///< Make loading indicators transparent - TTW_WIDGET_END, ///< End of toggle buttons - - /* Panel with buttons for invisibility */ - TTW_BUTTONS = 12, ///< Panel with 'invisibility' buttons - }; - public: TransparenciesWindow(const WindowDesc *desc, int window_number) : Window(desc, window_number) { |