summaryrefslogtreecommitdiff
path: root/src/gui/setup.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-06 11:44:26 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-06 11:44:26 +0000
commit16d1701920597d0a9636e30d57ebf399395233d9 (patch)
tree4ac0bab254d75db4bf31e5bbf9ba7af8a20ca12a /src/gui/setup.h
parentbee1e255ef9851b2d530064f156652c7874b48b1 (diff)
downloadmana-client-16d1701920597d0a9636e30d57ebf399395233d9.tar.gz
mana-client-16d1701920597d0a9636e30d57ebf399395233d9.tar.bz2
mana-client-16d1701920597d0a9636e30d57ebf399395233d9.tar.xz
mana-client-16d1701920597d0a9636e30d57ebf399395233d9.zip
Mostly commenting and indenting changes for setup dialog.
Diffstat (limited to 'src/gui/setup.h')
-rw-r--r--src/gui/setup.h97
1 files changed, 56 insertions, 41 deletions
diff --git a/src/gui/setup.h b/src/gui/setup.h
index d95e1e42..7cb6c120 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -25,55 +25,70 @@
#define tmw_included_setup_h
#include "gui.h"
-#include "button.h"
-#include "checkbox.h"
-#include "scrollarea.h"
-#include "listbox.h"
-#include "radiobutton.h"
#include "../graphic/graphic.h"
-#include <allegro.h>
-#ifdef WIN32
-#include <winalleg.h>
-#endif
-
#include "../sound/sound.h"
+#include <allegro.h>
-/*
- * The list model for modes list
+/**
+ * The list model for mode list.
+ *
+ * \ingroup GUI
*/
-class ModesListModel : public gcn::ListModel {
- public:
- int getNumberOfElements();
- std::string getElementAt(int i);
+class ModeListModel : public gcn::ListModel {
+ public:
+ /**
+ * Returns the number of elements in container.
+ */
+ int getNumberOfElements();
+
+ /**
+ * Returns element from container.
+ */
+ std::string getElementAt(int i);
};
-/*
- * Setup dialog window
+/**
+ * The setup dialog.
+ *
+ * \ingroup GUI
*/
class Setup : public Window, public gcn::ActionListener {
- private:
- /* Dialog parts */
- ModesListModel *modesListModel;
- gcn::Label *displayLabel;
- CheckBox *fsCheckBox;
- gcn::Label *soundLabel;
- CheckBox *soundCheckBox;
- RadioButton *disabledRadio;
- ScrollArea *scrollArea;
- ListBox *modesList;
- Button *applyButton;
- Button *cancelButton;
-
- /* Setup dialog */
- static Setup *ptr;
-
- /* Methods */
- Setup(gcn::Container *parent);
- virtual ~Setup();
-
- public:
- void action(const std::string& eventId);
- static Setup * create_setup();
+ private:
+ // Dialog parts
+ ModeListModel *modeListModel;
+ gcn::Label *displayLabel;
+ gcn::CheckBox *fsCheckBox;
+ gcn::Label *soundLabel;
+ gcn::CheckBox *soundCheckBox;
+ gcn::RadioButton *disabledRadio;
+ gcn::ScrollArea *scrollArea;
+ gcn::ListBox *modeList;
+ gcn::Button *applyButton;
+ gcn::Button *cancelButton;
+
+ // Setup dialog
+ static Setup *ptr;
+
+ /**
+ * Constructor.
+ */
+ Setup(gcn::Container *parent);
+
+ /**
+ * Destructor.
+ */
+ virtual ~Setup();
+
+ public:
+ /**
+ * Event handling method.
+ */
+ void action(const std::string& eventId);
+
+ /**
+ * Static method for creating singleton object.
+ */
+ static Setup *create_setup();
};
#endif