diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-08 01:33:53 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-08 01:33:53 +0000 |
commit | ee416a5f3de03a689247a290077e7fdf451e1a23 (patch) | |
tree | f456df99f954919ac7a425606df51f010aa4ef2d /src/gui/skill.h | |
parent | 4070dda1560bc729c3e272f0a5c03d77391e2661 (diff) | |
download | mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.gz mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.bz2 mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.xz mana-ee416a5f3de03a689247a290077e7fdf451e1a23.zip |
Well improved window container and window widgets a bit, and made a start
on support for modal dialogs. Still some issues to work out. Tell me if you
experience something unsettling.
Diffstat (limited to 'src/gui/skill.h')
-rw-r--r-- | src/gui/skill.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/gui/skill.h b/src/gui/skill.h index 78f48e30..0b0f737b 100644 --- a/src/gui/skill.h +++ b/src/gui/skill.h @@ -25,7 +25,6 @@ #define _TMW_SKILL_H #include <allegro.h> -#include "button.h" #include "../main.h" struct SKILL { @@ -40,9 +39,18 @@ struct SKILL { */ class SkillListModel : public gcn::ListModel { - std::vector<SKILL*> skillList; + private: + std::vector<SKILL*> skillList; + public: + /** + * Constructor. + */ SkillListModel(); + + /** + * Destructor. + */ virtual ~SkillListModel(); int getNumberOfElements(); @@ -66,11 +74,18 @@ class SkillDialog : public Window, public gcn::ActionListener SkillListModel *skills; gcn::Label *pointsLabel; - Button *incButton; - Button *closeButton; + gcn::Button *incButton; + gcn::Button *closeButton; public: - SkillDialog(gcn::Container *); + /** + * Constructor. + */ + SkillDialog(); + + /** + * Destructor. + */ ~SkillDialog(); void action(const std::string&); |