summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
commite5f795ad9952b8bba6993ee3e324b22a0f104816 (patch)
tree1602ac0f74865135eae5acf935b0a285a8e918c2 /src/gui/setup.h
parent7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff)
downloadmana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip
Made all class members named like mClassMember.
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r--src/gui/setup.h69
1 files changed, 16 insertions, 53 deletions
diff --git a/src/gui/setup.h b/src/gui/setup.h
index 91f181d5..fa870489 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -34,38 +34,6 @@
#include "../guichanfwd.h"
/**
- * The list model for mode list.
- *
- * \ingroup Interface
- */
-class ModeListModel : public gcn::ListModel
-{
- public:
- /**
- * Constructor.
- */
- ModeListModel();
-
- /**
- * Destructor.
- */
- virtual ~ModeListModel();
-
- /**
- * Returns the number of elements in container.
- */
- int getNumberOfElements();
-
- /**
- * Returns element from container.
- */
- std::string getElementAt(int i);
-
- private:
- std::vector<std::string> videoModes;
-};
-
-/**
* The setup dialog.
*
* \ingroup GUI
@@ -90,31 +58,26 @@ class Setup : public Window, public gcn::ActionListener
action(const std::string& eventId);
private:
- ModeListModel *modeListModel;
+ class ModeListModel *mModeListModel;
// Dialog widgets
- gcn::ListBox *modeList;
- gcn::ScrollArea *scrollArea;
- gcn::Label *alphaLabel;
- gcn::Label *sfxLabel, *musicLabel;
- gcn::Label *calibrateLabel;
- gcn::CheckBox *fsCheckBox;
- gcn::CheckBox *openGLCheckBox;
- gcn::CheckBox *soundCheckBox;
- gcn::CheckBox *customCursorCheckBox;
- gcn::Slider *alphaSlider;
- gcn::Slider *sfxSlider, *musicSlider;
- gcn::Button *calibrateButton;
- gcn::Button *applyButton, *cancelButton;
- gcn::Button *resetWinsToDefault;
+ 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 musicVolume, sfxVolume;
- double opacity;
- bool fullScreenEnabled;
- bool openGLEnabled;
- bool customCursorEnabled;
- bool soundEnabled;
+ int mMusicVolume, mSfxVolume;
+ double mOpacity;
+ bool mFullScreenEnabled;
+ bool mOpenGLEnabled;
+ bool mCustomCursorEnabled;
+ bool mSoundEnabled;
};
#endif