summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-12 17:51:50 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-12 17:51:50 +0000
commit812e679c9befbfe98cc311723b8296df0384515e (patch)
treefe349e783efc0ee70ab60bcce866bdc4f9b67752 /src/gui/setup.h
parent197b684831c9701635fd140bbb06a6c2b3f0fcc7 (diff)
downloadmana-client-812e679c9befbfe98cc311723b8296df0384515e.tar.gz
mana-client-812e679c9befbfe98cc311723b8296df0384515e.tar.bz2
mana-client-812e679c9befbfe98cc311723b8296df0384515e.tar.xz
mana-client-812e679c9befbfe98cc311723b8296df0384515e.zip
Created setup class and changed to use guichan
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r--src/gui/setup.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/gui/setup.h b/src/gui/setup.h
index 35700afb..1d8b859f 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -6,9 +6,33 @@
#ifndef tmw_included_setup_h
#define tmw_included_setup_h
-void init_setup();
-void update_setup();
+#include <allegro.h>
+#ifdef WIN32
+#include <winallegro.h>
+#endif
+#include "gui.h"
+#include "../graphic/graphic.h"
+
+class Setup {
+ public:
+ Setup();
+ ~Setup();
+ void toggleVisible(bool toggle);
+
+ private:
+ bool visible;
+ /* Dialog parts */
+ gcn::Container *setupDialog;
+ gcn::Label *displayLabel;
+ gcn::Button *applyButton;
+ gcn::Button *cancelButton;
+};
-extern bool show_player_setup;
+/* The action listener for setup dialog */
+class SetupActionListener : public gcn::ActionListener
+{
+ public:
+ void action(const std::string& eventId);
+};
#endif