diff options
Diffstat (limited to 'indra/newview/lltooldraganddrop.h')
-rw-r--r-- | indra/newview/lltooldraganddrop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lltooldraganddrop.h b/indra/newview/lltooldraganddrop.h index c9fef26b58..acf01869e7 100644 --- a/indra/newview/lltooldraganddrop.h +++ b/indra/newview/lltooldraganddrop.h @@ -51,6 +51,8 @@ class LLPickInfo; class LLToolDragAndDrop : public LLTool, public LLSingleton<LLToolDragAndDrop> { public: + typedef boost::signals2::signal<void ()> enddrag_signal_t; + LLToolDragAndDrop(); // overridden from LLTool @@ -87,6 +89,8 @@ public: const LLUUID& getObjectID() const { return mObjectID; } EAcceptance getLastAccept() { return mLastAccept; } + boost::signals2::connection setEndDragCallback( const enddrag_signal_t::slot_type& cb ) { return mEndDragSignal.connect(cb); } + protected: enum EDropTarget { @@ -131,6 +135,8 @@ protected: S32 mCurItemIndex; std::string mToolTipMsg; + enddrag_signal_t mEndDragSignal; + // array of pointers to functions that implement the logic to // dragging and dropping into the simulator. static dragOrDrop3dImpl sDragAndDrop3d[DAD_COUNT][DT_COUNT]; |