aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpaneldirbrowser.cpp')
-rw-r--r--linden/indra/newview/llpaneldirbrowser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llpaneldirbrowser.cpp b/linden/indra/newview/llpaneldirbrowser.cpp
index 5b37335..5d3236d 100644
--- a/linden/indra/newview/llpaneldirbrowser.cpp
+++ b/linden/indra/newview/llpaneldirbrowser.cpp
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -177,7 +177,7 @@ void LLPanelDirBrowser::resetSearchStart()
177// protected 177// protected
178void LLPanelDirBrowser::updateResultCount() 178void LLPanelDirBrowser::updateResultCount()
179{ 179{
180 LLCtrlListInterface *list = childGetListInterface("results"); 180 LLScrollListCtrl* list = gUICtrlFactory->getScrollListByName(this, "results");
181 if (!list) return; 181 if (!list) return;
182 182
183 S32 result_count = list->getItemCount(); 183 S32 result_count = list->getItemCount();
@@ -203,7 +203,7 @@ void LLPanelDirBrowser::updateResultCount()
203 // add none found response 203 // add none found response
204 if (list->getItemCount() == 0) 204 if (list->getItemCount() == 0)
205 { 205 {
206 list->addSimpleElement("None found."); 206 list->addCommentText(getFormattedUIString("not_found_text"));
207 list->operateOnAll(LLCtrlListInterface::OP_DESELECT); 207 list->operateOnAll(LLCtrlListInterface::OP_DESELECT);
208 } 208 }
209 } 209 }
@@ -1159,7 +1159,7 @@ void LLPanelDirBrowser::renameClassified(const LLUUID& classified_id, const char
1159 1159
1160void LLPanelDirBrowser::setupNewSearch() 1160void LLPanelDirBrowser::setupNewSearch()
1161{ 1161{
1162 LLCtrlListInterface *list = childGetListInterface("results"); 1162 LLScrollListCtrl* list = gUICtrlFactory->getScrollListByName(this, "results");
1163 if (!list) return; 1163 if (!list) return;
1164 1164
1165 gDirBrowserInstances.removeData(mSearchID); 1165 gDirBrowserInstances.removeData(mSearchID);
@@ -1170,7 +1170,7 @@ void LLPanelDirBrowser::setupNewSearch()
1170 1170
1171 // ready the list for results 1171 // ready the list for results
1172 list->operateOnAll(LLCtrlListInterface::OP_DELETE); 1172 list->operateOnAll(LLCtrlListInterface::OP_DELETE);
1173 list->addSimpleElement("Searching..."); 1173 list->addCommentText(getFormattedUIString("searching_text"));
1174 childDisable("results"); 1174 childDisable("results");
1175 1175
1176 mResultsReceived = 0; 1176 mResultsReceived = 0;
@@ -1220,10 +1220,10 @@ void LLPanelDirBrowser::sendDirFindQuery(
1220 1220
1221void LLPanelDirBrowser::addHelpText(const char* text) 1221void LLPanelDirBrowser::addHelpText(const char* text)
1222{ 1222{
1223 LLCtrlListInterface *list = childGetListInterface("results"); 1223 LLScrollListCtrl* list = gUICtrlFactory->getScrollListByName(this, "results");
1224 if (!list) return; 1224 if (!list) return;
1225 1225
1226 list->addSimpleElement(text); 1226 list->addCommentText(text);
1227 childDisable("results"); 1227 childDisable("results");
1228} 1228}
1229 1229