summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-22 10:46:24 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-22 10:46:24 +0000
commitd4b405c509b6f65df32f13df0d4be9b77e3c8fac (patch)
treea07af50a6afe5e92af4322c945d8199b55ed2a3c /src/gui/setup.h
parentd5c18a1a368766805fba12bebd4ed7bac3a68b70 (diff)
downloadmana-client-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.tar.gz
mana-client-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.tar.bz2
mana-client-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.tar.xz
mana-client-d4b405c509b6f65df32f13df0d4be9b77e3c8fac.zip
Setup has create_setup() method that creates only one instance.
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r--src/gui/setup.h12
1 files changed, 7 insertions, 5 deletions
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