LLScrollListCtrl Class Reference

#include <llscrolllistctrl.h>

Inheritance diagram for LLScrollListCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLScrollListCtrl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScrollListCtrl (const LLString &name, const LLRect &rect, void(*commit_callback)(LLUICtrl *, void *), void *callback_userdata, BOOL allow_multiple_selection, BOOL draw_border=TRUE)
virtual ~LLScrollListCtrl ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual LLXMLNodePtr getXML (bool save_children=true) const
void setScrollListParameters (LLXMLNodePtr node)
S32 isEmpty () const
void deleteAllItems ()
void setColumnHeadings (LLSD headings)
void sortByColumn (U32 column, BOOL ascending)
void sort ()
virtual S32 getItemCount () const
virtual void addColumn (const LLSD &column, EAddPosition pos=ADD_BOTTOM)
virtual void clearColumns ()
virtual void setColumnLabel (const LLString &column, const LLString &label)
virtual LLScrollListColumngetColumn (S32 index)
virtual S32 getNumColumns () const
virtual LLScrollListItemaddElement (const LLSD &value, EAddPosition pos=ADD_BOTTOM, void *userdata=NULL)
virtual LLScrollListItemaddSimpleElement (const LLString &value, EAddPosition pos=ADD_BOTTOM, const LLSD &id=LLSD())
virtual void clearRows ()
virtual void sortByColumn (LLString name, BOOL ascending)
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
LLCtrlSelectionInterfacegetSelectionInterface ()
LLCtrlListInterfacegetListInterface ()
LLCtrlScrollInterfacegetScrollInterface ()
BOOL setCurrentByID (const LLUUID &id)
virtual LLUUID getCurrentID ()
BOOL operateOnSelection (EOperation op)
BOOL operateOnAll (EOperation op)
BOOL setMaxItemCount (S32 max_count)
BOOL selectByID (const LLUUID &id)
BOOL setSelectedByValue (LLSD value, BOOL selected)
BOOL isSorted ()
virtual BOOL isSelected (LLSD value)
BOOL selectFirstItem ()
BOOL selectNthItem (S32 index)
BOOL selectItemAt (S32 x, S32 y, MASK mask)
void deleteSingleItem (S32 index)
void deleteSelectedItems ()
void deselectAllItems (BOOL no_commit_on_change=FALSE)
void highlightNthItem (S32 index)
void setDoubleClickCallback (void(*cb)(void *))
void setMaxiumumSelectCallback (void(*cb)(void *))
void setSortChangedCallback (void(*cb)(void *))
void swapWithNext (S32 index)
void swapWithPrevious (S32 index)
void setCanSelect (BOOL can_select)
virtual BOOL getCanSelect () const
S32 getItemIndex (LLScrollListItem *item)
S32 getItemIndex (LLUUID &item_id)
LLScrollListItemaddSimpleItem (const LLString &item_text, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE)
LLScrollListItemaddSimpleItem (const LLString &item_text, LLSD sd, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE, S32 column_width=0)
BOOL selectSimpleItem (const LLString &item, BOOL case_sensitive=TRUE)
BOOL selectSimpleItemByPrefix (const LLString &target, BOOL case_sensitive)
BOOL selectSimpleItemByPrefix (const LLWString &target, BOOL case_sensitive)
const LLStringgetSimpleSelectedItem (S32 column=0) const
LLSD getSimpleSelectedValue ()
LLScrollListItemaddStringUUIDItem (const LLString &item_text, const LLUUID &id, EAddPosition pos=ADD_BOTTOM, BOOL enabled=TRUE, S32 column_width=0)
LLUUID getStringUUIDSelectedItem ()
LLScrollListItemgetFirstSelected () const
virtual S32 getFirstSelectedIndex () const
std::vector< LLScrollListItem * > getAllSelected () const
LLDynamicArray< LLUUIDgetSelectedIDs ()
LLScrollListItemgetLastSelectedItem () const
LLScrollListItemgetFirstData () const
LLScrollListItemgetLastData () const
std::vector< LLScrollListItem * > getAllData () const
void setAllowMultipleSelection (BOOL mult)
void setBgWriteableColor (const LLColor4 &c)
void setReadOnlyBgColor (const LLColor4 &c)
void setBgSelectedColor (const LLColor4 &c)
void setBgStripeColor (const LLColor4 &c)
void setFgSelectedColor (const LLColor4 &c)
void setFgUnselectedColor (const LLColor4 &c)
void setHighlightedColor (const LLColor4 &c)
void setFgDisableColor (const LLColor4 &c)
void setBackgroundVisible (BOOL b)
void setDrawStripes (BOOL b)
void setColumnPadding (const S32 c)
S32 getColumnPadding ()
void setCommitOnKeyboardMovement (BOOL b)
void setCommitOnSelectionChange (BOOL b)
void setAllowKeyboardMovement (BOOL b)
void setMaxSelectable (U32 max_selected)
S32 getMaxSelectable ()
virtual S32 getScrollPos ()
virtual void setScrollPos (S32 pos)
S32 getSearchColumn ()
void setSearchColumn (S32 column)
void clearSearchString ()
virtual void draw ()
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
virtual BOOL handleUnicodeCharHere (llwchar uni_char, BOOL called_from_parent)
virtual BOOL handleScrollWheel (S32 x, S32 y, S32 clicks)
virtual void setEnabled (BOOL enabled)
virtual void setFocus (BOOL b)
virtual void onFocusReceived ()
virtual void onFocusLost ()
virtual BOOL isDirty () const
virtual void resetDirty ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)
virtual void arrange (S32 max_width, S32 max_height)
virtual LLRect getRequiredRect ()
LLRect getItemListRect ()
void updateColumns ()
void updateMaxContentWidth (LLScrollListItem *changed_item)
void setDisplayHeading (BOOL display)
void setHeadingHeight (S32 heading_height)
void setCollapseEmptyColumns (BOOL collapse)
void setIsPopup (BOOL is_popup)
LLScrollListItemhitItem (S32 x, S32 y)
virtual void scrollToShowSelected ()
virtual void copy ()
virtual BOOL canCopy ()
virtual void cut ()
virtual BOOL canCut ()
virtual void doDelete ()
virtual BOOL canDoDelete ()
virtual void selectAll ()
virtual BOOL canSelectAll ()
virtual void deselect ()
virtual BOOL canDeselect ()
void setNumDynamicColumns (int num)
void setTotalStaticColumnWidth (int width)
std::string getSortColumnName ()
BOOL getSortAscending ()
S32 selectMultiple (LLDynamicArray< LLUUID > ids)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static BOOL rowPreceeds (LLScrollListItem *new_row, LLScrollListItem *test_row)
static void onScrollChange (S32 new_pos, LLScrollbar *src, void *userdata)
static void onClickColumn (void *userdata)

Public Attributes

BOOL mDrewSelected

Protected Types

typedef std::deque< LLScrollListItem * > item_list

Protected Member Functions

BOOL addItem (LLScrollListItem *item, EAddPosition pos=ADD_BOTTOM)
void selectPrevItem (BOOL extend_selection)
void selectNextItem (BOOL extend_selection)
void drawItems ()
void updateLineHeight ()
void reportInvalidInput ()
BOOL isRepeatedChars (const LLWString &string) const
void selectItem (LLScrollListItem *itemp, BOOL single_select=TRUE)
void deselectItem (LLScrollListItem *itemp)
void commitIfChanged ()
void setSorted (BOOL sorted)

Protected Attributes

S32 mCurIndex
S32 mCurSelectedIndex
S32 mLineHeight
S32 mScrollLines
S32 mPageLines
S32 mHeadingHeight
U32 mMaxSelectable
LLScrollbarmScrollbar
BOOL mAllowMultipleSelection
BOOL mAllowKeyboardMovement
BOOL mCommitOnKeyboardMovement
BOOL mCommitOnSelectionChange
BOOL mSelectionChanged
BOOL mNeedsScroll
BOOL mCanSelect
BOOL mDisplayColumnHeaders
BOOL mCollapseEmptyColumns
BOOL mIsPopup
item_list mItemList
LLScrollListItemmLastSelected
S32 mMaxItemCount
LLRect mItemListRect
S32 mColumnPadding
BOOL mBackgroundVisible
BOOL mDrawStripes
LLColor4 mBgWriteableColor
LLColor4 mBgReadOnlyColor
LLColor4 mBgSelectedColor
LLColor4 mBgStripeColor
LLColor4 mFgSelectedColor
LLColor4 mFgUnselectedColor
LLColor4 mFgDisabledColor
LLColor4 mHighlightedColor
S32 mBorderThickness
void(* mOnDoubleClickCallback )(void *userdata)
void(* mOnMaximumSelectCallback )(void *userdata)
void(* mOnSortChangedCallback )(void *userdata)
S32 mHighlightedItem
LLViewBordermBorder
LLWString mSearchString
LLFrameTimer mSearchTimer
LLString mDefaultColumn
S32 mSearchColumn
S32 mNumDynamicWidthColumns
S32 mTotalStaticColumnWidth
S32 mSortColumn
BOOL mSortAscending
BOOL mSorted
std::map< LLString, LLScrollListColumnmColumns
std::vector< LLScrollListColumn * > mColumnsIndexed
BOOL mDirty
S32 mOriginalSelection

Detailed Description

Definition at line 349 of file llscrolllistctrl.h.


Member Typedef Documentation

typedef std::deque<LLScrollListItem *> LLScrollListCtrl::item_list [protected]

Definition at line 622 of file llscrolllistctrl.h.


Constructor & Destructor Documentation

LLScrollListCtrl::LLScrollListCtrl ( const LLString name,
const LLRect rect,
void(*)(LLUICtrl *, void *)  commit_callback,
void callback_userdata,
BOOL  allow_multiple_selection,
BOOL  draw_border = TRUE 
)

Referenced by fromXML().

LLScrollListCtrl::~LLScrollListCtrl (  )  [virtual]

Definition at line 500 of file llscrolllistctrl.cpp.

References gEditMenuHandler, mItemList, and NULL.


Member Function Documentation

