diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-02 19:07:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-02 19:07:14 +0000 |
commit | 43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0 (patch) | |
tree | 1a497ed7219d0450a0b33baf6a20d4b48f6b5404 /src/gui/window.h | |
parent | e89ecd460dd2aa14aa7fd01292628fb74cb34692 (diff) | |
download | mana-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.tar.gz mana-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.tar.bz2 mana-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.tar.xz mana-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.zip |
Added ConfigListener class to allow listening for changes to config options,
and added a GUI opacity slider to the setup window that utilizes this.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index 126fe2f4..972c58cd 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -29,13 +29,14 @@ #include "windowcontainer.h" #include "../resources/image.h" #include "../graphics.h" +#include "../configuration.h" /** * A window. This window can be dragged around and has a title bar. * * \ingroup GUI */ -class Window : public gcn::Window +class Window : public gcn::Window, public ConfigListener { protected: gcn::Container *chrome; /**< Contained container */ @@ -134,6 +135,11 @@ class Window : public gcn::Window * dragged outside of the screen. */ void mouseMotion(int mx, int my); + + /** + * Called when an config option changes. + */ + void optionChanged(const std::string &name); }; #endif |