From 2eb15d389f85e300cb124b990ebbf2663acaa637 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jul 2013 15:48:02 +0300 Subject: add support for drag and drop from/to shortcuts window. --- src/dragdrop.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/dragdrop.h') diff --git a/src/dragdrop.h b/src/dragdrop.h index 2405b151e..3c7167aaf 100644 --- a/src/dragdrop.h +++ b/src/dragdrop.h @@ -83,7 +83,7 @@ class DragDrop DragDropSource getSource() const { return mSource; } - void dragItem(Item *const item, + void dragItem(const Item *const item, const DragDropSource source, const int tag = 0) { @@ -111,7 +111,7 @@ class DragDrop } } - void dragCommand(TextCommand *const command, + void dragCommand(const TextCommand *const command, const DragDropSource source, const int tag = 0) { @@ -134,6 +134,7 @@ class DragDrop mTag = 0; return; } + mItem = command->getId(); } else { @@ -165,6 +166,7 @@ class DragDrop mItemImage = data->icon; if (mItemImage) mItemImage->incRef(); + mItem = info->id; mSource = source; mTag = tag; } @@ -224,6 +226,9 @@ class DragDrop int getTag() { return mTag; } + void setItem(const int item) + { mItem = item; } + private: int mItem; uint8_t mItemColor; -- cgit v1.2.3-60-g2f50