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 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 47 of file llnamelistctrl.cpp.

References LLView::setToolTip(), and sInstances.

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLNameListCtrl::~LLNameListCtrl (  )  [virtual]

Definition at line 66 of file llnamelistctrl.cpp.

References sInstances.


Member Function Documentation

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

Reimplemented from LLScrollListCtrl.

Definition at line 286 of file llnamelistctrl.cpp.

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

Here is the call graph for this function:

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

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

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

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

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

Definition at line 137 of file llnamelistctrl.cpp.

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

Referenced by LLDispatchSetEstateAccess::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

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

void LLNameListCtrl::removeNameItem ( const LLUUID agent_id  ) 

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

Definition at line 237 of file llnamelistctrl.cpp.

References LLScrollListCtrl::dirtyColumns(), LLScrollListItem::getColumn(), LLScrollListCtrl::getItemList(), LLScrollListItem::getUUID(), and mNameColumnIndex.

Referenced by refreshAll().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 271 of file llnamelistctrl.cpp.

References refresh(), and sInstances.

Referenced by callback_cache_name().

Here is the call graph for this function:

Here is the caller graph for this function:

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 89 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.

Here is the call graph for this function:

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

Definition at line 85 of file llnamelistctrl.h.

References mAllowCallingCardDrop.

Referenced by fromXML().

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 88 of file llnamelistctrl.h.

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

Definition at line 89 of file llnamelistctrl.h.

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

Definition at line 90 of file llnamelistctrl.h.

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


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:54:29 2008 for SecondLife by  doxygen 1.5.5