Skip to content
Snippets Groups Projects
Commit 30f10383 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-13359 #3 UI changes for panel object

parent 26ea77f4
No related branches found
No related tags found
1 merge request!83Merge Linden 6.6.7
...@@ -120,7 +120,7 @@ BOOL LLPanelObject::postBuild() ...@@ -120,7 +120,7 @@ BOOL LLPanelObject::postBuild()
childSetCommitCallback("Phantom Checkbox Ctrl",onCommitPhantom,this); childSetCommitCallback("Phantom Checkbox Ctrl",onCommitPhantom,this);
// Position // Position
mMenuPastePos = getChild<LLMenuButton>("paste_pos_btn"); mMenuClipboardPos = getChild<LLMenuButton>("clipboard_pos_btn");
mLabelPosition = getChild<LLTextBox>("label position"); mLabelPosition = getChild<LLTextBox>("label position");
mCtrlPosX = getChild<LLSpinCtrl>("Pos X"); mCtrlPosX = getChild<LLSpinCtrl>("Pos X");
childSetCommitCallback("Pos X",onCommitPosition,this); childSetCommitCallback("Pos X",onCommitPosition,this);
...@@ -130,7 +130,7 @@ BOOL LLPanelObject::postBuild() ...@@ -130,7 +130,7 @@ BOOL LLPanelObject::postBuild()
childSetCommitCallback("Pos Z",onCommitPosition,this); childSetCommitCallback("Pos Z",onCommitPosition,this);
// Scale // Scale
mMenuPasteSize = getChild<LLMenuButton>("paste_size_btn"); mMenuClipboardSize = getChild<LLMenuButton>("clipboard_size_btn");
mLabelSize = getChild<LLTextBox>("label size"); mLabelSize = getChild<LLTextBox>("label size");
mCtrlScaleX = getChild<LLSpinCtrl>("Scale X"); mCtrlScaleX = getChild<LLSpinCtrl>("Scale X");
childSetCommitCallback("Scale X",onCommitScale,this); childSetCommitCallback("Scale X",onCommitScale,this);
...@@ -144,7 +144,7 @@ BOOL LLPanelObject::postBuild() ...@@ -144,7 +144,7 @@ BOOL LLPanelObject::postBuild()
childSetCommitCallback("Scale Z",onCommitScale,this); childSetCommitCallback("Scale Z",onCommitScale,this);
// Rotation // Rotation
mMenuPasteRot = getChild<LLMenuButton>("paste_rot_btn"); mMenuClipboardRot = getChild<LLMenuButton>("clipboard_rot_btn");
mLabelRotation = getChild<LLTextBox>("label rotation"); mLabelRotation = getChild<LLTextBox>("label rotation");
mCtrlRotX = getChild<LLSpinCtrl>("Rot X"); mCtrlRotX = getChild<LLSpinCtrl>("Rot X");
childSetCommitCallback("Rot X",onCommitRotation,this); childSetCommitCallback("Rot X",onCommitRotation,this);
...@@ -382,7 +382,7 @@ void LLPanelObject::getState( ) ...@@ -382,7 +382,7 @@ void LLPanelObject::getState( )
calcp->clearVar(LLCalc::Z_POS); calcp->clearVar(LLCalc::Z_POS);
} }
mMenuPastePos->setEnabled(enable_move); mMenuClipboardPos->setEnabled(enable_move);
mLabelPosition->setEnabled( enable_move ); mLabelPosition->setEnabled( enable_move );
mCtrlPosX->setEnabled(enable_move); mCtrlPosX->setEnabled(enable_move);
mCtrlPosY->setEnabled(enable_move); mCtrlPosY->setEnabled(enable_move);
...@@ -408,7 +408,7 @@ void LLPanelObject::getState( ) ...@@ -408,7 +408,7 @@ void LLPanelObject::getState( )
calcp->setVar(LLCalc::Z_SCALE, 0.f); calcp->setVar(LLCalc::Z_SCALE, 0.f);
} }
mMenuPasteSize->setEnabled(enable_scale); mMenuClipboardSize->setEnabled(enable_scale);
mLabelSize->setEnabled( enable_scale ); mLabelSize->setEnabled( enable_scale );
mCtrlScaleX->setEnabled( enable_scale ); mCtrlScaleX->setEnabled( enable_scale );
mCtrlScaleY->setEnabled( enable_scale ); mCtrlScaleY->setEnabled( enable_scale );
...@@ -440,7 +440,7 @@ void LLPanelObject::getState( ) ...@@ -440,7 +440,7 @@ void LLPanelObject::getState( )
calcp->clearVar(LLCalc::Z_ROT); calcp->clearVar(LLCalc::Z_ROT);
} }
mMenuPasteRot->setEnabled(enable_rotate); mMenuClipboardRot->setEnabled(enable_rotate);
mLabelRotation->setEnabled( enable_rotate ); mLabelRotation->setEnabled( enable_rotate );
mCtrlRotX->setEnabled( enable_rotate ); mCtrlRotX->setEnabled( enable_rotate );
mCtrlRotY->setEnabled( enable_rotate ); mCtrlRotY->setEnabled( enable_rotate );
......
...@@ -141,20 +141,20 @@ class LLPanelObject : public LLPanel ...@@ -141,20 +141,20 @@ class LLPanelObject : public LLPanel
LLTextBox* mLabelRevolutions; LLTextBox* mLabelRevolutions;
LLSpinCtrl* mSpinRevolutions; LLSpinCtrl* mSpinRevolutions;
LLMenuButton* mMenuPastePos; LLMenuButton* mMenuClipboardPos;
LLTextBox* mLabelPosition; LLTextBox* mLabelPosition;
LLSpinCtrl* mCtrlPosX; LLSpinCtrl* mCtrlPosX;
LLSpinCtrl* mCtrlPosY; LLSpinCtrl* mCtrlPosY;
LLSpinCtrl* mCtrlPosZ; LLSpinCtrl* mCtrlPosZ;
LLMenuButton* mMenuPasteSize; LLMenuButton* mMenuClipboardSize;
LLTextBox* mLabelSize; LLTextBox* mLabelSize;
LLSpinCtrl* mCtrlScaleX; LLSpinCtrl* mCtrlScaleX;
LLSpinCtrl* mCtrlScaleY; LLSpinCtrl* mCtrlScaleY;
LLSpinCtrl* mCtrlScaleZ; LLSpinCtrl* mCtrlScaleZ;
BOOL mSizeChanged; BOOL mSizeChanged;
LLMenuButton* mMenuPasteRot; LLMenuButton* mMenuClipboardRot;
LLTextBox* mLabelRotation; LLTextBox* mLabelRotation;
LLSpinCtrl* mCtrlRotX; LLSpinCtrl* mCtrlRotX;
LLSpinCtrl* mCtrlRotY; LLSpinCtrl* mCtrlRotY;
......
indra/newview/skins/default/textures/icons/ClipboardSmallMenu_Disabled.png

