LLScriptEdCore Class Reference

#include <llpreviewscript.h>

Inheritance diagram for LLScriptEdCore:

Inheritance graph
[legend]
Collaboration diagram for LLScriptEdCore:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLScriptEdCore (const std::string &name, const LLRect &rect, const std::string &sample, const std::string &help, const LLHandle< LLFloater > &floater_handle, void(*load_callback)(void *userdata), void(*save_callback)(void *userdata, BOOL close_after_save), void(*search_replace_callback)(void *userdata), void *userdata, S32 bottom_pad=0)
 ~LLScriptEdCore ()
void initMenu ()
virtual void draw ()
BOOL canClose ()
void selectFirstError ()
virtual BOOL handleKeyHere (KEY key, MASK mask)

Static Public Member Functions

static void handleSaveChangesDialog (S32 option, void *userdata)
static void handleReloadFromServerDialog (S32 option, void *userdata)
static void onHelpWebDialog (S32 option, void *userdata)
static void onBtnHelp (void *userdata)
static void onBtnDynamicHelp (void *userdata)
static void onCheckLock (LLUICtrl *, void *)
static void onHelpComboCommit (LLUICtrl *ctrl, void *userdata)
static void onClickBack (void *userdata)
static void onClickForward (void *userdata)
static void onBtnInsertSample (void *)
static void onBtnInsertFunction (LLUICtrl *, void *)
static void doSave (void *userdata, BOOL close_after_save)
static void onBtnSave (void *)
static void onBtnUndoChanges (void *)
static void onSearchMenu (void *userdata)
static void onUndoMenu (void *userdata)
static void onRedoMenu (void *userdata)
static void onCutMenu (void *userdata)
static void onCopyMenu (void *userdata)
static void onPasteMenu (void *userdata)
static void onSelectAllMenu (void *userdata)
static void onDeselectMenu (void *userdata)
static BOOL enableUndoMenu (void *userdata)
static BOOL enableRedoMenu (void *userdata)
static BOOL enableCutMenu (void *userdata)
static BOOL enableCopyMenu (void *userdata)
static BOOL enablePasteMenu (void *userdata)
static BOOL enableSelectAllMenu (void *userdata)
static BOOL enableDeselectMenu (void *userdata)
static BOOL hasChanged (void *userdata)

Protected Member Functions

void deleteBridges ()
void setHelpPage (const LLString &help_string)
void updateDynamicHelp (BOOL immediate=FALSE)
void addHelpItemToHistory (const LLString &help_string)
virtual const char * getTitleName () const

Static Protected Member Functions

static void onErrorList (LLUICtrl *, void *user_data)

Private Attributes

LLString mSampleText
std::string mHelpFile
LLTextEditormEditor
void(* mLoadCallback )(void *userdata)
void(* mSaveCallback )(void *userdata, BOOL close_after_save)
void(* mSearchReplaceCallback )(void *userdata)
void * mUserdata
LLComboBoxmFunctions
BOOL mForceClose
LLPanelmCodePanel
LLScrollListCtrlmErrorList
LLDynamicArray
< LLEntryAndEdCore * > 
mBridges
LLHandle< LLFloatermLiveHelpHandle
LLKeywordTokenmLastHelpToken
LLFrameTimer mLiveHelpTimer
S32 mLiveHelpHistorySize

Friends

class LLPreviewScript
class LLPreviewLSL
class LLLiveLSLEditor
class LLFloaterScriptSearch


Detailed Description

Definition at line 56 of file llpreviewscript.h.


Constructor & Destructor Documentation

LLScriptEdCore::LLScriptEdCore ( const std::string &  name,
const LLRect rect,
const std::string &  sample,
const std::string &  help,
const LLHandle< LLFloater > &  floater_handle,
void(*)(void *userdata)  load_callback,
void(*)(void *userdata, BOOL close_after_save)  save_callback,
void(*)(void *userdata)  search_replace_callback,
void *  userdata,
S32  bottom_pad = 0 
)

LLScriptEdCore::~LLScriptEdCore (  ) 

Definition at line 376 of file llpreviewscript.cpp.

References LLFloater::close(), deleteBridges(), LLFloaterScriptSearch::getEditorCore(), and LLFloaterScriptSearch::getInstance().

Here is the call graph for this function:


Member Function Documentation

void LLScriptEdCore::initMenu (  ) 

void LLScriptEdCore::draw ( void   )  [virtual]

BOOL LLScriptEdCore::canClose (  ) 

Definition at line 595 of file llpreviewscript.cpp.

References LLViewerWindow::alertXml(), FALSE, gViewerWindow, handleSaveChangesDialog(), LLTextEditor::isPristine(), mEditor, mForceClose, and TRUE.

Referenced by LLLiveLSLEditor::canClose(), and LLPreviewLSL::canClose().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::handleSaveChangesDialog ( S32  option,
void *  userdata 
) [static]

