diff options
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 |