218 B

indra/newview/skins/default/textures/icons/ClipboardSmallMenu_Off.png

217 B

indra/newview/skins/default/textures/icons/ClipboardSmallMenu_Press.png

215 B

...@@ -438,6 +438,10 @@ with the same filename but different name ...@@ -438,6 +438,10 @@ with the same filename but different name
<texture name="OptionsMenu_Off" file_name="icons/OptionsMenu_Off.png" preload="false" /> <texture name="OptionsMenu_Off" file_name="icons/OptionsMenu_Off.png" preload="false" />
<texture name="OptionsMenu_Press" file_name="icons/OptionsMenu_Press.png" preload="false" /> <texture name="OptionsMenu_Press" file_name="icons/OptionsMenu_Press.png" preload="false" />
<texture name="ClipboardSmallMenu_Disabled" file_name="icons/ClipboardSmallMenu_Disabled.png" preload="false" />
<texture name="ClipboardSmallMenu_Off" file_name="icons/ClipboardSmallMenu_Off.png" preload="false" />
<texture name="ClipboardSmallMenu_Press" file_name="icons/ClipboardSmallMenu_Press.png" preload="false" />
<texture name="OutboxStatus_Success" file_name="green_checkmark.png" preload="false" /> <texture name="OutboxStatus_Success" file_name="green_checkmark.png" preload="false" />
<texture name="OutboxStatus_Warning" file_name="icons/pop_up_caution.png" preload="false" /> <texture name="OutboxStatus_Warning" file_name="icons/pop_up_caution.png" preload="false" />
<texture name="OutboxStatus_Error" file_name="red_x.png" preload="false" /> <texture name="OutboxStatus_Error" file_name="red_x.png" preload="false" />
......
...@@ -1430,19 +1430,29 @@ even though the user gets a free copy. ...@@ -1430,19 +1430,29 @@ even though the user gets a free copy.
tool_tip="Causes object to not collide with other objects or avatars" tool_tip="Causes object to not collide with other objects or avatars"
top_pad="0" top_pad="0"
width="123" /> width="123" />
<view_border
bevel_style="none"
follows="top|left"
height="0"
layout="topleft"
left_delta="0"
name="lod_tab_border"
top_pad="10"
width="95" />
<menu_button <menu_button
menu_filename="menu_copy_paste_pos.xml" menu_filename="menu_copy_paste_pos.xml"
follows="top|left" follows="top|left"
height="11" height="11"
image_disabled="OptionsMenu_Disabled" image_disabled="ClipboardSmallMenu_Disabled"
image_selected="OptionsMenu_Press" image_selected="ClipboardSmallMenu_Press"
image_unselected="OptionsMenu_Off" image_unselected="ClipboardSmallMenu_Off"
layout="topleft" layout="topleft"
top_pad="10" left_delta="0"
name="paste_pos_btn" top_pad="13"
name="clipboard_pos_btn"
tool_tip="Paste options" tool_tip="Paste options"
width="19"/> width="19"/>
<text <text
type="string" type="string"
length="1" length="1"
follows="left|top" follows="left|top"
...@@ -1468,7 +1478,7 @@ even though the user gets a free copy. ...@@ -1468,7 +1478,7 @@ even though the user gets a free copy.
min_val="-256" min_val="-256"
name="Pos X" name="Pos X"
text_enabled_color="1 0 0.3 .7" text_enabled_color="1 0 0.3 .7"
top_pad="5" top_pad="8"
width="87" /> width="87" />
<spinner <spinner
follows="left|top" follows="left|top"
...@@ -1503,13 +1513,13 @@ even though the user gets a free copy. ...@@ -1503,13 +1513,13 @@ even though the user gets a free copy.
menu_filename="menu_copy_paste_size.xml" menu_filename="menu_copy_paste_size.xml"
follows="top|left" follows="top|left"
height="11" height="11"
image_disabled="OptionsMenu_Disabled" image_disabled="ClipboardSmallMenu_Disabled"
image_selected="OptionsMenu_Press" image_selected="ClipboardSmallMenu_Press"
image_unselected="OptionsMenu_Off" image_unselected="ClipboardSmallMenu_Off"
layout="topleft" layout="topleft"
left_delta="0" left_delta="0"
top_pad="10" top_pad="13"
name="paste_size_btn" name="clipboard_size_btn"
tool_tip="Paste options" tool_tip="Paste options"
width="19"/> width="19"/>
<text <text
...@@ -1538,7 +1548,7 @@ even though the user gets a free copy. ...@@ -1538,7 +1548,7 @@ even though the user gets a free copy.
min_val="0.01" min_val="0.01"
name="Scale X" name="Scale X"
text_enabled_color="1 1 1 1" text_enabled_color="1 1 1 1"
top_pad="5" top_pad="8"
width="87" /> width="87" />
<spinner <spinner
follows="left|top" follows="left|top"
...@@ -1574,13 +1584,13 @@ even though the user gets a free copy. ...@@ -1574,13 +1584,13 @@ even though the user gets a free copy.
menu_filename="menu_copy_paste_rot.xml" menu_filename="menu_copy_paste_rot.xml"
follows="top|left" follows="top|left"
height="11" height="11"
image_disabled="OptionsMenu_Disabled" image_disabled="ClipboardSmallMenu_Disabled"
image_selected="OptionsMenu_Press" image_selected="ClipboardSmallMenu_Press"
image_unselected="OptionsMenu_Off" image_unselected="ClipboardSmallMenu_Off"
layout="topleft" layout="topleft"
left_delta="0" left_delta="0"
top_pad="10" top_pad="13"
name="paste_rot_btn" name="clipboard_rot_btn"
tool_tip="Paste options" tool_tip="Paste options"
width="19"/> width="19"/>
<text <text
...@@ -1610,7 +1620,7 @@ even though the user gets a free copy. ...@@ -1610,7 +1620,7 @@ even though the user gets a free copy.
min_val="-9999" min_val="-9999"
name="Rot X" name="Rot X"
text_enabled_color="1 1 1 1" text_enabled_color="1 1 1 1"
top_pad="5" top_pad="8"
width="87" /> width="87" />
<spinner <spinner
decimal_digits="2" decimal_digits="2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment