LLScrollListItem Class Reference

#include <llscrolllistctrl.h>

Collaboration diagram for LLScrollListItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScrollListItem (BOOL enabled=TRUE, void *userdata=NULL, const LLUUID &uuid=LLUUID::null)
 LLScrollListItem (LLSD item_value, void *userdata=NULL)
virtual ~LLScrollListItem ()
void setSelected (BOOL b)
BOOL getSelected () const
void setEnabled (BOOL b)
BOOL getEnabled () const
void setUserdata (void *userdata)
voidgetUserdata () const
LLUUID getUUID () const
LLSD getValue () const
void addColumn (const LLString &text, const LLFontGL *font, S32 width=0, U8 font_style=LLFontGL::NORMAL, LLFontGL::HAlign font_alignment=LLFontGL::LEFT, BOOL visible=TRUE)
void addColumn (LLImageGL *icon, S32 width=0)
void addColumn (LLCheckBoxCtrl *check, S32 width=0)
void setNumColumns (S32 columns)
void setColumn (S32 column, LLScrollListCell *cell)
S32 getNumColumns () const
LLScrollListCellgetColumn (const S32 i) const
virtual BOOL handleClick (S32 x, S32 y, MASK mask)
LLString getContentsCSV ()

Private Attributes

BOOL mSelected
BOOL mEnabled
voidmUserdata
LLSD mItemValue
std::vector< LLScrollListCell * > mColumns

Detailed Description

Definition at line 295 of file llscrolllistctrl.h.


Constructor & Destructor Documentation

LLScrollListItem::LLScrollListItem ( BOOL  enabled = TRUE,
void userdata = NULL,
const LLUUID uuid = LLUUID::null 
) [inline]

Definition at line 298 of file llscrolllistctrl.h.

LLScrollListItem::LLScrollListItem ( LLSD  item_value,
void userdata = NULL 
) [inline]

Definition at line 300 of file llscrolllistctrl.h.

LLScrollListItem::~LLScrollListItem (  )  [virtual]

Definition at line 312 of file llscrolllistctrl.cpp.

References mColumns.


Member Function Documentation

void LLScrollListItem::addColumn ( LLCheckBoxCtrl check,
S32  width = 0 
) [inline]

Definition at line 325 of file llscrolllistctrl.h.

References mColumns, and width.

void LLScrollListItem::addColumn ( LLImageGL icon,
S32  width = 0 
) [inline]

Definition at line 322 of file llscrolllistctrl.h.

References mColumns, and width.

void LLScrollListItem::addColumn ( const LLString text,
const LLFontGL font,
S32  width = 0,
U8  font_style = LLFontGL::NORMAL,
LLFontGL::HAlign  font_alignment = LLFontGL::LEFT,
BOOL  visible = TRUE 
) [inline]

Definition at line 319 of file llscrolllistctrl.h.

References LLColor4::black, FALSE, mColumns, and width.

Referenced by LLScrollListCtrl::addSimpleElement(), LLScrollListCtrl::addSimpleItem(), LLScrollListCtrl::addStringUUIDItem(), and LLPanelLandObjects::processParcelObjectOwnersReply().

LLScrollListCell* LLScrollListItem::getColumn ( const S32  i  )  const [inline]

Definition at line 334 of file llscrolllistctrl.h.

References mColumns, NULL, and S32.