Definition at line 610 of file llpreviewscript.cpp.

References LLAppViewer::abortQuit(), doSave(), LLAppViewer::instance(), and TRUE.

Referenced by canClose().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::handleReloadFromServerDialog ( S32  option,
void *  userdata 
) [static]

Definition at line 963 of file llpreviewscript.cpp.

References llassert.

Referenced by onBtnUndoChanges().

Here is the caller graph for this function:

void LLScriptEdCore::onHelpWebDialog ( S32  option,
void *  userdata 
) [static]

Definition at line 636 of file llpreviewscript.cpp.

References load_url_local_file(), and mHelpFile.

Referenced by onBtnHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onBtnHelp ( void *  userdata  )  [static]

Definition at line 651 of file llpreviewscript.cpp.

References LLViewerWindow::alertXml(), gViewerWindow, and onHelpWebDialog().

Referenced by initMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onBtnDynamicHelp ( void *  userdata  )  [static]

void LLScriptEdCore::onCheckLock ( LLUICtrl ctrl,
void *  userdata 
) [static]

Definition at line 734 of file llpreviewscript.cpp.

References LLSD::asBoolean(), LLUICtrl::getValue(), gSavedSettings, mLastHelpToken, NULL, and LLControlGroup::setBOOL().

Referenced by onBtnDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onHelpComboCommit ( LLUICtrl ctrl,
void *  userdata 
) [static]

Definition at line 756 of file llpreviewscript.cpp.

References addHelpItemToHistory(), LLSD::asString(), gDirUtilp, LLHandle< T >::get(), LLView::getChild(), LLControlGroup::getString(), LLUICtrl::getValue(), LLDir::getWorkingDir(), gSavedSettings, mLiveHelpHandle, and LLWebBrowserCtrl::navigateTo().

Referenced by onBtnDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onClickBack ( void *  userdata  )  [static]

Definition at line 704 of file llpreviewscript.cpp.

References LLHandle< T >::get(), LLView::getChild(), mLiveHelpHandle, and LLWebBrowserCtrl::navigateBack().

Referenced by onBtnDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onClickForward ( void *  userdata  )  [static]

Definition at line 719 of file llpreviewscript.cpp.

References LLHandle< T >::get(), LLView::getChild(), mLiveHelpHandle, and LLWebBrowserCtrl::navigateForward().

Referenced by onBtnDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onBtnInsertSample ( void *  userdata  )  [static]

Definition at line 745 of file llpreviewscript.cpp.

void LLScriptEdCore::onBtnInsertFunction ( LLUICtrl ui,
void *  userdata 
) [static]

Definition at line 776 of file llpreviewscript.cpp.

References TRUE.

void LLScriptEdCore::doSave ( void *  userdata,
BOOL  close_after_save 
) [static]

Definition at line 790 of file llpreviewscript.cpp.

References LLSingleton< LLViewerStats >::getInstance(), LLViewerStats::incStat(), and LLViewerStats::ST_LSL_SAVE_COUNT.

Referenced by handleSaveChangesDialog(), and onBtnSave().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onBtnSave ( void *  data  )  [static]

Definition at line 803 of file llpreviewscript.cpp.

References doSave(), and FALSE.

Referenced by initMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onBtnUndoChanges ( void *  userdata  )  [static]

Definition at line 810 of file llpreviewscript.cpp.

References LLViewerWindow::alertXml(), gViewerWindow, and handleReloadFromServerDialog().

Referenced by initMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onSearchMenu ( void *  userdata  )  [static]

Definition at line 820 of file llpreviewscript.cpp.

References LLFloaterScriptSearch::show().

Referenced by initMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::onUndoMenu ( void *  userdata  )  [static]

Definition at line 827 of file llpreviewscript.cpp.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::onRedoMenu ( void *  userdata  )  [static]

Definition at line 835 of file llpreviewscript.cpp.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::onCutMenu ( void *  userdata  )  [static]

Definition at line 843 of file llpreviewscript.cpp.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::onCopyMenu ( void *  userdata  )  [static]

Definition at line 851 of file llpreviewscript.cpp.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::onPasteMenu ( void *  userdata  )  [static]

Definition at line 859 of file llpreviewscript.cpp.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::onSelectAllMenu ( void *  userdata  )  [static]

Definition at line 867 of file llpreviewscript.cpp.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::onDeselectMenu ( void *  userdata  )  [static]

Definition at line 875 of file llpreviewscript.cpp.

BOOL LLScriptEdCore::enableUndoMenu ( void *  userdata  )  [static]

Definition at line 883 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

BOOL LLScriptEdCore::enableRedoMenu ( void *  userdata  )  [static]

Definition at line 891 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

BOOL LLScriptEdCore::enableCutMenu ( void *  userdata  )  [static]

