From 3f5164446653f89ef559a883612401fea886b138 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 3 Jun 2022 20:30:39 +0300 Subject: SL-15312 Updated classified's layout - better emphasis onto publsihing/saving button - better resize logic --- indra/newview/llpanelprofileclassifieds.cpp | 10 +- indra/newview/llpanelprofileclassifieds.h | 5 +- .../default/xui/en/panel_profile_classified.xml | 229 ++++++++++++++------- .../default/xui/en/panel_profile_classifieds.xml | 2 +- 4 files changed, 167 insertions(+), 79 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp index a961422dfe..1cfe0b0a2b 100644 --- a/indra/newview/llpanelprofileclassifieds.cpp +++ b/indra/newview/llpanelprofileclassifieds.cpp @@ -579,9 +579,8 @@ BOOL LLPanelProfileClassified::postBuild() mSetLocationButton = getChild("set_to_curr_location_btn"); mCancelButton = getChild("cancel_btn"); - mTeleportBtnCnt = getChild("teleport_btn_lp"); - mMapBtnCnt = getChild("map_btn_lp"); - mEditBtnCnt = getChild("edit_btn_lp"); + mUtilityBtnCnt = getChild("util_buttons_lp"); + mPublishBtnsCnt = getChild("publish_layout_panel"); mCancelBtnCnt = getChild("cancel_btn_lp"); mSaveBtnCnt = getChild("save_btn_lp"); @@ -797,13 +796,12 @@ void LLPanelProfileClassified::setEditMode(BOOL edit_mode) void LLPanelProfileClassified::updateButtons() { bool edit_mode = getEditMode(); - mTeleportBtnCnt->setVisible(!edit_mode); - mMapBtnCnt->setVisible(!edit_mode); - mEditBtnCnt->setVisible(!edit_mode); + mUtilityBtnCnt->setVisible(!edit_mode); // cancel button should either delete unpublished // classified or not be there at all mCancelBtnCnt->setVisible(edit_mode && !mIsNew); + mPublishBtnsCnt->setVisible(edit_mode); mSaveBtnCnt->setVisible(edit_mode); mEditButton->setVisible(!edit_mode && getSelfProfile()); } diff --git a/indra/newview/llpanelprofileclassifieds.h b/indra/newview/llpanelprofileclassifieds.h index 000c35a5a1..e0ca75728f 100644 --- a/indra/newview/llpanelprofileclassifieds.h +++ b/indra/newview/llpanelprofileclassifieds.h @@ -291,9 +291,8 @@ private: LLButton* mSetLocationButton; LLButton* mCancelButton; - LLPanel* mMapBtnCnt; - LLPanel* mTeleportBtnCnt; - LLPanel* mEditBtnCnt; + LLPanel* mUtilityBtnCnt; + LLPanel* mPublishBtnsCnt; LLPanel* mSaveBtnCnt; LLPanel* mCancelBtnCnt; diff --git a/indra/newview/skins/default/xui/en/panel_profile_classified.xml b/indra/newview/skins/default/xui/en/panel_profile_classified.xml index e4627309b3..eb09240617 100644 --- a/indra/newview/skins/default/xui/en/panel_profile_classified.xml +++ b/indra/newview/skins/default/xui/en/panel_profile_classified.xml @@ -4,7 +4,7 @@ top="0" left="0" height="420" - width="325" + width="315" follows="all" layout="topleft" help_topic="panel_profile_classified" @@ -60,24 +60,43 @@ > Save - + + name="scroll_layout_panel" + auto_resize="true"> + - - + + + + name="util_buttons_lp" + auto_resize="true"> + + + + width="85">