From cf04305d04bb478fcee4ae75ce6377595d0ec4a8 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Mon, 18 Mar 2019 20:29:08 +0200 Subject: SL-10728 and SL-10729 Legacy profile overlaps --- indra/newview/llpanelprofileclassifieds.cpp | 17 ++- indra/newview/llpanelprofileclassifieds.h | 6 + .../skins/default/xui/en/panel_edit_classified.xml | 2 +- .../default/xui/en/panel_profile_classified.xml | 166 ++++++++++++++------- .../default/xui/en/panel_profile_classifieds.xml | 2 +- 5 files changed, 129 insertions(+), 64 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp index 49f347dbda..96853545d7 100644 --- a/indra/newview/llpanelprofileclassifieds.cpp +++ b/indra/newview/llpanelprofileclassifieds.cpp @@ -468,6 +468,12 @@ 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"); + mCancelBtnCnt = getChild("cancel_btn_lp"); + mSaveBtnCnt = getChild("save_btn_lp"); + mSnapshotCtrl->setOnSelectCallback(boost::bind(&LLPanelProfileClassified::onTextureSelected, this)); mSnapshotCtrl->setMouseEnterCallback(boost::bind(&LLPanelProfileClassified::onTexturePickerMouseEnter, this)); mSnapshotCtrl->setMouseLeaveCallback(boost::bind(&LLPanelProfileClassified::onTexturePickerMouseLeave, this)); @@ -682,11 +688,12 @@ void LLPanelProfileClassified::setEditMode(BOOL edit_mode) void LLPanelProfileClassified::updateButtons() { - bool edit_mode = getEditMode(); - mMapButton->setVisible(!edit_mode); - mTeleportButton->setVisible(!edit_mode); - mSaveButton->setVisible(edit_mode); - mCancelButton->setVisible(edit_mode); + bool edit_mode = getEditMode(); + mTeleportBtnCnt->setVisible(!edit_mode); + mMapBtnCnt->setVisible(!edit_mode); + mEditBtnCnt->setVisible(!edit_mode); + mCancelBtnCnt->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 592007305b..3766858f42 100644 --- a/indra/newview/llpanelprofileclassifieds.h +++ b/indra/newview/llpanelprofileclassifieds.h @@ -327,6 +327,12 @@ private: LLButton* mSetLocationButton; LLButton* mCancelButton; + LLPanel* mMapBtnCnt; + LLPanel* mTeleportBtnCnt; + LLPanel* mEditBtnCnt; + LLPanel* mSaveBtnCnt; + LLPanel* mCancelBtnCnt; + LLScrollContainer* mScrollContainer; LLPanel* mInfoPanel; LLPanel* mEditPanel; diff --git a/indra/newview/skins/default/xui/en/panel_edit_classified.xml b/indra/newview/skins/default/xui/en/panel_edit_classified.xml index 3509eaa285..f8913d12c6 100644 --- a/indra/newview/skins/default/xui/en/panel_edit_classified.xml +++ b/indra/newview/skins/default/xui/en/panel_edit_classified.xml @@ -337,7 +337,7 @@ height="23" layout="bottomleft" left_pad="3" - name="show_on_map_btn_lp" + name="cancel_btn_lp" auto_resize="true" width="157">