LLLiveLSLEditor Class Reference

#include <llpreviewscript.h>

Inheritance diagram for LLLiveLSLEditor:

Inheritance graph
[legend]
Collaboration diagram for LLLiveLSLEditor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLLiveLSLEditor (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &object_id, const LLUUID &item_id)
 ~LLLiveLSLEditor ()
virtual void callbackLSLCompileSucceeded (const LLUUID &task_id, const LLUUID &item_id, bool is_script_running)
virtual void callbackLSLCompileFailed (const LLSD &compile_errors)
void open ()

Static Public Member Functions

static LLLiveLSLEditorshow (const LLUUID &item_id, const LLUUID &object_id)
static void hide (const LLUUID &item_id, const LLUUID &object_id)
static LLLiveLSLEditorfind (const LLUUID &item_id, const LLUUID &object_id)
static void processScriptRunningReply (LLMessageSystem *msg, void **)

Protected Member Functions

virtual BOOL canClose ()
void closeIfNeeded ()
virtual void draw ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual void loadAsset ()
void loadAsset (BOOL is_new)
void saveIfNeeded ()
void uploadAssetViaCaps (const std::string &url, const std::string &filename, const LLUUID &task_id, const LLUUID &item_id, BOOL is_running)
void uploadAssetLegacy (const std::string &filename, LLViewerObject *object, const LLTransactionID &tid, BOOL is_running)
void loadScriptText (const char *filename)
void loadScriptText (LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType type)

Static Protected Member Functions

static void onSearchReplace (void *userdata)
static void onLoad (void *userdata)
static void onSave (void *userdata, BOOL close_after_save)
static void onLoadComplete (LLVFS *vfs, const LLUUID &asset_uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)
static void onSaveTextComplete (const LLUUID &asset_uuid, void *user_data, S32 status, LLExtStat ext_status)
static void onSaveBytecodeComplete (const LLUUID &asset_uuid, void *user_data, S32 status, LLExtStat ext_status)
static void onRunningCheckboxClicked (LLUICtrl *, void *userdata)
static void onReset (void *userdata)
static void onErrorList (LLUICtrl *, void *user_data)
static void * createScriptEdPanel (void *userdata)

Protected Attributes

LLUUID mObjectID
LLUUID mItemID
BOOL mIsNew
LLScriptEdCoremScriptEd
LLCheckBoxCtrlmRunningCheckbox
BOOL mAskedForRunningInfo
BOOL mHaveRunningInfo
LLButtonmResetButton
LLPointer< LLViewerInventoryItemmItem
BOOL mCloseAfterSave
S32 mPendingUploads

Static Protected Attributes

static LLMap< LLUUID,
LLLiveLSLEditor * > 
sInstances


Detailed Description

Definition at line 202 of file llpreviewscript.h.


Constructor & Destructor Documentation

LLLiveLSLEditor::LLLiveLSLEditor ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID object_id,
const LLUUID item_id 
)

LLLiveLSLEditor::~LLLiveLSLEditor (  ) 

Definition at line 1647 of file llpreviewscript.cpp.

References mItemID, mObjectID, and LLMap< INDEX_TYPE, MAPPED_TYPE >::removeData().

Here is the call graph for this function:


Member Function Documentation

LLLiveLSLEditor * LLLiveLSLEditor::show ( const LLUUID item_id,
const LLUUID object_id 
) [static]

Definition at line 2330 of file llpreviewscript.cpp.

References NULL, and open().

Referenced by LLTaskLSLBridge::openItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::hide ( const LLUUID item_id,
const LLUUID object_id 
) [static]

Definition at line 2344 of file llpreviewscript.cpp.

References LLView::getParent(), and LLView::removeChild().

Referenced by LLTaskLSLBridge::removeItem().

Here is the call graph for this function:

Here is the caller graph for this function:

LLLiveLSLEditor * LLLiveLSLEditor::find ( const LLUUID item_id,
const LLUUID object_id 
) [static]

Definition at line 2358 of file llpreviewscript.cpp.

References LLMap< INDEX_TYPE, MAPPED_TYPE >::getIfThere(), and sInstances.

Referenced by LLUpdateTaskInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::processScriptRunningReply ( LLMessageSystem msg,
void **   
) [static]

Definition at line 2366 of file llpreviewscript.cpp.

References _PREHASH_ItemID, _PREHASH_ObjectID, _PREHASH_Running, _PREHASH_Script, LLMessageSystem::getBOOLFast(), LLView::getChild(), LLMessageSystem::getUUIDFast(), mHaveRunningInfo, LLCheckBoxCtrl::set(), and TRUE.

