diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-12 21:56:26 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-13 01:07:02 +0200 |
commit | eb201e566677f5ae55d1c443aa4254b99cec9e3e (patch) | |
tree | d88bb3a1efb486b276a7c1929986dd223e0ba69d /src/gui/widgets/itemcontainer.h | |
parent | bb030b5e646c0cd3fd973a412d0b875049e8e98e (diff) | |
download | plus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.tar.gz plus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.tar.bz2 plus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.tar.xz plus-eb201e566677f5ae55d1c443aa4254b99cec9e3e.zip |
Add inventory sorting.
Diffstat (limited to 'src/gui/widgets/itemcontainer.h')
-rw-r--r-- | src/gui/widgets/itemcontainer.h | 4 |
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; |