Public Member Functions | |
LLDropTarget (const std::string &name, const LLRect &rect, const LLUUID &agent_id) | |
~LLDropTarget () | |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
void | doDrop (EDragAndDropType cargo_type, void *cargo_data) |
virtual BOOL | handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg) |
void | setAgentID (const LLUUID &agent_id) |
Protected Attributes | |
LLUUID | mAgentID |
Definition at line 101 of file llpanelavatar.cpp.
LLDropTarget::LLDropTarget | ( | const std::string & | name, | |
const LLRect & | rect, | |||
const LLUUID & | agent_id | |||
) |
Definition at line 125 of file llpanelavatar.cpp.
LLDropTarget::~LLDropTarget | ( | ) |
Definition at line 132 of file llpanelavatar.cpp.
void LLDropTarget::doDrop | ( | EDragAndDropType | cargo_type, | |
void * | cargo_data | |||
) |
LLString LLDropTarget::getWidgetTag | ( | ) | const [virtual] |
EWidgetType LLDropTarget::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 136 of file llpanelavatar.cpp.
References WIDGET_TYPE_DROP_TARGET.
BOOL LLDropTarget::handleDragAndDrop | ( | S32 | x, | |
S32 | y, | |||
MASK | mask, | |||
BOOL | drop, | |||
EDragAndDropType | cargo_type, | |||
void * | cargo_data, | |||
EAcceptance * | accept, | |||
LLString & | tooltip_msg | |||
) | [virtual] |
Reimplemented from LLView.
Definition at line 151 of file llpanelavatar.cpp.
References ACCEPT_NO, ACCEPT_YES_COPY_SINGLE, DAD_ANIMATION, DAD_BODYPART, DAD_CALLINGCARD, DAD_CATEGORY, DAD_CLOTHING, DAD_GESTURE, DAD_LANDMARK, DAD_NOTECARD, DAD_OBJECT, DAD_SCRIPT, DAD_SOUND, DAD_TEXTURE, FALSE, LLInventoryModel::getCategory(), LLInventoryModel::getItem(), LLView::getParent(), LLInventoryObject::getUUID(), gInventory, LLToolDragAndDrop::giveInventory(), LLToolDragAndDrop::giveInventoryCategory(), LLToolDragAndDrop::isInventoryGiveAcceptable(), mAgentID, and TRUE.
LLUUID LLDropTarget::mAgentID [protected] |
Definition at line 121 of file llpanelavatar.cpp.
Referenced by handleDragAndDrop(), and setAgentID().