diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-26 00:27:05 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-26 00:32:19 +0100 |
commit | dfcc6397848d4597b386b688f689352de6c19ae2 (patch) | |
tree | a6e8c9afd6a49ea96e4498080a96d3e06ecaebd7 /src/gui/skilldialog.h | |
parent | cd20fb3432498b8871401bdd65a143197e2a6538 (diff) | |
download | mana-dfcc6397848d4597b386b688f689352de6c19ae2.tar.gz mana-dfcc6397848d4597b386b688f689352de6c19ae2.tar.bz2 mana-dfcc6397848d4597b386b688f689352de6c19ae2.tar.xz mana-dfcc6397848d4597b386b688f689352de6c19ae2.zip |
Remove redundancy, fix variable names and other code cleanups
Diffstat (limited to 'src/gui/skilldialog.h')
-rw-r--r-- | src/gui/skilldialog.h | 62 |
1 files changed, 1 insertions, 61 deletions
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 3d010daa..64fd800a 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -35,61 +35,7 @@ class ProgressBar; class Icon; - -class Skill_Tab : public GCContainer, public gcn::ActionListener -{ - public: - /** - * The type of this skill tab - */ - const std::string type; - - /** - * Constructor - */ - Skill_Tab(const std::string &type); - - /** - * Update this tab - */ - void update(); - - /** - * Called when receiving actions from widget. - */ - void action(const gcn::ActionEvent &event) {} - - private: - /** - * Update the information of a skill at - * the given index - */ - void updateSkill(int index); - - /** - * Gets the number of skills in this particular - * type of tab. - */ - int getSkillNum(); - - /** - * Get the first enumeration of this skill tab's - * skill type. - */ - int getSkillBegin(); - - /** - * Get the icon associated with the given index - */ - Icon* getIcon(int index); - - std::vector<Icon *> mSkillIcons; - std::vector<gcn::Label *> mSkillNameLabels; - std::vector<gcn::Label *> mSkillLevelLabels; - std::vector<gcn::Label *> mSkillExpLabels; - std::vector<ProgressBar *> mSkillProgress; -}; - +class Skill_Tab; /** * The skill dialog. @@ -125,15 +71,9 @@ class SkillDialog : public Window, public gcn::ActionListener void draw(gcn::Graphics *g); private: - - std::list<Skill_Tab*> mTabs; - }; - - - extern SkillDialog *skillDialog; #endif |