aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llfloaterfriends.cpp17
-rw-r--r--linden/indra/newview/llfloaterfriends.h2
-rw-r--r--linden/indra/newview/skins/default/xui/de/panel_friends.xml2
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_friends.xml2
4 files changed, 23 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterfriends.cpp b/linden/indra/newview/llfloaterfriends.cpp
index d7b00d6..e18e705 100644
--- a/linden/indra/newview/llfloaterfriends.cpp
+++ b/linden/indra/newview/llfloaterfriends.cpp
@@ -265,6 +265,18 @@ BOOL LLPanelFriends::addFriend(const LLUUID& agent_id)
265 edit_my_object_column["type"] = "checkbox"; 265 edit_my_object_column["type"] = "checkbox";
266 edit_my_object_column["value"] = relationInfo->isRightGrantedTo(LLRelationship::GRANT_MODIFY_OBJECTS); 266 edit_my_object_column["value"] = relationInfo->isRightGrantedTo(LLRelationship::GRANT_MODIFY_OBJECTS);
267 267
268// LLSD& online_their_column = element["columns"][LIST_VISIBLE_ONLINE_THEIRS];
269// online_their_column["column"] = "icon_visible_online_theirs";
270// online_their_column["type"] = "checkbox";
271// online_their_column["enabled"] = "";
272// online_their_column["value"] = relationInfo->isRightGrantedFrom(LLRelationship::GRANT_ONLINE_STATUS);
273
274 LLSD& map_their_column = element["columns"][LIST_VISIBLE_MAP_THEIRS];
275 map_their_column["column"] = "icon_visible_map_theirs";
276 map_their_column["type"] = "checkbox";
277 map_their_column["enabled"] = "";
278 map_their_column["value"] = relationInfo->isRightGrantedFrom(LLRelationship::GRANT_MAP_LOCATION);
279
268 LLSD& edit_their_object_column = element["columns"][LIST_EDIT_THEIRS]; 280 LLSD& edit_their_object_column = element["columns"][LIST_EDIT_THEIRS];
269 edit_their_object_column["column"] = "icon_edit_theirs"; 281 edit_their_object_column["column"] = "icon_edit_theirs";
270 edit_their_object_column["type"] = "checkbox"; 282 edit_their_object_column["type"] = "checkbox";
@@ -313,6 +325,11 @@ BOOL LLPanelFriends::updateFriendItem(const LLUUID& agent_id, const LLRelationsh
313 itemp->getColumn(LIST_VISIBLE_ONLINE)->setValue(info->isRightGrantedTo(LLRelationship::GRANT_ONLINE_STATUS)); 325 itemp->getColumn(LIST_VISIBLE_ONLINE)->setValue(info->isRightGrantedTo(LLRelationship::GRANT_ONLINE_STATUS));
314 itemp->getColumn(LIST_VISIBLE_MAP)->setValue(info->isRightGrantedTo(LLRelationship::GRANT_MAP_LOCATION)); 326 itemp->getColumn(LIST_VISIBLE_MAP)->setValue(info->isRightGrantedTo(LLRelationship::GRANT_MAP_LOCATION));
315 itemp->getColumn(LIST_EDIT_MINE)->setValue(info->isRightGrantedTo(LLRelationship::GRANT_MODIFY_OBJECTS)); 327 itemp->getColumn(LIST_EDIT_MINE)->setValue(info->isRightGrantedTo(LLRelationship::GRANT_MODIFY_OBJECTS));
328
329// itemp->getColumn(LIST_VISIBLE_ONLINE_THEIRS)->setValue(info->isRightGrantedFrom(LLRelationship::GRANT_ONLINE_STATUS));
330 itemp->getColumn(LIST_VISIBLE_MAP_THEIRS)->setValue(info->isRightGrantedFrom(LLRelationship::GRANT_MAP_LOCATION));
331 itemp->getColumn(LIST_EDIT_THEIRS)->setValue(info->isRightGrantedFrom(LLRelationship::GRANT_MODIFY_OBJECTS));
332
316 S32 change_generation = have_name ? info->getChangeSerialNum() : -1; 333 S32 change_generation = have_name ? info->getChangeSerialNum() : -1;
317 itemp->getColumn(LIST_FRIEND_UPDATE_GEN)->setValue(change_generation); 334 itemp->getColumn(LIST_FRIEND_UPDATE_GEN)->setValue(change_generation);
318 335
diff --git a/linden/indra/newview/llfloaterfriends.h b/linden/indra/newview/llfloaterfriends.h
index a5c94ee..f7f0b32 100644
--- a/linden/indra/newview/llfloaterfriends.h
+++ b/linden/indra/newview/llfloaterfriends.h
@@ -92,6 +92,8 @@ private:
92 LIST_VISIBLE_ONLINE, 92 LIST_VISIBLE_ONLINE,
93 LIST_VISIBLE_MAP, 93 LIST_VISIBLE_MAP,
94 LIST_EDIT_MINE, 94 LIST_EDIT_MINE,
95// LIST_VISIBLE_ONLINE_THEIRS,
96 LIST_VISIBLE_MAP_THEIRS,
95 LIST_EDIT_THEIRS, 97 LIST_EDIT_THEIRS,
96 LIST_FRIEND_UPDATE_GEN 98 LIST_FRIEND_UPDATE_GEN
97 }; 99 };
diff --git a/linden/indra/newview/skins/default/xui/de/panel_friends.xml b/linden/indra/newview/skins/default/xui/de/panel_friends.xml
index bb2adb3..cd56366 100644
--- a/linden/indra/newview/skins/default/xui/de/panel_friends.xml
+++ b/linden/indra/newview/skins/default/xui/de/panel_friends.xml
@@ -11,6 +11,8 @@
11 <column name="icon_visible_map" tool_tip="Freund kann Sie auf der Karte finden" /> 11 <column name="icon_visible_map" tool_tip="Freund kann Sie auf der Karte finden" />
12 <column name="icon_edit_mine" 12 <column name="icon_edit_mine"
13 tool_tip="Freunde können Objekte bearbeiten, löschen und an sich nehmen" /> 13 tool_tip="Freunde können Objekte bearbeiten, löschen und an sich nehmen" />
14 <column name="icon_visible_map_theirs"
15 tool_tip="Sie können den Freund auf der Karte finden" width="20" />
14 <column name="icon_edit_theirs" 16 <column name="icon_edit_theirs"
15 tool_tip="Sie können die Objekte dieses Freunds bearbeiten" /> 17 tool_tip="Sie können die Objekte dieses Freunds bearbeiten" />
16 </scroll_list> 18 </scroll_list>
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_friends.xml b/linden/indra/newview/skins/default/xui/en-us/panel_friends.xml
index bf7acd4..0854c99 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_friends.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_friends.xml
@@ -17,6 +17,8 @@
17 tool_tip="Friend can locate you on the map" width="20" /> 17 tool_tip="Friend can locate you on the map" width="20" />
18 <column image="ff_edit_mine_button.tga" name="icon_edit_mine" 18 <column image="ff_edit_mine_button.tga" name="icon_edit_mine"
19 tool_tip="Friend can edit, delete or take objects" width="20" /> 19 tool_tip="Friend can edit, delete or take objects" width="20" />
20 <column image="ff_visible_map_button.tga" name="icon_visible_map_theirs"
21 tool_tip="You can locate this friend on the map" width="20" />
20 <column image="ff_edit_theirs_button.tga" name="icon_edit_theirs" 22 <column image="ff_edit_theirs_button.tga" name="icon_edit_theirs"
21 tool_tip="You can edit this friend&apos;s objects" width="20" /> 23 tool_tip="You can edit this friend&apos;s objects" width="20" />
22 <column name="friend_last_update_generation" width="0" /> 24 <column name="friend_last_update_generation" width="0" />