diff --git a/indra/newview/llpanelpermissions.cpp b/indra/newview/llpanelpermissions.cpp index 5fac19260728b41e2c25e0d3c472ceb2b0ebddca..c645b7aae7d1bdd16ff414361f6d2c38e8fbd515 100644 --- a/indra/newview/llpanelpermissions.cpp +++ b/indra/newview/llpanelpermissions.cpp @@ -220,7 +220,7 @@ BOOL LLPanelPermissions::postBuild() childSetCommitCallback("clickaction",LLPanelPermissions::onCommitClickAction,this); childSetCommitCallback("search_check",LLPanelPermissions::onCommitIncludeInSearch,this); - mLabelGroupName = getChild<LLNameBox>("Group Name Proxy"); + mLabelGroupName = getChild<LLTextBox>("Group Name"); mLabelOwnerName = getChild<LLTextBox>("Owner Name"); mLabelCreatorName = getChild<LLTextBox>("Creator Name"); @@ -251,26 +251,22 @@ void LLPanelPermissions::disableAll() getChild<LLUICtrl>("pathfinding_attributes_value")->setValue(LLStringUtil::null); getChildView("Creator:")->setEnabled(FALSE); - getChild<LLUICtrl>("Creator Icon")->setVisible(FALSE); mLabelCreatorName->setValue(LLStringUtil::null); mLabelCreatorName->setEnabled(FALSE); getChildView("Owner:")->setEnabled(FALSE); - getChild<LLUICtrl>("Owner Icon")->setVisible(FALSE); - getChild<LLUICtrl>("Owner Group Icon")->setVisible(FALSE); mLabelOwnerName->setValue(LLStringUtil::null); mLabelOwnerName->setEnabled(FALSE); getChildView("Group:")->setEnabled(FALSE); - getChild<LLUICtrl>("Group Name Proxy")->setValue(LLStringUtil::null); - getChildView("Group Name Proxy")->setEnabled(FALSE); + mLabelGroupName->setValue(LLStringUtil::null); + mLabelGroupName->setEnabled(FALSE); getChildView("button set group")->setEnabled(FALSE); getChild<LLUICtrl>("Object Name")->setValue(LLStringUtil::null); getChildView("Object Name")->setEnabled(FALSE); getChildView("Name:")->setEnabled(FALSE); - getChild<LLUICtrl>("Group Name")->setValue(LLStringUtil::null); - getChildView("Group Name")->setEnabled(FALSE); + getChildView("Description:")->setEnabled(FALSE); getChild<LLUICtrl>("Object Description")->setValue(LLStringUtil::null); getChildView("Object Description")->setEnabled(FALSE); @@ -560,25 +556,17 @@ void LLPanelPermissions::refresh() // update group text field getChildView("Group:")->setEnabled(TRUE); - getChild<LLUICtrl>("Group Name")->setValue(LLStringUtil::null); LLUUID group_id; BOOL groups_identical = select_mgr->selectGetGroup(group_id); if (groups_identical) { - if (mLabelGroupName) - { - mLabelGroupName->setNameID(group_id,TRUE); - mLabelGroupName->setEnabled(TRUE); - } + mLabelGroupName->setValue(LLSLURL("group", group_id, "inspect").getSLURLString()); + mLabelGroupName->setEnabled(TRUE); } else { - if (mLabelGroupName) - { - mLabelGroupName->setNameID(LLUUID::null, TRUE); - mLabelGroupName->refresh(LLUUID::null, std::string(), true); - mLabelGroupName->setEnabled(FALSE); - } + mLabelGroupName->setValue(LLStringUtil::null); + mLabelGroupName->setEnabled(TRUE); } getChildView("button set group")->setEnabled(root_selected && owners_identical && (mOwnerID == gAgent.getID()) && is_nonpermanent_enforced); @@ -1224,10 +1212,8 @@ void LLPanelPermissions::onClickGroup() void LLPanelPermissions::cbGroupID(LLUUID group_id) { - if(mLabelGroupName) - { - mLabelGroupName->setNameID(group_id, TRUE); - } + mLabelGroupName->setValue(LLSLURL("group", group_id, "inspect").getSLURLString()); + mLabelGroupName->setEnabled(TRUE); LLSelectMgr::getInstance()->sendGroup(group_id); } diff --git a/indra/newview/llpanelpermissions.h b/indra/newview/llpanelpermissions.h index aff0dc26da9993c5429a91dc2476fbfb23f6be18..edfa06513286ffe93a432a4631264238aa8737aa 100644 --- a/indra/newview/llpanelpermissions.h +++ b/indra/newview/llpanelpermissions.h @@ -89,7 +89,7 @@ class LLPanelPermissions : public LLPanel void disableAll(); private: - LLNameBox* mLabelGroupName; // group name + LLTextBox* mLabelGroupName; // group name LLTextBox* mLabelOwnerName; LLTextBox* mLabelCreatorName; LLUUID mCreatorID; diff --git a/indra/newview/skins/default/xui/en/floater_tools.xml b/indra/newview/skins/default/xui/en/floater_tools.xml index eeb87fb33429a2b2520619335e44181fd3904509..e257456e1c708c58ec1936f63434e69ea4de485a 100644 --- a/indra/newview/skins/default/xui/en/floater_tools.xml +++ b/indra/newview/skins/default/xui/en/floater_tools.xml @@ -956,7 +956,7 @@ left="10" name="Name:" top="5" - width="90"> + width="70"> Name: </text> <line_editor @@ -967,7 +967,7 @@ name="Object Name" select_on_focus="true" top_delta="0" - width="170" + width="210" tool_tip="The name is limited to 63 characters. Longer prim names are cut short. Names can only consist of printable characters found in the ASCII-7 (non-extended) character set, with the exception of the vertical bar/pipe '|'." /> <text follows="left|top" @@ -975,7 +975,7 @@ left="10" name="Description:" top_pad="3" - width="90"> + width="70"> Description: </text> <line_editor @@ -986,7 +986,7 @@ name="Object Description" select_on_focus="true" top_delta="0" - width="170" + width="210" tool_tip="When people have 'Hover Tips on All Objects' selected in the viewer's settings, they'll see the object description pop-up for any object under their mouse pointer. The prim description is limited to 127 bytes any string longer then that will be truncated." /> <text type="string" @@ -997,19 +997,9 @@ layout="topleft" name="Creator:" top_pad="7" - width="90"> + width="70"> Creator: </text> - <avatar_icon - default_icon_name="Generic_Person" - height="18" - follows="left|top" - layout="topleft" - left_pad="1" - name="Creator Icon" - visible="false" - top_delta="0" - width="18" /> <!-- *NOTE: Intentionally wide for long names --> <text type="string" @@ -1022,7 +1012,7 @@ font="SansSerifSmall" top_delta="-1" translate="false" - width="170" + width="205" word_wrap="true" use_ellipses="true"> TestString PleaseIgnore (please.ignore) @@ -1036,29 +1026,9 @@ layout="topleft" name="Owner:" top_pad="3" - width="90"> + width="70"> Owner: </text> - <avatar_icon - default_icon_name="Generic_Person" - height="18" - follows="left|top" - layout="topleft" - left_pad="1" - name="Owner Icon" - visible="false" - top_delta="0" - width="18" /> - <group_icon - default_icon_name="Generic_Group" - height="18" - follows="left|top" - layout="topleft" - left_pad="-18" - name="Owner Group Icon" - visible="false" - top_delta="0" - width="18" /> <!-- *NOTE: Intentionally wide for long names --> <text type="string" @@ -1071,7 +1041,7 @@ left_pad="1" top_delta="-1" translate="false" - width="170" + width="205" word_wrap="true" use_ellipses="true"> TestString PleaseIgnore (please.ignore) @@ -1085,23 +1055,31 @@ height="18" name="Group:" top_pad="3" - width="75"> + width="70"> Group: </text> - <name_box + <text + type="string" + length="1" follows="left|top" - height="18" - initial_value="Loading..." + height="29" layout="topleft" - left_pad="23" - name="Group Name Proxy" - width="142" /> + name="Group Name" + font="SansSerifSmall" + left_pad="1" + top_delta="-1" + translate="false" + width="177" + word_wrap="true" + use_ellipses="true"> + Loading... + </text> <button follows="top|left" height="23" image_overlay="Edit_Wrench" layout="topleft" - left_pad="13" + left_pad="5" name="button set group" tab_stop="false" tool_tip="Choose a group to share this object's permissions" @@ -2885,6 +2863,7 @@ even though the user gets a free copy. </panel> </tab_container> <panel + visible="false" follows="left|top" height="384" layout="topleft"