LLNameListCtrl Class Reference

#include <llnamelistctrl.h>

Inheritance diagram for LLNameListCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLNameListCtrl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLNameListCtrl (const LLString &name, const LLRect &rect, LLUICtrlCallback callback, void *userdata, BOOL allow_multiple_selection, BOOL draw_border=TRUE, S32 name_column_index=0, const LLString &tooltip=LLString::null)
virtual ~LLNameListCtrl ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual LLXMLNodePtr getXML (bool save_children=true) const
BOOL addNameItem (const LLUUID &agent_id, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE, LLString &suffix=LLString::null)
BOOL addNameItem (LLScrollListItem *item, EAddPosition pos=ADD_BOTTOM)
virtual LLScrollListItemaddElement (const LLSD &value, EAddPosition pos=ADD_BOTTOM, void *userdata=NULL)
void addGroupNameItem (const LLUUID &group_id, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE)
void addGroupNameItem (LLScrollListItem *item, EAddPosition pos=ADD_BOTTOM)
void removeNameItem (const LLUUID &agent_id)
void refresh (const LLUUID &id, const char *first, const char *last, BOOL is_group)
virtual BOOL handleDragAndDrop (S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data, EAcceptance *accept, LLString &tooltip_msg)
void setAllowCallingCardDrop (BOOL b)

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

S32 mNameColumnIndex
BOOL mAllowCallingCardDrop

Static Private Attributes

static std::set< LLNameListCtrl * > sInstances

Detailed Description

Definition at line 40 of file llnamelistctrl.h.


Constructor & Destructor Documentation

LLNameListCtrl::LLNameListCtrl ( const LLString name,
const LLRect rect,
LLUICtrlCallback  callback,
void userdata,
BOOL  allow_multiple_selection,
BOOL  draw_border = TRUE,
S32  name_column_index = 0,
const LLString tooltip = LLString::null 
)

Definition at line 45 of file llnamelistctrl.cpp.

References LLView::setToolTip(), and sInstances.

Referenced by fromXML().

LLNameListCtrl::~LLNameListCtrl (  )  [virtual]

Definition at line 64 of file llnamelistctrl.cpp.

References sInstances.


Member Function Documentation

LLScrollListItem * LLNameListCtrl::addElement ( const LLSD value,
EAddPosition  pos = ADD_BOTTOM,
void userdata = NULL 
) [virtual]

Reimplemented from LLScrollListCtrl.

Definition at line 194 of file llnamelistctrl.cpp.

References LLScrollListCtrl::addElement(), LLSD::asString(), DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, first, gCacheName, LLScrollListCtrl::getColumn(), LLScrollListItem::getColumn(), LLCacheName::getGroupName(), LLCacheName::getName(), LLScrollListItem::getUUID(), LLScrollListColumn::mHeader, mNameColumnIndex, LLColumnHeader::setHasResizableElement(), TRUE, and LLScrollListCtrl::updateMaxContentWidth().

Referenced by LLFloaterNewIM::addAgent(), LLFloaterNewIM::addGroup(), LLFloaterNewIM::addSpecial(), LLPanelGroupInvite::impl::addUsers(), fromXML(), LLPanelGroupGeneral::update(), LLPanelGroupMembersSubTab::updateMembers(), and LLPanelGroupGeneral::updateMembers().

void LLNameListCtrl::addGroupNameItem ( LLScrollListItem item,
EAddPosition  pos = ADD_BOTTOM 
)

Definition at line 151 of file llnamelistctrl.cpp.

References LLScrollListCtrl::addItem(), DB_GROUP_NAME_BUF_SIZE, gCacheName, LLScrollListItem::getColumn(), LLCacheName::getGroupName(), LLScrollListItem::getUUID(), and mNameColumnIndex.

void LLNameListCtrl::addGroupNameItem ( const LLUUID group_id,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE 
)

Definition at line 141 of file llnamelistctrl.cpp.

References LLScrollListCtrl::addStringUUIDItem(), DB_GROUP_NAME_BUF_SIZE, gCacheName, and LLCacheName::getGroupName().

Referenced by LLDispatchSetEstateAccess::operator()().

BOOL LLNameListCtrl::addNameItem ( LLScrollListItem item,
EAddPosition  pos = ADD_BOTTOM 
)

Definition at line 165 of file llnamelistctrl.cpp.

