#include <llnameeditor.h>
Inheritance diagram for LLNameEditor:
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)(LLUICtrl *caller, void *user_data)=NULL, void *userdata=NULL, LLLinePrevalidateFunc prevalidate_func=NULL, LLViewBorder::EBevel border_bevel=LLViewBorder::BEVEL_IN, LLViewBorder::EStyle border_style=LLViewBorder::STYLE_LINE, S32 border_thickness=1) | |
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 EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
virtual void | setValue (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 45 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(*)(LLUICtrl *caller, void *user_data) | focus_lost_callback = NULL , |
|||
void * | userdata = NULL , |
|||
LLLinePrevalidateFunc | prevalidate_func = NULL , |
|||
LLViewBorder::EBevel | border_bevel = LLViewBorder::BEVEL_IN , |
|||
LLViewBorder::EStyle | border_style = LLViewBorder::STYLE_LINE , |
|||
S32 | border_thickness = 1 | |||
) |
Definition at line 49 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 156 of file llnameeditor.cpp.
References LLViewBorder::BEVEL_IN, LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLNameEditor(), LLUUID::null, NULL, S32, LLView::selectFont(), LLLineEditor::setColorParameters(), LLLineEditor::setLabel(), LLViewBorder::STYLE_LINE, LLViewBorder::STYLE_TEXTURE, and LLStringBase< char >::toLower().
LLSD LLNameEditor::getValue | ( | ) | const [virtual] |
Reimplemented from LLLineEditor.
Definition at line 151 of file llnameeditor.cpp.
References mNameID.
virtual LLString LLNameEditor::getWidgetTag | ( | ) | const [inline, virtual] |
Reimplemented from LLLineEditor.
Definition at line 79 of file llnameeditor.h.
References LL_NAME_EDITOR_TAG.
virtual EWidgetType LLNameEditor::getWidgetType | ( | ) | const [inline, virtual] |
Reimplemented from LLLineEditor.
Definition at line 78 of file llnameeditor.h.
References WIDGET_TYPE_NAME_EDITOR.
void LLNameEditor::refreshAll | ( | const LLUUID & | id, | |
const char * | firstname, | |||
const char * | lastname, | |||
BOOL | is_group | |||
) | [static] |
Definition at line 133 of file llnameeditor.cpp.
References sInstances.
Referenced by callback_cache_name().
Definition at line 89 of file llnameeditor.cpp.
References DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, first, gCacheName, LLCacheName::getGroupName(), LLCacheName::getName(), mNameID, and LLLineEditor::setText().
Referenced by LLNameEditor(), LLPanelAvatar::setAvatarID(), and setValue().
LLUUID LLNameEditor::mNameID [private] |
std::set< LLNameEditor * > LLNameEditor::sInstances [static, private] |
Definition at line 86 of file llnameeditor.h.
Referenced by LLNameEditor(), refreshAll(), and ~LLNameEditor().