summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-17 23:07:29 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-17 23:07:29 +0300
commit1ec82e44a0ec44a3d342a68b42b318e4413410dc (patch)
treef3010c20fd90440c81921c612267d8a58e4f1ee3 /src/gui/widgets/itemcontainer.h
parent1f66ae673801e76f3574944628a7980b9bfbabda (diff)
downloadManaVerse-1ec82e44a0ec44a3d342a68b42b318e4413410dc.tar.gz
ManaVerse-1ec82e44a0ec44a3d342a68b42b318e4413410dc.tar.bz2
ManaVerse-1ec82e44a0ec44a3d342a68b42b318e4413410dc.tar.xz
ManaVerse-1ec82e44a0ec44a3d342a68b42b318e4413410dc.zip
Fix double click support in gui class.
Add double click support to inventory and storage windows.
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 ae6e4a35d..0ad95fd1b 100644
--- a/src/gui/widgets/itemcontainer.h
+++ b/src/gui/widgets/itemcontainer.h
@@ -126,6 +126,9 @@ class ItemContainer : public gcn::Widget,
void updateMatrix();
+ bool getClickCount()
+ { return mClicks; }
+
private:
enum Direction
{
@@ -197,6 +200,7 @@ class ItemContainer : public gcn::Widget,
ItemPopup *mItemPopup;
int *mShowMatrix;
+ int mClicks;
typedef std::list<gcn::SelectionListener*> SelectionListenerList;
typedef SelectionListenerList::iterator SelectionListenerIterator;