diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llpanelgrouproles.cpp | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-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 '')
-rw-r--r-- | linden/indra/newview/llpanelgrouproles.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/linden/indra/newview/llpanelgrouproles.cpp b/linden/indra/newview/llpanelgrouproles.cpp index 7ac59a3..3401bee 100644 --- a/linden/indra/newview/llpanelgrouproles.cpp +++ b/linden/indra/newview/llpanelgrouproles.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, |
@@ -790,7 +790,6 @@ void LLPanelGroupSubTab::buildActionCategory(LLScrollListCtrl* ctrl, | |||
790 | { | 790 | { |
791 | row["columns"][column_index]["column"] = "checkbox"; | 791 | row["columns"][column_index]["column"] = "checkbox"; |
792 | row["columns"][column_index]["type"] = "checkbox"; | 792 | row["columns"][column_index]["type"] = "checkbox"; |
793 | row["columns"][column_index]["value"] = (*ra_it)->mName; | ||
794 | check_box_index = column_index; | 793 | check_box_index = column_index; |
795 | ++column_index; | 794 | ++column_index; |
796 | } | 795 | } |
@@ -1058,7 +1057,7 @@ void LLPanelGroupMembersSubTab::handleMemberSelect() | |||
1058 | if (mi == gdatap->mMembers.end()) continue; | 1057 | if (mi == gdatap->mMembers.end()) continue; |
1059 | LLGroupMemberData* member_data = (*mi).second; | 1058 | LLGroupMemberData* member_data = (*mi).second; |
1060 | // Is the member an owner? | 1059 | // Is the member an owner? |
1061 | if ( member_data->isInRole(gdatap->mOwnerRole) ) | 1060 | if ( member_data && member_data->isInRole(gdatap->mOwnerRole) ) |
1062 | { | 1061 | { |
1063 | // Can't remove other owners. | 1062 | // Can't remove other owners. |
1064 | cb_enable = FALSE; | 1063 | cb_enable = FALSE; |
@@ -1682,7 +1681,7 @@ void LLPanelGroupMembersSubTab::update(LLGroupChange gc) | |||
1682 | retrieved << "Retrieving role member mappings..."; | 1681 | retrieved << "Retrieving role member mappings..."; |
1683 | } | 1682 | } |
1684 | mMembersList->setEnabled(FALSE); | 1683 | mMembersList->setEnabled(FALSE); |
1685 | mMembersList->addSimpleItem(retrieved.str()); | 1684 | mMembersList->addCommentText(retrieved.str()); |
1686 | } | 1685 | } |
1687 | } | 1686 | } |
1688 | 1687 | ||
@@ -1762,7 +1761,7 @@ void LLPanelGroupMembersSubTab::updateMembers() | |||
1762 | else | 1761 | else |
1763 | { | 1762 | { |
1764 | mMembersList->setEnabled(FALSE); | 1763 | mMembersList->setEnabled(FALSE); |
1765 | mMembersList->addSimpleItem("No match."); | 1764 | mMembersList->addCommentText("No match."); |
1766 | } | 1765 | } |
1767 | } | 1766 | } |
1768 | else | 1767 | else |
@@ -1870,7 +1869,7 @@ BOOL LLPanelGroupRolesSubTab::postBuildSubTab(LLView* root) | |||
1870 | mRoleDescription->setCommitOnFocusLost(TRUE); | 1869 | mRoleDescription->setCommitOnFocusLost(TRUE); |
1871 | mRoleDescription->setCallbackUserData(this); | 1870 | mRoleDescription->setCallbackUserData(this); |
1872 | mRoleDescription->setCommitCallback(onDescriptionCommit); | 1871 | mRoleDescription->setCommitCallback(onDescriptionCommit); |
1873 | mRoleDescription->setFocusReceivedCallback(onDescriptionCommit); | 1872 | mRoleDescription->setFocusReceivedCallback(onDescriptionFocus, this); |
1874 | 1873 | ||
1875 | setFooterEnabled(FALSE); | 1874 | setFooterEnabled(FALSE); |
1876 | 1875 | ||
@@ -2329,6 +2328,16 @@ void LLPanelGroupRolesSubTab::onPropertiesKey(LLLineEditor* ctrl, void* user_dat | |||
2329 | } | 2328 | } |
2330 | 2329 | ||
2331 | // static | 2330 | // static |
2331 | void LLPanelGroupRolesSubTab::onDescriptionFocus(LLFocusableElement* ctrl, void* user_data) | ||
2332 | { | ||
2333 | LLPanelGroupRolesSubTab* self = static_cast<LLPanelGroupRolesSubTab*>(user_data); | ||
2334 | if (!self) return; | ||
2335 | |||
2336 | self->mHasRoleChange = TRUE; | ||
2337 | self->notifyObservers(); | ||
2338 | } | ||
2339 | |||
2340 | // static | ||
2332 | void LLPanelGroupRolesSubTab::onDescriptionCommit(LLUICtrl* ctrl, void* user_data) | 2341 | void LLPanelGroupRolesSubTab::onDescriptionCommit(LLUICtrl* ctrl, void* user_data) |
2333 | { | 2342 | { |
2334 | LLPanelGroupRolesSubTab* self = static_cast<LLPanelGroupRolesSubTab*>(user_data); | 2343 | LLPanelGroupRolesSubTab* self = static_cast<LLPanelGroupRolesSubTab*>(user_data); |
@@ -2665,7 +2674,7 @@ void LLPanelGroupActionsSubTab::handleActionSelect() | |||
2665 | if (!rmd) continue; | 2674 | if (!rmd) continue; |
2666 | if ((rmd->getRoleData().mRolePowers & power_mask) == power_mask) | 2675 | if ((rmd->getRoleData().mRolePowers & power_mask) == power_mask) |
2667 | { | 2676 | { |
2668 | mActionRoles->addSimpleItem(rmd->getRoleData().mRoleName); | 2677 | mActionRoles->addSimpleElement(rmd->getRoleData().mRoleName); |
2669 | } | 2678 | } |
2670 | } | 2679 | } |
2671 | } | 2680 | } |