Referenced by register_viewer_callbacks().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::callbackLSLCompileSucceeded ( const LLUUID task_id,
const LLUUID item_id,
bool  is_script_running 
) [virtual]

Definition at line 1659 of file llpreviewscript.cpp.

References LLScrollListCtrl::addCommentText(), closeIfNeeded(), lldebugs, llendl, LLScriptEdCore::mErrorList, and mScriptEd.

Referenced by LLUpdateTaskInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::callbackLSLCompileFailed ( const LLSD compile_errors  )  [virtual]

Definition at line 1670 of file llpreviewscript.cpp.

References LLScrollListCtrl::addElement(), LLSD::asString(), LLSD::beginArray(), closeIfNeeded(), LLSD::endArray(), lldebugs, llendl, LLScriptEdCore::mErrorList, mScriptEd, and LLScriptEdCore::selectFirstError().

Referenced by LLUpdateTaskInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::open ( void   )  [virtual]

Reimplemented from LLPreview.

Definition at line 2294 of file llpreviewscript.cpp.

References LLFloater::open().

Referenced by LLPanelContents::onClickNewScript(), LLTaskLSLBridge::openItem(), and show().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLLiveLSLEditor::canClose (  )  [protected, virtual]

Reimplemented from LLFloater.

Definition at line 2299 of file llpreviewscript.cpp.

References LLScriptEdCore::canClose(), and mScriptEd.

Here is the call graph for this function:

void LLLiveLSLEditor::closeIfNeeded (  )  [protected]

Definition at line 2304 of file llpreviewscript.cpp.

References LLFloater::close(), LLWindow::decBusyCount(), LLView::getWindow(), mCloseAfterSave, and mPendingUploads.

Referenced by callbackLSLCompileFailed(), and callbackLSLCompileSucceeded().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::draw ( void   )  [protected, virtual]

void LLLiveLSLEditor::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [protected, virtual]

Reimplemented from LLFloater.

Definition at line 2384 of file llpreviewscript.cpp.

References LLView::getRect(), gSavedSettings, LLFloater::isMinimized(), LLFloater::reshape(), and LLControlGroup::setRect().

Here is the call graph for this function:

void LLLiveLSLEditor::loadAsset (  )  [protected, virtual]

Reimplemented from LLPreview.

Definition at line 1653 of file llpreviewscript.cpp.

References FALSE.

Referenced by LLLiveLSLEditor().

Here is the caller graph for this function:

void LLLiveLSLEditor::loadAsset ( BOOL  is_new  )  [protected]

Definition at line 1686 of file llpreviewscript.cpp.

