diff options
author | Oz Linden <oz@lindenlab.com> | 2012-06-18 22:23:30 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-06-18 22:23:30 -0400 |
commit | d7400ae60c0453e111357abfb09d8308adf8b721 (patch) | |
tree | cfbbc175c4df5d0929ad923c5c52489b8d87fb75 /indra/llui/llscrolllistctrl.cpp | |
parent | d500379cea865e4a6958eee82b5615ace61036c4 (diff) | |
parent | 9cac312f57391792e9fce380c2c38ae4060ae1d7 (diff) |
merge to pathfinding development branch
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index b3e1b63db5..802914e25b 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -389,6 +389,22 @@ std::vector<LLScrollListItem*> LLScrollListCtrl::getAllSelected() const return ret; } +S32 LLScrollListCtrl::getNumSelected() const +{ + S32 numSelected = 0; + + for(item_list::const_iterator iter = mItemList.begin(); iter != mItemList.end(); ++iter) + { + LLScrollListItem* item = *iter; + if (item->getSelected()) + { + ++numSelected; + } + } + + return numSelected; +} + S32 LLScrollListCtrl::getFirstSelectedIndex() const { S32 CurSelectedIndex = 0; |