aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupgeneral.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llpanelgroupgeneral.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llpanelgroupgeneral.cpp')
-rw-r--r--linden/indra/newview/llpanelgroupgeneral.cpp25
1 files changed, 20 insertions, 5 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp
index e99f341..67a0c31 100644
--- a/linden/indra/newview/llpanelgroupgeneral.cpp
+++ b/linden/indra/newview/llpanelgroupgeneral.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2006-2007, Linden Research, Inc. 5 * Copyright (c) 2006-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -165,6 +166,7 @@ BOOL LLPanelGroupGeneral::postBuild()
165 { 166 {
166 mCtrlMature->setCommitCallback(onCommitAny); 167 mCtrlMature->setCommitCallback(onCommitAny);
167 mCtrlMature->setCallbackUserData(this); 168 mCtrlMature->setCallbackUserData(this);
169 mCtrlMature->setVisible( gAgent.mAccess > SIM_ACCESS_PG );
168 } 170 }
169 171
170 mCtrlOpenEnrollment = (LLCheckBoxCtrl*) getChildByName("open_enrollement", recurse); 172 mCtrlOpenEnrollment = (LLCheckBoxCtrl*) getChildByName("open_enrollement", recurse);
@@ -466,7 +468,17 @@ bool LLPanelGroupGeneral::apply(LLString& mesg)
466 if (mCtrlPublishOnWeb) gdatap->mAllowPublish = mCtrlPublishOnWeb->get(); 468 if (mCtrlPublishOnWeb) gdatap->mAllowPublish = mCtrlPublishOnWeb->get();
467 if (mEditCharter) gdatap->mCharter = mEditCharter->getText(); 469 if (mEditCharter) gdatap->mCharter = mEditCharter->getText();
468 if (mInsignia) gdatap->mInsigniaID = mInsignia->getImageAssetID(); 470 if (mInsignia) gdatap->mInsigniaID = mInsignia->getImageAssetID();
469 if (mCtrlMature) gdatap->mMaturePublish = mCtrlMature->get(); 471 if (mCtrlMature)
472 {
473 if (gAgent.mAccess > SIM_ACCESS_PG)
474 {
475 gdatap->mMaturePublish = mCtrlMature->get();
476 }
477 else
478 {
479 gdatap->mMaturePublish = FALSE;
480 }
481 }
470 if (mCtrlShowInGroupList) gdatap->mShowInList = mCtrlShowInGroupList->get(); 482 if (mCtrlShowInGroupList) gdatap->mShowInList = mCtrlShowInGroupList->get();
471 } 483 }
472 484
@@ -617,6 +629,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
617 { 629 {
618 mCtrlMature->set(gdatap->mMaturePublish); 630 mCtrlMature->set(gdatap->mMaturePublish);
619 mCtrlMature->setEnabled(mAllowEdit && can_change_ident); 631 mCtrlMature->setEnabled(mAllowEdit && can_change_ident);
632 mCtrlMature->setVisible( gAgent.mAccess > SIM_ACCESS_PG );
620 } 633 }
621 if (mCtrlOpenEnrollment) 634 if (mCtrlOpenEnrollment)
622 { 635 {
@@ -646,7 +659,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
646 659
647 if ( visible ) 660 if ( visible )
648 { 661 {
649 snprintf(fee_buff, sizeof(fee_buff), "Join (L$%d)", gdatap->mMembershipFee); /*Flawfinder: ignore*/ 662 snprintf(fee_buff, sizeof(fee_buff), "Join (L$%d)", gdatap->mMembershipFee); /* Flawfinder: ignore */
650 mBtnJoinGroup->setLabelSelected(std::string(fee_buff)); 663 mBtnJoinGroup->setLabelSelected(std::string(fee_buff));
651 mBtnJoinGroup->setLabelUnselected(std::string(fee_buff)); 664 mBtnJoinGroup->setLabelUnselected(std::string(fee_buff));
652 } 665 }
@@ -702,12 +715,14 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
702 } 715 }
703 else 716 else
704 { 717 {
705 LLScrollListItem* row = new LLScrollListItem( TRUE, NULL, LLUUID::null );
706 std::stringstream pending; 718 std::stringstream pending;
707 pending << "Retrieving member list (" << gdatap->mMembers.size() << "\\" << gdatap->mMemberCount << ")"; 719 pending << "Retrieving member list (" << gdatap->mMembers.size() << "\\" << gdatap->mMemberCount << ")";
708 row->addColumn(pending.str(), LLFontGL::sSansSerif); 720
721 LLSD row;
722 row["columns"][0]["value"] = pending.str();
723
709 mListVisibleMembers->setEnabled(FALSE); 724 mListVisibleMembers->setEnabled(FALSE);
710 mListVisibleMembers->addItem(row); 725 mListVisibleMembers->addElement(row);
711 } 726 }
712 } 727 }
713} 728}