aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterproperties.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterproperties.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterproperties.cpp28
1 files changed, 9 insertions, 19 deletions
diff --git a/linden/indra/newview/llfloaterproperties.cpp b/linden/indra/newview/llfloaterproperties.cpp
index 36f6051..3519520 100644
--- a/linden/indra/newview/llfloaterproperties.cpp
+++ b/linden/indra/newview/llfloaterproperties.cpp
@@ -303,18 +303,13 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
303 ////////////////// 303 //////////////////
304 // CREATOR NAME // 304 // CREATOR NAME //
305 ////////////////// 305 //////////////////
306 char first_name[DB_FIRST_NAME_BUF_SIZE]; /* Flawfinder: ignore */
307 char last_name[DB_LAST_NAME_BUF_SIZE]; /* Flawfinder: ignore */
308 if(!gCacheName) return; 306 if(!gCacheName) return;
309 if(!gAgent.getRegion()) return; 307 if(!gAgent.getRegion()) return;
310 308
311 if (item->getCreatorUUID().notNull()) 309 if (item->getCreatorUUID().notNull())
312 { 310 {
313 gCacheName->getName(item->getCreatorUUID(), first_name, last_name); 311 std::string name;
314 LLString name(first_name); 312 gCacheName->getFullName(item->getCreatorUUID(), name);
315 name.append(1, ' ');
316 name.append(last_name);
317
318 childSetEnabled("BtnCreator",TRUE); 313 childSetEnabled("BtnCreator",TRUE);
319 childSetEnabled("LabelCreatorTitle",TRUE); 314 childSetEnabled("LabelCreatorTitle",TRUE);
320 childSetEnabled("LabelCreatorName",TRUE); 315 childSetEnabled("LabelCreatorName",TRUE);
@@ -325,7 +320,7 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
325 childSetEnabled("BtnCreator",FALSE); 320 childSetEnabled("BtnCreator",FALSE);
326 childSetEnabled("LabelCreatorTitle",FALSE); 321 childSetEnabled("LabelCreatorTitle",FALSE);
327 childSetEnabled("LabelCreatorName",FALSE); 322 childSetEnabled("LabelCreatorName",FALSE);
328 childSetText("LabelCreatorName",childGetText("unknown")); 323 childSetText("LabelCreatorName",getString("unknown"));
329 } 324 }
330 325
331 //////////////// 326 ////////////////
@@ -336,16 +331,11 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
336 LLString name; 331 LLString name;
337 if (perm.isGroupOwned()) 332 if (perm.isGroupOwned())
338 { 333 {
339 char group_name[DB_GROUP_NAME_BUF_SIZE]; /* Flawfinder: ignore */ 334 gCacheName->getGroupName(perm.getGroup(), name);
340 gCacheName->getGroupName(perm.getGroup(), group_name);
341 name.assign(group_name);
342 } 335 }
343 else 336 else
344 { 337 {
345 gCacheName->getName(perm.getOwner(), first_name, last_name); 338 gCacheName->getFullName(perm.getOwner(), name);
346 name.assign(first_name);
347 name.append(1, ' ');
348 name.append(last_name);
349 } 339 }
350 childSetEnabled("BtnOwner",TRUE); 340 childSetEnabled("BtnOwner",TRUE);
351 childSetEnabled("LabelOwnerTitle",TRUE); 341 childSetEnabled("LabelOwnerTitle",TRUE);
@@ -357,7 +347,7 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
357 childSetEnabled("BtnOwner",FALSE); 347 childSetEnabled("BtnOwner",FALSE);
358 childSetEnabled("LabelOwnerTitle",FALSE); 348 childSetEnabled("LabelOwnerTitle",FALSE);
359 childSetEnabled("LabelOwnerName",FALSE); 349 childSetEnabled("LabelOwnerName",FALSE);
360 childSetText("LabelOwnerName",childGetText("public")); 350 childSetText("LabelOwnerName",getString("public"));
361 } 351 }
362 352
363 ////////////////// 353 //////////////////
@@ -368,7 +358,7 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
368 time_t time_utc = (time_t)item->getCreationDate(); 358 time_t time_utc = (time_t)item->getCreationDate();
369 if (0 == time_utc) 359 if (0 == time_utc)
370 { 360 {
371 childSetText("LabelAcquiredDate",childGetText("unknown")); 361 childSetText("LabelAcquiredDate",getString("unknown"));
372 } 362 }
373 else 363 else
374 { 364 {
@@ -380,11 +370,11 @@ void LLFloaterProperties::refreshFromItem(LLInventoryItem* item)
380 /////////////////////// 370 ///////////////////////
381 if(can_agent_manipulate) 371 if(can_agent_manipulate)
382 { 372 {
383 childSetText("OwnerLabel",childGetText("you_can")); 373 childSetText("OwnerLabel",getString("you_can"));
384 } 374 }
385 else 375 else
386 { 376 {
387 childSetText("OwnerLabel",childGetText("owner_can")); 377 childSetText("OwnerLabel",getString("owner_can"));
388 } 378 }
389 379
390 U32 base_mask = perm.getMaskBase(); 380 U32 base_mask = perm.getMaskBase();