LLPreviewLSL Class Reference

#include <llpreviewscript.h>

Inheritance diagram for LLPreviewLSL:

Inheritance graph
[legend]
Collaboration diagram for LLPreviewLSL:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPreviewLSL (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &item_uuid)
virtual void callbackLSLCompileSucceeded ()
virtual void callbackLSLCompileFailed (const LLSD &compile_errors)
void open ()

Protected Member Functions

virtual BOOL canClose ()
void closeIfNeeded ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual void loadAsset ()
void saveIfNeeded ()
void uploadAssetViaCaps (const std::string &url, const std::string &filename, const LLUUID &item_id)
void uploadAssetLegacy (const std::string &filename, const LLUUID &item_id, const LLTransactionID &tid)
virtual const char * getTitleName () const

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 &uuid, LLAssetType::EType type, void *user_data, S32 status, LLExtStat ext_status)
static void onSaveComplete (const LLUUID &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 LLPreviewLSLgetInstance (const LLUUID &uuid)
static void * createScriptEdPanel (void *userdata)

Protected Attributes

LLScriptEdCoremScriptEd
S32 mPendingUploads


Detailed Description

Definition at line 154 of file llpreviewscript.h.


Constructor & Destructor Documentation

LLPreviewLSL::LLPreviewLSL ( const std::string &  name,
const LLRect rect,
const std::string &  title,
const LLUUID item_uuid 
)


Member Function Documentation

void LLPreviewLSL::callbackLSLCompileSucceeded (  )  [virtual]

Definition at line 1117 of file llpreviewscript.cpp.

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

Referenced by LLUpdateAgentInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1126 of file llpreviewscript.cpp.

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

Referenced by LLUpdateAgentInventoryResponder::uploadComplete().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPreviewLSL::open ( void   )  [virtual]

Reimplemented from LLPreview.

Definition at line 1215 of file llpreviewscript.cpp.

References LLFloater::open().

Here is the call graph for this function:

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

Reimplemented from LLFloater.

Definition at line 1198 of file llpreviewscript.cpp.

References LLScriptEdCore::canClose(), and mScriptEd.

Here is the call graph for this function:

void LLPreviewLSL::closeIfNeeded (  )  [protected]

Definition at line 1203 of file llpreviewscript.cpp.

References LLFloater::close(), LLWindow::decBusyCount(), LLView::getWindow(), LLPreview::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 LLPreviewLSL::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [protected, virtual]

Reimplemented from LLFloater.

Definition at line 1550 of file llpreviewscript.cpp.

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

Referenced by LLPreviewLSL().

Here is the call graph for this function:

Here is the caller graph for this function:

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

void LLPreviewLSL::saveIfNeeded (  )  [protected]

void LLPreviewLSL::uploadAssetViaCaps ( const std::string &  url,
const std::string &  filename,
const LLUUID item_id 
) [protected]

Definition at line 1300 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 LLPreviewLSL::uploadAssetLegacy ( const std::string &  filename,
const LLUUID item_id,
const LLTransactionID tid 
) [protected]

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

Definition at line 1220 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 LLPreviewLSL::onLoad ( void *  userdata  )  [static, protected]

Definition at line 1228 of file llpreviewscript.cpp.

Referenced by createScriptEdPanel().

Here is the caller graph for this function:

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

Definition at line 1235 of file llpreviewscript.cpp.

Referenced by createScriptEdPanel().

Here is the caller graph for this function:

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

void LLPreviewLSL::onSaveComplete ( const LLUUID uuid,
void *  user_data,
S32  status,
LLExtStat  ext_status 
) [static, protected]

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

Definition at line 1442 of file llpreviewscript.cpp.

References LLViewerWindow::alertXml(), LLAssetStorage::getErrorString(), getInstance(), gViewerWindow, llendl, llwarns, and NULL.

Referenced by uploadAssetLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

LLPreviewLSL * LLPreviewLSL::getInstance ( const LLUUID uuid  )  [static, protected]

Definition at line 1539 of file llpreviewscript.cpp.

References NULL, and LLPreview::sInstances.

Referenced by onLoadComplete(), and onSaveBytecodeComplete().

Here is the caller graph for this function:

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

Definition at line 1060 of file llpreviewscript.cpp.

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

Referenced by LLPreviewLSL().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual const char* LLPreviewLSL::getTitleName (  )  const [inline, protected, virtual]

Reimplemented from LLPreview.

Definition at line 194 of file llpreviewscript.h.


Member Data Documentation

Definition at line 197 of file llpreviewscript.h.

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


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

Generated on Fri May 16 09:00:30 2008 for SecondLife by  doxygen 1.5.5