summaryrefslogtreecommitdiff
path: root/src/gui/newskill.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
commitaa6a0b7b75bc05e51805b6f377ca6278f1f58436 (patch)
tree718c211089348a3b67641d16821a98ae88de0285 /src/gui/newskill.h
parentd0333c99e0ff4c5510875bf8993056875d6c93af (diff)
downloadmana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.gz
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.bz2
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.xz
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.zip
Added automatic widget cleanup to the window class.
Diffstat (limited to 'src/gui/newskill.h')
-rw-r--r--src/gui/newskill.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/gui/newskill.h b/src/gui/newskill.h
index afcd0eec..58948729 100644
--- a/src/gui/newskill.h
+++ b/src/gui/newskill.h
@@ -48,7 +48,18 @@ struct nSkill {
*/
class NewSkillDialog : public Window, public gcn::ActionListener
{
+ public:
+ /**
+ * Constructor.
+ */
+ NewSkillDialog();
+
+ // action listener
+ void action(const std::string&);
+
private:
+ void resetNSD(); // updates the values in the dialog box
+
// members
int startPoint; // starting point of skill listing
ProgressBar *skillbar[N_SKILL_CAT_SIZE];
@@ -57,22 +68,6 @@ class NewSkillDialog : public Window, public gcn::ActionListener
gcn::Button *catButton[N_SKILL_CAT];
gcn::Button *closeButton;
nSkill playerSkill[N_SKILL]; // pointer to an array of skill values
-
- void resetNSD(); // updates the values in the dialog box
-
- public:
- /**
- * Constructor.
- */
- NewSkillDialog();
-
- /**
- * Destructor.
- */
- ~NewSkillDialog();
-
- // action listener
- void action(const std::string&);
};
#endif