diff options
| author | Merov Linden <merov@lindenlab.com> | 2011-10-17 17:45:22 -0700 | 
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2011-10-17 17:45:22 -0700 | 
| commit | 69cad25445a268c25c1f7a03fcd0f70d07a9596a (patch) | |
| tree | c39967979f61ee29dbfdb2bb745be04005e47e9b | |
| parent | 66d978497f8169d1a46a5ad8b74c2f72a61941be (diff) | |
| parent | d08a83337ceb28c56cd0d047a18d23a6d90d5713 (diff) | |
Pull from richard/viewer-experience-fui
22 files changed, 98 insertions, 97 deletions
| diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index 64fd14ecc9..74b8885e1f 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -85,7 +85,9 @@ LLButton::Params::Params()  	label_color_disabled_selected("label_color_disabled_selected"),  	image_color("image_color"),  	image_color_disabled("image_color_disabled"), -	image_overlay_color("image_overlay_color", LLColor4::white), +	image_overlay_color("image_overlay_color", LLColor4::white % 0.75f), +	image_overlay_disabled_color("image_overlay_disabled_color", LLColor4::white % 0.3f), +	image_overlay_selected_color("image_overlay_selected_color", LLColor4::white),  	flash_color("flash_color"),  	pad_right("pad_right", LLUI::sSettingGroups["config"]->getS32("ButtonHPad")),  	pad_left("pad_left", LLUI::sSettingGroups["config"]->getS32("ButtonHPad")), @@ -143,6 +145,8 @@ LLButton::LLButton(const LLButton::Params& p)  	mDisabledImageColor(p.image_color_disabled()),  	mImageOverlay(p.image_overlay()),  	mImageOverlayColor(p.image_overlay_color()), +	mImageOverlayDisabledColor(p.image_overlay_disabled_color()), +	mImageOverlaySelectedColor(p.image_overlay_selected_color()),  	mImageOverlayAlignment(LLFontGL::hAlignFromName(p.image_overlay_alignment)),  	mImageOverlayTopPad(p.image_top_pad),  	mImageOverlayBottomPad(p.image_bottom_pad), @@ -817,11 +821,11 @@ void LLButton::draw()  		LLColor4 overlay_color = mImageOverlayColor.get();  		if (!enabled)  		{ -			overlay_color.mV[VALPHA] = 0.3f; +			overlay_color = mImageOverlayDisabledColor.get();  		} -		else if (!getToggleState()) +		else if (getToggleState())  		{ -			overlay_color.mV[VALPHA] = 0.75f; +			overlay_color = mImageOverlaySelectedColor.get();  		}  		overlay_color.mV[VALPHA] *= alpha; diff --git a/indra/llui/llbutton.h b/indra/llui/llbutton.h index 1aa58ed9aa..deaa0823c6 100644 --- a/indra/llui/llbutton.h +++ b/indra/llui/llbutton.h @@ -94,6 +94,7 @@ public:  								image_color,  								image_color_disabled,  								image_overlay_color, +								image_overlay_selected_color,  								image_overlay_disabled_color,  								flash_color; @@ -305,6 +306,7 @@ protected:  	LLPointer<LLUIImage>		mImageOverlay;  	LLFontGL::HAlign			mImageOverlayAlignment;  	LLUIColor					mImageOverlayColor; +	LLUIColor					mImageOverlaySelectedColor;  	LLUIColor					mImageOverlayDisabledColor;  	LLPointer<LLUIImage>		mImageUnselected; diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp index 278e7826b7..629c7d9bc7 100644 --- a/indra/llui/lltoolbar.cpp +++ b/indra/llui/lltoolbar.cpp @@ -690,9 +690,8 @@ void LLToolBar::draw()  			if (command && btn->mIsEnabledSignal)  			{ -				//const bool button_command_enabled = (*btn->mIsEnabledSignal)(btn, command->isEnabledParameters()); -				// TODO: make button appear disabled but have it still respond to drag and drop -				btn->setEnabled(false);//button_command_enabled); +				const bool button_command_enabled = (*btn->mIsEnabledSignal)(btn, command->isEnabledParameters()); +				btn->setEnabled(button_command_enabled);  			}  			if (command && btn->mIsRunningSignal) @@ -763,6 +762,16 @@ void LLToolBar::createButtons()  	mNeedsLayout = true;  } +void LLToolBarButton::callIfEnabled(LLUICtrl::commit_callback_t commit, LLUICtrl* ctrl, const LLSD& param ) +{ +	LLCommand* command = LLCommandManager::instance().getCommand(mId); + +	if (!mIsEnabledSignal || (*mIsEnabledSignal)(this, command->isEnabledParameters())) +	{ +		commit(ctrl, param); +	} +} +  LLToolBarButton* LLToolBar::createButton(const LLCommandId& id)  {  	LLCommand* commandp = LLCommandManager::instance().getCommand(id); @@ -778,6 +787,24 @@ LLToolBarButton* LLToolBar::createButton(const LLCommandId& id)  	if (!mReadOnly)  	{ +		enable_callback_t isEnabledCB; + +		const std::string& isEnabledFunction = commandp->isEnabledFunctionName(); +		if (isEnabledFunction.length() > 0) +		{ +			LLUICtrl::EnableCallbackParam isEnabledParam; +			isEnabledParam.function_name = isEnabledFunction; +			isEnabledParam.parameter = commandp->isEnabledParameters(); +			isEnabledCB = initEnableCallback(isEnabledParam); + +			if (NULL == button->mIsEnabledSignal) +			{ +				button->mIsEnabledSignal = new enable_signal_t(); +			} + +			button->mIsEnabledSignal->connect(isEnabledCB); +		} +  		LLUICtrl::CommitCallbackParam executeParam;  		executeParam.function_name = commandp->executeFunctionName();  		executeParam.parameter = commandp->executeParameters(); @@ -789,30 +816,18 @@ LLToolBarButton* LLToolBar::createButton(const LLCommandId& id)  			LLUICtrl::CommitCallbackParam executeStopParam;  			executeStopParam.function_name = executeStopFunction;  			executeStopParam.parameter = commandp->executeStopParameters(); +			LLUICtrl::commit_callback_t execute_func = initCommitCallback(executeParam); +			LLUICtrl::commit_callback_t stop_func = initCommitCallback(executeStopParam); -			button->setMouseDownCallback(executeParam); -			button->setMouseUpCallback(executeStopParam); +			button->setMouseDownCallback(boost::bind(&LLToolBarButton::callIfEnabled, button, execute_func, _1, _2)); +			button->setMouseUpCallback(boost::bind(&LLToolBarButton::callIfEnabled, button, stop_func, _1, _2));  		}  		else  		{  			button->setCommitCallback(executeParam);  		} -		const std::string& isEnabledFunction = commandp->isEnabledFunctionName(); -		if (isEnabledFunction.length() > 0) -		{ -			LLUICtrl::EnableCallbackParam isEnabledParam; -			isEnabledParam.function_name = isEnabledFunction; -			isEnabledParam.parameter = commandp->isEnabledParameters(); -			enable_signal_t::slot_type isEnabledCB = initEnableCallback(isEnabledParam); -			if (NULL == button->mIsEnabledSignal) -			{ -				button->mIsEnabledSignal = new enable_signal_t(); -			} - -			button->mIsEnabledSignal->connect(isEnabledCB); -		}  		const std::string& isRunningFunction = commandp->isRunningFunctionName();  		if (isRunningFunction.length() > 0) @@ -908,7 +923,8 @@ LLToolBarButton::LLToolBarButton(const Params& p)  	mOriginalImagePressedSelected(p.image_pressed_selected),  	mOriginalLabelColor(p.label_color),  	mOriginalLabelColorSelected(p.label_color_selected), -	mOriginalImageOverlayColor(p.image_overlay_color) +	mOriginalImageOverlayColor(p.image_overlay_color), +	mOriginalImageOverlaySelectedColor(p.image_overlay_selected_color)  {  	mButtonFlashRate = 0.0;  	mButtonFlashCount = 0; @@ -998,8 +1014,8 @@ void LLToolBarButton::setEnabled(BOOL enabled)  		mUnselectedLabelColor = mOriginalLabelColor;  		mSelectedLabelColor = mOriginalLabelColorSelected;  		mImageOverlayColor = mOriginalImageOverlayColor; +		mImageOverlaySelectedColor = mOriginalImageOverlaySelectedColor;  	} -  	else  	{  		mImageSelected = mImageDisabledSelected; @@ -1009,6 +1025,7 @@ void LLToolBarButton::setEnabled(BOOL enabled)  		mUnselectedLabelColor = mDisabledLabelColor;  		mSelectedLabelColor = mDisabledSelectedLabelColor;  		mImageOverlayColor = mImageOverlayDisabledColor; +		mImageOverlaySelectedColor = mImageOverlayDisabledColor;  	}  } diff --git a/indra/llui/lltoolbar.h b/indra/llui/lltoolbar.h index 47af039d52..616710ea70 100644 --- a/indra/llui/lltoolbar.h +++ b/indra/llui/lltoolbar.h @@ -77,6 +77,8 @@ public:  	virtual const std::string getToolTip() const;		  private: +	void callIfEnabled(LLUICtrl::commit_callback_t commit, LLUICtrl* ctrl, const LLSD& param ); +  	LLCommandId		mId;  	S32				mMouseDownX;  	S32				mMouseDownY; @@ -95,7 +97,8 @@ private:  							mOriginalImagePressedSelected;  	LLUIColor				mOriginalLabelColor,  							mOriginalLabelColorSelected, -							mOriginalImageOverlayColor; +							mOriginalImageOverlayColor, +							mOriginalImageOverlaySelectedColor;  }; diff --git a/indra/newview/app_settings/commands.xml b/indra/newview/app_settings/commands.xml index 0f6774f2ef..391a864846 100644 --- a/indra/newview/app_settings/commands.xml +++ b/indra/newview/app_settings/commands.xml @@ -94,9 +94,9 @@             label_ref="Command_Inventory_Label"             tooltip_ref="Command_Inventory_Tooltip"             execute_function="Floater.ToggleOrBringToFront" -           execute_parameters="my_inventory" +           execute_parameters="inventory"             is_running_function="Floater.IsOpen" -           is_running_parameters="my_inventory" +           is_running_parameters="inventory"             />    <command name="map"             available_in_toybox="true" diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index b54f622986..10fd6b739e 100755 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -445,7 +445,7 @@ void LLAvatarActions::csr(const LLUUID& id, std::string name)  void LLAvatarActions::share(const LLUUID& id)  {  	LLSD key; -	LLFloaterSidePanelContainer::showPanel("my_inventory", key); +	LLFloaterSidePanelContainer::showPanel("inventory", key);  	LLUUID session_id = gIMMgr->computeSessionID(IM_NOTHING_SPECIAL,id); @@ -702,7 +702,7 @@ std::set<LLUUID> LLAvatarActions::getInventorySelectedUUIDs()  	if (inventory_selected_uuids.empty())  	{ -		LLSidepanelInventory *sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +		LLSidepanelInventory *sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  		if (sidepanel_inventory)  		{  			inventory_selected_uuids = sidepanel_inventory->getInboxOrOutboxSelectionList(); diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 64d5152ebe..6e9baed5f2 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -60,6 +60,7 @@  #include "llnearbychat.h"  #include "llspeakers.h" //for LLIMSpeakerMgr  #include "lltextbox.h" +#include "lltoolbarview.h"  #include "llviewercontrol.h"  #include "llviewerparcelmgr.h" @@ -1676,9 +1677,12 @@ LLCallDialog::~LLCallDialog()  BOOL LLCallDialog::postBuild()  { -	if (!LLDockableFloater::postBuild()) +	if (!LLDockableFloater::postBuild() || !gToolBarView)  		return FALSE; +	LLView *anchor_panel = gToolBarView->findChildView("speak"); +	setDockControl(new LLDockControl(anchor_panel, this, getDockTongue(), LLDockControl::TOP)); +  	return TRUE;  } diff --git a/indra/newview/llinspectobject.cpp b/indra/newview/llinspectobject.cpp index 026c8a0923..acc139c569 100644 --- a/indra/newview/llinspectobject.cpp +++ b/indra/newview/llinspectobject.cpp @@ -640,7 +640,7 @@ void LLInspectObject::onClickMoreInfo()  {  	LLSD key;  	key["task"] = "task"; -	LLFloaterSidePanelContainer::showPanel("my_inventory", key); +	LLFloaterSidePanelContainer::showPanel("inventory", key);  	closeFloater();  } diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 21a026bcf7..5fb3f15cd5 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -459,28 +459,28 @@ BOOL get_is_category_renameable(const LLInventoryModel* model, const LLUUID& id)  void show_task_item_profile(const LLUUID& item_uuid, const LLUUID& object_id)  { -	LLFloaterSidePanelContainer::showPanel("my_inventory", LLSD().with("id", item_uuid).with("object", object_id)); +	LLFloaterSidePanelContainer::showPanel("inventory", LLSD().with("id", item_uuid).with("object", object_id));  }  void show_item_profile(const LLUUID& item_uuid)  {  	LLUUID linked_uuid = gInventory.getLinkedItemID(item_uuid); -	LLFloaterSidePanelContainer::showPanel("my_inventory", LLSD().with("id", linked_uuid)); +	LLFloaterSidePanelContainer::showPanel("inventory", LLSD().with("id", linked_uuid));  }  void show_item_original(const LLUUID& item_uuid)  { -	LLFloater* floater_my_inventory = LLFloaterReg::getInstance("my_inventory"); -	if (!floater_my_inventory) +	LLFloater* floater_inventory = LLFloaterReg::getInstance("inventory"); +	if (!floater_inventory)  	{  		llwarns << "Could not find My Inventory floater" << llendl;  		return;  	}  	//sidetray inventory panel -	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory"); -	bool reset_inventory_filter = !floater_my_inventory->isInVisibleChain(); +	bool reset_inventory_filter = !floater_inventory->isInVisibleChain();  	LLInventoryPanel* active_panel = LLInventoryPanel::getActiveInventoryPanel();  	if (!active_panel)  diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index b0f9cb28e6..18c3f76826 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -1077,7 +1077,7 @@ void LLInventoryPanel::dumpSelectionInformation(void* user_data)  BOOL is_inventorysp_active()  { -	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (!sidepanel_inventory || !sidepanel_inventory->isInVisibleChain()) return FALSE;  	return sidepanel_inventory->isMainInventoryPanelActive();  } @@ -1089,22 +1089,22 @@ LLInventoryPanel* LLInventoryPanel::getActiveInventoryPanel(BOOL auto_open)  	LLInventoryPanel* res = NULL;  	LLFloater* active_inv_floaterp = NULL; -	LLFloater* floater_my_inventory = LLFloaterReg::getInstance("my_inventory"); -	if (!floater_my_inventory) +	LLFloater* floater_inventory = LLFloaterReg::getInstance("inventory"); +	if (!floater_inventory)  	{  		llwarns << "Could not find My Inventory floater" << llendl;  		return FALSE;  	} -	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	// A. If the inventory side panel floater is open, use that preferably.  	if (is_inventorysp_active())  	{  		// Get the floater's z order to compare it to other inventory floaters' order later.  		res = sidepanel_inventory->getActivePanel(); -		z_min = gFloaterView->getZOrder(floater_my_inventory); -		active_inv_floaterp = floater_my_inventory; +		z_min = gFloaterView->getZOrder(floater_inventory); +		active_inv_floaterp = floater_inventory;  	}  	// B. Iterate through the inventory floaters and return whichever is on top. @@ -1137,7 +1137,7 @@ LLInventoryPanel* LLInventoryPanel::getActiveInventoryPanel(BOOL auto_open)  	if (!auto_open) return NULL;  	// D. Open the inventory side panel floater and use that. -	floater_my_inventory->openFloater(); +	floater_inventory->openFloater();  	return sidepanel_inventory->getActivePanel();  	return NULL; diff --git a/indra/newview/llnearbychathandler.cpp b/indra/newview/llnearbychathandler.cpp index 8607718e90..330a21ef65 100644 --- a/indra/newview/llnearbychathandler.cpp +++ b/indra/newview/llnearbychathandler.cpp @@ -363,10 +363,8 @@ static bool sort_toasts_predicate(LLHandle<LLToast> first, LLHandle<LLToast> sec  void LLNearbyChatScreenChannel::arrangeToasts()  {  	if(mStopProcessing || isHovering()) -  		return; -	LLLayoutStack::updateClass();  	LLView* floater_snap_region = gViewerWindow->getRootView()->getChildView("floater_snap_region");  	if (!getParent()) @@ -384,9 +382,9 @@ void LLNearbyChatScreenChannel::arrangeToasts()  	channel_rect.mLeft += 10;  	channel_rect.mRight = channel_rect.mLeft + 300; -	S32 channel_top = channel_rect.mTop; +	S32 channel_bottom = channel_rect.mBottom; -	S32		top = channel_top - 10; +	S32		bottom = channel_bottom + 10;  	S32		margin = gSavedSettings.getS32("ToastGap");  	//sort active toasts @@ -403,9 +401,9 @@ void LLNearbyChatScreenChannel::arrangeToasts()  			continue;  		} -		S32 toast_bottom = top - toast->getRect().getHeight() - margin; +		S32 toast_top = bottom + toast->getRect().getHeight() + margin; -		if(toast_bottom < channel_rect.mBottom) +		if(toast_top > channel_rect.getHeight())  		{  			while(it!=m_active_toasts.end())  			{ @@ -416,10 +414,10 @@ void LLNearbyChatScreenChannel::arrangeToasts()  		}  		toast_rect = toast->getRect(); -		toast_rect.setOriginAndSize(channel_rect.mLeft , toast_bottom, toast_rect.getWidth() ,toast_rect.getHeight()); +		toast_rect.setLeftTopAndSize(channel_rect.mLeft , bottom + toast_rect.getHeight(), toast_rect.getWidth() ,toast_rect.getHeight());  		toast->setRect(toast_rect); -		top -= toast_rect.getHeight() - toast->getTopPad() + margin; +		bottom += toast_rect.getHeight() - toast->getTopPad() + margin;  	}  	// use reverse order to provide correct z-order and avoid toast blinking diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 6562b259c3..d6c407d548 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -579,7 +579,7 @@ void LLPanelMainInventory::updateItemcountText()  void LLPanelMainInventory::onFocusReceived()  { -	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory =	LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (!sidepanel_inventory)  	{  		llwarns << "Could not find Inventory Panel in My Inventory floater" << llendl; @@ -1169,7 +1169,7 @@ BOOL LLPanelMainInventory::isActionEnabled(const LLSD& userdata)  	if (command_name == "share")  	{ -		LLSidepanelInventory* parent = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +		LLSidepanelInventory* parent = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  		return parent ? parent->canShare() : FALSE;  	} diff --git a/indra/newview/llpanelmarketplaceinbox.cpp b/indra/newview/llpanelmarketplaceinbox.cpp index d1aea51a09..ac528947a4 100644 --- a/indra/newview/llpanelmarketplaceinbox.cpp +++ b/indra/newview/llpanelmarketplaceinbox.cpp @@ -66,7 +66,7 @@ BOOL LLPanelMarketplaceInbox::postBuild()  void LLPanelMarketplaceInbox::onSelectionChange()  { -	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	sidepanel_inventory->updateVerbs();  } @@ -106,7 +106,7 @@ LLInventoryPanel * LLPanelMarketplaceInbox::setupInventoryPanel()  void LLPanelMarketplaceInbox::onFocusReceived()  { -	LLSidepanelInventory *sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory *sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (sidepanel_inventory)  	{  		sidepanel_inventory->clearSelections(true, false, true); @@ -181,7 +181,7 @@ std::string LLPanelMarketplaceInbox::getBadgeString() const  {  	std::string item_count_str(""); -	LLPanel *inventory_panel = LLFloaterSidePanelContainer::getPanel("my_inventory"); +	LLPanel *inventory_panel = LLFloaterSidePanelContainer::getPanel("inventory");  	// If the inbox is visible, and the side panel is collapsed or expanded and not the inventory panel  	if (getParent()->getVisible() && inventory_panel && !inventory_panel->isInVisibleChain()) diff --git a/indra/newview/llpanelmarketplaceoutbox.cpp b/indra/newview/llpanelmarketplaceoutbox.cpp index d4f9654e6e..12960fd0d6 100644 --- a/indra/newview/llpanelmarketplaceoutbox.cpp +++ b/indra/newview/llpanelmarketplaceoutbox.cpp @@ -89,7 +89,7 @@ void LLPanelMarketplaceOutbox::handleLoginComplete()  void LLPanelMarketplaceOutbox::onFocusReceived()  { -	LLSidepanelInventory * sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory * sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (sidepanel_inventory)  	{  		sidepanel_inventory->clearSelections(true, true, false); @@ -98,7 +98,7 @@ void LLPanelMarketplaceOutbox::onFocusReceived()  void LLPanelMarketplaceOutbox::onSelectionChange()  { -	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (sidepanel_inventory)  	{  		sidepanel_inventory->updateVerbs(); diff --git a/indra/newview/llsidepanelinventory.cpp b/indra/newview/llsidepanelinventory.cpp index f9dc70ccc0..a24f6b24f0 100644 --- a/indra/newview/llsidepanelinventory.cpp +++ b/indra/newview/llsidepanelinventory.cpp @@ -173,7 +173,7 @@ LLSidepanelInventory::~LLSidepanelInventory()  void handleInventoryDisplayInboxChanged()  { -	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (sidepanel_inventory)  	{  		sidepanel_inventory->enableInbox(gSavedSettings.getBOOL("InventoryDisplayInbox")); @@ -182,7 +182,7 @@ void handleInventoryDisplayInboxChanged()  void handleInventoryDisplayOutboxChanged()  { -	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("my_inventory"); +	LLSidepanelInventory* sidepanel_inventory = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory");  	if (sidepanel_inventory)  	{  		sidepanel_inventory->enableOutbox(gSavedSettings.getBOOL("InventoryDisplayOutbox")); diff --git a/indra/newview/llviewerfloaterreg.cpp b/indra/newview/llviewerfloaterreg.cpp index ee72ca2ce8..ba53540374 100644 --- a/indra/newview/llviewerfloaterreg.cpp +++ b/indra/newview/llviewerfloaterreg.cpp @@ -213,7 +213,7 @@ void LLViewerFloaterReg::registerFloaters()  	LLFloaterReg::add("im_container", "floater_im_container.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLIMFloaterContainer>);  	LLFloaterReg::add("im_well_window", "floater_sys_well.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLIMWellWindow>);  	LLFloaterReg::add("incoming_call", "floater_incoming_call.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLIncomingCallDialog>); -	LLFloaterReg::add("inventory", "floater_inventory.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterInventory>); +	LLFloaterReg::add("inventory", "floater_my_inventory.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterSidePanelContainer>);  	LLFloaterReg::add("inspect", "floater_inspect.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterInspect>);  	LLInspectAvatarUtil::registerFloater();  	LLInspectGroupUtil::registerFloater(); @@ -233,7 +233,6 @@ void LLViewerFloaterReg::registerFloaters()  	LLFloaterReg::add("moveview", "floater_moveview.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterMove>);  	LLFloaterReg::add("mute_object_by_name", "floater_mute_object.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterGetBlockedObjectName>);  	LLFloaterReg::add("mini_map", "floater_map.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterMap>); -	LLFloaterReg::add("my_inventory", "floater_my_inventory.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterSidePanelContainer>);  	LLFloaterReg::add("notifications_console", "floater_notifications_console.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterNotificationConsole>);  	LLFloaterReg::add("notification_well_window", "floater_sys_well.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLNotificationWellWindow>); diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index aa54633099..519d4fe7f8 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -221,7 +221,7 @@ public:  		// support secondlife:///app/inventory/show  		if (params[0].asString() == "show")  		{ -			LLFloaterSidePanelContainer::showPanel("my_inventory", LLSD()); +			LLFloaterSidePanelContainer::showPanel("inventory", LLSD());  			return true;  		} diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 1e2537f1e2..2345fbfd6a 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -2587,7 +2587,7 @@ void handle_object_inspect()  	{  		LLSD key;  		key["task"] = "task"; -		LLFloaterSidePanelContainer::showPanel("my_inventory", key); +		LLFloaterSidePanelContainer::showPanel("inventory", key);  	}  	/* diff --git a/indra/newview/skins/default/xui/en/floater_inventory.xml b/indra/newview/skins/default/xui/en/floater_inventory.xml deleted file mode 100644 index 6d860c73fc..0000000000 --- a/indra/newview/skins/default/xui/en/floater_inventory.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="yes" ?> -<floater - legacy_header_height="18" - can_resize="true" - height="563" - layout="topleft" - min_height="150" - min_width="240" - name="Inventory" - help_topic="inventory" - save_rect="true" - save_visibility="true" - single_instance="false" - title="MY INVENTORY" - width="467"> -    <panel -     bottom="560" -	 class="panel_main_inventory" -	 filename="panel_main_inventory.xml" -	 follows="all" -	 layout="topleft" -	 left="0" -	 label="Inventory Panel" -	 name="Inventory Panel" -	 top="15" -	 width="467" /> -</floater> diff --git a/indra/newview/skins/default/xui/en/floater_tools.xml b/indra/newview/skins/default/xui/en/floater_tools.xml index 465bd86281..1808cab2a5 100644 --- a/indra/newview/skins/default/xui/en/floater_tools.xml +++ b/indra/newview/skins/default/xui/en/floater_tools.xml @@ -516,7 +516,8 @@       image_disabled_selected="Object_Grass"       image_selected="Object_Grass_Selected"       image_unselected="Object_Grass" -     image_overlay_color="Red" +     image_overlay_color="1 0 0 .75" +     image_overlay_selected_color="1 0 0 1"       layout="topleft"       left_delta="29"       name="ToolGrass" diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml index d65deb87ec..63e50b0b9f 100644 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml @@ -38,10 +38,10 @@  		     visible="true">          <menu_item_check.on_check           function="Floater.Visible" -         parameter="my_inventory" /> +         parameter="inventory" />          <menu_item_check.on_click           function="Floater.Toggle" -         parameter="my_inventory" /> +         parameter="inventory" />        </menu_item_check>        <menu_item_check         label="Gestures..." diff --git a/indra/newview/skins/default/xui/en/panel_chat_item.xml b/indra/newview/skins/default/xui/en/panel_chat_item.xml index 34c6e02684..1f35cfaa27 100644 --- a/indra/newview/skins/default/xui/en/panel_chat_item.xml +++ b/indra/newview/skins/default/xui/en/panel_chat_item.xml @@ -2,7 +2,7 @@  <!-- All our XML is utf-8 encoded. -->  <panel    name="instant_message" -  width="315" +  width="300"    height="180"    follows="all">       <avatar_icon | 
