diff options
| author | Loren Shih <seraph@lindenlab.com> | 2009-11-09 12:26:27 -0500 | 
|---|---|---|
| committer | Loren Shih <seraph@lindenlab.com> | 2009-11-09 12:26:27 -0500 | 
| commit | c9937716aa3a1f7aac0e93fc1d58488d02d30e6e (patch) | |
| tree | 17b8c4eafea2daa3300e4dc4ffee3db3c426adc7 /indra/newview | |
| parent | 90d985946ce167a313e2765728caf2652931dfdd (diff) | |
EXT-1866 : Inventory Side Panel
Various trivial UI behavioral changes for disabling/enabling old/new floaters when bringing up properties of objects/items.
This is to make the UI behavior compliant with the Inventory Panel MVP.
Also added missing sidepanel_task_info.xml (although this is not actually enabled for viewer2.0).
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llpanelobjectinventory.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llviewermenu.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/sidepanel_task_info.xml | 547 | 
4 files changed, 557 insertions, 1 deletions
| diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 90e48d22ec..84e0f58c4b 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -284,7 +284,10 @@ void LLInvFVBridge::showProperties()  	key["id"] = mUUID;
  	LLSideTray::getInstance()->showPanel("sidepanel_inventory", key);
 +	// Disable old properties floater; this is replaced by the sidepanel.
 +	/*
  	LLFloaterReg::showInstance("properties", mUUID);
 +	*/
  }
  void LLInvFVBridge::removeBatch(LLDynamicArray<LLFolderViewEventListener*>& batch)
 @@ -3912,6 +3915,7 @@ void LLObjectBridge::openItem()  	key["id"] = mUUID;
  	LLSideTray::getInstance()->showPanel("sidepanel_inventory", key);
 +	// Disable old properties floater; this is replaced by the sidepanel.
  	/*
  	LLFloaterReg::showInstance("properties", mUUID);
  	*/
 diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp index 79b33e29f5..a5e9407a41 100644 --- a/indra/newview/llpanelobjectinventory.cpp +++ b/indra/newview/llpanelobjectinventory.cpp @@ -165,7 +165,9 @@ void LLTaskInvFVBridge::showProperties()  	key["object"] = mPanel->getTaskUUID();  	key["id"] = mUUID;  	LLSideTray::getInstance()->showPanel("sidepanel_inventory", key); -	 + + +	// Disable old properties floater; this is replaced by the sidepanel.  	/*  	LLFloaterProperties* floater = LLFloaterReg::showTypedInstance<LLFloaterProperties>("properties", mUUID);  	if (floater) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 07d073c3a9..4d4ad1c022 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -2634,6 +2634,8 @@ void handle_object_edit()  void handle_object_inspect()  { +	// Disable sidepanel inspector +	/*  	LLObjectSelectionHandle selection = LLSelectMgr::getInstance()->getSelection();  	LLViewerObject* selected_objectp = selection->getFirstRootObject();  	if (selected_objectp) @@ -2642,6 +2644,7 @@ void handle_object_inspect()  		key["task"] = "task";  		LLSideTray::getInstance()->showPanel("sidepanel_inventory", key);  	} +	*/  	LLFloaterReg::showInstance("inspect", LLSD());  } diff --git a/indra/newview/skins/default/xui/en/sidepanel_task_info.xml b/indra/newview/skins/default/xui/en/sidepanel_task_info.xml new file mode 100644 index 0000000000..8eb2254112 --- /dev/null +++ b/indra/newview/skins/default/xui/en/sidepanel_task_info.xml @@ -0,0 +1,547 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes" ?> +<panel +	 auto_tile="true" +	 height="570" +	 layout="topleft" +	 name="object properties" +	 help_topic="object_properties" +	 save_rect="true" +	 title="Object Properties" +	 width="333"> +	 <panel.string +	  name="text deed continued"> +		Deed +	 </panel.string> +	<panel.string +	 name="text deed"> +		Deed +	</panel.string> +            <panel.string +             name="text modify info 1"> +                You can modify this object +            </panel.string> +            <panel.string +             name="text modify info 2"> +                You can modify these objects +            </panel.string> +            <panel.string +             name="text modify info 3"> +                You can't modify this object +            </panel.string> +            <panel.string +             name="text modify info 4"> +                You can't modify these objects +            </panel.string> +            <panel.string +             name="text modify warning"> +                This object has linked parts +            </panel.string> +            <panel.string +             name="Cost Default"> +                Price: L$ +            </panel.string> +            <panel.string +             name="Cost Total"> +                Total Price: L$ +            </panel.string> +            <panel.string +             name="Cost Per Unit"> +                Price Per: L$ +            </panel.string> +            <panel.string +             name="Cost Mixed"> +                Mixed Price +            </panel.string> +            <panel.string +             name="Sale Mixed"> +                Mixed Sale +            </panel.string> +    <button +	     follows="top|right" +	     height="25" +	     image_overlay="BackArrow_Off" +	     layout="topleft" +	     name="back_btn" +	     picture_style="true" +	     right="-5" +	     tab_stop="false" +	     top="0" +	     width="25" /> +	<panel +         follows="all" +         height="500" +         label="" +         layout="topleft" +         left="5" +         help_topic="" +         top="30" +		 border="1" +         width="313"> +            <text +             type="string" +             length="1" +             follows="left|top" +             height="10" +             layout="topleft" +             left="10" +             name="Name:" +             top_pad="5" +             width="90"> +                Name: +            </text> +            <line_editor +             follows="left|top|right" +             height="19" +             layout="topleft" +             left_pad="0" +             max_length="63" +             name="Object Name" +             select_on_focus="true" +             top_delta="0" +             width="170" /> +            <text +             type="string" +             length="1" +             follows="left|top" +             height="10" +             layout="topleft" +             left="10" +             name="Description:" +             top_pad="3" +             width="90"> +                Description: +            </text> +            <line_editor +             follows="left|top|right" +             height="19" +             layout="topleft" +             left_pad="0" +             max_length="127" +             name="Object Description" +             select_on_focus="true" +             top_delta="0" +             width="170" /> +            <text +             type="string" +             left="10" +             length="1" +             follows="left|top" +             height="19" +             layout="topleft" +             name="Creator:" +             width="90"> +                Creator: +            </text> +            <text +             type="string" +             length="1" +             follows="left|top" +             left_pad="0" +             height="19" +             layout="topleft" +             name="Creator Name" +             width="175"> +                Esbee Linden +            </text> +            <text +             type="string" +             length="1" +             left="10" +             follows="left|top" +             height="19" +             layout="topleft" +             name="Owner:" +             width="90"> +                Owner: +            </text> +            <text +             type="string" +             length="1" +             follows="left|top" +             height="19" +             layout="topleft" +             name="Owner Name" +             left_pad="0" +             width="175"> +                Erica Linden +            </text> +           <text +             type="string" +             length="1" +             follows="left|top" +             layout="topleft" +             left="10" +             height="18" +             name="Group:" +             top_pad="4" +             width="75"> +                Group: +            </text> +            <button +			 follows="top|left" +			 height="10" +			 image_disabled="Activate_Checkmark" +			 image_selected="Activate_Checkmark" +			 image_unselected="Activate_Checkmark" +			 image_color="White_50" +			 layout="topleft" +			 left_pad="0" +			 top_delta="0" +			 name="button set group" +			 picture_style="true" +			 tab_stop="false" +			 tool_tip="Choose a group to share this object's permissions" +			 width="10" /> +            <name_box +             follows="left|top" +             height="18" +             initial_value="Loading..." +             layout="topleft" +             left_pad="5" +             top_delta="-1" +             name="Group Name Proxy" +             width="150" /> +            <button +             follows="top|left" +             font="SansSerifSmall" +             height="20" +             label="Deed" +             label_selected="Deed" +             layout="topleft" +             name="button deed" +             top_pad="0" +             left="100" +             tool_tip="Deeding gives this item away with next owner permissions. Group shared objects can be deeded by a group officer." +             width="80" /> +            <check_box +             height="19" +             follows="left|top" +             label="Share" +             layout="topleft" +             name="checkbox share with group" +             tool_tip="Allow all members of the set group to share your modify permissions for this object. You must Deed to enable role restrictions." +             left_pad="3" +             width="100" /> +            <text +             type="string" +             length="1" +             follows="left|top" +             height="16" +             layout="topleft" +             top_pad="15" +             left="10" +             name="label click action" +             width="90"> +                Click to: +            </text> +            <combo_box +             follows="left|top" +             height="20" +             layout="topleft" +             name="clickaction" +             width="168" +             left_pad="0"> +                <combo_box.item +                 label="Touch  (default)" +                 name="Touch/grab(default)" +                 value="Touch/grab (default)" /> +                <combo_box.item +                 label="Sit on object" +                 name="Sitonobject" +                 value="Sit on object" /> +                <combo_box.item +                 label="Buy object" +                 name="Buyobject" +                 value="Buy object" /> +                <combo_box.item +                 label="Pay object" +                 name="Payobject" +                 value="Pay object" /> +                <combo_box.item +                 label="Open" +                 name="Open" +                 value="Open" /> +            </combo_box> +            <check_box +             height="16" +             top_pad="15" +             label="For Sale:" +             layout="topleft" +             name="checkbox for sale" +             left="10" +             width="90" /> +<!-- NEW SALE TYPE COMBO BOX --> +      <combo_box +            left_pad="0" +            layout="topleft" +            follows="left|top" +            allow_text_entry="false" +            height="20" +            intial_value="2" +            max_chars="20" +            mouse_opaque="true" +            name="sale type" +            width="158"> +        <combo_box.item +           name="Copy" +           label="Copy" +           value="2" /> +        <combo_box.item +           name="Contents" +           label="Contents" +           value="3" /> +        <combo_box.item +           name="Original" +           label="Original" +           value="1" /> +      </combo_box> +<!-- NEW PRICE SPINNER --> +      <spinner +        follows="left|top" +        decimal_digits="0" +        increment="1" +        top_pad="8" +        left="100" +        control_name="Edit Cost" +        name="Edit Cost" +        label="Price: L$" +        label_width="65" +        width="150" +        min_val="1" +        height="20" +        max_val="999999999" /> +      <check_box +	   height="15" +	   width="110" +	   top_pad="3" +	   label="Show in search" +       layout="topleft" +	   left="100" +       name="search_check" +       tool_tip="Let people see this object in search results" /> +		<panel +         border="false" +         follows="left|top" +         layout="topleft" +         mouse_opaque="false" +         background_visible="true" +         bg_alpha_color="DkGray" +         name="perms_build" +         left="0" +         top="241" +         height="120" +         width="278"> +            <text +             type="string" +             length="1" +             left="10" +             top_pad="9" +             text_color="EmphasisColor" +             height="16" +             follows="left|top|right" +             layout="topleft" +             name="perm_modify" +             width="250"> +                You can modify this object +            </text> +            <text +               type="string" +               follows="left|top" +               name="Anyone can:" +               width="250" +               left="10"> +                 Anyone: +            </text> +            <check_box +             height="19" +             label="Move" +             layout="topleft" +             name="checkbox allow everyone move" +             left="15" +             width="85" /> +            <check_box +             height="19" +             label="Copy" +             layout="topleft" +             left_pad="0" +             name="checkbox allow everyone copy" +             width="90" /> +            <text +               type="string" +               follows="left|top" +               height="19" +               name="Next owner can:" +               width="250" +               left="10"> +                  Next owner: +            </text> +            <check_box +             follows="left|top|right" +             label="Modify" +             layout="topleft" +             left="15" +             name="checkbox next owner can modify" +             width="85" /> +            <check_box +             follows="left|top|right" +             height="19" +             label="Copy" +             layout="topleft" +             left_pad="0" +             name="checkbox next owner can copy" +             width="90" /> +            <check_box +             follows="left|top|right" +             height="19" +             label="Transfer" +             layout="topleft" +             name="checkbox next owner can transfer" +             left_pad="0" +             top_delta="0" +             tool_tip="Next owner can give away or resell this object" +             width="90" /> +            <text +             type="string" +             text_color="EmphasisColor" +             length="1" +             top_pad="5" +             follows="left|top" +             layout="topleft" +             left="10" +             name="B:" +             height="10" +             width="45"> +                B: +            </text> +            <text +             type="string" +             text_color="White" +             length="1" +             follows="left|top" +             layout="topleft" +             left_pad="0" +             name="O:" +             height="10" +             width="44"> +                O: +            </text> +            <text +             type="string" +             text_color="EmphasisColor" +             length="1" +             follows="left|top" +             layout="topleft" +             left_pad="0" +             name="G:" +             height="10" +             width="43"> +                G: +            </text> +            <text +             type="string" +             text_color="White" +             length="1" +             follows="left|top" +             left_pad="0" +             layout="topleft" +             name="E:" +             height="10" +             width="43"> +                E: +            </text> +            <text +             type="string" +             text_color="EmphasisColor" +             length="1" +             follows="left|top" +             layout="topleft" +             left_pad="0" +             name="N:" +             height="10" +             width="48"> +                N: +            </text> +            <text +             type="string" +             text_color="White" +             length="1" +             follows="left|top" +             layout="topleft" +             left_pad="0" +             name="F:" +             height="10" +             width="50"> +                F: +            </text> +		</panel> + </panel> +    <panel +		 height="25" +		 layout="bottomright" +		 help_topic="button_tab" +		 name="button_panel" +		 left="5" +		 bottom="5" +		 width="313"> +	    <button +		     follows="bottom|left" +		     font="SansSerifSmallBold" +		     height="25" +		     label="Edit" +		     layout="topleft" +		     left="0" +		     name="edit_btn" +		     top="0" +		     width="50" /> +	    <button +		     follows="bottom|left" +		     font="SansSerifSmallBold" +		     height="25" +		     label="Open" +		     layout="topleft" +		     left_pad="5" +		     name="open_btn" +		     top="0" +		     width="60" /> +	    <button +		     follows="bottom|left" +		     font="SansSerifSmallBold" +		     height="25" +		     label="Pay" +		     layout="topleft" +		     left_pad="5" +		     name="pay_btn" +		     top="0" +		     width="50" /> +	    <button +		     follows="bottom|left" +		     font="SansSerifSmallBold" +		     height="25" +		     label="Buy" +		     layout="topleft" +		     left_pad="5" +		     name="buy_btn" +		     top="0" +		     width="60" /> +	    <button +		     follows="bottom|right" +		     font="SansSerifSmallBold" +		     height="25" +		     label="Cancel" +		     layout="topleft" +		     name="cancel_btn" +		     right="-1" +		     top="0" +		     width="70" /> +	    <button +		     follows="bottom|right" +		     font="SansSerifSmallBold" +		     height="25" +		     label="Save" +		     layout="topleft" +		     name="save_btn" +		     left_pad="-135" +		     top="0" +		     width="60" /> +	</panel> +</panel>
\ No newline at end of file | 
