summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-02 19:07:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-02 19:07:14 +0000
commit43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0 (patch)
tree1a497ed7219d0450a0b33baf6a20d4b48f6b5404 /src/gui/window.h
parente89ecd460dd2aa14aa7fd01292628fb74cb34692 (diff)
downloadmana-client-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.tar.gz
mana-client-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.tar.bz2
mana-client-43d51d4a7c00bb425d004acf7eeb5e4aa4e969b0.tar.xz
mana-client-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.h8
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