From 5662b7d9ad9eb6927df7ca83713d3b6108f59ddc Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 7 Jul 2009 11:23:14 -0600 Subject: Use tmw-skills.xml instead of hardcoding --- src/gui/skilldialog.h | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'src/gui/skilldialog.h') diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 56192273..fbd3c26d 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -29,10 +29,13 @@ #include #include +#include -class ProgressBar; -class Icon; -class SkillTab; +class ScrollArea; +class Tab; +class TabbedArea; + +struct SkillInfo; /** * The skill dialog. @@ -52,17 +55,26 @@ class SkillDialog : public Window, public gcn::ActionListener void action(const gcn::ActionEvent &event); /** - * Update the tabs in this dialog + * Called when the widget changes size. Used for adapting the size of + * the tabbed area. */ - void update(); + void widgetResized(const gcn::Event &event); + + void logic(); /** - * Draw this window. - */ - void draw(gcn::Graphics *g); + * Update the given skill's display + */ + std::string update(int id); + + void loadSkills(const std::string &file, bool fixed = true); private: - std::list mTabs; + void adjustTabSize(); + + Tab *mCurrentTab; + TabbedArea *mTabs; + std::map mSkills; }; extern SkillDialog *skillDialog; -- cgit v1.2.3-70-g09d2