diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2004-12-12 17:51:50 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2004-12-12 17:51:50 +0000 |
commit | 812e679c9befbfe98cc311723b8296df0384515e (patch) | |
tree | fe349e783efc0ee70ab60bcce866bdc4f9b67752 /src/gui/setup.h | |
parent | 197b684831c9701635fd140bbb06a6c2b3f0fcc7 (diff) | |
download | mana-812e679c9befbfe98cc311723b8296df0384515e.tar.gz mana-812e679c9befbfe98cc311723b8296df0384515e.tar.bz2 mana-812e679c9befbfe98cc311723b8296df0384515e.tar.xz mana-812e679c9befbfe98cc311723b8296df0384515e.zip |
Created setup class and changed to use guichan
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r-- | src/gui/setup.h | 30 |
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 |