#include <lllineeditor.h>
Inheritance diagram for LLSearchEditor:
Public Member Functions | |
LLSearchEditor (const LLString &name, const LLRect &rect, S32 max_length_bytes, void(*search_callback)(const LLString &search_string, void *user_data), void *userdata) | |
virtual | ~LLSearchEditor () |
void | draw () |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
void | setText (const LLStringExplicit &new_text) |
void | setSearchCallback (void(*search_callback)(const LLString &search_string, void *user_data), void *data) |
virtual void | setValue (const LLSD &value) |
virtual LLSD | getValue () const |
virtual BOOL | setTextArg (const LLString &key, const LLStringExplicit &text) |
virtual BOOL | setLabelArg (const LLString &key, const LLStringExplicit &text) |
virtual void | clear () |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
Static Protected Member Functions | |
static void | onSearchEdit (LLLineEditor *caller, void *user_data) |
static void | onClearSearch (void *user_data) |
Protected Attributes | |
LLLineEditor * | mSearchEdit |
LLButton * | mClearSearchButton |
void(* | mSearchCallback )(const LLString &search_string, void *user_data) |
Friends | |
class | LLLineEditorRollback |
Definition at line 296 of file lllineeditor.h.
LLSearchEditor::LLSearchEditor | ( | const LLString & | name, | |
const LLRect & | rect, | |||
S32 | max_length_bytes, | |||
void(*)(const LLString &search_string, void *user_data) | search_callback, | |||
void * | userdata | |||
) |
Definition at line 2345 of file lllineeditor.cpp.
References LLView::addChild(), FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), mClearSearchButton, LLView::mRect, mSearchEdit, NULL, LLStringBase< char >::null, onClearSearch(), onSearchEdit(), S32, LLUI::sColorsGroup, and TRUE.
Referenced by fromXML().
LLSearchEditor::~LLSearchEditor | ( | ) | [virtual] |
Definition at line 2390 of file lllineeditor.cpp.
void LLSearchEditor::clear | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2431 of file lllineeditor.cpp.
References LLLineEditor::clear(), and mSearchEdit.
void LLSearchEditor::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 2440 of file lllineeditor.cpp.
References LLView::draw(), LLLineEditor::getWText(), mClearSearchButton, mSearchEdit, and LLView::setVisible().
LLView * LLSearchEditor::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Definition at line 2475 of file lllineeditor.cpp.
References LLView::createRect(), LLUICtrl::initFromXML(), LLSearchEditor(), mSearchEdit, NULL, S32, LLLineEditor::setLabel(), and setText().
LLSD LLSearchEditor::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2413 of file lllineeditor.cpp.
References LLLineEditor::getValue(), and mSearchEdit.
LLString LLSearchEditor::getWidgetTag | ( | ) | const [virtual] |
Implements LLView.
Definition at line 2401 of file lllineeditor.cpp.
References LL_SEARCH_EDITOR_TAG.
EWidgetType LLSearchEditor::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 2395 of file lllineeditor.cpp.
References WIDGET_TYPE_SEARCH_EDITOR.
Definition at line 2463 of file lllineeditor.cpp.
References LLUICtrl::mCallbackUserData, mSearchCallback, LLStringBase< char >::null, and setText().
Referenced by LLSearchEditor().
void LLSearchEditor::onSearchEdit | ( | LLLineEditor * | caller, | |
void * | user_data | |||
) | [static, protected] |
Definition at line 2453 of file lllineeditor.cpp.
References LLLineEditor::getText(), LLUICtrl::mCallbackUserData, and mSearchCallback.
Referenced by LLSearchEditor().
BOOL LLSearchEditor::setLabelArg | ( | const LLString & | key, | |
const LLStringExplicit & | text | |||
) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2425 of file lllineeditor.cpp.
References mSearchEdit, and LLLineEditor::setLabelArg().
void LLSearchEditor::setSearchCallback | ( | void(*)(const LLString &search_string, void *user_data) | search_callback, | |
void * | data | |||
) | [inline] |
Definition at line 317 of file lllineeditor.h.
References LLUICtrl::mCallbackUserData, and mSearchCallback.
Referenced by LLInventoryView::init(), LLFloaterLandmark::LLFloaterLandmark(), and LLFloaterTexturePicker::LLFloaterTexturePicker().
void LLSearchEditor::setText | ( | const LLStringExplicit & | new_text | ) |
Definition at line 2447 of file lllineeditor.cpp.
References mSearchEdit, and LLLineEditor::setText().
Referenced by LLFloaterTexturePicker::draw(), LLInventoryView::draw(), fromXML(), and onClearSearch().
BOOL LLSearchEditor::setTextArg | ( | const LLString & | key, | |
const LLStringExplicit & | text | |||
) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 2419 of file lllineeditor.cpp.
References mSearchEdit, and LLLineEditor::setTextArg().
Reimplemented from LLView.
Definition at line 2407 of file lllineeditor.cpp.
References mSearchEdit, and LLLineEditor::setValue().
friend class LLLineEditorRollback [friend] |
Definition at line 298 of file lllineeditor.h.
LLButton* LLSearchEditor::mClearSearchButton [protected] |
void(* LLSearchEditor::mSearchCallback)(const LLString &search_string, void *user_data) [protected] |
Referenced by onClearSearch(), onSearchEdit(), and setSearchCallback().
LLLineEditor* LLSearchEditor::mSearchEdit [protected] |
Definition at line 328 of file lllineeditor.h.
Referenced by clear(), draw(), fromXML(), getValue(), LLSearchEditor(), setLabelArg(), setText(), setTextArg(), and setValue().