LLNameEditor Class Reference

#include <llnameeditor.h>

Inheritance diagram for LLNameEditor:

Inheritance graph
[legend]
Collaboration diagram for LLNameEditor:

Collaboration graph
[legend]
List of all members.

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 LLViewfromXML (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

Detailed Description

Definition at line 45 of file llnameeditor.h.


Constructor & Destructor Documentation

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]

Definition at line 84 of file llnameeditor.cpp.

References sInstances.


Member Function Documentation

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::refresh ( const LLUUID id,
const char *  first,
const char *  last,
BOOL  is_group 
)

Definition at line 115 of file llnameeditor.cpp.

References mNameID, and LLLineEditor::setText().

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().

void LLNameEditor::setNameID ( const LLUUID name_id,
BOOL  is_group 
)

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().

void LLNameEditor::setValue ( LLSD  value  )  [virtual]

Definition at line 146 of file llnameeditor.cpp.

References LLSD::asUUID(), FALSE, and setNameID().


Member Data Documentation

LLUUID LLNameEditor::mNameID [private]

Definition at line 89 of file llnameeditor.h.

Referenced by getValue(), refresh(), and setNameID().

std::set< LLNameEditor * > LLNameEditor::sInstances [static, private]

Definition at line 86 of file llnameeditor.h.

Referenced by LLNameEditor(), refreshAll(), and ~LLNameEditor().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:32 2010 for Second Life Viewer by  doxygen 1.4.7