diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.cpp | 12 | ||||
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.h | 1 |
2 files changed, 13 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 | ||
706 | LLDynamicArray<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 | |||
706 | S32 LLScrollListCtrl::getFirstSelectedIndex() const | 718 | S32 LLScrollListCtrl::getFirstSelectedIndex() const |
707 | { | 719 | { |
708 | S32 CurSelectedIndex = 0; | 720 | S32 CurSelectedIndex = 0; |
diff --git a/linden/indra/llui/llscrolllistctrl.h b/linden/indra/llui/llscrolllistctrl.h index f276562..73f9a5b 100644 --- a/linden/indra/llui/llscrolllistctrl.h +++ b/linden/indra/llui/llscrolllistctrl.h | |||
@@ -517,6 +517,7 @@ public: | |||
517 | LLScrollListItem* getFirstSelected() const; | 517 | LLScrollListItem* getFirstSelected() const; |
518 | virtual S32 getFirstSelectedIndex() const; | 518 | virtual S32 getFirstSelectedIndex() const; |
519 | std::vector<LLScrollListItem*> getAllSelected() const; | 519 | std::vector<LLScrollListItem*> getAllSelected() const; |
520 | LLDynamicArray<LLUUID> getSelectedIDs(); | ||
520 | LLScrollListItem* getLastSelectedItem() const { return mLastSelected; } | 521 | LLScrollListItem* getLastSelectedItem() const { return mLastSelected; } |
521 | 522 | ||
522 | // iterate over all items | 523 | // iterate over all items |