Public Member Functions | |
LLFloaterScriptSearch (std::string title, LLRect rect, LLScriptEdCore *editor_core) | |
~LLFloaterScriptSearch () | |
void | handleBtnSearch () |
void | handleBtnReplace () |
void | handleBtnReplaceAll () |
LLScriptEdCore * | getEditorCore () |
void | open () |
Static Public Member Functions | |
static void | show (LLScriptEdCore *editor_core) |
static void | onBtnSearch (void *userdata) |
static void | onBtnReplace (void *userdata) |
static void | onBtnReplaceAll (void *userdata) |
static LLFloaterScriptSearch * | getInstance () |
Private Attributes | |
LLScriptEdCore * | mEditorCore |
Static Private Attributes | |
static LLFloaterScriptSearch * | sInstance = NULL |
Definition at line 145 of file llpreviewscript.cpp.
LLFloaterScriptSearch::LLFloaterScriptSearch | ( | std::string | title, | |
LLRect | rect, | |||
LLScriptEdCore * | editor_core | |||
) |
Definition at line 175 of file llpreviewscript.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetFocus(), LLFloater::getHost(), LLView::getParent(), LLView::getRect(), gUICtrlFactory, LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, onBtnReplace(), onBtnReplaceAll(), onBtnSearch(), LLPanel::setDefaultBtn(), sInstance, LLView::translate(), TRUE, and WIDGET_TYPE_FLOATER.
Referenced by show().
LLFloaterScriptSearch::~LLFloaterScriptSearch | ( | ) |
LLScriptEdCore* LLFloaterScriptSearch::getEditorCore | ( | ) | [inline] |
Definition at line 161 of file llpreviewscript.cpp.
References mEditorCore.
Referenced by LLScriptEdCore::~LLScriptEdCore().
static LLFloaterScriptSearch* LLFloaterScriptSearch::getInstance | ( | ) | [inline, static] |
Definition at line 162 of file llpreviewscript.cpp.
References sInstance.
Referenced by LLScriptEdCore::~LLScriptEdCore().
void LLFloaterScriptSearch::handleBtnReplace | ( | ) |
Definition at line 257 of file llpreviewscript.cpp.
References LLPanel::childGetText(), LLCheckBoxCtrl::get(), LLUICtrlFactory::getCheckBoxByName(), LLScriptEdCore::mEditor, mEditorCore, and LLTextEditor::replaceText().
void LLFloaterScriptSearch::handleBtnReplaceAll | ( | ) |
Definition at line 270 of file llpreviewscript.cpp.
References LLPanel::childGetText(), LLCheckBoxCtrl::get(), LLUICtrlFactory::getCheckBoxByName(), LLScriptEdCore::mEditor, mEditorCore, and LLTextEditor::replaceTextAll().
void LLFloaterScriptSearch::handleBtnSearch | ( | ) |
Definition at line 244 of file llpreviewscript.cpp.
References LLPanel::childGetText(), LLCheckBoxCtrl::get(), LLUICtrlFactory::getCheckBoxByName(), LLScriptEdCore::mEditor, mEditorCore, and LLTextEditor::selectNext().
void LLFloaterScriptSearch::open | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 276 of file llpreviewscript.cpp.
References LLPanel::childSetFocus(), LLFloater::open(), and TRUE.
Referenced by show().
void LLFloaterScriptSearch::show | ( | LLScriptEdCore * | editor_core | ) | [static] |
Definition at line 211 of file llpreviewscript.cpp.
References LLFloater::close(), LLFloaterView::getNewFloaterPosition(), gFloaterView, left, LLFloaterScriptSearch(), mEditorCore, open(), S32, SCRIPT_SEARCH_HEIGHT, SCRIPT_SEARCH_WIDTH, sInstance, and top.
Referenced by LLScriptEdCore::onSearchMenu(), LLLiveLSLEditor::onSearchReplace(), and LLPreviewLSL::onSearchReplace().
LLScriptEdCore* LLFloaterScriptSearch::mEditorCore [private] |
Definition at line 168 of file llpreviewscript.cpp.
Referenced by getEditorCore(), handleBtnReplace(), handleBtnReplaceAll(), handleBtnSearch(), and show().
LLFloaterScriptSearch * LLFloaterScriptSearch::sInstance = NULL [static, private] |
Definition at line 170 of file llpreviewscript.cpp.
Referenced by getInstance(), LLFloaterScriptSearch(), show(), and ~LLFloaterScriptSearch().