References _PREHASH_GetScriptRunning, _PREHASH_ItemID, _PREHASH_ObjectID, _PREHASH_Script, LLMessageSystem::addUUIDFast(), LLAgent::allowOperation(), LLAssetType::AT_LSL_TEXT, LLSaleInfo::DEFAULT, DEFAULT_SCRIPT_DESC, DEFAULT_SCRIPT_NAME, FALSE, LLViewerObjectList::findObject(), gAgent, gAssetStorage, LLInventoryItem::getAssetUUID(), LLAgent::getGroupID(), LLViewerRegion::getHost(), LLAgent::getID(), LLViewerObject::getInventoryObject(), LLAssetStorage::getInvItemAsset(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLViewerObject::getRegion(), LLAgent::getSessionID(), LLPanel::getString(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), gMessageSystem, gObjectList, GP_OBJECT_MANIPULATE, HELLO_LSL, LLInventoryItem::II_FLAGS_NONE, LLPermissions::init(), LLPermissions::initMasks(), LLAgent::isGodlike(), LLPointer< Type >::isNull(), LLInventoryType::IT_LSL, LLTextEditor::makePristine(), mAskedForRunningInfo, LLPreview::mAssetStatus, LLScriptEdCore::mEditor, mItem, mItemID, mObjectID, mScriptEd, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLPointer< Type >::notNull(), LLUUID::null, LLStringBase< char >::null, onLoadComplete(), PERM_ALL, PERM_COPY, PERM_MODIFY, PERM_MOVE, PERM_NONE, PERM_TRANSFER, LLPreview::PREVIEW_ASSET_LOADED, LLPreview::PREVIEW_ASSET_LOADING, LLMessageSystem::sendReliable(), LLTextEditor::setEnabled(), LLTextEditor::setText(), time_corrected(), and TRUE.

Here is the call graph for this function:

void LLLiveLSLEditor::saveIfNeeded (  )  [protected]

void LLLiveLSLEditor::uploadAssetViaCaps ( const std::string &  url,
const std::string &  filename,
const LLUUID task_id,
const LLUUID item_id,
BOOL  is_running 
) [protected]

Definition at line 2105 of file llpreviewscript.cpp.

References llendl, llinfos, and LLHTTPClient::post().

Referenced by saveIfNeeded().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::uploadAssetLegacy ( const std::string &  filename,
LLViewerObject object,
const LLTransactionID tid,
BOOL  is_running 
) [protected]

void LLLiveLSLEditor::onSearchReplace ( void *  userdata  )  [static, protected]

Definition at line 1987 of file llpreviewscript.cpp.

References LLFloaterScriptSearch::show().

Referenced by createScriptEdPanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::onLoad ( void *  userdata  )  [static, protected]

Definition at line 2315 of file llpreviewscript.cpp.

Referenced by createScriptEdPanel().

Here is the caller graph for this function:

void LLLiveLSLEditor::onSave ( void *  userdata,
BOOL  close_after_save 
) [static, protected]

Definition at line 2322 of file llpreviewscript.cpp.

Referenced by createScriptEdPanel().

Here is the caller graph for this function:

void LLLiveLSLEditor::onLoadComplete ( LLVFS vfs,
const LLUUID asset_uuid,
LLAssetType::EType  type,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

void LLLiveLSLEditor::onSaveTextComplete ( const LLUUID asset_uuid,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

void LLLiveLSLEditor::onSaveBytecodeComplete ( const LLUUID asset_uuid,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

void LLLiveLSLEditor::onRunningCheckboxClicked ( LLUICtrl ,
void *  userdata 
) [static, protected]

void LLLiveLSLEditor::onReset ( void *  userdata  )  [static, protected]

void LLLiveLSLEditor::loadScriptText ( const char *  filename  )  [protected]

Definition at line 1847 of file llpreviewscript.cpp.

References LLFile::fopen(), llendl, llerrs, llwarns, LLTextEditor::makePristine(), LLScriptEdCore::mEditor, mScriptEd, and LLTextEditor::setText().

Referenced by onLoadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLLiveLSLEditor::loadScriptText ( LLVFS vfs,
const LLUUID uuid,
LLAssetType::EType  type 
) [protected]

static void LLLiveLSLEditor::onErrorList ( LLUICtrl ,
void *  user_data 
) [static, protected]

void * LLLiveLSLEditor::createScriptEdPanel ( void *  userdata  )  [static, protected]

Definition at line 1571 of file llpreviewscript.cpp.

References HELLO_LSL, HELP_LSL, onLoad(), onSave(), and onSearchReplace().

Referenced by LLLiveLSLEditor().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from LLPreview.

Definition at line 265 of file llpreviewscript.h.

Referenced by draw(), LLLiveLSLEditor(), loadAsset(), saveIfNeeded(), uploadAssetLegacy(), and ~LLLiveLSLEditor().

Definition at line 266 of file llpreviewscript.h.

Referenced by LLLiveLSLEditor(), loadAsset(), saveIfNeeded(), and ~LLLiveLSLEditor().

Definition at line 267 of file llpreviewscript.h.

Definition at line 270 of file llpreviewscript.h.

Definition at line 271 of file llpreviewscript.h.

Referenced by draw(), and loadAsset().

Definition at line 272 of file llpreviewscript.h.

Referenced by draw(), and processScriptRunningReply().

Definition at line 273 of file llpreviewscript.h.

Reimplemented from LLPreview.

Definition at line 274 of file llpreviewscript.h.

Referenced by loadAsset(), saveIfNeeded(), and uploadAssetLegacy().

Reimplemented from LLPreview.

Definition at line 275 of file llpreviewscript.h.

Referenced by closeIfNeeded().

Definition at line 277 of file llpreviewscript.h.

Referenced by closeIfNeeded(), saveIfNeeded(), and uploadAssetLegacy().

--------------------------------------------------------------------------- LLLiveLSLEditor ---------------------------------------------------------------------------

Reimplemented from LLPreview.

Definition at line 279 of file llpreviewscript.h.

Referenced by find(), onSaveBytecodeComplete(), and onSaveTextComplete().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:51:50 2008 for SecondLife by  doxygen 1.5.5