Adding settings DAD type
parent
1f9b8f59af
commit
442bbfed34
|
|
@ -75,7 +75,8 @@ enum EDragAndDropType
|
|||
DAD_MESH = 15,
|
||||
DAD_WIDGET = 16,
|
||||
DAD_PERSON = 17,
|
||||
DAD_COUNT = 18, // number of types in this enum
|
||||
DAD_SETTINGS = 18,
|
||||
DAD_COUNT = 19, // number of types in this enum
|
||||
};
|
||||
|
||||
// Reasons for drags to be denied.
|
||||
|
|
|
|||
|
|
@ -4307,6 +4307,7 @@ BOOL LLFolderBridge::dragOrDrop(MASK mask, BOOL drop,
|
|||
case DAD_ANIMATION:
|
||||
case DAD_GESTURE:
|
||||
case DAD_MESH:
|
||||
case DAD_SETTINGS:
|
||||
accept = dragItemIntoFolder(inv_item, drop, tooltip_msg);
|
||||
break;
|
||||
case DAD_LINK:
|
||||
|
|
@ -5812,6 +5813,7 @@ BOOL LLCallingCardBridge::dragOrDrop(MASK mask, BOOL drop,
|
|||
case DAD_ANIMATION:
|
||||
case DAD_GESTURE:
|
||||
case DAD_MESH:
|
||||
case DAD_SETTINGS:
|
||||
{
|
||||
LLInventoryItem* inv_item = (LLInventoryItem*)cargo_data;
|
||||
const LLPermissions& perm = inv_item->getPermissions();
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ BOOL LLGroupDropTarget::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
|
|||
case DAD_GESTURE:
|
||||
case DAD_CALLINGCARD:
|
||||
case DAD_MESH:
|
||||
case DAD_SETTINGS:
|
||||
{
|
||||
LLViewerInventoryItem* inv_item = (LLViewerInventoryItem*)cargo_data;
|
||||
if(gInventory.getItem(inv_item->getUUID())
|
||||
|
|
|
|||
|
|
@ -853,6 +853,7 @@ BOOL LLTaskCategoryBridge::dragOrDrop(MASK mask, BOOL drop,
|
|||
case DAD_GESTURE:
|
||||
case DAD_CALLINGCARD:
|
||||
case DAD_MESH:
|
||||
case DAD_SETTINGS:
|
||||
accept = LLToolDragAndDrop::isInventoryDropAcceptable(object, (LLViewerInventoryItem*)cargo_data);
|
||||
if(accept && drop)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -270,7 +270,8 @@ LLToolDragAndDrop::LLDragAndDropDictionary::LLDragAndDropDictionary()
|
|||
addEntry(DAD_GESTURE, new DragAndDropEntry(&LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dActivateGesture, &LLToolDragAndDrop::dad3dGiveInventory, &LLToolDragAndDrop::dad3dUpdateInventory, &LLToolDragAndDrop::dad3dNULL));
|
||||
addEntry(DAD_LINK, new DragAndDropEntry(&LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dNULL));
|
||||
addEntry(DAD_MESH, new DragAndDropEntry(&LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dGiveInventory, &LLToolDragAndDrop::dad3dMeshObject, &LLToolDragAndDrop::dad3dNULL));
|
||||
// TODO: animation on self could play it? edit it?
|
||||
addEntry(DAD_SETTINGS, new DragAndDropEntry(&LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dNULL, &LLToolDragAndDrop::dad3dGiveInventory, &LLToolDragAndDrop::dad3dUpdateInventory, &LLToolDragAndDrop::dad3dNULL));
|
||||
// TODO: animation on self could play it? edit it?
|
||||
// TODO: gesture on self could play it? edit it?
|
||||
};
|
||||
|
||||
|
|
@ -1626,6 +1627,7 @@ bool LLToolDragAndDrop::handleGiveDragAndDrop(LLUUID dest_agent, LLUUID session_
|
|||
case DAD_CALLINGCARD:
|
||||
case DAD_MESH:
|
||||
case DAD_CATEGORY:
|
||||
case DAD_SETTINGS:
|
||||
{
|
||||
LLInventoryObject* inv_obj = (LLInventoryObject*)cargo_data;
|
||||
if(gInventory.getCategory(inv_obj->getUUID()) || (gInventory.getItem(inv_obj->getUUID())
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ LLViewerAssetDictionary::LLViewerAssetDictionary()
|
|||
addEntry(LLViewerAssetType::AT_PERSON, new ViewerAssetEntry(DAD_PERSON));
|
||||
|
||||
addEntry(LLViewerAssetType::AT_NONE, new ViewerAssetEntry(DAD_NONE));
|
||||
addEntry(LLViewerAssetType::AT_SETTINGS, new ViewerAssetEntry(DAD_SETTINGS));
|
||||
};
|
||||
|
||||
EDragAndDropType LLViewerAssetType::lookupDragAndDropType(EType asset_type)
|
||||
|
|
|
|||
|
|
@ -868,6 +868,7 @@ BOOL LLViewerTextEditor::handleDragAndDrop(S32 x, S32 y, MASK mask,
|
|||
case DAD_ANIMATION:
|
||||
case DAD_GESTURE:
|
||||
case DAD_MESH:
|
||||
case DAD_SETTINGS:
|
||||
{
|
||||
LLInventoryItem *item = (LLInventoryItem *)cargo_data;
|
||||
if( item && allowsEmbeddedItems() )
|
||||
|
|
|
|||
Loading…
Reference in New Issue