#include <llscrolllistctrl.h>


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 |
| LLScrollListCell * | getColumn (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 |
Definition at line 317 of file llscrolllistctrl.h.
| 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] |
| void LLScrollListItem::setSelected | ( | BOOL | b | ) | [inline] |
Definition at line 327 of file llscrolllistctrl.h.
References mSelected.
Referenced by LLPreviewGesture::addStep(), LLScrollListCtrl::deselectItem(), LLPanelGroupRolesSubTab::saveRoleChanges(), LLScrollListCtrl::selectItem(), and LLPanelGroupRolesSubTab::update().

| BOOL LLScrollListItem::getSelected | ( | ) | const [inline] |
Definition at line 328 of file llscrolllistctrl.h.
References mSelected.
Referenced by LLScrollListCtrl::deleteSelectedItems(), LLScrollListCtrl::deselectItem(), LLScrollListCtrl::drawItems(), LLScrollListCtrl::getAllSelected(), LLScrollListCtrl::getFirstSelected(), LLScrollListCtrl::getFirstSelectedIndex(), LLScrollListCtrl::handleClick(), LLScrollListCtrl::isSelected(), LLScrollListCtrl::selectFirstItem(), LLScrollListCtrl::selectItem(), LLScrollListCtrl::selectItemAt(), LLScrollListCtrl::selectNextItem(), and LLScrollListCtrl::selectPrevItem().

| void LLScrollListItem::setEnabled | ( | BOOL | b | ) |
Definition at line 471 of file llscrolllistctrl.cpp.
References mEnabled.
Referenced by LLComboBox::add(), LLScrollListCtrl::addElement(), and LLPanelFriends::updateFriendItem().

| BOOL LLScrollListItem::getEnabled | ( | ) | const [inline] |
Definition at line 331 of file llscrolllistctrl.h.
References mEnabled.
Referenced by LLScrollListCtrl::drawItems(), LLComboBox::getXML(), LLScrollListCtrl::handleUnicodeCharHere(), LLScrollListCtrl::hitItem(), LLScrollListCtrl::selectAll(), LLScrollListCtrl::selectFirstItem(), LLScrollListCtrl::selectItemByLabel(), LLScrollListCtrl::selectItemRange(), LLScrollListCtrl::selectMultiple(), LLScrollListCtrl::selectNextItem(), LLScrollListCtrl::selectPrevItem(), and LLScrollListCtrl::setSelectedByValue().

| void LLScrollListItem::setUserdata | ( | void * | userdata | ) | [inline] |
Definition at line 333 of file llscrolllistctrl.h.
References mUserdata.
Referenced by LLComboBox::add(), LLFloaterNewIM::addAgent(), LLFloaterNewIM::addGroup(), LLFloaterNewIM::addSpecial(), LLPreviewGesture::addStep(), LLPanelMsgs::buildLists(), and LLPreviewGesture::loadUIFromGesture().

| void* LLScrollListItem::getUserdata | ( | ) | const [inline] |
Definition at line 334 of file llscrolllistctrl.h.
References mUserdata.
Referenced by LLPreviewGesture::createGesture(), 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(), LLPreviewGesture::updateLabel(), and LLPreviewGesture::~LLPreviewGesture().

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


| LLSD LLScrollListItem::getValue | ( | ) | const [inline] |
Definition at line 337 of file llscrolllistctrl.h.
References mItemValue.
Referenced by LLScrollListCtrl::deleteItems(), LLScrollListCtrl::getItem(), LLScrollListCtrl::getSelectedValue(), LLScrollListCtrl::getValue(), LLComboBox::getValue(), LLComboBox::getXML(), LLScrollListCtrl::isSelected(), SortFriendsByID::operator()(), LLScrollListCtrl::setSelectedByValue(), and LLToolBar::updateCommunicateList().

| 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 341 of file llscrolllistctrl.h.
References LLColor4::black, FALSE, and mColumns.
Referenced by LLScrollListCtrl::addSimpleElement(), LLScrollListCtrl::addStringUUIDItem(), LLScrollListItemComment::LLScrollListItemComment(), and LLPanelLandObjects::processParcelObjectOwnersReply().

| void LLScrollListItem::addColumn | ( | LLUIImagePtr | icon, | |
| S32 | width = 0 | |||
| ) | [inline] |
| void LLScrollListItem::addColumn | ( | LLCheckBoxCtrl * | check, | |
| S32 | width = 0 | |||
| ) | [inline] |
| 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().

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

| S32 LLScrollListItem::getNumColumns | ( | ) | const [inline] |
Definition at line 354 of file llscrolllistctrl.h.
References mColumns.
Referenced by draw(), LLScrollListCtrl::drawItems(), getContentsCSV(), LLScrollListCtrl::updateColumns(), LLScrollListCtrl::updateLineHeight(), and LLScrollListCtrl::updateLineHeightInsert().

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

| LLString LLScrollListItem::getContentsCSV | ( | ) | const |
Definition at line 421 of file llscrolllistctrl.cpp.
References LLSD::asString(), getColumn(), getNumColumns(), LLScrollListCell::getValue(), i, and S32.

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


BOOL LLScrollListItem::mSelected [private] |
BOOL LLScrollListItem::mEnabled [private] |
void* LLScrollListItem::mUserdata [private] |
LLSD LLScrollListItem::mItemValue [private] |
std::vector<LLScrollListCell *> LLScrollListItem::mColumns [private] |
Definition at line 367 of file llscrolllistctrl.h.
Referenced by addColumn(), getColumn(), getNumColumns(), setColumn(), setNumColumns(), and ~LLScrollListItem().
1.5.5