From 812e679c9befbfe98cc311723b8296df0384515e Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Sun, 12 Dec 2004 17:51:50 +0000 Subject: Created setup class and changed to use guichan --- src/gui/setup.h | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'src/gui/setup.h') 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 +#ifdef WIN32 +#include +#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 -- cgit v1.2.3-70-g09d2