summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-09 23:58:34 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-09 23:58:34 +0200
commit9b680f95087290315c24a04535f1626acd8ec9a7 (patch)
treefbfd4e40e8eeaf0c077266a95e701e01688279e2 /src/gui/itempopup.h
parent4893acb9cdbd83349f88668ca932f7fddd3e8288 (diff)
downloadmana-9b680f95087290315c24a04535f1626acd8ec9a7.tar.gz
mana-9b680f95087290315c24a04535f1626acd8ec9a7.tar.bz2
mana-9b680f95087290315c24a04535f1626acd8ec9a7.tar.xz
mana-9b680f95087290315c24a04535f1626acd8ec9a7.zip
Actually use ItemType instead of short
Plus some random cleanups.
Diffstat (limited to 'src/gui/itempopup.h')
-rw-r--r--src/gui/itempopup.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/itempopup.h b/src/gui/itempopup.h
index 8f110bc3..c08b188a 100644
--- a/src/gui/itempopup.h
+++ b/src/gui/itempopup.h
@@ -25,7 +25,8 @@
#include "gui/widgets/popup.h"
-class ItemInfo;
+#include "resources/iteminfo.h"
+
class ScrollArea;
class TextBox;
@@ -50,7 +51,7 @@ class ItemPopup : public Popup
/**
* Gets the number of rows that the item popup currently has.
*/
- unsigned int getNumRows();
+ unsigned int getNumRows() const;
/**
* Gets the name of the currently stored item in this popup.
@@ -72,12 +73,12 @@ class ItemPopup : public Popup
TextBox *mItemDesc;
TextBox *mItemEffect;
TextBox *mItemWeight;
- short mItemType;
+ ItemType mItemType;
ScrollArea *mItemDescScroll;
ScrollArea *mItemEffectScroll;
ScrollArea *mItemWeightScroll;
- static gcn::Color getColor(short type);
+ static gcn::Color getColor(ItemType type);
};
#endif // ITEMPOPUP_H