Add start of an asset text editor

This commit is contained in:
Hazim Gazov
2010-04-04 15:35:32 -03:00
parent a8e7d3f3d9
commit aa3c3277c3
8 changed files with 483 additions and 0 deletions

View File

@@ -87,6 +87,7 @@
#include "llselectmgr.h"
#include "llfloateropenobject.h"
#include "dofloaterhex.h"
#include "hgfloatertexteditor.h"
// Helpers
// bug in busy count inc/dec right now, logic is complex... do we really need it?
@@ -774,6 +775,13 @@ void LLItemBridge::performAction(LLFolderView* folder, LLInventoryModel* model,
if(item->getCreatorUUID() != gAgentID) return;
DOFloaterHex::show(mUUID);
}
else if("open text" == action)
{
LLInventoryItem* item = model->getItem(mUUID);
if(!item) return;
if(item->getCreatorUUID() != gAgentID) return;
HGFloaterTextEditor::show(mUUID);
}
else if ("copy_uuid" == action)
{
// Single item only