From d4b405c509b6f65df32f13df0d4be9b77e3c8fac Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Wed, 22 Dec 2004 10:46:24 +0000 Subject: Setup has create_setup() method that creates only one instance. --- src/gui/setup.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/gui/setup.h') diff --git a/src/gui/setup.h b/src/gui/setup.h index d94069a9..b6b83717 100644 --- a/src/gui/setup.h +++ b/src/gui/setup.h @@ -19,15 +19,17 @@ class Setup : public Window, public gcn::ActionListener { gcn::Label *displayLabel; gcn::Button *applyButton; gcn::Button *cancelButton; + + /* Setup dialog */ + static Setup *ptr; - public: + /* Methods */ Setup(gcn::Container *parent); - ~Setup(); + virtual ~Setup(); + public: void action(const std::string& eventId); - + static Setup * create_setup(); }; -void create_setup(); - #endif -- cgit v1.2.3-70-g09d2