aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelavatar.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llpanelavatar.cpp
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-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/llpanelavatar.cpp')
-rw-r--r--linden/indra/newview/llpanelavatar.cpp27
1 files changed, 21 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp
index cc44455..dd4d6cf 100644
--- a/linden/indra/newview/llpanelavatar.cpp
+++ b/linden/indra/newview/llpanelavatar.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,
@@ -290,6 +290,7 @@ void LLPanelAvatarSecondLife::updatePartnerName()
290 childSetTextArg("partner_edit", "[FIRST]", LLString(first)); 290 childSetTextArg("partner_edit", "[FIRST]", LLString(first));
291 childSetTextArg("partner_edit", "[LAST]", LLString(last)); 291 childSetTextArg("partner_edit", "[LAST]", LLString(last));
292 } 292 }
293 childSetEnabled("partner_info", TRUE);
293 } 294 }
294} 295}
295 296
@@ -365,6 +366,7 @@ void LLPanelAvatarSecondLife::onDoubleClickGroup(void* data)
365 if(group_list) 366 if(group_list)
366 { 367 {
367 LLScrollListItem* item = group_list->getFirstSelected(); 368 LLScrollListItem* item = group_list->getFirstSelected();
369
368 if(item && item->getUUID().notNull()) 370 if(item && item->getUUID().notNull())
369 { 371 {
370 llinfos << "Show group info " << item->getUUID() << llendl; 372 llinfos << "Show group info " << item->getUUID() << llendl;
@@ -393,6 +395,16 @@ void LLPanelAvatarSecondLife::onClickPartnerHelpLoadURL(S32 option, void* userda
393 LLWeb::loadURL("http://secondlife.com/partner"); 395 LLWeb::loadURL("http://secondlife.com/partner");
394} 396}
395 397
398// static
399void LLPanelAvatarSecondLife::onClickPartnerInfo(void *data)
400{
401 LLPanelAvatarSecondLife* self = (LLPanelAvatarSecondLife*) data;
402 if (self->mPartnerID.notNull())
403 {
404 LLFloaterAvatarInfo::showFromProfile(self->mPartnerID,
405 self->getScreenRect());
406 }
407}
396 408
397//----------------------------------------------------------------------------- 409//-----------------------------------------------------------------------------
398// LLPanelAvatarFirstLife() 410// LLPanelAvatarFirstLife()
@@ -420,6 +432,8 @@ BOOL LLPanelAvatarSecondLife::postBuild(void)
420 childSetEnabled("born", FALSE); 432 childSetEnabled("born", FALSE);
421 childSetEnabled("partner_edit", FALSE); 433 childSetEnabled("partner_edit", FALSE);
422 childSetAction("partner_help",onClickPartnerHelp,this); 434 childSetAction("partner_help",onClickPartnerHelp,this);
435 childSetAction("partner_info", onClickPartnerInfo, this);
436 childSetEnabled("partner_info", mPartnerID.notNull());
423 437
424 childSetAction("?",onClickPublishHelp,this); 438 childSetAction("?",onClickPublishHelp,this);
425 BOOL own_avatar = (getPanelAvatar()->getAvatarID() == gAgent.getID() ); 439 BOOL own_avatar = (getPanelAvatar()->getAvatarID() == gAgent.getID() );
@@ -1565,6 +1579,8 @@ void LLPanelAvatar::resetGroupList()
1565 group_string += group_data.mName; 1579 group_string += group_data.mName;
1566 1580
1567 LLSD row; 1581 LLSD row;
1582
1583 row["id"] = id ;
1568 row["columns"][0]["value"] = group_string; 1584 row["columns"][0]["value"] = group_string;
1569 row["columns"][0]["font"] = "SANSSERIF_SMALL"; 1585 row["columns"][0]["font"] = "SANSSERIF_SMALL";
1570 row["columns"][0]["width"] = 0; 1586 row["columns"][0]["width"] = 0;
@@ -1635,7 +1651,7 @@ void LLPanelAvatar::onClickMute(void *userdata)
1635 if (name_edit) 1651 if (name_edit)
1636 { 1652 {
1637 std::string agent_name = name_edit->getText(); 1653 std::string agent_name = name_edit->getText();
1638 gFloaterMute->show(); 1654 LLFloaterMute::showInstance();
1639 1655
1640 if (gMuteListp->isMuted(agent_id)) 1656 if (gMuteListp->isMuted(agent_id))
1641 { 1657 {
@@ -1994,7 +2010,7 @@ void LLPanelAvatar::processAvatarGroupsReply(LLMessageSystem *msg, void**)
1994 S32 group_count = msg->getNumberOfBlocksFast(_PREHASH_GroupData); 2010 S32 group_count = msg->getNumberOfBlocksFast(_PREHASH_GroupData);
1995 if (0 == group_count) 2011 if (0 == group_count)
1996 { 2012 {
1997 if(group_list) group_list->addSimpleItem("None"); 2013 if(group_list) group_list->addCommentText("None");
1998 } 2014 }
1999 else 2015 else
2000 { 2016 {
@@ -2009,8 +2025,7 @@ void LLPanelAvatar::processAvatarGroupsReply(LLMessageSystem *msg, void**)
2009 LLString group_string; 2025 LLString group_string;
2010 if (group_id.notNull()) 2026 if (group_id.notNull())
2011 { 2027 {
2012 group_string.assign("Member of "); 2028 group_string.assign(group_name);
2013 group_string.append(group_name);
2014 } 2029 }
2015 else 2030 else
2016 { 2031 {