summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-08 17:32:26 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-08 17:37:52 -0600
commit6c68287a7a66ba6933bc4dbfe43f6c4761e683c1 (patch)
tree203960dfdebe15cffff9abd7089441ecbf1965cf /src/gui/skilldialog.h
parent8963ef3e6d0ede6a3e22687642bbc39c24f21dad (diff)
downloadMana-6c68287a7a66ba6933bc4dbfe43f6c4761e683c1.tar.gz
Mana-6c68287a7a66ba6933bc4dbfe43f6c4761e683c1.tar.bz2
Mana-6c68287a7a66ba6933bc4dbfe43f6c4761e683c1.tar.xz
Mana-6c68287a7a66ba6933bc4dbfe43f6c4761e683c1.zip
Have both builds use the same SkillDialog
Diffstat (limited to 'src/gui/skilldialog.h')
-rw-r--r--src/gui/skilldialog.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h
index fbd3c26d..4a3f4f56 100644
--- a/src/gui/skilldialog.h
+++ b/src/gui/skilldialog.h
@@ -31,6 +31,7 @@
#include <list>
#include <map>
+class Label;
class ScrollArea;
class Tab;
class TabbedArea;
@@ -67,14 +68,23 @@ class SkillDialog : public Window, public gcn::ActionListener
*/
std::string update(int id);
+ /**
+ * Update other parts of the display
+ */
+ void update();
+
void loadSkills(const std::string &file, bool fixed = true);
+ void setModifiable(int id, bool modifiable);
+
private:
void adjustTabSize();
+ typedef std::map<int, SkillInfo*> SkillMap;
+ SkillMap mSkills;
Tab *mCurrentTab;
TabbedArea *mTabs;
- std::map<int, SkillInfo*> mSkills;
+ Label *mPointsLabel;
};
extern SkillDialog *skillDialog;