summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-22 08:44:44 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-22 08:44:44 +0000
commit008704e45a250522c82cc8ba118945e97e5bf17a (patch)
treee08db90f8363319e5241ef0c5b16820ef3a20c9b /src/gui/setup.h
parenta4a67125dfce17e8307bba6d283ed13d4bf542e7 (diff)
downloadmana-008704e45a250522c82cc8ba118945e97e5bf17a.tar.gz
mana-008704e45a250522c82cc8ba118945e97e5bf17a.tar.bz2
mana-008704e45a250522c82cc8ba118945e97e5bf17a.tar.xz
mana-008704e45a250522c82cc8ba118945e97e5bf17a.zip
- setup gets only called from game.cpp
- setup class changed
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r--src/gui/setup.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/gui/setup.h b/src/gui/setup.h
index bb211997..d94069a9 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -13,26 +13,21 @@
#include <winalleg.h>
#endif
-class Setup {
- public:
- Setup();
- ~Setup();
- void toggleVisible(bool toggle);
-
+class Setup : public Window, public gcn::ActionListener {
private:
- bool visible;
/* Dialog parts */
- gcn::Container *setupDialog;
gcn::Label *displayLabel;
gcn::Button *applyButton;
gcn::Button *cancelButton;
-};
-
-/* The action listener for setup dialog */
-class SetupActionListener : public gcn::ActionListener
-{
+
public:
+ Setup(gcn::Container *parent);
+ ~Setup();
+
void action(const std::string& eventId);
+
};
+void create_setup();
+
#endif