summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 00:48:10 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 00:48:10 +0000
commit59399a274c694e9dc467149828b57f47794eeaeb (patch)
treec0cf39e6ebc93093c8e0746ce713b354aa7889c7 /src/gui/setup.h
parentd5e9f527c4113dfa196448d5f8ca9e63774ab691 (diff)
downloadmana-59399a274c694e9dc467149828b57f47794eeaeb.tar.gz
mana-59399a274c694e9dc467149828b57f47794eeaeb.tar.bz2
mana-59399a274c694e9dc467149828b57f47794eeaeb.tar.xz
mana-59399a274c694e9dc467149828b57f47794eeaeb.zip
Splitted setup window into manageable pieces according to their tabs in the window. Fixed some memory leaks along the way. Also fixed two settings not being stored on "apply".
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r--src/gui/setup.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/src/gui/setup.h b/src/gui/setup.h
index fa870489..611633c5 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -24,14 +24,13 @@
#ifndef _TMW_SETUP_H
#define _TMW_SETUP_H
-#include <vector>
+#include <list>
#include <guichan/actionlistener.hpp>
-#include <guichan/listmodel.hpp>
#include "window.h"
-#include "../guichanfwd.h"
+class SetupTab;
/**
* The setup dialog.
@@ -58,26 +57,7 @@ class Setup : public Window, public gcn::ActionListener
action(const std::string& eventId);
private:
- class ModeListModel *mModeListModel;
-
- // Dialog widgets
- gcn::ListBox *mModeList;
- gcn::CheckBox *mFsCheckBox;
- gcn::CheckBox *mOpenGLCheckBox;
- gcn::CheckBox *mSoundCheckBox;
- gcn::CheckBox *mCustomCursorCheckBox;
- gcn::Slider *mAlphaSlider;
- gcn::Slider *mSfxSlider, *mMusicSlider;
- gcn::Label *mCalibrateLabel;
- gcn::Button *mCalibrateButton;
-
- // Variables that keeps old settings until the user "apply" them...
- int mMusicVolume, mSfxVolume;
- double mOpacity;
- bool mFullScreenEnabled;
- bool mOpenGLEnabled;
- bool mCustomCursorEnabled;
- bool mSoundEnabled;
+ std::list<SetupTab*> mTabs;
};
#endif