aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt6
-rw-r--r--linden/indra/llui/llscrolllistctrl.cpp12
-rw-r--r--linden/indra/llui/llscrolllistctrl.h1
3 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 3d89dc2..b23b4de 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -41,6 +41,12 @@
41 modified: linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml 41 modified: linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
42 42
43 43
44 * Added LLScrollListCtrl::getSelectedIDs().
45
46 modified: linden/indra/llui/llscrolllistctrl.cpp
47 modified: linden/indra/llui/llscrolllistctrl.h
48
49
442009-09-04 McCabe Maxsted <hakushakukun@gmail.com> 502009-09-04 McCabe Maxsted <hakushakukun@gmail.com>
45 51
46 * Updated GStreamer and Zlib windows libs. 52 * Updated GStreamer and Zlib windows libs.
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;
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