From 02036560a68fc2da6f463320b9572714cbe22916 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 24 Feb 2021 22:32:42 +0200 Subject: SL-14842 Apply toolstrip layout to Places floater Part #2 Hide buttons --- indra/newview/llpanelplaces.cpp | 15 ++--- indra/newview/llpanelplaces.h | 3 + .../skins/default/xui/en/panel_landmark_info.xml | 4 +- .../skins/default/xui/en/panel_place_profile.xml | 2 +- .../newview/skins/default/xui/en/panel_places.xml | 69 +++++++++++++++------- 5 files changed, 60 insertions(+), 33 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanelplaces.cpp b/indra/newview/llpanelplaces.cpp index 00752d5a25..2a08a1b40d 100644 --- a/indra/newview/llpanelplaces.cpp +++ b/indra/newview/llpanelplaces.cpp @@ -345,6 +345,10 @@ BOOL LLPanelPlaces::postBuild() mTabContainer->setCommitCallback(boost::bind(&LLPanelPlaces::onTabSelected, this)); } + mButtonsContainer = getChild("button_layout_panel"); + mButtonsContainer->setVisible(FALSE); + mFilterContainer = getChild("top_menu_panel"); + mFilterEditor = getChild("Filter"); if (mFilterEditor) { @@ -1085,8 +1089,9 @@ void LLPanelPlaces::togglePlaceInfoPanel(BOOL visible) if (!mPlaceProfile || !mLandmarkInfo) return; - mFilterEditor->setVisible(!visible); mTabContainer->setVisible(!visible); + mButtonsContainer->setVisible(visible); + mFilterContainer->setVisible(!visible); if (mPlaceInfoType == AGENT_INFO_TYPE || mPlaceInfoType == REMOTE_PLACE_INFO_TYPE || @@ -1102,10 +1107,6 @@ void LLPanelPlaces::togglePlaceInfoPanel(BOOL visible) // to avoid text blinking. mResetInfoTimer.setTimerExpirySec(PLACE_INFO_UPDATE_INTERVAL); - LLRect rect = getRect(); - LLRect new_rect = LLRect(rect.mLeft, rect.mTop, rect.mRight, mTabContainer->getRect().mBottom); - mPlaceProfile->reshape(new_rect.getWidth(), new_rect.getHeight()); - mLandmarkInfo->setVisible(FALSE); } else if (mPlaceInfoType == AGENT_INFO_TYPE) @@ -1126,10 +1127,6 @@ void LLPanelPlaces::togglePlaceInfoPanel(BOOL visible) if (visible) { mLandmarkInfo->resetLocation(); - - LLRect rect = getRect(); - LLRect new_rect = LLRect(rect.mLeft, rect.mTop, rect.mRight, mTabContainer->getRect().mBottom); - mLandmarkInfo->reshape(new_rect.getWidth(), new_rect.getHeight()); } else { diff --git a/indra/newview/llpanelplaces.h b/indra/newview/llpanelplaces.h index 610ee283c8..576a0fb931 100644 --- a/indra/newview/llpanelplaces.h +++ b/indra/newview/llpanelplaces.h @@ -48,6 +48,7 @@ class LLRemoteParcelInfoObserver; class LLTabContainer; class LLToggleableMenu; class LLMenuButton; +class LLLayoutStack; typedef std::pair folder_pair_t; @@ -117,6 +118,8 @@ private: LLFilterEditor* mFilterEditor; LLPanelPlacesTab* mActivePanel; LLTabContainer* mTabContainer; + LLPanel* mButtonsContainer; + LLLayoutStack* mFilterContainer; LLPanelPlaceProfile* mPlaceProfile; LLPanelLandmarkInfo* mLandmarkInfo; diff --git a/indra/newview/skins/default/xui/en/panel_landmark_info.xml b/indra/newview/skins/default/xui/en/panel_landmark_info.xml index 7935d66aee..0101516792 100644 --- a/indra/newview/skins/default/xui/en/panel_landmark_info.xml +++ b/indra/newview/skins/default/xui/en/panel_landmark_info.xml @@ -91,7 +91,7 @@ name="place_scroll" opaque="true" top_pad="10" - width="310"> + width="331"> + width="331"> - - + + + + + top_pad="9" + width="318" + visible="true"/> + width="318" /> + width="318" /> + + + + - + width="318"> + + + -- cgit v1.2.3