Definition at line 899 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

BOOL LLScriptEdCore::enableCopyMenu ( void *  userdata  )  [static]

Definition at line 907 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

BOOL LLScriptEdCore::enablePasteMenu ( void *  userdata  )  [static]

Definition at line 915 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

BOOL LLScriptEdCore::enableSelectAllMenu ( void *  userdata  )  [static]

Definition at line 923 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

BOOL LLScriptEdCore::enableDeselectMenu ( void *  userdata  )  [static]

Definition at line 931 of file llpreviewscript.cpp.

References FALSE.

BOOL LLScriptEdCore::hasChanged ( void *  userdata  )  [static]

Definition at line 437 of file llpreviewscript.cpp.

References FALSE.

Referenced by initMenu().

Here is the caller graph for this function:

void LLScriptEdCore::selectFirstError (  ) 

Definition at line 985 of file llpreviewscript.cpp.

References mErrorList, onErrorList(), and LLScrollListCtrl::selectFirstItem().

Referenced by LLLiveLSLEditor::callbackLSLCompileFailed(), LLPreviewLSL::callbackLSLCompileFailed(), LLLiveLSLEditor::uploadAssetLegacy(), and LLPreviewLSL::uploadAssetLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLScriptEdCore::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLPanel.

Definition at line 1015 of file llpreviewscript.cpp.

References FALSE, MASK_CONTROL, MASK_MODIFIERS, mSaveCallback, mSearchReplaceCallback, mUserdata, and TRUE.

void LLScriptEdCore::deleteBridges (  )  [protected]

Definition at line 1001 of file llpreviewscript.cpp.

References LLDynamicArray< Type, BlockSize >::count(), LLDynamicArray< Type, BlockSize >::get(), i, mBridges, NULL, LLDynamicArray< Type, BlockSize >::reset(), and S32.

Referenced by ~LLScriptEdCore().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::setHelpPage ( const LLString help_string  )  [protected]

Definition at line 531 of file llpreviewscript.cpp.

References addHelpItemToHistory(), gDirUtilp, LLHandle< T >::get(), LLView::getChild(), LLControlGroup::getString(), LLDir::getWorkingDir(), gSavedSettings, mLiveHelpHandle, LLWebBrowserCtrl::navigateTo(), and LLUIString::setArg().

Referenced by updateDynamicHelp().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLScriptEdCore::updateDynamicHelp ( BOOL  immediate = FALSE  )  [protected]

void LLScriptEdCore::addHelpItemToHistory ( const LLString help_string  )  [protected]

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

Definition at line 939 of file llpreviewscript.cpp.

References LLSD::asString(), LLScrollListItem::getColumn(), LLScrollListCell::getValue(), LLStringBase< char >::replaceChar(), S32, and TRUE.

Referenced by selectFirstError().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 130 of file llpreviewscript.h.


Friends And Related Function Documentation

friend class LLPreviewScript [friend]

Definition at line 58 of file llpreviewscript.h.

friend class LLPreviewLSL [friend]

Definition at line 59 of file llpreviewscript.h.

friend class LLLiveLSLEditor [friend]

Definition at line 60 of file llpreviewscript.h.

friend class LLFloaterScriptSearch [friend]

Definition at line 61 of file llpreviewscript.h.


Member Data Documentation

Definition at line 133 of file llpreviewscript.h.

std::string LLScriptEdCore::mHelpFile [private]

Definition at line 134 of file llpreviewscript.h.

Referenced by onHelpWebDialog().

void(* LLScriptEdCore::mLoadCallback)(void *userdata) [private]

void(* LLScriptEdCore::mSaveCallback)(void *userdata, BOOL close_after_save) [private]

Referenced by handleKeyHere().

void(* LLScriptEdCore::mSearchReplaceCallback)(void *userdata) [private]

Referenced by handleKeyHere().

void* LLScriptEdCore::mUserdata [private]

Definition at line 139 of file llpreviewscript.h.

Referenced by handleKeyHere().

Definition at line 140 of file llpreviewscript.h.

Referenced by LLPreviewLSL::loadAsset().

Definition at line 141 of file llpreviewscript.h.

Referenced by canClose().

Definition at line 143 of file llpreviewscript.h.

Definition at line 145 of file llpreviewscript.h.

Referenced by deleteBridges().

Definition at line 147 of file llpreviewscript.h.

Referenced by onBtnDynamicHelp(), onCheckLock(), and updateDynamicHelp().

Definition at line 148 of file llpreviewscript.h.

Referenced by updateDynamicHelp().

Definition at line 149 of file llpreviewscript.h.

Referenced by addHelpItemToHistory(), and onBtnDynamicHelp().


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

Generated on Fri May 16 09:01:56 2008 for SecondLife by  doxygen 1.5.5