#include <llnameeditor.h>
Public Member Functions | |
LLNameEditor (const std::string &name, const LLRect &rect, const LLUUID &name_id=LLUUID::null, BOOL is_group=FALSE, const LLFontGL *glfont=NULL, S32 max_text_length=254, void(*commit_callback)(LLUICtrl *caller, void *user_data)=NULL, void(*keystroke_callback)(LLLineEditor *caller, void *user_data)=NULL, void(*focus_lost_callback)(LLFocusableElement *caller, void *user_data)=NULL, void *userdata=NULL, LLLinePrevalidateFunc prevalidate_func=NULL) | |
virtual | ~LLNameEditor () |
void | setNameID (const LLUUID &name_id, BOOL is_group) |
void | refresh (const LLUUID &id, const char *first, const char *last, BOOL is_group) |
virtual void | setValue (const LLSD &value) |
virtual LLSD | getValue () const |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
static void | refreshAll (const LLUUID &id, const char *firstname, const char *lastname, BOOL is_group) |
Private Attributes | |
LLUUID | mNameID |
Static Private Attributes | |
static std::set< LLNameEditor * > | sInstances |
Definition at line 44 of file llnameeditor.h.
LLNameEditor::LLNameEditor | ( | const std::string & | name, | |
const LLRect & | rect, | |||
const LLUUID & | name_id = LLUUID::null , |
|||
BOOL | is_group = FALSE , |
|||
const LLFontGL * | glfont = NULL , |
|||
S32 | max_text_length = 254 , |
|||
void(*)(LLUICtrl *caller, void *user_data) | commit_callback = NULL , |
|||
void(*)(LLLineEditor *caller, void *user_data) | keystroke_callback = NULL , |
|||
void(*)(LLFocusableElement *caller, void *user_data) | focus_lost_callback = NULL , |
|||
void * | userdata = NULL , |
|||
LLLinePrevalidateFunc | prevalidate_func = NULL | |||
) |
Definition at line 50 of file llnameeditor.cpp.
References LLUUID::isNull(), setNameID(), and sInstances.
Referenced by fromXML().
LLNameEditor::~LLNameEditor | ( | ) | [virtual] |
LLView * LLNameEditor::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLLineEditor.
Definition at line 143 of file llnameeditor.cpp.
References LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLNameEditor(), LLUUID::null, NULL, S32, LLView::selectFont(), LLLineEditor::setColorParameters(), and LLLineEditor::setLabel().
Definition at line 84 of file llnameeditor.cpp.
References gCacheName, LLCacheName::getFullName(), LLCacheName::getGroupName(), mNameID, and LLLineEditor::setText().
Referenced by LLNameEditor(), LLPanelAvatar::setAvatarID(), and setValue().
void LLNameEditor::refresh | ( | const LLUUID & | id, | |
const char * | first, | |||
const char * | last, | |||
BOOL | is_group | |||
) |
Definition at line 102 of file llnameeditor.cpp.
References mNameID, and LLLineEditor::setText().
Referenced by refreshAll().
void LLNameEditor::refreshAll | ( | const LLUUID & | id, | |
const char * | firstname, | |||
const char * | lastname, | |||
BOOL | is_group | |||
) | [static] |
Definition at line 120 of file llnameeditor.cpp.
References refresh(), and sInstances.
Referenced by callback_cache_name().
void LLNameEditor::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLLineEditor.
Definition at line 133 of file llnameeditor.cpp.
References LLSD::asUUID(), FALSE, and setNameID().
LLSD LLNameEditor::getValue | ( | ) | const [virtual] |
Reimplemented from LLLineEditor.
Definition at line 138 of file llnameeditor.cpp.
References mNameID.
std::set< LLNameEditor * > LLNameEditor::sInstances [static, private] |
Definition at line 80 of file llnameeditor.h.
Referenced by LLNameEditor(), refreshAll(), and ~LLNameEditor().
LLUUID LLNameEditor::mNameID [private] |