diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-08 22:31:38 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-08 22:31:38 +0100 |
commit | bc5c031e43eff506c925682349dd2a52b89d6565 (patch) | |
tree | 6c429dfa2386fcde5e1e9b8f8994dc8bd77b0b2f /src/gui/setup_video.h | |
parent | ed39c71b2b6b47931f352ca07b49f631d6bf713a (diff) | |
download | mana-bc5c031e43eff506c925682349dd2a52b89d6565.tar.gz mana-bc5c031e43eff506c925682349dd2a52b89d6565.tar.bz2 mana-bc5c031e43eff506c925682349dd2a52b89d6565.tar.xz mana-bc5c031e43eff506c925682349dd2a52b89d6565.zip |
Delete models explicitly rather than relying on booleans
It is more clear in the end. Also fixed deleting of the mode list model.
Diffstat (limited to 'src/gui/setup_video.h')
-rw-r--r-- | src/gui/setup_video.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/setup_video.h b/src/gui/setup_video.h index f65b78ff..e3bd62b1 100644 --- a/src/gui/setup_video.h +++ b/src/gui/setup_video.h @@ -30,11 +30,15 @@ #include <guichan/actionlistener.hpp> #include <guichan/keylistener.hpp> +class ModeListModel; +class FontSizeChoiceListModel; + class Setup_Video : public SetupTab, public gcn::ActionListener, public gcn::KeyListener { public: Setup_Video(); + ~Setup_Video(); void apply(); void cancel(); @@ -62,7 +66,8 @@ class Setup_Video : public SetupTab, public gcn::ActionListener, int mFps; Being::Speech mSpeechMode; - class ModeListModel *mModeListModel; + ModeListModel *mModeListModel; + FontSizeChoiceListModel *mFontSizeListModel; gcn::Label *speechLabel; gcn::Label *alphaLabel; @@ -99,7 +104,7 @@ class Setup_Video : public SetupTab, public gcn::ActionListener, int mParticleDetail; gcn::Slider *mParticleDetailSlider; gcn::Label *mParticleDetailField; - + int mFontSize; gcn::DropDown *mFontSizeDropDown; }; |