aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertopobjects.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-12 14:59:33 -0500
committerJacek Antonelli2008-09-12 14:59:39 -0500
commit80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch)
tree170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/newview/llfloatertopobjects.cpp
parentSecond Life viewer sources 1.21.1-RC (diff)
downloadmeta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.zip
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.gz
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.bz2
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.xz
Second Life viewer sources 1.21.2-RC
Diffstat (limited to 'linden/indra/newview/llfloatertopobjects.cpp')
-rw-r--r--linden/indra/newview/llfloatertopobjects.cpp23
1 files changed, 8 insertions, 15 deletions
diff --git a/linden/indra/newview/llfloatertopobjects.cpp b/linden/indra/newview/llfloatertopobjects.cpp
index 02be0f9..ada5c68 100644
--- a/linden/indra/newview/llfloatertopobjects.cpp
+++ b/linden/indra/newview/llfloatertopobjects.cpp
@@ -157,8 +157,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
157 msg->getU32Fast(_PREHASH_RequestData, _PREHASH_TotalObjectCount, total_count); 157 msg->getU32Fast(_PREHASH_RequestData, _PREHASH_TotalObjectCount, total_count);
158 msg->getU32Fast(_PREHASH_RequestData, _PREHASH_ReportType, mCurrentMode); 158 msg->getU32Fast(_PREHASH_RequestData, _PREHASH_ReportType, mCurrentMode);
159 159
160 LLCtrlListInterface *list = childGetListInterface("objects_list"); 160 LLScrollListCtrl *list = getChild<LLScrollListCtrl>("objects_list");
161 if (!list) return;
162 161
163 S32 block_count = msg->getNumberOfBlocks("ReportData"); 162 S32 block_count = msg->getNumberOfBlocks("ReportData");
164 for (S32 block = 0; block < block_count; ++block) 163 for (S32 block = 0; block < block_count; ++block)
@@ -206,16 +205,16 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
206 element["columns"][3]["column"] = "location"; 205 element["columns"][3]["column"] = "location";
207 element["columns"][3]["value"] = llformat("<%0.1f,%0.1f,%0.1f>", location_x, location_y, location_z); 206 element["columns"][3]["value"] = llformat("<%0.1f,%0.1f,%0.1f>", location_x, location_y, location_z);
208 element["columns"][3]["font"] = "SANSSERIF"; 207 element["columns"][3]["font"] = "SANSSERIF";
209 element["columns"][3]["column"] = "time"; 208 element["columns"][4]["column"] = "time";
210 element["columns"][3]["value"] = formatted_time((time_t)time_stamp); 209 element["columns"][4]["value"] = formatted_time((time_t)time_stamp);
211 element["columns"][3]["font"] = "SANSSERIF"; 210 element["columns"][4]["font"] = "SANSSERIF";
212 211
213 if (mCurrentMode == STAT_REPORT_TOP_SCRIPTS 212 if (mCurrentMode == STAT_REPORT_TOP_SCRIPTS
214 && have_extended_data) 213 && have_extended_data)
215 { 214 {
216 element["columns"][4]["column"] = "Mono Time"; 215 element["columns"][5]["column"] = "Mono Time";
217 element["columns"][4]["value"] = llformat("%0.3f", mono_score); 216 element["columns"][5]["value"] = llformat("%0.3f", mono_score);
218 element["columns"][4]["font"] = "SANSSERIF"; 217 element["columns"][5]["font"] = "SANSSERIF";
219 } 218 }
220 219
221 list->addElement(element); 220 list->addElement(element);
@@ -228,13 +227,7 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
228 227
229 if (total_count == 0 && list->getItemCount() == 0) 228 if (total_count == 0 && list->getItemCount() == 0)
230 { 229 {
231 LLSD element; 230 list->addCommentText(getString("none_descriptor"));
232 element["id"] = LLUUID::null;
233 element["columns"][0]["column"] = "name";
234 element["columns"][0]["value"] = getString("none_descriptor");
235 element["columns"][0]["font"] = "SANSSERIF";
236
237 list->addElement(element);
238 } 231 }
239 else 232 else
240 { 233 {