References LLScrollListCtrl::addItem(), DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, first, gCacheName, LLScrollListCtrl::getColumn(), LLScrollListItem::getColumn(), LLCacheName::getName(), LLScrollListItem::getUUID(), LLScrollListColumn::mHeader, mNameColumnIndex, LLColumnHeader::setHasResizableElement(), and TRUE.

BOOL LLNameListCtrl::addNameItem ( const LLUUID agent_id,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE,
LLString suffix = LLString::null 
)

Definition at line 71 of file llnamelistctrl.cpp.

References LLScrollListCtrl::addStringUUIDItem(), DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, first, gCacheName, and LLCacheName::getName().

Referenced by LLPanelGroupRolesSubTab::buildMembersList(), LLPanelGroupActionsSubTab::handleActionSelect(), handleDragAndDrop(), LLDispatchSetEstateAccess::operator()(), LLPanelLandBan::refresh(), and LLPanelLandAccess::refresh().

LLView * LLNameListCtrl::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

Reimplemented from LLScrollListCtrl.

Definition at line 318 of file llnamelistctrl.cpp.

References addElement(), LLScrollListCtrl::addSimpleItem(), LLView::createRect(), f, FALSE, LLUICtrl::initFromXML(), LLFontGL::LEFT, LLNameListCtrl(), LLPointer< Type >::notNull(), NULL, S32, LLView::selectFontHAlign(), setAllowCallingCardDrop(), LLScrollListCtrl::setCollapseEmptyColumns(), LLScrollListCtrl::setColumnHeadings(), LLScrollListCtrl::setDisplayHeading(), LLScrollListCtrl::setHeadingHeight(), LLScrollListCtrl::setScrollListParameters(), and TRUE.

virtual LLString LLNameListCtrl::getWidgetTag (  )  const [inline, virtual]

Reimplemented from LLScrollListCtrl.

Definition at line 54 of file llnamelistctrl.h.

References LL_NAME_LIST_CTRL_TAG.

virtual EWidgetType LLNameListCtrl::getWidgetType (  )  const [inline, virtual]

Reimplemented from LLScrollListCtrl.

Definition at line 53 of file llnamelistctrl.h.

References WIDGET_TYPE_NAME_LIST.

LLXMLNodePtr LLNameListCtrl::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLScrollListCtrl.

Definition at line 302 of file llnamelistctrl.cpp.

References LLScrollListCtrl::getXML(), mAllowCallingCardDrop, mNameColumnIndex, and TRUE.

BOOL LLNameListCtrl::handleDragAndDrop ( S32  x,
S32  y,
MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data,
EAcceptance accept,
LLString tooltip_msg 
) [virtual]

Reimplemented from LLView.

Definition at line 93 of file llnamelistctrl.cpp.

References ACCEPT_NO, ACCEPT_YES_MULTI, addNameItem(), DAD_CALLINGCARD, FALSE, LLInventoryItem::getCreatorUUID(), LLView::getName(), LLView::getToolTip(), lldebugst, llendl, mAllowCallingCardDrop, and TRUE.

void LLNameListCtrl::refresh ( const LLUUID id,
const char *  first,
const char *  last,
BOOL  is_group 
)

Definition at line 254 of file llnamelistctrl.cpp.

References LLScrollListCtrl::mItemList, mNameColumnIndex, and LLScrollListCtrl::updateMaxContentWidth().

void LLNameListCtrl::refreshAll ( const LLUUID id,
const char *  firstname,
const char *  lastname,
BOOL  is_group 
) [static]

Definition at line 287 of file llnamelistctrl.cpp.

References sInstances.

Referenced by callback_cache_name().

void LLNameListCtrl::removeNameItem ( const LLUUID agent_id  ) 

Definition at line 240 of file llnamelistctrl.cpp.

References LLScrollListCtrl::deleteSingleItem(), LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getItemIndex(), S32, and LLScrollListCtrl::selectByID().

void LLNameListCtrl::setAllowCallingCardDrop ( BOOL  b  )  [inline]

Definition at line 86 of file llnamelistctrl.h.

References mAllowCallingCardDrop.

Referenced by fromXML().


Member Data Documentation

BOOL LLNameListCtrl::mAllowCallingCardDrop [private]

Definition at line 91 of file llnamelistctrl.h.

Referenced by getXML(), handleDragAndDrop(), and setAllowCallingCardDrop().

S32 LLNameListCtrl::mNameColumnIndex [private]

Definition at line 90 of file llnamelistctrl.h.

Referenced by addElement(), addGroupNameItem(), addNameItem(), getXML(), and refresh().

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

Definition at line 89 of file llnamelistctrl.h.

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


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