summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-12 21:56:26 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-13 01:07:02 +0200
commiteb201e566677f5ae55d1c443aa4254b99cec9e3e (patch)
treed88bb3a1efb486b276a7c1929986dd223e0ba69d /src/gui/widgets/itemcontainer.h
parentbb030b5e646c0cd3fd973a412d0b875049e8e98e (diff)
downloadmanaplus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.tar.gz
manaplus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.tar.bz2
manaplus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.tar.xz
manaplus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.zip
Add inventory sorting.
Diffstat (limited to 'src/gui/widgets/itemcontainer.h')
-rw-r--r--src/gui/widgets/itemcontainer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h
index 9ce819534..003187859 100644
--- a/src/gui/widgets/itemcontainer.h
+++ b/src/gui/widgets/itemcontainer.h
@@ -28,6 +28,7 @@
#include <guichan/widgetlistener.hpp>
#include <list>
+#include <algorithm>
#ifdef __GNUC__
#define _UNUSED_ __attribute__ ((unused))
@@ -121,6 +122,8 @@ class ItemContainer : public gcn::Widget,
void setFilter (int tag);
+ void setSortType (int sortType);
+
private:
enum Direction
{
@@ -188,6 +191,7 @@ class ItemContainer : public gcn::Widget,
bool mDescItems;
int mDragPosX, mDragPosY;
int mTag;
+ int mSortType;
ItemPopup *mItemPopup;
int *mShowMatrix;