LLScrollListItem Class Reference

#include <llscrolllistctrl.h>

Inheritance diagram for LLScrollListItem:

Inheritance graph
[legend]
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)
void * getUserdata () 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 (LLUIImagePtr 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
LLString getContentsCSV () const
virtual void draw (const LLRect &rect, const LLColor4 &fg_color, const LLColor4 &bg_color, const LLColor4 &highlight_color, S32 column_padding)

Private Attributes

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


Detailed Description

Definition at line 317 of file llscrolllistctrl.h.


Constructor & Destructor Documentation

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

Definition at line 320 of file llscrolllistctrl.h.

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

Definition at line 322 of file llscrolllistctrl.h.

LLScrollListItem::~LLScrollListItem (  )  [virtual]

Definition at line 387 of file llscrolllistctrl.cpp.

References mColumns.


Member Function Documentation

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

BOOL LLScrollListItem::getSelected (  )  const [inline]

void LLScrollListItem::setEnabled ( BOOL  b  ) 

Definition at line 471 of file llscrolllistctrl.cpp.

References mEnabled.

Referenced by LLComboBox::add(), LLScrollListCtrl::addElement(), and LLPanelFriends::updateFriendItem().

Here is the caller graph for this function:

BOOL LLScrollListItem::getEnabled (  )  const [inline]

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

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

LLUUID LLScrollListItem::getUUID (  )  const [inline]

Definition at line 336 of file llscrolllistctrl.h.

References LLSD::asUUID(), and mItemValue.

Referenced by LLPanelEstateInfo::accessRemoveCore(), LLNameListCtrl::addElement(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), LLPanelGroupInvite::impl::addUsers(), LLPanelGroupRolesSubTab::buildMembersList(), LLScrollListCtrl::getItemIndex(), LLFloaterInspect::getSelectedUUID(), LLScrollListCtrl::getStringUUIDSelectedItem(), LLPanelGroupRolesSubTab::handleActionCheck(), LLPanelGroupRolesSubTab::handleDeleteRole(), LLPanelGroupMembersSubTab::handleMemberDoubleClick(), LLPanelGroupRolesSubTab::handleMemberVisibilityChange(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterNewIM::isUUIDAvailable(), LLFloaterInspect::onClickCreatorProfile(), LLFloaterInspect::onClickOwnerProfile(), LLPanelLandAccess::onClickRemoveAccess(), LLPanelLandAccess::onClickRemoveBanned(), LLPanelLandObjects::onCommitList(), LLPanelAvatarSecondLife::onDoubleClickGroup(), LLPanelLandObjects::onDoubleClickOwner(), LLFloaterAvatarPicker::onList(), LLPanelGroupMembersSubTab::onRoleCheck(), LLPanelGroupNotices::onSelectNotice(), LLFloaterNewIM::onStart(), LLPanelGroupGeneral::openProfile(), LLNameListCtrl::refresh(), LLFloaterInspect::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), LLScrollListCtrl::selectMultiple(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLPanelGroupInvite::impl::submitInvitations(), and LLPanelGroupRolesSubTab::update().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLScrollListItem::getValue (  )  const [inline]

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]

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

Definition at line 344 of file llscrolllistctrl.h.

References mColumns.

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

Definition at line 347 of file llscrolllistctrl.h.

References mColumns.

void LLScrollListItem::setNumColumns ( S32  columns  ) 

Definition at line 392 of file llscrolllistctrl.cpp.

References mColumns, NULL, and S32.

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

Here is the caller graph for this function:

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

Definition at line 408 of file llscrolllistctrl.cpp.

References llendl, llerrs, mColumns, and S32.

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

Here is the caller graph for this function:

S32 LLScrollListItem::getNumColumns (  )  const [inline]

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

Definition at line 356 of file llscrolllistctrl.h.

References mColumns, NULL, and S32.

Referenced by LLNameListCtrl::addElement(), LLScrollListCtrl::addElement(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), LLPanelGroupSubTab::buildActionCategory(), LLScrollListCtrl::deselectItem(), LLScrollListItemSeparator::draw(), LLScrollListItemComment::draw(), draw(), getContentsCSV(), LLScrollListCtrl::getSelectedItemLabel(), LLComboBox::getXML(), LLScrollListCtrl::handleClick(), LLScrollListCtrl::handleKeyHere(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLScrollListCtrl::handleToolTip(), LLScrollListCtrl::handleUnicodeCharHere(), LLPreviewGesture::onClickAdd(), LLPanelGroupVoting::impl::onClickViewHistoryItem(), LLPanelGroupVoting::impl::onClickViewProposalItem(), LLPanelLandObjects::onCommitList(), LLPanelLandObjects::onDoubleClickOwner(), LLScriptEdCore::onErrorList(), LLFloaterAvatarPicker::onList(), LLPanelGroupLandMoney::impl::onMapButton(), LLFloaterNewIM::onStart(), SortScrollListItem::operator()(), LLNameListCtrl::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), LLPanelFriends::refreshUI(), LLScrollListCtrl::selectItem(), LLScrollListCtrl::selectItemByLabel(), LLPanelGroupVoting::impl::setEnableHistoryItem(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLFloaterTopObjects::showBeacon(), LLColumnHeader::showList(), LLScrollListCtrl::updateColumns(), LLToolBar::updateCommunicateList(), LLPanelFriends::updateFriendItem(), LLPreviewGesture::updateLabel(), LLScrollListCtrl::updateLineHeight(), LLScrollListCtrl::updateLineHeightInsert(), and LLFloaterTopObjects::updateSelectionInfo().

Here is the caller graph for this function:

LLString LLScrollListItem::getContentsCSV (  )  const

Definition at line 421 of file llscrolllistctrl.cpp.

References LLSD::asString(), getColumn(), getNumColumns(), LLScrollListCell::getValue(), i, and S32.

Here is the call graph for this function:

void LLScrollListItem::draw ( const LLRect rect,
const LLColor4 fg_color,
const LLColor4 bg_color,
const LLColor4 highlight_color,
S32  column_padding 
) [virtual]

Reimplemented in LLScrollListItemComment, and LLScrollListItemSeparator.

Definition at line 438 of file llscrolllistctrl.cpp.

References LLGLImmediate::color4fv(), getColumn(), getNumColumns(), gGL, gl_rect_2d(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLColor4::mV, LLUI::popMatrix(), LLUI::pushMatrix(), S32, and LLUI::translate().

Referenced by LLScrollListCtrl::drawItems().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 363 of file llscrolllistctrl.h.

Referenced by getSelected(), and setSelected().

Definition at line 364 of file llscrolllistctrl.h.

Referenced by getEnabled(), and setEnabled().

void* LLScrollListItem::mUserdata [private]

Definition at line 365 of file llscrolllistctrl.h.

Referenced by getUserdata(), and setUserdata().

Definition at line 366 of file llscrolllistctrl.h.

Referenced by getUUID(), and getValue().

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


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

Generated on Fri May 16 09:03:11 2008 for SecondLife by  doxygen 1.5.5