aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llscrolllistctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llscrolllistctrl.cpp')
-rw-r--r--linden/indra/llui/llscrolllistctrl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.cpp b/linden/indra/llui/llscrolllistctrl.cpp
index 7dba55f..c6da2d7 100644
--- a/linden/indra/llui/llscrolllistctrl.cpp
+++ b/linden/indra/llui/llscrolllistctrl.cpp
@@ -703,6 +703,18 @@ std::vector<LLScrollListItem*> LLScrollListCtrl::getAllSelected() const
703 return ret; 703 return ret;
704} 704}
705 705
706LLDynamicArray<LLUUID> LLScrollListCtrl::getSelectedIDs()
707{
708 LLUUID selected_id;
709 LLDynamicArray<LLUUID> ids;
710 std::vector<LLScrollListItem*> selected = this->getAllSelected();
711 for(std::vector<LLScrollListItem*>::iterator itr = selected.begin(); itr != selected.end(); ++itr)
712 {
713 ids.push_back((*itr)->getUUID());
714 }
715 return ids;
716}
717
706S32 LLScrollListCtrl::getFirstSelectedIndex() const 718S32 LLScrollListCtrl::getFirstSelectedIndex() const
707{ 719{
708 S32 CurSelectedIndex = 0; 720 S32 CurSelectedIndex = 0;