bool LLViewerTextEditor::onCopyToInvDialog(const LLSD& notification, const LLSD& response) { S32 option = LLNotificationsUtil::getSelectedOption(notification, response); if( 0 == option ) { LLUUID item_id = notification["payload"]["item_id"].asUUID(); llwchar wc = llwchar(notification["payload"]["item_wc"].asInteger()); LLInventoryItem* itemp = LLEmbeddedItems::getEmbeddedItem(wc); if (itemp) copyInventory(itemp); } return false; }
void LLViewerTextEditor::openEmbeddedNotecard( LLInventoryItem* item ) { //if (saved) //{ // An LLInventoryItem needs to be in an inventory to be opened. // This will give the item to the viewer's agent. // The callback will attempt to open it if its not already opened. copyInventory(item, gInventoryCallbacks.registerCB(mInventoryCallback)); //} //else //{ // LLNotecardCopyInfo *info = new LLNotecardCopyInfo(this, item); // gViewerWindow->alertXml("ConfirmNotecardSave", // LLViewerTextEditor::onNotecardDialog, (void*)info); //} }
void LLViewerTextEditor::openEmbeddedNotecard( LLInventoryItem* item, llwchar wc ) { copyInventory(item, gInventoryCallbacks.registerCB(mInventoryCallback)); }