Referenced by LLScrollListCtrl::addElement(), LLNameListCtrl::addElement(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), LLScrollListCtrl::deselectItem(), getContentsCSV(), LLScrollListCtrl::getSimpleSelectedItem(), LLScrollListCtrl::handleKeyHere(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLFloaterImport::handleMouseDown(), LLScrollListCtrl::handleUnicodeCharHere(), LLPreviewGesture::onClickAdd(), LLPanelGroupVoting::impl::onClickViewHistoryItem(), LLPanelGroupVoting::impl::onClickViewProposalItem(), LLPanelLandObjects::onCommitList(), LLPanelLandObjects::onDoubleClickOwner(), LLScriptEdCore::onErrorList(), LLPanelGroupLandMoney::impl::onMapButton(), LLFloaterNewIM::onStart(), LLPanelFriends::refreshUI(), LLPanelGroupVoting::impl::setEnableHistoryItem(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLFloaterTopObjects::showBeacon(), LLColumnHeader::showList(), LLPreviewGesture::updateLabel(), and LLScrollListCtrl::updateMaxContentWidth().

LLString LLScrollListItem::getContentsCSV (  ) 

Definition at line 371 of file llscrolllistctrl.cpp.

References count, getColumn(), getNumColumns(), i, and S32.

BOOL LLScrollListItem::getEnabled (  )  const [inline]

Definition at line 309 of file llscrolllistctrl.h.

References mEnabled.

Referenced by LLScrollListCtrl::handleUnicodeCharHere().

S32 LLScrollListItem::getNumColumns (  )  const [inline]

Definition at line 332 of file llscrolllistctrl.h.

References mColumns.

Referenced by getContentsCSV().

BOOL LLScrollListItem::getSelected (  )  const [inline]

Definition at line 306 of file llscrolllistctrl.h.

References mSelected.

Referenced by LLScrollListCtrl::deselectItem(), LLScrollListCtrl::selectItem(), and LLScrollListCtrl::selectItemAt().

void* LLScrollListItem::getUserdata (  )  const [inline]

Definition at line 312 of file llscrolllistctrl.h.

References mUserdata.

Referenced by LLComboBox::getCurrentUserdata(), LLPanelGroupRolesSubTab::handleActionCheck(), LLPanelGroupActionsSubTab::handleActionSelect(), LLPreviewGesture::handleDragAndDrop(), LLPreviewGesture::initDefaultGesture(), LLPreviewGesture::onClickDelete(), LLPreviewGesture::onCommitAnimation(), LLPreviewGesture::onCommitAnimationTrigger(), LLPreviewGesture::onCommitChat(), LLPreviewGesture::onCommitSound(), LLPreviewGesture::onCommitWait(), LLPreviewGesture::onCommitWaitTime(), LLFloaterNewIM::onStart(), LLPreviewGesture::refresh(), and LLPreviewGesture::updateLabel().

LLUUID LLScrollListItem::getUUID (  )  const [inline]

Definition at line 314 of file llscrolllistctrl.h.

References LLSD::asUUID(), and mItemValue.

Referenced by LLPanelEstateInfo::accessRemoveCore(), LLNameListCtrl::addElement(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), LLPanelGroupRolesSubTab::buildMembersList(), LLFloaterInspect::getSelectedUUID(), LLScrollListCtrl::getStringUUIDSelectedItem(), LLPanelGroupRolesSubTab::handleActionCheck(), LLPanelGroupRolesSubTab::handleDeleteRole(), LLPanelGroupMembersSubTab::handleMemberDoubleClick(), LLPanelGroupRolesSubTab::handleMemberVisibilityChange(), LLFloaterImport::handleMouseDown(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterInspect::onClickCreatorProfile(), LLFloaterAvatarList::onClickGetKey(), LLFloaterInspect::onClickOwnerProfile(), LLPanelLandBan::onClickRemove(), LLPanelLandAccess::onClickRemove(), LLFloaterAvatarList::onClickTeleport(), LLFloaterAvatarList::onClickTrack(), LLFloaterAvatarList::onClickTrustNetExplain(), LLPanelLandObjects::onCommitList(), LLFloaterEventLog::onDoubleClick(), LLFloaterAvatarList::onDoubleClick(), LLPanelAvatarSecondLife::onDoubleClickGroup(), LLPanelLandObjects::onDoubleClickOwner(), LLPanelGroupMembersSubTab::onRoleCheck(), LLPanelGroupNotices::onSelectNotice(), LLFloaterNewIM::onStart(), LLPanelGroupGeneral::openProfile(), LLFloaterInspect::refresh(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLPanelGroupRolesSubTab::update(), and LLFloaterEventLog::updateSelectedEventInfo().

LLSD LLScrollListItem::getValue (  )  const [inline]

Definition at line 315 of file llscrolllistctrl.h.

References mItemValue.

Referenced by LLScrollListCtrl::getSimpleSelectedValue(), LLScrollListCtrl::getValue(), and LLComboBox::getValue().

BOOL LLScrollListItem::handleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Definition at line 317 of file llscrolllistctrl.cpp.

References end, FALSE, left, mColumns, right, S32, and width.

Referenced by LLScrollListCtrl::selectItemAt().

void LLScrollListItem::setColumn ( S32  column,
LLScrollListCell cell 
)

Definition at line 358 of file llscrolllistctrl.cpp.

References llendl, llerrs, mColumns, and S32.

Referenced by LLScrollListCtrl::addElement().

void LLScrollListItem::setEnabled ( BOOL  b  ) 

Definition at line 388 of file llscrolllistctrl.cpp.

References end, mColumns, and mEnabled.

Referenced by LLScrollListCtrl::addElement(), and LLScrollListCtrl::addSimpleItem().

void LLScrollListItem::setNumColumns ( S32  columns  ) 

Definition at line 342 of file llscrolllistctrl.cpp.

References mColumns, NULL, and S32.

Referenced by LLScrollListCtrl::addElement().

void LLScrollListItem::setSelected ( BOOL  b  )  [inline]

Definition at line 305 of file llscrolllistctrl.h.

References mSelected.

Referenced by LLPreviewGesture::addStep(), LLScrollListCtrl::deselectItem(), LLPanelGroupRolesSubTab::saveRoleChanges(), LLScrollListCtrl::selectItem(), and LLPanelGroupRolesSubTab::update().

void LLScrollListItem::setUserdata ( void userdata  )  [inline]

Definition at line 311 of file llscrolllistctrl.h.

References mUserdata.

Referenced by LLComboBox::add(), LLFloaterNewIM::addAgent(), LLFloaterNewIM::addGroup(), LLFloaterNewIM::addSpecial(), LLPreviewGesture::addStep(), LLPanelMsgs::buildLists(), and LLPreviewGesture::loadUIFromGesture().


Member Data Documentation

std::vector<LLScrollListCell *> LLScrollListItem::mColumns [private]

Definition at line 345 of file llscrolllistctrl.h.

Referenced by addColumn(), getColumn(), getNumColumns(), handleClick(), setColumn(), setEnabled(), setNumColumns(), and ~LLScrollListItem().

BOOL LLScrollListItem::mEnabled [private]

Definition at line 342 of file llscrolllistctrl.h.

Referenced by getEnabled(), and setEnabled().

LLSD LLScrollListItem::mItemValue [private]

Definition at line 344 of file llscrolllistctrl.h.

Referenced by getUUID(), and getValue().

BOOL LLScrollListItem::mSelected [private]

Definition at line 341 of file llscrolllistctrl.h.

Referenced by getSelected(), and setSelected().

void* LLScrollListItem::mUserdata [private]

Definition at line 343 of file llscrolllistctrl.h.

Referenced by getUserdata(), and setUserdata().


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