diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llfloateravatarpicker.cpp | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2 meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz |
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llfloateravatarpicker.cpp')
-rw-r--r-- | linden/indra/newview/llfloateravatarpicker.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloateravatarpicker.cpp b/linden/indra/newview/llfloateravatarpicker.cpp index efcbb70..e7e8626 100644 --- a/linden/indra/newview/llfloateravatarpicker.cpp +++ b/linden/indra/newview/llfloateravatarpicker.cpp | |||
@@ -11,12 +11,12 @@ | |||
11 | * ("GPL"), unless you have obtained a separate licensing agreement | 11 | * ("GPL"), unless you have obtained a separate licensing agreement |
12 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 12 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
13 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 13 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
14 | * online at http://secondlife.com/developers/opensource/gplv2 | 14 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
15 | * | 15 | * |
16 | * There are special exceptions to the terms and conditions of the GPL as | 16 | * There are special exceptions to the terms and conditions of the GPL as |
17 | * it is applied to this Source Code. View the full text of the exception | 17 | * it is applied to this Source Code. View the full text of the exception |
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 18 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
19 | * online at http://secondlife.com/developers/opensource/flossexception | 19 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
20 | * | 20 | * |
21 | * By copying, modifying or distributing this software, you acknowledge | 21 | * By copying, modifying or distributing this software, you acknowledge |
22 | * that you have read and understood your obligations described above, | 22 | * that you have read and understood your obligations described above, |
@@ -112,7 +112,7 @@ BOOL LLFloaterAvatarPicker::postBuild() | |||
112 | 112 | ||
113 | if (mListNames) | 113 | if (mListNames) |
114 | { | 114 | { |
115 | mListNames->addSimpleElement("No results"); | 115 | mListNames->addCommentText("No results"); |
116 | } | 116 | } |
117 | 117 | ||
118 | mInventoryPanel = (LLInventoryPanel*)this->getCtrlByNameAndType("Inventory Panel", WIDGET_TYPE_INVENTORY_PANEL); | 118 | mInventoryPanel = (LLInventoryPanel*)this->getCtrlByNameAndType("Inventory Panel", WIDGET_TYPE_INVENTORY_PANEL); |
@@ -189,12 +189,15 @@ void LLFloaterAvatarPicker::onList(LLUICtrl* ctrl, void* userdata) | |||
189 | return; | 189 | return; |
190 | } | 190 | } |
191 | 191 | ||
192 | std::vector<LLScrollListItem*> items = self->mListNames->getAllSelected(); | 192 | std::vector<LLScrollListItem*> items = |
193 | for (std::vector<LLScrollListItem*>::iterator iter = items.begin(); | 193 | self->mListNames->getAllSelected(); |
194 | iter != items.end(); ++iter) | 194 | for ( |
195 | std::vector<LLScrollListItem*>::iterator iter = items.begin(); | ||
196 | iter != items.end(); | ||
197 | ++iter) | ||
195 | { | 198 | { |
196 | LLScrollListItem* item = *iter; | 199 | LLScrollListItem* item = *iter; |
197 | self->mAvatarNames.push_back(item->getColumn(0)->getText()); | 200 | self->mAvatarNames.push_back(item->getColumn(0)->getValue().asString()); |
198 | self->mAvatarIDs.push_back(item->getUUID()); | 201 | self->mAvatarIDs.push_back(item->getUUID()); |
199 | self->childSetEnabled("Select", TRUE); | 202 | self->childSetEnabled("Select", TRUE); |
200 | } | 203 | } |
@@ -225,8 +228,8 @@ void LLFloaterAvatarPicker::doSelectionChange(const std::deque<LLFolderViewItem* | |||
225 | mAvatarNames.clear(); | 228 | mAvatarNames.clear(); |
226 | childSetEnabled("Select", FALSE); | 229 | childSetEnabled("Select", FALSE); |
227 | } | 230 | } |
231 | BOOL first_calling_card = TRUE; | ||
228 | 232 | ||
229 | BOOL first_calling_card = TRUE; | ||
230 | std::deque<LLFolderViewItem*>::const_iterator item_it; | 233 | std::deque<LLFolderViewItem*>::const_iterator item_it; |
231 | for (item_it = items.begin(); item_it != items.end(); ++item_it) | 234 | for (item_it = items.begin(); item_it != items.end(); ++item_it) |
232 | { | 235 | { |
@@ -276,7 +279,7 @@ void LLFloaterAvatarPicker::find() | |||
276 | if (mListNames) | 279 | if (mListNames) |
277 | { | 280 | { |
278 | mListNames->deleteAllItems(); | 281 | mListNames->deleteAllItems(); |
279 | mListNames->addSimpleElement("Searching..."); | 282 | mListNames->addCommentText("Searching..."); |
280 | } | 283 | } |
281 | 284 | ||
282 | childSetEnabled("Select", FALSE); | 285 | childSetEnabled("Select", FALSE); |