What a drag
This commit is contained in:
@@ -524,6 +524,7 @@ void LLToolDragAndDrop::beginMultiDrag(
|
||||
|
||||
void LLToolDragAndDrop::endDrag()
|
||||
{
|
||||
mEndDragSignal();
|
||||
LLSelectMgr::getInstance()->unhighlightAll();
|
||||
setMouseCapture(FALSE);
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ class LLPickInfo;
|
||||
class LLToolDragAndDrop : public LLTool, public LLSingleton<LLToolDragAndDrop>
|
||||
{
|
||||
public:
|
||||
typedef boost::signals2::signal<void ()> enddrag_signal_t;
|
||||
LLToolDragAndDrop();
|
||||
|
||||
// overridden from LLTool
|
||||
@@ -86,6 +87,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); }
|
||||
|
||||
uuid_vec_t::size_type getCargoIDsCount() const { return mCargoIDs.size(); }
|
||||
static S32 getOperationId() { return sOperationId; }
|
||||
|
||||
@@ -136,6 +139,8 @@ protected:
|
||||
S32 mCurItemIndex;
|
||||
std::string mToolTipMsg;
|
||||
|
||||
enddrag_signal_t mEndDragSignal;
|
||||
|
||||
protected:
|
||||
// 3d drop functions. these call down into the static functions
|
||||
// named drop<ThingToDrop> if drop is TRUE and permissions allow
|
||||
|
||||
Reference in New Issue
Block a user