aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-23 06:42:38 -0700
committerMcCabe Maxsted2010-08-28 05:01:14 -0700
commit41449f8afde55e5998d718ee282063d9e4c3583f (patch)
tree36f38f16cb0c07323d31e868c89079d97f647be9 /linden/indra
parentToggle between limited and sim-wide range for radar (diff)
downloadmeta-impy-41449f8afde55e5998d718ee282063d9e4c3583f.zip
meta-impy-41449f8afde55e5998d718ee282063d9e4c3583f.tar.gz
meta-impy-41449f8afde55e5998d718ee282063d9e4c3583f.tar.bz2
meta-impy-41449f8afde55e5998d718ee282063d9e4c3583f.tar.xz
Removed profile buttons in the build window in favor of clickable links. Group names are now also clickable. Fixes inability to see full names when editing objects
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llpanelpermissions.cpp44
-rw-r--r--linden/indra/newview/llpanelpermissions.h1
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_tools.xml53
3 files changed, 52 insertions, 46 deletions
diff --git a/linden/indra/newview/llpanelpermissions.cpp b/linden/indra/newview/llpanelpermissions.cpp
index a97d177..d541bce 100644
--- a/linden/indra/newview/llpanelpermissions.cpp
+++ b/linden/indra/newview/llpanelpermissions.cpp
@@ -85,10 +85,10 @@ BOOL LLPanelPermissions::postBuild()
85 this->childSetCommitCallback("Object Description",LLPanelPermissions::onCommitDesc,this); 85 this->childSetCommitCallback("Object Description",LLPanelPermissions::onCommitDesc,this);
86 this->childSetPrevalidate("Object Description",LLLineEditor::prevalidatePrintableNotPipe); 86 this->childSetPrevalidate("Object Description",LLLineEditor::prevalidatePrintableNotPipe);
87 87
88 88 this->getChild<LLTextBox>("Creator Name")->setClickedCallback(onClickCreator, this);
89 this->childSetAction("button owner profile",LLPanelPermissions::onClickOwner,this); 89 this->getChild<LLTextBox>("Owner Name")->setClickedCallback(onClickOwner, this);
90 this->childSetAction("button last owner profile",LLPanelPermissions::onClickLastOwner,this); 90 this->getChild<LLTextBox>("Last Owner Name")->setClickedCallback(onClickLastOwner, this);
91 this->childSetAction("button creator profile",LLPanelPermissions::onClickCreator,this); 91 this->getChild<LLTextBox>("Group Name Proxy")->setClickedCallback(onClickGroupName, this);
92 92
93 this->childSetAction("button set group",LLPanelPermissions::onClickGroup,this); 93 this->childSetAction("button set group",LLPanelPermissions::onClickGroup,this);
94 94
@@ -116,8 +116,13 @@ BOOL LLPanelPermissions::postBuild()
116 LLTextBox* group_rect_proxy = getChild<LLTextBox>("Group Name Proxy"); 116 LLTextBox* group_rect_proxy = getChild<LLTextBox>("Group Name Proxy");
117 if(group_rect_proxy ) 117 if(group_rect_proxy )
118 { 118 {
119 // God I hate leaving this hardcoded styling here, ick ick ick -- MC
119 mLabelGroupName = new LLNameBox("Group Name", group_rect_proxy->getRect()); 120 mLabelGroupName = new LLNameBox("Group Name", group_rect_proxy->getRect());
120 addChild(mLabelGroupName); 121 addChild(mLabelGroupName);
122 mLabelGroupName->setClickedCallback(onClickGroupName, this);
123 mLabelGroupName->setHoverActive(TRUE);
124 mLabelGroupName->setHoverColor(LLColor4(50, 115, 185));
125 mLabelGroupName->setFontStyle(LLFontGL::UNDERLINE);
121 } 126 }
122 else 127 else
123 { 128 {
@@ -177,17 +182,14 @@ void LLPanelPermissions::refresh()
177 childSetEnabled("Creator:",false); 182 childSetEnabled("Creator:",false);
178 childSetText("Creator Name",LLStringUtil::null); 183 childSetText("Creator Name",LLStringUtil::null);
179 childSetEnabled("Creator Name",false); 184 childSetEnabled("Creator Name",false);
180 childSetEnabled("button creator profile",false);
181 185
182 childSetEnabled("Owner:",false); 186 childSetEnabled("Owner:",false);
183 childSetText("Owner Name",LLStringUtil::null); 187 childSetText("Owner Name",LLStringUtil::null);
184 childSetEnabled("Owner Name",false); 188 childSetEnabled("Owner Name",false);
185 childSetEnabled("button owner profile",false);
186 189
187 childSetEnabled("Last Owner:",false); 190 childSetEnabled("Last Owner:",false);
188 childSetText("Last Owner Name",LLStringUtil::null); 191 childSetText("Last Owner Name",LLStringUtil::null);
189 childSetEnabled("Last Owner Name",false); 192 childSetEnabled("Last Owner Name",false);
190 childSetEnabled("button last owner profile",false);
191 193
192 childSetEnabled("Group:",false); 194 childSetEnabled("Group:",false);
193 childSetText("Group Name",LLStringUtil::null); 195 childSetText("Group Name",LLStringUtil::null);
@@ -297,8 +299,7 @@ void LLPanelPermissions::refresh()
297 creator_name); 299 creator_name);
298 300
299 childSetText("Creator Name",creator_name); 301 childSetText("Creator Name",creator_name);
300 childSetEnabled("Creator Name",TRUE); 302 childSetEnabled("Creator Name",creators_identical && mCreatorID.notNull());
301 childSetEnabled("button creator profile", creators_identical && mCreatorID.notNull() );
302 303
303 // Update owner text field 304 // Update owner text field
304 childSetEnabled("Owner:",true); 305 childSetEnabled("Owner:",true);
@@ -347,10 +348,9 @@ void LLPanelPermissions::refresh()
347// [/RLVa:KB] 348// [/RLVa:KB]
348 349
349 childSetText("Owner Name",owner_name); 350 childSetText("Owner Name",owner_name);
350 childSetEnabled("Owner Name",TRUE); 351// childSetEnabled("Owner Name",TRUE);
351// childSetEnabled("button owner profile",owners_identical && (mOwnerID.notNull() || LLSelectMgr::getInstance()->selectIsGroupOwned())); 352// [RLVa:KB] - Checked: 2010-08-23 (RLVa-imp-edit)
352// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) 353 childSetEnabled("Owner Name",
353 childSetEnabled("button owner profile",
354 fRlvEnableOwner && owners_identical && (mOwnerID.notNull() || LLSelectMgr::getInstance()->selectIsGroupOwned())); 354 fRlvEnableOwner && owners_identical && (mOwnerID.notNull() || LLSelectMgr::getInstance()->selectIsGroupOwned()));
355// [/RLVa:KB] 355// [/RLVa:KB]
356 356
@@ -359,14 +359,12 @@ void LLPanelPermissions::refresh()
359 childSetEnabled("Last Owner:", TRUE); 359 childSetEnabled("Last Owner:", TRUE);
360 childSetText("Last Owner Name", last_owner_name); 360 childSetText("Last Owner Name", last_owner_name);
361 childSetEnabled("Last Owner Name", TRUE); 361 childSetEnabled("Last Owner Name", TRUE);
362 childSetEnabled("button last owner profile", TRUE);
363 } 362 }
364 else 363 else
365 { 364 {
366 childSetEnabled("Last Owner:", FALSE); 365 childSetEnabled("Last Owner:", FALSE);
367 childSetText("Last Owner Name", LLStringUtil::null); 366 childSetText("Last Owner Name", LLStringUtil::null);
368 childSetEnabled("Last Owner Name", FALSE); 367 childSetEnabled("Last Owner Name", FALSE);
369 childSetEnabled("button last owner profile", FALSE);
370 } 368 }
371 369
372 // update group text field 370 // update group text field
@@ -868,7 +866,10 @@ void LLPanelPermissions::onClickCreator(void *data)
868{ 866{
869 LLPanelPermissions *self = (LLPanelPermissions *)data; 867 LLPanelPermissions *self = (LLPanelPermissions *)data;
870 868
871 LLFloaterAvatarInfo::showFromObject(self->mCreatorID); 869 if (self->mCreatorID.notNull())
870 {
871 LLFloaterAvatarInfo::showFromObject(self->mCreatorID);
872 }
872} 873}
873 874
874// static 875// static
@@ -882,7 +883,7 @@ void LLPanelPermissions::onClickOwner(void *data)
882 LLSelectMgr::getInstance()->selectGetGroup(group_id); 883 LLSelectMgr::getInstance()->selectGetGroup(group_id);
883 LLFloaterGroupInfo::showFromUUID(group_id); 884 LLFloaterGroupInfo::showFromUUID(group_id);
884 } 885 }
885 else 886 else if (self->mOwnerID.notNull())
886 { 887 {
887// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) 888// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e)
888 if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) 889 if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
@@ -910,6 +911,15 @@ void LLPanelPermissions::onClickLastOwner(void *data)
910 } 911 }
911} 912}
912 913
914void LLPanelPermissions::onClickGroupName(void *data)
915{
916 LLUUID group_id;
917 if (LLSelectMgr::getInstance()->selectGetGroup(group_id))
918 {
919 LLFloaterGroupInfo::showFromUUID(group_id);
920 }
921}
922
913void LLPanelPermissions::onClickGroup(void* data) 923void LLPanelPermissions::onClickGroup(void* data)
914{ 924{
915 LLPanelPermissions* panelp = (LLPanelPermissions*)data; 925 LLPanelPermissions* panelp = (LLPanelPermissions*)data;
diff --git a/linden/indra/newview/llpanelpermissions.h b/linden/indra/newview/llpanelpermissions.h
index 9aa5573..9fa4cce 100644
--- a/linden/indra/newview/llpanelpermissions.h
+++ b/linden/indra/newview/llpanelpermissions.h
@@ -70,6 +70,7 @@ protected:
70 static void onClickCreator(void*); 70 static void onClickCreator(void*);
71 static void onClickOwner(void*); 71 static void onClickOwner(void*);
72 static void onClickLastOwner(void*); 72 static void onClickLastOwner(void*);
73 static void onClickGroupName(void*);
73 static void onClickGroup(void*); 74 static void onClickGroup(void*);
74 static void cbGroupID(LLUUID group_id, void* userdata); 75 static void cbGroupID(LLUUID group_id, void* userdata);
75 static void onClickDeedToGroup(void*); 76 static void onClickDeedToGroup(void*);
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml b/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
index 465abdc..5f61e3c 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
@@ -349,6 +349,7 @@
349 follows="left|top|right" font="SansSerifSmall" height="16" left="88" 349 follows="left|top|right" font="SansSerifSmall" height="16" left="88"
350 max_length="127" mouse_opaque="true" name="Object Description" 350 max_length="127" mouse_opaque="true" name="Object Description"
351 select_all_on_focus_received="true" width="172" /> 351 select_all_on_focus_received="true" width="172" />
352
352 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 353 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
353 bottom="-66" drop_shadow_visible="true" follows="left|top" 354 bottom="-66" drop_shadow_visible="true" follows="left|top"
354 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10" 355 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
@@ -358,29 +359,25 @@
358 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 359 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
359 bottom="-66" drop_shadow_visible="true" follows="left|top" 360 bottom="-66" drop_shadow_visible="true" follows="left|top"
360 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78" 361 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78"
361 mouse_opaque="true" name="Creator Name" v_pad="0" width="88"> 362 mouse_opaque="true" name="Creator Name" v_pad="0" width="145"
362 Thrax Linden 363 hover="true" hover_color="50 115 185" font-style="UNDERLINE">
363 </text> 364 Imprudent Linden
364 <button bottom="-66" follows="top|right" font="SansSerifSmall" halign="center" 365 </text>
365 height="20" label="Profile..." label_selected="Profile..." left_delta="94" 366
366 mouse_opaque="true" name="button creator profile" scale_image="TRUE" 367 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
367 width="78" />
368 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
369 bottom="-86" drop_shadow_visible="true" follows="left|top" 368 bottom="-86" drop_shadow_visible="true" follows="left|top"
370 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10" 369 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
371 mouse_opaque="true" name="Owner:" v_pad="0" width="78"> 370 mouse_opaque="true" name="Owner:" v_pad="0" width="78">
372 Owner: 371 Owner:
373 </text> 372 </text>
374 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 373 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
375 bottom="-86" drop_shadow_visible="true" follows="left|top" 374 bottom="-86" drop_shadow_visible="true" follows="left|top"
376 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78" 375 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78"
377 mouse_opaque="true" name="Owner Name" v_pad="0" width="88"> 376 mouse_opaque="true" name="Owner Name" v_pad="0" width="174"
378 Thrax Linden 377 hover="true" hover_color="50 115 185" font-style="UNDERLINE">
379 </text> 378 Imprudent Linden
380 <button bottom="-86" follows="top|right" font="SansSerifSmall" halign="center" 379 </text>
381 height="20" label="Profile..." label_selected="Profile..." left_delta="94" 380
382 mouse_opaque="true" name="button owner profile" scale_image="TRUE"
383 width="78" />
384 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 381 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
385 bottom_delta="-20" drop_shadow_visible="true" follows="left|top" 382 bottom_delta="-20" drop_shadow_visible="true" follows="left|top"
386 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10" 383 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
@@ -390,24 +387,22 @@
390 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 387 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
391 bottom_delta="0" drop_shadow_visible="true" follows="left|top" 388 bottom_delta="0" drop_shadow_visible="true" follows="left|top"
392 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78" 389 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78"
393 mouse_opaque="true" name="Last Owner Name" v_pad="0" width="88"> 390 mouse_opaque="true" name="Last Owner Name" v_pad="0" width="174"
394 Thrax Linden 391 hover="true" hover_color="50 115 185" font-style="UNDERLINE">
392 Imprudent Linden
395 </text> 393 </text>
396 <button bottom_delta="0" follows="top|right" font="SansSerifSmall" halign="center" 394
397 height="20" label="Profile..." label_selected="Profile..." left_delta="94" 395 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
398 mouse_opaque="true" name="button last owner profile" scale_image="TRUE"
399 width="78" />
400 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
401 bottom="-126" drop_shadow_visible="true" follows="left|top" 396 bottom="-126" drop_shadow_visible="true" follows="left|top"
402 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10" 397 font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
403 mouse_opaque="true" name="Group:" v_pad="0" width="78"> 398 mouse_opaque="true" name="Group:" v_pad="0" width="78">
404 Group: 399 Group:
405 </text> 400 </text>
406 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 401 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
407 bottom="-126" drop_shadow_visible="true" follows="left|top" 402 bottom="-126" drop_shadow_visible="true" follows="left|top"
408 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78" 403 font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="78"
409 mouse_opaque="true" name="Group Name Proxy" v_pad="0" visible="false" 404 mouse_opaque="true" name="Group Name Proxy" v_pad="0" visible="false"
410 width="88"> 405 width="88" hover="true" hover_color="50 115 185" font-style="UNDERLINE">
411 The Lindens 406 The Lindens
412 </text> 407 </text>
413 <button bottom="-126" follows="top|right" font="SansSerifSmall" halign="center" 408 <button bottom="-126" follows="top|right" font="SansSerifSmall" halign="center"