void LLScrollListCtrl::addColumn ( const LLSD column,
EAddPosition  pos = ADD_BOTTOM 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 2687 of file llscrolllistctrl.cpp.

References LLView::addChild(), LLSD::asString(), FALSE, LLRectBase< Type >::getWidth(), left, llround(), mColumnPadding, mColumns, mColumnsIndexed, mDefaultColumn, mDisplayColumnHeaders, LLScrollListColumn::mDynamicWidth, LLScrollListColumn::mHeader, mHeadingHeight, LLScrollListColumn::mIndex, mItemListRect, LLScrollListColumn::mLabel, LLRectBase< Type >::mLeft, mNumDynamicWidthColumns, LLScrollListColumn::mParentCtrl, LLScrollListColumn::mRelWidth, mScrollbar, LLRectBase< Type >::mTop, mTotalStaticColumnWidth, LLScrollListColumn::mWidth, LLView::removeChild(), right, S32, LLColumnHeader::setImage(), LLComboBox::setLabel(), LLUICtrl::setTabStop(), LLView::setVisible(), top, and updateColumns().

Referenced by LLComboBox::addColumn(), addElement(), and setColumnHeadings().

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

Implements LLCtrlListInterface.

Reimplemented in LLNameListCtrl.

Definition at line 2857 of file llscrolllistctrl.cpp.

References addColumn(), addItem(), LLSD::asBoolean(), LLSD::asString(), LLSD::asUUID(), LLSD::beginArray(), LLSD::endArray(), LLScrollListItem::getColumn(), LLResMgr::getRes(), LLFontGL::getStyleFromString(), LLImageProviderInterface::getUIImageByID(), gResMgr, LLSD::has(), LLFONT_SANSSERIF_SMALL, mColumns, mColumnsIndexed, mDefaultColumn, LLScrollListColumn::mFontAlignment, LLScrollListColumn::mHeader, LLScrollListColumn::mIndex, LLScrollListColumn::mWidth, LLFontGL::NORMAL, NULL, S32, LLScrollListText::setColor(), LLScrollListSeparator::setColor(), LLScrollListIcon::setColor(), LLScrollListItem::setColumn(), LLScrollListItem::setEnabled(), LLColumnHeader::setHasResizableElement(), LLScrollListItem::setNumColumns(), LLUI::sImageProvider, TRUE, type, and width.

Referenced by LLNameListCtrl::addElement(), LLComboBox::addElement(), LLPanelFriends::addFriend(), LLPanelGroupVoting::impl::addNoActiveScrollListItem(), LLPanelGroupVoting::impl::addNoHistoryScrollListItem(), LLPanelGroupVoting::impl::addPendingActiveScrollListItem(), LLPanelGroupVoting::impl::addPendingHistoryScrollListItem(), LLPreviewGesture::addStep(), LLPanelGroupSubTab::buildActionCategory(), LLPanelMsgs::buildLists(), LLLiveLSLEditor::callbackLSLCompileFailed(), LLPreviewLSL::callbackLSLCompileFailed(), fromXML(), LLPanelGroupRolesSubTab::handleCreateRole(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLPreviewGesture::loadUIFromGesture(), LLFloaterImport::postBuild(), LLPanelAvatar::processAvatarGroupsReply(), LLPanelGroupLandMoney::impl::processGroupLand(), LLPanelGroupNotices::processNotices(), LLFloaterInspect::refresh(), LLFloaterAvatarList::refreshAvatarList(), LLPanelActiveSpeakers::refreshSpeakers(), LLPanelAvatar::resetGroupList(), LLLiveLSLEditor::saveIfNeeded(), LLPreviewLSL::saveIfNeeded(), LLPanelGroupRolesSubTab::saveRoleChanges(), setValue(), LLPanelGroupRolesSubTab::update(), LLFloaterEventLog::updateList(), LLLiveLSLEditor::uploadAssetLegacy(), and LLPreviewLSL::uploadAssetLegacy().

BOOL LLScrollListCtrl::addItem ( LLScrollListItem item,
EAddPosition  pos = ADD_BOTTOM 
) [protected]

Definition at line 693 of file llscrolllistctrl.cpp.

References ADD_BOTTOM, ADD_SORTED, ADD_TOP, FALSE, LLRectBase< Type >::getHeight(), getItemCount(), LLView::getVisible(), llassert, mItemList, mItemListRect, mLineHeight, mMaxItemCount, mPageLines, mScrollbar, mSortAscending, mSortColumn, LLScrollbar::setDocSize(), LLScrollbar::setPageSize(), setSorted(), LLView::setVisible(), TRUE, updateColumns(), updateLineHeight(), and updateMaxContentWidth().

Referenced by addElement(), LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), addSimpleElement(), addSimpleItem(), and addStringUUIDItem().

LLScrollListItem * LLScrollListCtrl::addSimpleElement ( const LLString value,
EAddPosition  pos = ADD_BOTTOM,
const LLSD id = LLSD() 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 2993 of file llscrolllistctrl.cpp.

References LLScrollListItem::addColumn(), addItem(), LLView::getRect(), LLResMgr::getRes(), gResMgr, and LLFONT_SANSSERIF_SMALL.

Referenced by LLComboBox::addSimpleElement(), LLFloaterAvatarPicker::find(), and LLFloaterAvatarPicker::postBuild().

LLScrollListItem * LLScrollListCtrl::addSimpleItem ( const LLString item_text,
LLSD  sd,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE,
S32  column_width = 0 
)

Definition at line 1390 of file llscrolllistctrl.cpp.

References LLScrollListItem::addColumn(), addItem(), getItemCount(), LLResMgr::getRes(), gResMgr, LLFONT_SANSSERIF_SMALL, mMaxItemCount, NULL, tut::sd(), and LLScrollListItem::setEnabled().

LLScrollListItem * LLScrollListCtrl::addSimpleItem ( const LLString item_text,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE 
)

Definition at line 1218 of file llscrolllistctrl.cpp.

References LLScrollListItem::addColumn(), addItem(), getItemCount(), LLResMgr::getRes(), gResMgr, LLFONT_SANSSERIF_SMALL, mMaxItemCount, NULL, and LLScrollListItem::setEnabled().

Referenced by LLComboBox::add(), LLLiveLSLEditor::callbackLSLCompileSucceeded(), LLPreviewLSL::callbackLSLCompileSucceeded(), fromXML(), LLNameListCtrl::fromXML(), LLPanelGroupActionsSubTab::handleActionSelect(), LLLiveLSLEditor::onSaveBytecodeComplete(), LLPanelGroupLandMoney::postBuild(), LLFloaterImport::postBuild(), LLPanelGroupNotices::processNotices(), LLPanelGroupMembersSubTab::update(), LLPanelGroupMembersSubTab::updateMembers(), and LLLiveLSLEditor::uploadAssetLegacy().

LLScrollListItem * LLScrollListCtrl::addStringUUIDItem ( const LLString item_text,
const LLUUID id,
EAddPosition  pos = ADD_BOTTOM,
BOOL  enabled = TRUE,
S32  column_width = 0 
)

Definition at line 1378 of file llscrolllistctrl.cpp.

References LLScrollListItem::addColumn(), addItem(), getItemCount(), LLResMgr::getRes(), gResMgr, LLFONT_SANSSERIF_SMALL, mMaxItemCount, and NULL.

Referenced by LLNameListCtrl::addGroupNameItem(), LLNameListCtrl::addNameItem(), and LLFloaterMute::refreshMuteList().

void LLScrollListCtrl::arrange ( S32  max_width,
S32  max_height 
) [virtual]

Definition at line 673 of file llscrolllistctrl.cpp.

References getItemCount(), LLRectBase< Type >::getWidth(), height, llmin(), mLineHeight, LLView::mRect, reshape(), S32, and width.

Referenced by LLComboBox::showList().

BOOL LLScrollListCtrl::canCopy (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2618 of file llscrolllistctrl.cpp.

References getFirstSelected(), and NULL.

Referenced by canCut().

BOOL LLScrollListCtrl::canCut (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2631 of file llscrolllistctrl.cpp.

References canCopy(), and canDoDelete().

BOOL LLScrollListCtrl::canDeselect (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2682 of file llscrolllistctrl.cpp.

References getCanSelect().

BOOL LLScrollListCtrl::canDoDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2643 of file llscrolllistctrl.cpp.

References FALSE.

Referenced by canCut().

BOOL LLScrollListCtrl::canSelectAll (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2670 of file llscrolllistctrl.cpp.

References getCanSelect(), mAllowMultipleSelection, mItemList, and mMaxSelectable.

void LLScrollListCtrl::clearColumns (  )  [virtual]

Implements LLCtrlListInterface.

Definition at line 2810 of file llscrolllistctrl.cpp.

References mColumns, and LLView::removeChild().

Referenced by LLComboBox::addColumn(), and LLComboBox::clearColumns().

void LLScrollListCtrl::clearRows (  )  [virtual]

Implements LLCtrlListInterface.

Definition at line 531 of file llscrolllistctrl.cpp.

References FALSE, mDirty, mItemList, mLastSelected, mScrollbar, mScrollLines, NULL, LLScrollbar::setDocParams(), and updateMaxContentWidth().

Referenced by LLComboBox::clearRows(), deleteAllItems(), operateOnAll(), and LLPanelActiveSpeakers::refreshSpeakers().

void LLScrollListCtrl::clearSearchString (  )  [inline]

Definition at line 507 of file llscrolllistctrl.h.

References mSearchString.

Referenced by LLComboBox::setFocus().

void LLScrollListCtrl::commitIfChanged (  )  [protected]

Definition at line 2197 of file llscrolllistctrl.cpp.

References FALSE, mDirty, mSelectionChanged, LLUICtrl::onCommit(), and TRUE.

Referenced by deselectAllItems(), selectAll(), selectFirstItem(), selectItemAt(), selectMultiple(), selectNthItem(), selectPrevItem(), selectSimpleItem(), selectSimpleItemByPrefix(), and setSelectedByValue().

void LLScrollListCtrl::copy (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2604 of file llscrolllistctrl.cpp.

References LLClipboard::copyFromSubstring(), gClipboard, getAllSelected(), and utf8str_to_wstring().

Referenced by cut().

void LLScrollListCtrl::cut (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2624 of file llscrolllistctrl.cpp.

References copy(), and doDelete().

void LLScrollListCtrl::deleteAllItems (  )  [inline]

Definition at line 370 of file llscrolllistctrl.h.

References clearRows().

Referenced by LLPanelGroupActionsSubTab::activate(), LLPanelGroupRolesSubTab::activate(), LLPanelMsgs::buildLists(), LLPanelGroupRolesSubTab::buildMembersList(), LLPanelGroupInvite::clear(), LLPanelEstateInfo::clearAccessLists(), LLFloaterNewIM::clearAllTargets(), LLPanelAvatarSecondLife::clearControls(), LLFloaterAvatarPicker::find(), LLPanelGroupActionsSubTab::handleActionSelect(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLPanelGroupMembersSubTab::handleRoleCheck(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLDispatchSetEstateAccess::operator()(), LLFloaterAvatarPicker::processAvatarPickerReply(), LLPanelLandBan::refresh(), LLPanelLandAccess::refresh(), LLPanelLandObjects::refresh(), LLFloaterAvatarList::refreshAvatarList(), LLFloaterMute::refreshMuteList(), LLPanelGroupLandMoney::impl::requestGroupLandInfo(), LLFloaterBuy::reset(), LLPanelAvatar::resetGroupList(), LLLiveLSLEditor::saveIfNeeded(), LLPreviewLSL::saveIfNeeded(), LLPanelGroupVoting::impl::sendGroupProposalsRequest(), LLPanelGroupVoting::impl::sendGroupVoteHistoryRequest(), LLPanelGroupActionsSubTab::update(), LLPanelGroupRolesSubTab::update(), LLPanelGroupMembersSubTab::update(), LLPanelGroupGeneral::update(), and LLFloaterEventLog::updateList().

void LLScrollListCtrl::deleteSelectedItems (  ) 

Definition at line 1030 of file llscrolllistctrl.cpp.

References mItemList, mLastSelected, NULL, and updateMaxContentWidth().

Referenced by LLPanelGroupMembersSubTab::handleEjectMembers(), LLPanelGroupInvite::impl::handleRemove(), operateOnSelection(), and LLComboBox::operateOnSelection().

void LLScrollListCtrl::deleteSingleItem ( S32  index  ) 

Definition at line 1012 of file llscrolllistctrl.cpp.

References mItemList, mLastSelected, NULL, S32, and updateMaxContentWidth().

Referenced by LLPanelGroupRolesSubTab::handleDeleteRole(), LLPanelAvatar::processAvatarGroupsReply(), LLComboBox::remove(), LLNameListCtrl::removeNameItem(), and LLPanelGroupRolesSubTab::saveRoleChanges().

void LLScrollListCtrl::deselect (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2676 of file llscrolllistctrl.cpp.

References deselectAllItems().

void LLScrollListCtrl::deselectAllItems ( BOOL  no_commit_on_change = FALSE  ) 

Definition at line 1199 of file llscrolllistctrl.cpp.

References commitIfChanged(), deselectItem(), mCommitOnSelectionChange, and mItemList.

Referenced by LLPanelGroupActionsSubTab::activate(), LLPanelGroupRolesSubTab::activate(), LLPreviewGesture::addStep(), LLComboBox::clear(), deselect(), LLFloaterAvatarPicker::doSelectionChange(), LLPanelGroupRolesSubTab::handleCreateRole(), LLPanelGroupRolesSubTab::handleRoleSelect(), operateOnAll(), operateOnSelection(), selectItem(), selectItemAt(), setSelectedByValue(), LLPanelGroupActionsSubTab::update(), and LLComboBox::updateSelection().

void LLScrollListCtrl::deselectItem ( LLScrollListItem itemp  )  [protected]

Definition at line 2176 of file llscrolllistctrl.cpp.

References FALSE, LLScrollListItem::getColumn(), LLScrollListItem::getSelected(), LLScrollListCell::highlightText(), mLastSelected, mSearchColumn, mSelectionChanged, NULL, LLScrollListItem::setSelected(), and TRUE.

Referenced by deselectAllItems(), selectFirstItem(), selectItemAt(), selectNthItem(), and setSelectedByValue().

void LLScrollListCtrl::doDelete (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2637 of file llscrolllistctrl.cpp.

Referenced by cut().

void LLScrollListCtrl::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 1616 of file llscrolllistctrl.cpp.

References LLView::draw(), drawItems(), FALSE, LLView::getEnabled(), LLRectBase< Type >::getHeight(), LLFocusMgr::getKeyboardFocus(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gFocusMgr, gl_rect_2d(), glColor4fv, mBackgroundVisible, mBgReadOnlyColor, mBgWriteableColor, mBorder, mNeedsScroll, LLView::mRect, LLColor4::mV, scrollToShowSelected(), and LLViewBorder::setKeyboardFocusHighlight().

void LLScrollListCtrl::drawItems (  )  [protected]

Definition at line 1483 of file llscrolllistctrl.cpp.

References clamp_rescale(), f, FALSE, LLFrameTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_rect_2d(), glColor4fv, LIST_BORDER_PAD, llmax(), mBgSelectedColor, mBgStripeColor, mCanSelect, mColumnPadding, mColumnsIndexed, mDrawStripes, mDrewSelected, mFgDisabledColor, mFgSelectedColor, mFgUnselectedColor, mHighlightedColor, mHighlightedItem, mItemList, mItemListRect, LLRectBase< Type >::mLeft, mLineHeight, mNumDynamicWidthColumns, mPageLines, LLRectBase< Type >::mRight, mScrollbar, mScrollLines, mSearchTimer, LLRectBase< Type >::mTop, mTotalStaticColumnWidth, LLColor4::mV, LLUI::popMatrix(), LLUI::pushMatrix(), S32, LLUI::sConfigGroup, LLRectBase< Type >::setOriginAndSize(), LLRectBase< Type >::stretch(), LLUI::translate(), TRUE, VALPHA, LLColor4::white, x, and y.

Referenced by draw().

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

Reimplemented in LLNameListCtrl.

Definition at line 2441 of file llscrolllistctrl.cpp.

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

std::vector< LLScrollListItem * > LLScrollListCtrl::getAllData (  )  const

Definition at line 634 of file llscrolllistctrl.cpp.

References mItemList.

Referenced by LLPanelGroupInvite::impl::addUsers(), LLPreviewGesture::createGesture(), LLComboBox::getXML(), LLFloaterNewIM::isUUIDAvailable(), LLPanelGroupInvite::impl::submitInvitations(), and LLPreviewGesture::~LLPreviewGesture().

std::vector< LLScrollListItem * > LLScrollListCtrl::getAllSelected (  )  const

Definition at line 561 of file llscrolllistctrl.cpp.

References mItemList.

Referenced by copy(), LLFloaterAvatarPicker::doSelectionChange(), LLPanelFriends::getSelectedIDs(), LLFloaterInspect::getSelectedUUID(), LLPanelGroupActionsSubTab::handleActionSelect(), LLPanelGroupMembersSubTab::handleEjectMembers(), LLPanelGroupMembersSubTab::handleMemberSelect(), LLFloaterImport::handleMouseDown(), LLPanelGroupInvite::impl::handleRemove(), LLPanelGroupMembersSubTab::handleRoleCheck(), LLPanelGroupInvite::impl::handleSelection(), LLFloaterImport::onBtnOK(), LLFloaterInspect::onClickCreatorProfile(), LLPanelMsgs::onClickEnablePopup(), LLFloaterInspect::onClickOwnerProfile(), LLPanelFriends::refreshUI(), and selectItemAt().

virtual BOOL LLScrollListCtrl::getCanSelect (  )  const [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 443 of file llscrolllistctrl.h.

References mCanSelect.

Referenced by canDeselect(), and canSelectAll().

LLScrollListColumn * LLScrollListCtrl::getColumn ( S32  index  )  [virtual]

Definition at line 2838 of file llscrolllistctrl.cpp.

References mColumnsIndexed, NULL, and S32.

Referenced by LLNameListCtrl::addElement(), LLNameListCtrl::addNameItem(), LLColumnHeader::findSnapEdge(), LLColumnHeader::setHasResizableElement(), LLColumnHeader::showList(), and LLColumnHeader::userSetShape().

S32 LLScrollListCtrl::getColumnPadding (  )  [inline]

Definition at line 492 of file llscrolllistctrl.h.

References mColumnPadding.

Referenced by LLColumnHeader::userSetShape().

virtual LLUUID LLScrollListCtrl::getCurrentID (  )  [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 408 of file llscrolllistctrl.h.

References getStringUUIDSelectedItem().

LLScrollListItem * LLScrollListCtrl::getFirstData (  )  const

Definition at line 616 of file llscrolllistctrl.cpp.

References mItemList, and NULL.

Referenced by LLColumnHeader::showList().

LLScrollListItem * LLScrollListCtrl::getFirstSelected (  )  const

Definition at line 547 of file llscrolllistctrl.cpp.

References mItemList, and NULL.

Referenced by LLPanelEstateInfo::accessRemoveCore(), LLPanelGroupRolesSubTab::buildMembersList(), canCopy(), LLPanelEstateInfo::checkRemovalButton(), LLPanelMsgs::draw(), LLComboBox::getCurrentIndex(), LLComboBox::getCurrentUserdata(), LLFloaterInspect::getSelectedUUID(), getSimpleSelectedItem(), getSimpleSelectedValue(), getStringUUIDSelectedItem(), getValue(), LLComboBox::getValue(), LLPanelGroupRolesSubTab::handleActionCheck(), LLPanelGroupRolesSubTab::handleDeleteRole(), handleKeyHere(), LLPanelGroupMembersSubTab::handleMemberDoubleClick(), LLPanelGroupRolesSubTab::handleMemberVisibilityChange(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLFloaterInspect::onClickCreatorProfile(), LLFloaterInspect::onClickOwnerProfile(), LLFloaterAvatarList::onClickTeleport(), LLFloaterAvatarList::onClickTrack(), LLPanelAvatarSecondLife::onDoubleClickGroup(), LLPanelGroupLandMoney::impl::onMapButton(), LLDispatchSetEstateAccess::operator()(), LLPreviewGesture::refresh(), LLFloaterInspect::refresh(), LLPanelFriends::refreshUI(), LLComboBox::remove(), LLNameListCtrl::removeNameItem(), selectNextItem(), selectPrevItem(), LLPanelGroupVoting::impl::setEnableHistoryItem(), LLPanelGroupVoting::impl::setEnableVoteProposal(), setFocus(), LLComboBox::setValue(), LLComboBox::showList(), LLPanelGroupRolesSubTab::update(), LLFloaterMute::updateButtons(), LLFloaterEventLog::updateControlsState(), and LLFloaterEventLog::updateSelectedEventInfo().

S32 LLScrollListCtrl::getFirstSelectedIndex (  )  const [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 599 of file llscrolllistctrl.cpp.

References mItemList, and S32.

Referenced by LLFloaterNewIM::addAgent(), LLFloaterNewIM::addGroup(), LLFloaterNewIM::addSpecial(), LLPanelGroupRolesSubTab::handleDeleteRole(), handleKeyHere(), handleUnicodeCharHere(), isDirty(), LLFloaterMute::onClickRemove(), LLPreviewGesture::refresh(), LLFloaterInspect::refresh(), resetDirty(), and scrollToShowSelected().

S32 LLScrollListCtrl::getItemCount (  )  const [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 525 of file llscrolllistctrl.cpp.

References mItemList.

Referenced by addItem(), addSimpleItem(), addStringUUIDItem(), arrange(), LLComboBox::getItemCount(), getRequiredRect(), handleKeyHere(), LLFloaterMute::onClickRemove(), LLDispatchSetEstateAccess::operator()(), LLPreviewGesture::refresh(), reshape(), and setMaxItemCount().

S32 LLScrollListCtrl::getItemIndex ( LLUUID item_id  ) 

Definition at line 1101 of file llscrolllistctrl.cpp.

References mItemList, and S32.

S32 LLScrollListCtrl::getItemIndex ( LLScrollListItem item  ) 

Definition at line 1085 of file llscrolllistctrl.cpp.

References mItemList, and S32.

Referenced by LLComboBox::getCurrentIndex(), handleHover(), LLComboBox::handleKeyHere(), LLComboBox::handleUnicodeCharHere(), LLPanelAvatar::processAvatarGroupsReply(), LLFloaterInspect::refresh(), LLComboBox::remove(), LLNameListCtrl::removeNameItem(), and LLPanelGroupRolesSubTab::saveRoleChanges().

LLRect LLScrollListCtrl::getItemListRect (  )  [inline]

Definition at line 531 of file llscrolllistctrl.h.

References mItemListRect.

Referenced by LLColumnHeader::userSetShape().

LLScrollListItem * LLScrollListCtrl::getLastData (  )  const

Definition at line 625 of file llscrolllistctrl.cpp.

References mItemList, and NULL.

Referenced by LLColumnHeader::showList().

LLScrollListItem* LLScrollListCtrl::getLastSelectedItem (  )  const [inline]

Definition at line 471 of file llscrolllistctrl.h.

References mLastSelected.

Referenced by LLComboBox::handleKeyHere(), LLFloaterImport::handleMouseDown(), and LLComboBox::handleUnicodeCharHere().

LLCtrlListInterface* LLScrollListCtrl::getListInterface (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 403 of file llscrolllistctrl.h.

Referenced by init_group_list().

S32 LLScrollListCtrl::getMaxSelectable (  )  [inline]

Definition at line 498 of file llscrolllistctrl.h.

References mMaxSelectable.

virtual S32 LLScrollListCtrl::getNumColumns (  )  const [inline, virtual]

Definition at line 386 of file llscrolllistctrl.h.

References mColumnsIndexed.

Referenced by LLColumnHeader::setHasResizableElement().

LLRect LLScrollListCtrl::getRequiredRect (  )  [virtual]

Reimplemented from LLView.

Definition at line 684 of file llscrolllistctrl.cpp.

References getItemCount(), LLRectBase< Type >::getWidth(), height, mLineHeight, LLView::mRect, S32, and width.

LLCtrlScrollInterface* LLScrollListCtrl::getScrollInterface (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 404 of file llscrolllistctrl.h.

Referenced by LLPanelActiveSpeakers::refreshSpeakers().

S32 LLScrollListCtrl::getScrollPos (  )  [virtual]

Implements LLCtrlScrollInterface.

Definition at line 2271 of file llscrolllistctrl.cpp.

References LLScrollbar::getDocPos(), and mScrollbar.

Referenced by LLFloaterNewIM::getScrollPos(), LLFloaterInspect::refresh(), LLFloaterAvatarList::refreshAvatarList(), LLPanelFriends::refreshNames(), reshape(), and LLFloaterEventLog::updateList().

S32 LLScrollListCtrl::getSearchColumn (  )  [inline]

Definition at line 504 of file llscrolllistctrl.h.

References mSearchColumn.

LLDynamicArray< LLUUID > LLScrollListCtrl::getSelectedIDs (  ) 

Returns the selected IDs

Returns:
List of selected IDs
Author:
Dale Glass

Definition at line 581 of file llscrolllistctrl.cpp.

References mItemList.

Referenced by LLFloaterEventLog::doCommand(), LLFloaterAvatarList::getSelectedNames(), LLFloaterAvatarList::luskwoodCommand(), LLFloaterAvatarList::onClickAR(), LLFloaterAvatarList::onClickIM(), LLFloaterAvatarList::onClickMark(), LLFloaterAvatarList::refreshAvatarList(), and LLFloaterEventLog::updateList().

LLCtrlSelectionInterface* LLScrollListCtrl::getSelectionInterface (  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 402 of file llscrolllistctrl.h.

const LLString & LLScrollListCtrl::getSimpleSelectedItem ( S32  column = 0  )  const

Definition at line 1361 of file llscrolllistctrl.cpp.

References LLScrollListItem::getColumn(), getFirstSelected(), LLScrollListCell::getText(), and LLStringBase< char >::null.

Referenced by LLComboBox::getSimple(), LLComboBox::getSimpleSelectedItem(), LLFloaterMute::onClickRemove(), LLComboBox::setCurrentByID(), LLComboBox::setCurrentByIndex(), LLComboBox::setSelectedByValue(), LLComboBox::setValue(), and LLComboBox::updateSelection().

LLSD LLScrollListCtrl::getSimpleSelectedValue (  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1469 of file llscrolllistctrl.cpp.

References getFirstSelected(), and LLScrollListItem::getValue().

Referenced by LLComboBox::getSimpleSelectedValue(), and LLPanelActiveSpeakers::refreshSpeakers().

BOOL LLScrollListCtrl::getSortAscending (  )  [inline]

Definition at line 569 of file llscrolllistctrl.h.

References mSortAscending.

Referenced by LLColumnHeader::draw(), LLColumnHeader::onClick(), LLPanelActiveSpeakers::refreshSpeakers(), and LLColumnHeader::showList().

std::string LLScrollListCtrl::getSortColumnName (  ) 

Definition at line 2802 of file llscrolllistctrl.cpp.

References mColumnsIndexed, LLScrollListColumn::mName, mSortColumn, and NULL.

Referenced by LLColumnHeader::draw(), and LLPanelActiveSpeakers::refreshSpeakers().

LLUUID LLScrollListCtrl::getStringUUIDSelectedItem (  ) 

Definition at line 1457 of file llscrolllistctrl.cpp.

References getFirstSelected(), LLScrollListItem::getUUID(), and LLUUID::null.

Referenced by getCurrentID(), LLComboBox::getCurrentID(), and LLFloaterMute::onClickRemove().

LLSD LLScrollListCtrl::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 3021 of file llscrolllistctrl.cpp.

References getFirstSelected(), and LLScrollListItem::getValue().

Referenced by LLPanelActiveSpeakers::onClickMuteTextCommit(), LLPanelActiveSpeakers::onClickMuteVoiceCommit(), LLPanelActiveSpeakers::onClickProfile(), and LLPanelActiveSpeakers::onVolumeChange().

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

Implements LLView.

Reimplemented in LLNameListCtrl.

Definition at line 363 of file llscrolllistctrl.h.

References LL_SCROLL_LIST_CTRL_TAG.

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

Implements LLView.

Reimplemented in LLNameListCtrl.

Definition at line 362 of file llscrolllistctrl.h.

References WIDGET_TYPE_SCROLL_LIST.

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

Reimplemented from LLUICtrl.

Reimplemented in LLNameListCtrl.

Definition at line 2322 of file llscrolllistctrl.cpp.

References LLView::addColorXML(), FALSE, LLUICtrl::getXML(), mAllowMultipleSelection, mBackgroundVisible, mBgReadOnlyColor, mBgSelectedColor, mBgStripeColor, mBgWriteableColor, mBorder, mColumnPadding, mColumns, mDisplayColumnHeaders, mDrawStripes, mFgDisabledColor, mFgSelectedColor, mFgUnselectedColor, mHighlightedColor, LLScrollListColumn::mLabel, LLScrollListColumn::mName, LLScrollListColumn::mWidth, NULL, and TRUE.

Referenced by LLNameListCtrl::getXML().

BOOL LLScrollListCtrl::handleDoubleClick ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1808 of file llscrolllistctrl.cpp.

References LLView::childrenHandleDoubleClick(), LLView::getVisible(), LLUICtrl::mCallbackUserData, mCanSelect, mOnDoubleClickCallback, NULL, and TRUE.

BOOL LLScrollListCtrl::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1863 of file llscrolllistctrl.cpp.

References FALSE, getItemIndex(), LLView::handleHover(), LLView::hasMouseCapture(), highlightNthItem(), hitItem(), MASK_NONE, mCanSelect, mNeedsScroll, selectItemAt(), and TRUE.

BOOL LLScrollListCtrl::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 1901 of file llscrolllistctrl.cpp.

References FALSE, LLScrollListItem::getColumn(), getFirstSelected(), getFirstSelectedIndex(), getItemCount(), LLScrollbar::getPageSize(), LLView::getVisible(), LLUICtrl::hasFocus(), LLScrollListCell::highlightText(), KEY_BACKSPACE, KEY_DOWN, KEY_END, KEY_HOME, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_RETURN, KEY_UP, mAllowKeyboardMovement, MASK_NONE, mCanSelect, mCommitOnKeyboardMovement, mCommitOnSelectionChange, mNeedsScroll, mScrollbar, mSearchColumn, mSearchString, mSearchTimer, LLUICtrl::onCommit(), LLFrameTimer::reset(), selectFirstItem(), selectNextItem(), selectNthItem(), selectPrevItem(), selectSimpleItemByPrefix(), TRUE, and wstring_to_utf8str().

Referenced by LLComboBox::handleKeyHere().

BOOL LLScrollListCtrl::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1763 of file llscrolllistctrl.cpp.

References LLView::childrenHandleMouseDown(), FALSE, gFocusMgr, mNeedsScroll, mSelectionChanged, NULL, selectItemAt(), setFocus(), LLFocusMgr::setMouseCapture(), and TRUE.

BOOL LLScrollListCtrl::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 1783 of file llscrolllistctrl.cpp.

References FALSE, gFocusMgr, LLView::handleMouseUp(), LLView::hasMouseCapture(), MASK_NONE, mDirty, mItemListRect, mNeedsScroll, mSelectionChanged, NULL, LLUICtrl::onCommit(), LLRectBase< Type >::pointInRect(), selectItemAt(), LLFocusMgr::setMouseCapture(), and TRUE.

BOOL LLScrollListCtrl::handleScrollWheel ( S32  x,
S32  y,
S32  clicks 
) [virtual]

Reimplemented from LLView.

Definition at line 1652 of file llscrolllistctrl.cpp.

References FALSE, LLScrollbar::handleScrollWheel(), and mScrollbar.

BOOL LLScrollListCtrl::handleUnicodeCharHere ( llwchar  uni_char,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLView.

Definition at line 2036 of file llscrolllistctrl.cpp.

References FALSE, LLScrollListItem::getColumn(), LLFrameTimer::getElapsedTimeF32(), LLScrollListItem::getEnabled(), LLControlGroup::getF32(), getFirstSelectedIndex(), LLScrollListCell::getText(), LLScrollListCell::highlightText(), isRepeatedChars(), mCommitOnKeyboardMovement, mCommitOnSelectionChange, mItemList, mNeedsScroll, mSearchColumn, mSearchString, mSearchTimer, LLUICtrl::onCommit(), LLFrameTimer::reset(), S32, LLUI::sConfigGroup, selectItem(), selectSimpleItemByPrefix(), LLStringOps::toLower(), TRUE, utf8str_to_wstring(), and wstring_to_utf8str().

Referenced by LLComboBox::handleUnicodeCharHere().

void LLScrollListCtrl::highlightNthItem ( S32  index  ) 

Definition at line 1050 of file llscrolllistctrl.cpp.

References mHighlightedItem.

Referenced by handleHover(), LLComboBox::handleKeyHere(), LLComboBox::handleUnicodeCharHere(), and LLComboBox::hideList().

LLScrollListItem * LLScrollListCtrl::hitItem ( S32  x,
S32  y 
)

Definition at line 1826 of file llscrolllistctrl.cpp.

References LLRectBase< Type >::getWidth(), mItemList, mItemListRect, LLRectBase< Type >::mLeft, mLineHeight, mPageLines, mScrollLines, LLRectBase< Type >::mTop, NULL, LLRectBase< Type >::pointInRect(), S32, LLRectBase< Type >::setLeftTopAndSize(), and LLRectBase< Type >::translate().

Referenced by handleHover(), and selectItemAt().

BOOL LLScrollListCtrl::isDirty (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 3074 of file llscrolllistctrl.cpp.

References getFirstSelectedIndex(), mAllowMultipleSelection, mDirty, and mOriginalSelection.

Referenced by LLComboBox::isDirty().

S32 LLScrollListCtrl::isEmpty (  )  const

Definition at line 520 of file llscrolllistctrl.cpp.

References mItemList.

BOOL LLScrollListCtrl::isRepeatedChars ( const LLWString string  )  const [protected]

Definition at line 2132 of file llscrolllistctrl.cpp.

References FALSE, i, and TRUE.

Referenced by handleUnicodeCharHere().

BOOL LLScrollListCtrl::isSelected ( LLSD  value  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1443 of file llscrolllistctrl.cpp.

References LLSD::asString(), FALSE, and mItemList.

Referenced by LLComboBox::isSelected().

BOOL LLScrollListCtrl::isSorted (  ) 

Definition at line 2212 of file llscrolllistctrl.cpp.

References mSorted.

Referenced by LLColumnHeader::draw().

void LLScrollListCtrl::onClickColumn ( void userdata  )  [static]

Definition at line 2768 of file llscrolllistctrl.cpp.

References LLUICtrl::getCallbackUserData(), mColumns, mColumnsIndexed, LLScrollListColumn::mIndex, LLScrollListColumn::mName, mOnSortChangedCallback, LLScrollListColumn::mParentCtrl, mSortAscending, LLScrollListColumn::mSortAscending, mSortColumn, LLScrollListColumn::mSortingColumn, and sortByColumn().

Referenced by LLColumnHeader::onClick().

void LLScrollListCtrl::onFocusLost (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 3100 of file llscrolllistctrl.cpp.

References LLView::getParent(), gFocusMgr, LLView::hasMouseCapture(), mIsPopup, NULL, LLUICtrl::onFocusLost(), LLView::onFocusLost(), and LLFocusMgr::setMouseCapture().

void LLScrollListCtrl::onFocusReceived (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 3093 of file llscrolllistctrl.cpp.

References FALSE, and mSelectionChanged.

void LLScrollListCtrl::onScrollChange ( S32  new_pos,
LLScrollbar src,
void userdata 
) [static]

Definition at line 2219 of file llscrolllistctrl.cpp.

Referenced by setScrollPos().

BOOL LLScrollListCtrl::operateOnAll ( EOperation  op  ) 

Definition at line 3042 of file llscrolllistctrl.cpp.

References clearRows(), deselectAllItems(), FALSE, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::OP_DESELECT, LLCtrlSelectionInterface::OP_SELECT, selectAll(), and TRUE.

Referenced by LLFloaterInspect::refresh(), and LLPanelFriends::refreshNames().

BOOL LLScrollListCtrl::operateOnSelection ( EOperation  op  ) 

Definition at line 3028 of file llscrolllistctrl.cpp.

References deleteSelectedItems(), deselectAllItems(), FALSE, LLCtrlSelectionInterface::OP_DELETE, LLCtrlSelectionInterface::OP_DESELECT, and TRUE.

void LLScrollListCtrl::reportInvalidInput (  )  [protected]

Definition at line 2127 of file llscrolllistctrl.cpp.

References make_ui_sound().

Referenced by selectNextItem(), and selectPrevItem().

void LLScrollListCtrl::resetDirty (  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 3085 of file llscrolllistctrl.cpp.

References FALSE, getFirstSelectedIndex(), mDirty, and mOriginalSelection.

Referenced by LLComboBox::resetDirty().

void LLScrollListCtrl::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

Reimplemented from LLView.

Definition at line 647 of file llscrolllistctrl.cpp.

References LLScrollbar::getDocPosMax(), LLRectBase< Type >::getHeight(), getItemCount(), getScrollPos(), LLRectBase< Type >::getWidth(), LIST_BORDER_PAD, mBorderThickness, mDisplayColumnHeaders, mHeadingHeight, mItemListRect, mLineHeight, mPageLines, LLView::mRect, mScrollbar, LLView::reshape(), S32, LLRectBase< Type >::setOriginAndSize(), LLScrollbar::setPageSize(), setScrollPos(), LLView::setVisible(), and updateColumns().

Referenced by arrange(), LLColumnHeader::LLColumnHeader(), setHeadingHeight(), LLColumnHeader::showList(), and LLComboBox::showList().

static BOOL LLScrollListCtrl::rowPreceeds ( LLScrollListItem new_row,
LLScrollListItem test_row 
) [static]

void LLScrollListCtrl::scrollToShowSelected (  )  [virtual]

Implements LLCtrlScrollInterface.

Definition at line 2285 of file llscrolllistctrl.cpp.

References getFirstSelectedIndex(), LLView::hasMouseCapture(), mItemList, mPageLines, mScrollLines, S32, and setScrollPos().

Referenced by draw().

void LLScrollListCtrl::selectAll (  )  [virtual]

Reimplemented from LLEditMenuHandler.

Definition at line 2650 of file llscrolllistctrl.cpp.

References commitIfChanged(), FALSE, mCommitOnSelectionChange, mItemList, and selectItem().

Referenced by operateOnAll().

BOOL LLScrollListCtrl::selectByID ( const LLUUID id  ) 

Definition at line 1405 of file llscrolllistctrl.cpp.

References LLCtrlSelectionInterface::selectByValue().

Referenced by LLPanelGroupRolesSubTab::handleCreateRole(), LLNameListCtrl::removeNameItem(), LLFloaterMute::selectMute(), setCurrentByID(), and LLComboBox::setCurrentByID().

BOOL LLScrollListCtrl::selectFirstItem (  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 913 of file llscrolllistctrl.cpp.

References commitIfChanged(), deselectItem(), FALSE, mCommitOnSelectionChange, mItemList, mOriginalSelection, selectItem(), and TRUE.

Referenced by LLComboBox::add(), LLFloaterNewIM::addAgent(), LLFloaterNewIM::addGroup(), LLFloaterNewIM::addSpecial(), LLPanelGroupRolesSubTab::handleDeleteRole(), handleKeyHere(), LLPreviewGesture::initDefaultGesture(), LLPanelActiveSpeakers::refreshSpeakers(), LLScriptEdCore::selectFirstError(), selectNextItem(), selectPrevItem(), setFocus(), and LLComboBox::showList().

void LLScrollListCtrl::selectItem ( LLScrollListItem itemp,
BOOL  single_select = TRUE 
) [protected]

Definition at line 2152 of file llscrolllistctrl.cpp.

References deselectAllItems(), LLScrollListItem::getSelected(), LLScrollListCell::highlightText(), mLastSelected, mSearchColumn, mSelectionChanged, LLScrollListItem::setSelected(), and TRUE.

Referenced by handleUnicodeCharHere(), selectAll(), selectFirstItem(), selectItemAt(), selectMultiple(), selectNextItem(), selectNthItem(), selectPrevItem(), selectSimpleItem(), selectSimpleItemByPrefix(), and setSelectedByValue().

BOOL LLScrollListCtrl::selectItemAt ( S32  x,
S32  y,
MASK  mask 
)

Definition at line 1660 of file llscrolllistctrl.cpp.

References commitIfChanged(), deselectAllItems(), deselectItem(), FALSE, getAllSelected(), LLScrollListItem::getSelected(), LLScrollListItem::handleClick(), hitItem(), LIST_BORDER_PAD, mAllowMultipleSelection, MASK_CONTROL, MASK_SHIFT, mBorderThickness, LLUICtrl::mCallbackUserData, mCanSelect, mCommitOnSelectionChange, mItemList, mLastSelected, mMaxSelectable, mOnMaximumSelectCallback, mSearchString, mSelectionChanged, NULL, selectItem(), size, and TRUE.

Referenced by handleHover(), handleMouseDown(), and handleMouseUp().

S32 LLScrollListCtrl::selectMultiple ( LLDynamicArray< LLUUID ids  ) 

Definition at line 1058 of file llscrolllistctrl.cpp.

References commitIfChanged(), count, FALSE, mCommitOnSelectionChange, mItemList, S32, and selectItem().

Referenced by LLFloaterAvatarList::refreshAvatarList(), LLPanelFriends::refreshNames(), and LLFloaterEventLog::updateList().

void LLScrollListCtrl::selectNextItem ( BOOL  extend_selection  )  [protected]

Definition at line 1158 of file llscrolllistctrl.cpp.

References getFirstSelected(), mCommitOnKeyboardMovement, mItemList, mSearchString, LLUICtrl::onCommit(), reportInvalidInput(), selectFirstItem(), and selectItem().

Referenced by handleKeyHere().

BOOL LLScrollListCtrl::selectNthItem ( S32  index  )  [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 947 of file llscrolllistctrl.cpp.

References commitIfChanged(), deselectItem(), FALSE, llclamp(), mCommitOnSelectionChange, mItemList, mOriginalSelection, mSearchString, S32, selectItem(), and TRUE.

Referenced by handleKeyHere(), LLColumnHeader::onClick(), LLFloaterMute::onClickRemove(), LLFloaterInspect::refresh(), and LLComboBox::setCurrentByIndex().

void LLScrollListCtrl::selectPrevItem ( BOOL  extend_selection  )  [protected]

Definition at line 1117 of file llscrolllistctrl.cpp.

References commitIfChanged(), getFirstSelected(), mCommitOnKeyboardMovement, mCommitOnSelectionChange, mItemList, mSearchString, NULL, reportInvalidInput(), selectFirstItem(), and selectItem().

Referenced by handleKeyHere().

BOOL LLScrollListCtrl::selectSimpleItem ( const LLString item,
BOOL  case_sensitive = TRUE 
)

Definition at line 1235 of file llscrolllistctrl.cpp.

References commitIfChanged(), FALSE, mCommitOnSelectionChange, mItemList, S32, selectItem(), and LLStringBase< char >::toLower().

Referenced by LLComboBox::remove(), LLComboBox::setLabel(), LLComboBox::setSimple(), and LLComboBox::updateSelection().

BOOL LLScrollListCtrl::selectSimpleItemByPrefix ( const LLWString target,
BOOL  case_sensitive 
)

Definition at line 1287 of file llscrolllistctrl.cpp.

References commitIfChanged(), FALSE, LLScrollListCell::getText(), LLScrollListCell::highlightText(), mCommitOnSelectionChange, mItemList, mSearchColumn, S32, selectItem(), target, LLStringBase< T >::toLower(), LLStringBase< T >::trim(), TRUE, and utf8str_to_wstring().

BOOL LLScrollListCtrl::selectSimpleItemByPrefix ( const LLString target,
BOOL  case_sensitive 
)

Definition at line 1280 of file llscrolllistctrl.cpp.

References target, and utf8str_to_wstring().

Referenced by handleKeyHere(), handleUnicodeCharHere(), and LLComboBox::updateSelection().

void LLScrollListCtrl::setAllowKeyboardMovement ( BOOL  b  )  [inline]

Definition at line 495 of file llscrolllistctrl.h.

References mAllowKeyboardMovement.

void LLScrollListCtrl::setAllowMultipleSelection ( BOOL  mult  )  [inline]

Definition at line 478 of file llscrolllistctrl.h.

References mAllowMultipleSelection.

Referenced by LLFloaterImport::postBuild(), and LLFloaterAvatarPicker::setAllowMultiple().

void LLScrollListCtrl::setBackgroundVisible ( BOOL  b  )  [inline]

Definition at line 489 of file llscrolllistctrl.h.

References mBackgroundVisible.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setBgSelectedColor ( const LLColor4 c  )  [inline]

Definition at line 482 of file llscrolllistctrl.h.

References c, and mBgSelectedColor.

Referenced by LLPanelGroupVoting::impl::setEnableListProposals(), and setScrollListParameters().

void LLScrollListCtrl::setBgStripeColor ( const LLColor4 c  )  [inline]

Definition at line 483 of file llscrolllistctrl.h.

References c, and mBgStripeColor.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setBgWriteableColor ( const LLColor4 c  )  [inline]

Definition at line 480 of file llscrolllistctrl.h.

References c, and mBgWriteableColor.

Referenced by LLComboBox::LLComboBox(), and setScrollListParameters().

void LLScrollListCtrl::setCanSelect ( BOOL  can_select  )  [inline]

Definition at line 442 of file llscrolllistctrl.h.

References mCanSelect.

Referenced by LLFloaterImport::postBuild(), LLPanelGroupVoting::impl::sendGroupProposalsRequest(), and LLPanelGroupVoting::impl::sendGroupVoteHistoryRequest().

void LLScrollListCtrl::setCollapseEmptyColumns ( BOOL  collapse  ) 

Definition at line 908 of file llscrolllistctrl.cpp.

References mCollapseEmptyColumns.

Referenced by fromXML(), and LLNameListCtrl::fromXML().

void LLScrollListCtrl::setColumnHeadings ( LLSD  headings  ) 

Definition at line 2847 of file llscrolllistctrl.cpp.

References addColumn(), LLSD::beginArray(), LLSD::endArray(), and mColumns.

Referenced by fromXML(), and LLNameListCtrl::fromXML().

void LLScrollListCtrl::setColumnLabel ( const LLString column,
const LLString label 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 2825 of file llscrolllistctrl.cpp.

References mColumns.

Referenced by LLComboBox::setColumnLabel().

void LLScrollListCtrl::setColumnPadding ( const S32  c  )  [inline]

Definition at line 491 of file llscrolllistctrl.h.

References mColumnPadding.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setCommitOnKeyboardMovement ( BOOL  b  )  [inline]

Definition at line 493 of file llscrolllistctrl.h.

References mCommitOnKeyboardMovement.

Referenced by LLComboBox::LLComboBox().

void LLScrollListCtrl::setCommitOnSelectionChange ( BOOL  b  )  [inline]

Definition at line 494 of file llscrolllistctrl.h.

References mCommitOnSelectionChange.

Referenced by LLFloaterMute::LLFloaterMute(), LLPanelGroupNotices::postBuild(), LLPanelGroupInvite::postBuild(), LLFloaterTopObjects::postBuild(), LLPanelEstateInfo::postBuild(), LLPanelFriends::postBuild(), LLPanelGroupActionsSubTab::postBuildSubTab(), LLPanelGroupRolesSubTab::postBuildSubTab(), and LLPanelGroupMembersSubTab::postBuildSubTab().

BOOL LLScrollListCtrl::setCurrentByID ( const LLUUID id  )  [inline, virtual]

Implements LLCtrlSelectionInterface.

Definition at line 407 of file llscrolllistctrl.h.

References selectByID().

void LLScrollListCtrl::setDisplayHeading ( BOOL  display  ) 

Definition at line 889 of file llscrolllistctrl.cpp.

References mDisplayColumnHeaders, mHeadingHeight, setHeadingHeight(), and updateColumns().

Referenced by fromXML(), and LLNameListCtrl::fromXML().

void LLScrollListCtrl::setDoubleClickCallback ( void(*)(void *)  cb  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 435 of file llscrolllistctrl.h.

References mOnDoubleClickCallback.

Referenced by LLFloaterAvatarList::LLFloaterAvatarList(), LLFloaterEventLog::LLFloaterEventLog(), LLPanelGroupVoting::postBuild(), LLPanelGroupGeneral::postBuild(), LLFloaterNewIM::postBuild(), LLPanelLandObjects::postBuild(), and LLPanelGroupMembersSubTab::postBuildSubTab().

void LLScrollListCtrl::setDrawStripes ( BOOL  b  )  [inline]

Definition at line 490 of file llscrolllistctrl.h.

References mDrawStripes.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setEnabled ( BOOL  enabled  )  [virtual]

Reimplemented from LLView.

Definition at line 1645 of file llscrolllistctrl.cpp.

References LLScrollbar::getDocSize(), LLScrollbar::getPageSize(), mCanSelect, mScrollbar, and LLUICtrl::setTabStop().

Referenced by LLPanelGroupMembersSubTab::handleMemberSelect(), LLPanelGroupRolesSubTab::handleRoleSelect(), LLPanelGroupLandMoney::postBuild(), LLPanelGroupNotices::processNotices(), LLPreviewGesture::refresh(), LLPanelLandObjects::refresh(), LLPanelGroupVoting::impl::setEnableHistoryList(), LLPanelGroupMembersSubTab::update(), LLPanelGroupGeneral::update(), LLPanelGroupMembersSubTab::updateMembers(), and LLPanelGroupGeneral::updateMembers().

void LLScrollListCtrl::setFgDisableColor ( const LLColor4 c  )  [inline]

Definition at line 487 of file llscrolllistctrl.h.

References c, and mFgDisabledColor.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setFgSelectedColor ( const LLColor4 c  )  [inline]

Definition at line 484 of file llscrolllistctrl.h.

References c, and mFgSelectedColor.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setFgUnselectedColor ( const LLColor4 c  )  [inline]

Definition at line 485 of file llscrolllistctrl.h.

References c, and mFgUnselectedColor.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setFocus ( BOOL  b  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 3060 of file llscrolllistctrl.cpp.

References getFirstSelected(), mSearchString, selectFirstItem(), and LLUICtrl::setFocus().

Referenced by handleMouseDown(), and LLComboBox::showList().

void LLScrollListCtrl::setHeadingHeight ( S32  heading_height  ) 

Definition at line 898 of file llscrolllistctrl.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), mDisplayColumnHeaders, mHeadingHeight, mItemListRect, LLView::mRect, mScrollbar, LLScrollbar::reshape(), and reshape().

Referenced by fromXML(), LLNameListCtrl::fromXML(), and setDisplayHeading().

void LLScrollListCtrl::setHighlightedColor ( const LLColor4 c  )  [inline]

Definition at line 486 of file llscrolllistctrl.h.

References c, and mHighlightedColor.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setIsPopup ( BOOL  is_popup  )  [inline]

Definition at line 544 of file llscrolllistctrl.h.

References mIsPopup.

BOOL LLScrollListCtrl::setMaxItemCount ( S32  max_count  ) 

Definition at line 511 of file llscrolllistctrl.cpp.

References getItemCount(), and mMaxItemCount.

Referenced by LLPanelEstateInfo::postBuild().

void LLScrollListCtrl::setMaxiumumSelectCallback ( void(*)(void *)  cb  )  [inline]

Definition at line 436 of file llscrolllistctrl.h.

References mOnMaximumSelectCallback.

Referenced by LLPanelFriends::postBuild().

void LLScrollListCtrl::setMaxSelectable ( U32  max_selected  )  [inline]

Definition at line 497 of file llscrolllistctrl.h.

References mMaxSelectable.

Referenced by LLPanelFriends::postBuild().

void LLScrollListCtrl::setNumDynamicColumns ( int  num  )  [inline]

Definition at line 565 of file llscrolllistctrl.h.

References mNumDynamicWidthColumns.

Referenced by fromXML().

void LLScrollListCtrl::setReadOnlyBgColor ( const LLColor4 c  )  [inline]

Definition at line 481 of file llscrolllistctrl.h.

References c, and mBgReadOnlyColor.

Referenced by setScrollListParameters().

void LLScrollListCtrl::setScrollListParameters ( LLXMLNodePtr  node  ) 

Definition at line 2373 of file llscrolllistctrl.cpp.

References LLUICtrlFactory::getAttributeColor(), S32, setBackgroundVisible(), setBgSelectedColor(), setBgStripeColor(), setBgWriteableColor(), setColumnPadding(), setDrawStripes(), setFgDisableColor(), setFgSelectedColor(), setFgUnselectedColor(), setHighlightedColor(), and setReadOnlyBgColor().

Referenced by fromXML(), and LLNameListCtrl::fromXML().

void LLScrollListCtrl::setScrollPos ( S32  pos  )  [virtual]

Implements LLCtrlScrollInterface.

Definition at line 2277 of file llscrolllistctrl.cpp.

References LLScrollbar::getDocPos(), mScrollbar, onScrollChange(), and LLScrollbar::setDocPos().

Referenced by LLFloaterInspect::refresh(), LLFloaterAvatarList::refreshAvatarList(), LLPanelFriends::refreshNames(), reshape(), scrollToShowSelected(), LLFloaterNewIM::setScrollPos(), and LLFloaterEventLog::updateList().

void LLScrollListCtrl::setSearchColumn ( S32  column  )  [inline]

Definition at line 505 of file llscrolllistctrl.h.

References mSearchColumn.

Referenced by fromXML().

BOOL LLScrollListCtrl::setSelectedByValue ( LLSD  value,
BOOL  selected 
) [virtual]

Implements LLCtrlSelectionInterface.

Definition at line 1410 of file llscrolllistctrl.cpp.

References LLSD::asString(), commitIfChanged(), deselectAllItems(), deselectItem(), FALSE, mAllowMultipleSelection, mCommitOnSelectionChange, mItemList, selectItem(), and TRUE.

Referenced by LLComboBox::setSelectedByValue().

void LLScrollListCtrl::setSortChangedCallback ( void(*)(void *)  cb  )  [inline]

Definition at line 437 of file llscrolllistctrl.h.

References mOnSortChangedCallback.

Referenced by LLPanelDirLand::postBuild().

void LLScrollListCtrl::setSorted ( BOOL  sorted  )  [protected]

Definition at line 2207 of file llscrolllistctrl.cpp.

References mSorted.

Referenced by addItem(), and sortByColumn().

void LLScrollListCtrl::setTotalStaticColumnWidth ( int  width  )  [inline]

Definition at line 566 of file llscrolllistctrl.h.

References mTotalStaticColumnWidth.

Referenced by fromXML().

void LLScrollListCtrl::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 3012 of file llscrolllistctrl.cpp.

References addElement(), LLSD::beginArray(), and LLSD::endArray().

void LLScrollListCtrl::sort (  ) 

Re-sorts the list

This function allows to avoid multiple unnecessary sorts in the case where multiple elements will be added or removed at once.

Author:
Dale Glass

Definition at line 2251 of file llscrolllistctrl.cpp.

References mItemList, mSortAscending, and mSortColumn.

Referenced by LLFloaterAvatarList::refreshAvatarList(), and LLFloaterEventLog::updateList().

void LLScrollListCtrl::sortByColumn ( LLString  name,
BOOL  ascending 
) [virtual]

Implements LLCtrlListInterface.

Definition at line 2256 of file llscrolllistctrl.cpp.

References mColumns, mSortAscending, mSortColumn, and sortByColumn().

void LLScrollListCtrl::sortByColumn ( U32  column,
BOOL  ascending 
)

Definition at line 2227 of file llscrolllistctrl.cpp.

References mItemList, mSortAscending, mSortColumn, mSorted, setSorted(), and TRUE.

Referenced by LLColumnHeader::draw(), LLFloaterAvatarList::LLFloaterAvatarList(), LLFloaterEventLog::LLFloaterEventLog(), onClickColumn(), LLColumnHeader::onSelectSort(), LLDispatchSetEstateAccess::operator()(), LLPanelDirLand::postBuild(), LLPanelLandBan::postBuild(), LLPanelLandAccess::postBuild(), LLPanelAvatar::processAvatarGroupsReply(), LLPanelActiveSpeakers::refreshSpeakers(), LLPanelAvatar::resetGroupList(), LLColumnHeader::showList(), LLPanelLandObjects::sortBtnCore(), sortByColumn(), LLComboBox::sortByName(), and LLPanelGroupRolesSubTab::update().

void LLScrollListCtrl::swapWithNext ( S32  index  ) 

Definition at line 986 of file llscrolllistctrl.cpp.

References mItemList, and S32.

void LLScrollListCtrl::swapWithPrevious ( S32  index  ) 

Definition at line 999 of file llscrolllistctrl.cpp.

References mItemList.

void LLScrollListCtrl::updateColumns (  ) 

Definition at line 799 of file llscrolllistctrl.cpp.

References LLRectBase< Type >::getHeight(), LLView::getRect(), LLView::getVisible(), LLRectBase< Type >::getWidth(), i, left, llmax(), llmin(), llround(), LLRectBase< Type >::mBottom, mColumnPadding, mColumns, mColumnsIndexed, mDisplayColumnHeaders, LLScrollListColumn::mHeader, mHeadingHeight, LLScrollListColumn::mIndex, mItemList, mItemListRect, LLRectBase< Type >::mLeft, mNumDynamicWidthColumns, mScrollbar, LLRectBase< Type >::mTop, mTotalStaticColumnWidth, LLScrollListColumn::mWidth, NULL, LLView::reshape(), right, S32, LLView::setVisible(), top, and LLView::translate().

Referenced by addColumn(), addItem(), reshape(), setDisplayHeading(), and LLColumnHeader::userSetShape().

void LLScrollListCtrl::updateLineHeight (  )  [protected]

Definition at line 781 of file llscrolllistctrl.cpp.

References i, llmax(), mItemList, mLineHeight, and S32.

Referenced by addItem().

void LLScrollListCtrl::updateMaxContentWidth ( LLScrollListItem changed_item  ) 

Definition at line 746 of file llscrolllistctrl.cpp.

References LLScrollListItem::getColumn(), LLScrollListCell::getText(), LLFontGL::getWidth(), llmax(), mColumnPadding, mColumns, mItemList, S32, and LLFontGL::sSansSerifSmall.

Referenced by LLNameListCtrl::addElement(), addItem(), clearRows(), deleteSelectedItems(), deleteSingleItem(), and LLNameListCtrl::refresh().


Member Data Documentation

BOOL LLScrollListCtrl::mAllowKeyboardMovement [protected]

Definition at line 612 of file llscrolllistctrl.h.

Referenced by handleKeyHere(), and setAllowKeyboardMovement().

BOOL LLScrollListCtrl::mAllowMultipleSelection [protected]

Definition at line 611 of file llscrolllistctrl.h.

Referenced by canSelectAll(), getXML(), isDirty(), selectItemAt(), setAllowMultipleSelection(), and setSelectedByValue().

BOOL LLScrollListCtrl::mBackgroundVisible [protected]

Definition at line 633 of file llscrolllistctrl.h.

Referenced by draw(), getXML(), and setBackgroundVisible().

LLColor4 LLScrollListCtrl::mBgReadOnlyColor [protected]

Definition at line 637 of file llscrolllistctrl.h.

Referenced by draw(), getXML(), and setReadOnlyBgColor().

LLColor4 LLScrollListCtrl::mBgSelectedColor [protected]

Definition at line 638 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setBgSelectedColor().

LLColor4 LLScrollListCtrl::mBgStripeColor [protected]

Definition at line 639 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setBgStripeColor().

LLColor4 LLScrollListCtrl::mBgWriteableColor [protected]

Definition at line 636 of file llscrolllistctrl.h.

Referenced by draw(), getXML(), and setBgWriteableColor().

LLViewBorder* LLScrollListCtrl::mBorder [protected]

Definition at line 651 of file llscrolllistctrl.h.

Referenced by draw(), and getXML().

S32 LLScrollListCtrl::mBorderThickness [protected]

Definition at line 645 of file llscrolllistctrl.h.

Referenced by reshape(), and selectItemAt().

BOOL LLScrollListCtrl::mCanSelect [protected]

Definition at line 617 of file llscrolllistctrl.h.

Referenced by drawItems(), getCanSelect(), handleDoubleClick(), handleHover(), handleKeyHere(), selectItemAt(), setCanSelect(), and setEnabled().

BOOL LLScrollListCtrl::mCollapseEmptyColumns [protected]

Definition at line 619 of file llscrolllistctrl.h.

Referenced by setCollapseEmptyColumns().

S32 LLScrollListCtrl::mColumnPadding [protected]

Definition at line 631 of file llscrolllistctrl.h.

Referenced by addColumn(), drawItems(), getColumnPadding(), getXML(), setColumnPadding(), updateColumns(), and updateMaxContentWidth().

std::map<LLString, LLScrollListColumn> LLScrollListCtrl::mColumns [protected]

Definition at line 666 of file llscrolllistctrl.h.

Referenced by addColumn(), addElement(), clearColumns(), getXML(), onClickColumn(), setColumnHeadings(), setColumnLabel(), sortByColumn(), updateColumns(), and updateMaxContentWidth().

std::vector<LLScrollListColumn*> LLScrollListCtrl::mColumnsIndexed [protected]

Definition at line 667 of file llscrolllistctrl.h.

Referenced by addColumn(), addElement(), drawItems(), getColumn(), getNumColumns(), getSortColumnName(), onClickColumn(), and updateColumns().

BOOL LLScrollListCtrl::mCommitOnKeyboardMovement [protected]

Definition at line 613 of file llscrolllistctrl.h.

Referenced by handleKeyHere(), handleUnicodeCharHere(), selectNextItem(), selectPrevItem(), and setCommitOnKeyboardMovement().

BOOL LLScrollListCtrl::mCommitOnSelectionChange [protected]

Definition at line 614 of file llscrolllistctrl.h.

Referenced by deselectAllItems(), handleKeyHere(), handleUnicodeCharHere(), selectAll(), selectFirstItem(), selectItemAt(), selectMultiple(), selectNthItem(), selectPrevItem(), selectSimpleItem(), selectSimpleItemByPrefix(), setCommitOnSelectionChange(), and setSelectedByValue().

S32 LLScrollListCtrl::mCurIndex [protected]

Definition at line 602 of file llscrolllistctrl.h.

S32 LLScrollListCtrl::mCurSelectedIndex [protected]

Definition at line 603 of file llscrolllistctrl.h.

LLString LLScrollListCtrl::mDefaultColumn [protected]

Definition at line 656 of file llscrolllistctrl.h.

Referenced by addColumn(), and addElement().

BOOL LLScrollListCtrl::mDirty [protected]

Definition at line 669 of file llscrolllistctrl.h.

Referenced by clearRows(), commitIfChanged(), handleMouseUp(), isDirty(), and resetDirty().

BOOL LLScrollListCtrl::mDisplayColumnHeaders [protected]

Definition at line 618 of file llscrolllistctrl.h.

Referenced by addColumn(), getXML(), reshape(), setDisplayHeading(), setHeadingHeight(), and updateColumns().

BOOL LLScrollListCtrl::mDrawStripes [protected]

Definition at line 634 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setDrawStripes().

BOOL LLScrollListCtrl::mDrewSelected

Definition at line 674 of file llscrolllistctrl.h.

Referenced by drawItems().

LLColor4 LLScrollListCtrl::mFgDisabledColor [protected]

Definition at line 642 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setFgDisableColor().

LLColor4 LLScrollListCtrl::mFgSelectedColor [protected]

Definition at line 640 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setFgSelectedColor().

LLColor4 LLScrollListCtrl::mFgUnselectedColor [protected]

Definition at line 641 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setFgUnselectedColor().

S32 LLScrollListCtrl::mHeadingHeight [protected]

Definition at line 608 of file llscrolllistctrl.h.

Referenced by addColumn(), reshape(), setDisplayHeading(), setHeadingHeight(), and updateColumns().

LLColor4 LLScrollListCtrl::mHighlightedColor [protected]

Definition at line 643 of file llscrolllistctrl.h.

Referenced by drawItems(), getXML(), and setHighlightedColor().

S32 LLScrollListCtrl::mHighlightedItem [protected]

Definition at line 650 of file llscrolllistctrl.h.

Referenced by drawItems(), and highlightNthItem().

BOOL LLScrollListCtrl::mIsPopup [protected]

Definition at line 620 of file llscrolllistctrl.h.

Referenced by onFocusLost(), and setIsPopup().

item_list LLScrollListCtrl::mItemList [protected]

Definition at line 623 of file llscrolllistctrl.h.

Referenced by addItem(), canSelectAll(), clearRows(), deleteSelectedItems(), deleteSingleItem(), deselectAllItems(), drawItems(), getAllData(), getAllSelected(), getFirstData(), getFirstSelected(), getFirstSelectedIndex(), getItemCount(), getItemIndex(), getLastData(), getSelectedIDs(), handleUnicodeCharHere(), hitItem(), isEmpty(), isSelected(), LLNameListCtrl::refresh(), scrollToShowSelected(), selectAll(), selectFirstItem(), selectItemAt(), selectMultiple(), selectNextItem(), selectNthItem(), selectPrevItem(), selectSimpleItem(), selectSimpleItemByPrefix(), setSelectedByValue(), sort(), sortByColumn(), swapWithNext(), swapWithPrevious(), updateColumns(), updateLineHeight(), updateMaxContentWidth(), and ~LLScrollListCtrl().

LLRect LLScrollListCtrl::mItemListRect [protected]

Definition at line 629 of file llscrolllistctrl.h.

Referenced by addColumn(), addItem(), drawItems(), getItemListRect(), handleMouseUp(), hitItem(), reshape(), setHeadingHeight(), and updateColumns().

LLScrollListItem* LLScrollListCtrl::mLastSelected [protected]

Definition at line 625 of file llscrolllistctrl.h.

Referenced by clearRows(), deleteSelectedItems(), deleteSingleItem(), deselectItem(), getLastSelectedItem(), selectItem(), and selectItemAt().

S32 LLScrollListCtrl::mLineHeight [protected]

Definition at line 605 of file llscrolllistctrl.h.

Referenced by addItem(), arrange(), drawItems(), getRequiredRect(), hitItem(), reshape(), and updateLineHeight().

S32 LLScrollListCtrl::mMaxItemCount [protected]

Definition at line 627 of file llscrolllistctrl.h.

Referenced by addItem(), addSimpleItem(), addStringUUIDItem(), and setMaxItemCount().

U32 LLScrollListCtrl::mMaxSelectable [protected]

Definition at line 609 of file llscrolllistctrl.h.

Referenced by canSelectAll(), getMaxSelectable(), selectItemAt(), and setMaxSelectable().

BOOL LLScrollListCtrl::mNeedsScroll [protected]

Definition at line 616 of file llscrolllistctrl.h.

Referenced by draw(), handleHover(), handleKeyHere(), handleMouseDown(), handleMouseUp(), and handleUnicodeCharHere().

S32 LLScrollListCtrl::mNumDynamicWidthColumns [protected]

Definition at line 659 of file llscrolllistctrl.h.

Referenced by addColumn(), drawItems(), setNumDynamicColumns(), and updateColumns().

void(* LLScrollListCtrl::mOnDoubleClickCallback)(void *userdata) [protected]

Referenced by handleDoubleClick(), and setDoubleClickCallback().

void(* LLScrollListCtrl::mOnMaximumSelectCallback)(void *userdata) [protected]

Referenced by selectItemAt(), and setMaxiumumSelectCallback().

void(* LLScrollListCtrl::mOnSortChangedCallback)(void *userdata) [protected]

Referenced by onClickColumn(), and setSortChangedCallback().

S32 LLScrollListCtrl::mOriginalSelection [protected]

Definition at line 670 of file llscrolllistctrl.h.

Referenced by isDirty(), resetDirty(), selectFirstItem(), and selectNthItem().

S32 LLScrollListCtrl::mPageLines [protected]

Definition at line 607 of file llscrolllistctrl.h.

Referenced by addItem(), drawItems(), hitItem(), reshape(), and scrollToShowSelected().

LLScrollbar* LLScrollListCtrl::mScrollbar [protected]

Definition at line 610 of file llscrolllistctrl.h.

Referenced by addColumn(), addItem(), clearRows(), drawItems(), getScrollPos(), handleKeyHere(), handleScrollWheel(), reshape(), setEnabled(), setHeadingHeight(), setScrollPos(), and updateColumns().

S32 LLScrollListCtrl::mScrollLines [protected]

Definition at line 606 of file llscrolllistctrl.h.

Referenced by clearRows(), drawItems(), hitItem(), and scrollToShowSelected().

S32 LLScrollListCtrl::mSearchColumn [protected]

Definition at line 658 of file llscrolllistctrl.h.

Referenced by deselectItem(), getSearchColumn(), handleKeyHere(), handleUnicodeCharHere(), selectItem(), selectSimpleItemByPrefix(), and setSearchColumn().

LLWString LLScrollListCtrl::mSearchString [protected]

Definition at line 653 of file llscrolllistctrl.h.

Referenced by clearSearchString(), handleKeyHere(), handleUnicodeCharHere(), selectItemAt(), selectNextItem(), selectNthItem(), selectPrevItem(), and setFocus().

LLFrameTimer LLScrollListCtrl::mSearchTimer [protected]

Definition at line 654 of file llscrolllistctrl.h.

Referenced by drawItems(), handleKeyHere(), and handleUnicodeCharHere().

BOOL LLScrollListCtrl::mSelectionChanged [protected]

Definition at line 615 of file llscrolllistctrl.h.

Referenced by commitIfChanged(), deselectItem(), handleMouseDown(), handleMouseUp(), onFocusReceived(), selectItem(), and selectItemAt().

BOOL LLScrollListCtrl::mSortAscending [protected]

Definition at line 663 of file llscrolllistctrl.h.

Referenced by addItem(), getSortAscending(), onClickColumn(), sort(), and sortByColumn().

S32 LLScrollListCtrl::mSortColumn [protected]

Definition at line 662 of file llscrolllistctrl.h.

Referenced by addItem(), getSortColumnName(), onClickColumn(), sort(), and sortByColumn().

BOOL LLScrollListCtrl::mSorted [protected]

Definition at line 664 of file llscrolllistctrl.h.

Referenced by isSorted(), setSorted(), and sortByColumn().

S32 LLScrollListCtrl::mTotalStaticColumnWidth [protected]

Definition at line 660 of file llscrolllistctrl.h.

Referenced by addColumn(), drawItems(), setTotalStaticColumnWidth(), and updateColumns().


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