diff options
author | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
commit | e4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch) | |
tree | 9410962bbb582eedbec448139e217f2714050777 /linden/indra/llui/llscrolllistctrl.cpp | |
parent | Started 1.3.0 branch (diff) | |
parent | Updated and added some Linux libs. (diff) | |
download | meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2 meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz |
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.cpp b/linden/indra/llui/llscrolllistctrl.cpp index 7b6c125..460b29f 100644 --- a/linden/indra/llui/llscrolllistctrl.cpp +++ b/linden/indra/llui/llscrolllistctrl.cpp | |||
@@ -743,6 +743,18 @@ std::vector<LLScrollListItem*> LLScrollListCtrl::getAllSelected() const | |||
743 | return ret; | 743 | return ret; |
744 | } | 744 | } |
745 | 745 | ||
746 | LLDynamicArray<LLUUID> LLScrollListCtrl::getSelectedIDs() | ||
747 | { | ||
748 | LLUUID selected_id; | ||
749 | LLDynamicArray<LLUUID> ids; | ||
750 | std::vector<LLScrollListItem*> selected = this->getAllSelected(); | ||
751 | for(std::vector<LLScrollListItem*>::iterator itr = selected.begin(); itr != selected.end(); ++itr) | ||
752 | { | ||
753 | ids.push_back((*itr)->getUUID()); | ||
754 | } | ||
755 | return ids; | ||
756 | } | ||
757 | |||
746 | S32 LLScrollListCtrl::getFirstSelectedIndex() const | 758 | S32 LLScrollListCtrl::getFirstSelectedIndex() const |
747 | { | 759 | { |
748 | S32 CurSelectedIndex = 0; | 760 | S32 CurSelectedIndex = 0; |