diff options
Diffstat (limited to 'indra')
25 files changed, 220 insertions, 162 deletions
| diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index e0750968ae..2a9515171a 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -2207,6 +2207,12 @@ LLNormalTextSegment::LLNormalTextSegment( const LLStyleSP& style, S32 start, S32  	mEditor(editor)  {  	mFontHeight = llceil(mStyle->getFont()->getLineHeight()); + +	LLUIImagePtr image = mStyle->getImage(); +	if (image.notNull()) +	{ +		mImageLoadedConnection = image->addLoadedCallback(boost::bind(&LLTextBase::needsReflow, &mEditor)); +	}  }  LLNormalTextSegment::LLNormalTextSegment( const LLColor4& color, S32 start, S32 end, LLTextBase& editor, BOOL is_visible)  @@ -2219,6 +2225,12 @@ LLNormalTextSegment::LLNormalTextSegment( const LLColor4& color, S32 start, S32  	mFontHeight = llceil(mStyle->getFont()->getLineHeight());  } +LLNormalTextSegment::~LLNormalTextSegment() +{ +	mImageLoadedConnection.disconnect(); +} + +  F32 LLNormalTextSegment::draw(S32 start, S32 end, S32 selection_start, S32 selection_end, const LLRect& draw_rect)  {  	if( end - start > 0 ) @@ -2232,7 +2244,7 @@ F32 LLNormalTextSegment::draw(S32 start, S32 end, S32 selection_start, S32 selec  			// Center the image vertically  			S32 image_bottom = draw_rect.getCenterY() - (style_image_height/2);  			image->draw(draw_rect.mLeft, image_bottom,  -				style_image_width, style_image_height); +				style_image_width, style_image_height, color);  		}  		return drawClippedSegment( getStart() + start, getStart() + end, selection_start, selection_end, draw_rect); diff --git a/indra/llui/lltextbase.h b/indra/llui/lltextbase.h index c60b040655..0138ca3704 100644 --- a/indra/llui/lltextbase.h +++ b/indra/llui/lltextbase.h @@ -136,7 +136,6 @@ public:  	// TODO: move into LLTextSegment?  	void					createUrlContextMenu(S32 x, S32 y, const std::string &url); // create a popup context menu for the given Url -  	// Text accessors  	// TODO: add optional style parameter  	virtual void			setText(const LLStringExplicit &utf8str , const LLStyle::Params& input_params = LLStyle::Params()); // uses default style @@ -148,6 +147,8 @@ public:  	LLWString       		getWText() const;  	void					appendText(const std::string &new_text, bool prepend_newline, const LLStyle::Params& input_params = LLStyle::Params()); +	// force reflow of text +	void					needsReflow() { mReflowNeeded = TRUE; }  	S32						getLength() const { return getWText().length(); }  	S32						getLineCount() const { return mLineInfoList.size(); } @@ -162,7 +163,6 @@ public:  	S32						getVPad() { return mVPad; }  	S32						getHPad() { return mHPad; } -  	S32						getDocIndexFromLocalCoord( S32 local_x, S32 local_y, BOOL round ) const;  	LLRect					getLocalRectFromDocIndex(S32 pos) const;  	LLRect					getDocRectFromDocIndex(S32 pos) const; @@ -180,6 +180,7 @@ public:  	void					changePage( S32 delta );  	void					changeLine( S32 delta ); +  	const LLFontGL*			getDefaultFont() const					{ return mDefaultFont; }  public: @@ -303,7 +304,6 @@ protected:  	// misc  	void							updateRects(); -	void							needsReflow() { mReflowNeeded = TRUE; }  	void							needsScroll() { mScrollNeeded = TRUE; }  	void							replaceUrlLabel(const std::string &url, const std::string &label); @@ -426,6 +426,7 @@ class LLNormalTextSegment : public LLTextSegment  public:  	LLNormalTextSegment( const LLStyleSP& style, S32 start, S32 end, LLTextBase& editor );  	LLNormalTextSegment( const LLColor4& color, S32 start, S32 end, LLTextBase& editor, BOOL is_visible = TRUE); +	~LLNormalTextSegment();  	/*virtual*/ bool				getDimensions(S32 first_char, S32 num_chars, S32& width, S32& height) const;  	/*virtual*/ S32					getOffset(S32 segment_local_x_coord, S32 start_offset, S32 num_chars, bool round) const; @@ -457,6 +458,7 @@ protected:  	S32					mFontHeight;  	LLKeywordToken* 	mToken;  	std::string     	mTooltip; +	boost::signals2::connection mImageLoadedConnection;  };  class LLIndexSegment : public LLTextSegment diff --git a/indra/llui/lluiimage.cpp b/indra/llui/lluiimage.cpp index a8683e55c3..f941f391eb 100644 --- a/indra/llui/lluiimage.cpp +++ b/indra/llui/lluiimage.cpp @@ -39,18 +39,20 @@  #include "lluiimage.h"  #include "llui.h" -LLUIImage::LLUIImage(const std::string& name, LLPointer<LLTexture> image) : -						mName(name), -						mImage(image), -						mScaleRegion(0.f, 1.f, 1.f, 0.f), -						mClipRegion(0.f, 1.f, 1.f, 0.f), -						mUniformScaling(TRUE), -						mNoClip(TRUE) +LLUIImage::LLUIImage(const std::string& name, LLPointer<LLTexture> image) +:	mName(name), +	mImage(image), +	mScaleRegion(0.f, 1.f, 1.f, 0.f), +	mClipRegion(0.f, 1.f, 1.f, 0.f), +	mUniformScaling(TRUE), +	mNoClip(TRUE), +	mImageLoaded(NULL)  {  }  LLUIImage::~LLUIImage()  { +	delete mImageLoaded;  }  void LLUIImage::setClipRegion(const LLRectf& region)  @@ -138,6 +140,25 @@ S32 LLUIImage::getTextureHeight() const  	return mImage->getHeight(0);  } +boost::signals2::connection LLUIImage::addLoadedCallback( const image_loaded_signal_t::slot_type& cb )  +{ +	if (!mImageLoaded)  +	{ +		mImageLoaded = new image_loaded_signal_t(); +	} +	return mImageLoaded->connect(cb); +} + + +void LLUIImage::onImageLoaded() +{ +	if (mImageLoaded) +	{ +		(*mImageLoaded)(); +	} +} + +  namespace LLInitParam  {  	LLUIImage* TypedParam<LLUIImage*>::getValueFromBlock() const @@ -170,3 +191,4 @@ namespace LLInitParam  			return (a == b);  	}  } + diff --git a/indra/llui/lluiimage.h b/indra/llui/lluiimage.h index 9d734bcfdf..5fa9610ab2 100644 --- a/indra/llui/lluiimage.h +++ b/indra/llui/lluiimage.h @@ -39,6 +39,7 @@  #include "llrefcount.h"  #include "llrect.h"  #include <boost/function.hpp> +#include <boost/signals2.hpp>  #include "llinitparam.h"  #include "lltexture.h" @@ -47,6 +48,8 @@ extern const LLColor4 UI_VERTEX_COLOR;  class LLUIImage : public LLRefCount  {  public: +	typedef boost::signals2::signal<void (void)> image_loaded_signal_t; +  	LLUIImage(const std::string& name, LLPointer<LLTexture> image);  	virtual ~LLUIImage(); @@ -77,7 +80,13 @@ public:  	S32 getTextureWidth() const;  	S32 getTextureHeight() const; +	boost::signals2::connection addLoadedCallback( const image_loaded_signal_t::slot_type& cb ); + +	void onImageLoaded(); +  protected: +	image_loaded_signal_t* mImageLoaded; +  	std::string			mName;  	LLRectf				mScaleRegion;  	LLRectf				mClipRegion; diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 1c1f27a259..ab27375b87 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -251,7 +251,7 @@ bool callback_skip_dialogs(const LLSD& notification, const LLSD& response, LLFlo  		{  			floater->setAllIgnored();  			LLFirstUse::disableFirstUse(); -			LLFloaterPreference::buildLists(floater); +			floater->buildPopupLists();  		}  	}  	return false; @@ -266,7 +266,7 @@ bool callback_reset_dialogs(const LLSD& notification, const LLSD& response, LLFl  		{  			floater->resetAllIgnored();  			LLFirstUse::resetFirstUse(); -			LLFloaterPreference::buildLists(floater); +			floater->buildPopupLists();  		}  	}  	return false; @@ -391,6 +391,7 @@ LLFloaterPreference::~LLFloaterPreference()  		ctrl_window_size->setCurrentByIndex(i);  	}  } +  void LLFloaterPreference::draw()  {  	BOOL has_first_selected = (getChildRef<LLScrollListCtrl>("disabled_popups").getFirstSelected()!=NULL); @@ -548,17 +549,17 @@ void LLFloaterPreference::cancel()  void LLFloaterPreference::onOpen(const LLSD& key)  {  	gAgent.sendAgentUserInfoRequest(); +  	/////////////////////////// From LLPanelGeneral //////////////////////////  	// if we have no agent, we can't let them choose anything  	// if we have an agent, then we only let them choose if they have a choice -	bool canChoose = gAgent.getID().notNull() && -	(gAgent.isMature() || gAgent.isGodlike()); +	bool can_choose_maturity = +		gAgent.getID().notNull() &&	(gAgent.isMature() || gAgent.isGodlike());  	LLComboBox* maturity_combo = getChild<LLComboBox>("maturity_desired_combobox"); -	if (canChoose) -	{ -		 +	if (can_choose_maturity) +	{		  		// if they're not adult or a god, they shouldn't see the adult selection, so delete it  		if (!gAgent.isAdult() && !gAgent.isGodlike())  		{ @@ -568,8 +569,7 @@ void LLFloaterPreference::onOpen(const LLSD& key)  			maturity_combo->remove(0);  		}  		childSetVisible("maturity_desired_combobox", true); -		childSetVisible("maturity_desired_textbox", false); -		 +		childSetVisible("maturity_desired_textbox", false);		  	}  	else  	{ @@ -577,6 +577,10 @@ void LLFloaterPreference::onOpen(const LLSD& key)  		childSetVisible("maturity_desired_combobox", false);  	} +	// Enabled/disabled popups, might have been changed by user actions +	// while preferences floater was closed. +	buildPopupLists(); +  	LLPanelLogin::setAlwaysRefresh(true);  	refresh(); @@ -717,14 +721,6 @@ void LLFloaterPreference::updateMeterText(LLUICtrl* ctrl)  	m1->setVisible(two_digits);  	m2->setVisible(!two_digits);  } -/* -void LLFloaterPreference::onClickClearCache() -{ -	// flag client cache for clearing next time the client runs -	gSavedSettings.setBOOL("PurgeCacheOnNextStartup", TRUE); -	LLNotificationsUtil::add("CacheWillClear"); -} -*/  void LLFloaterPreference::onClickBrowserClearCache()  { @@ -794,12 +790,13 @@ void LLFloaterPreference::refreshSkin(void* data)  	self->getChild<LLRadioGroup>("skin_selection", true)->setValue(sSkin);  } -// static -void LLFloaterPreference::buildLists(void* data) + +void LLFloaterPreference::buildPopupLists()  { -	LLPanel*self = (LLPanel*)data; -	LLScrollListCtrl& disabled_popups = self->getChildRef<LLScrollListCtrl>("disabled_popups"); -	LLScrollListCtrl& enabled_popups = self->getChildRef<LLScrollListCtrl>("enabled_popups"); +	LLScrollListCtrl& disabled_popups = +		getChildRef<LLScrollListCtrl>("disabled_popups"); +	LLScrollListCtrl& enabled_popups = +		getChildRef<LLScrollListCtrl>("enabled_popups");  	disabled_popups.deleteAllItems();  	enabled_popups.deleteAllItems(); @@ -861,8 +858,7 @@ void LLFloaterPreference::buildLists(void* data)  }  void LLFloaterPreference::refreshEnabledState() -{ -	 +{	  	LLCheckBoxCtrl* ctrl_reflections = getChild<LLCheckBoxCtrl>("Reflections");  	LLRadioGroup* radio_reflection_detail = getChild<LLRadioGroup>("ReflectionDetailRadio"); @@ -1111,7 +1107,7 @@ void LLFloaterPreference::onClickEnablePopup()  		LLUI::sSettingGroups["ignores"]->setBOOL(notification_name, TRUE);  	} -	buildLists(this); +	buildPopupLists();  }  void LLFloaterPreference::onClickDisablePopup() @@ -1128,8 +1124,9 @@ void LLFloaterPreference::onClickDisablePopup()  		LLUI::sSettingGroups["ignores"]->setBOOL(notification_name, FALSE);  	} -	buildLists(this); +	buildPopupLists();  } +  void LLFloaterPreference::resetAllIgnored()  {  	for (LLNotifications::TemplateMap::const_iterator iter = LLNotifications::instance().templatesBegin(); @@ -1428,17 +1425,11 @@ BOOL LLPanelPreference::postBuild()  		}  	} -	////////////////////////Panel Popups///////////////// -	if(hasChild("disabled_popups") && hasChild("enabled_popups")) -	{ -		LLFloaterPreference::buildLists(this); -	} -	////// +  	if(hasChild("online_visibility") && hasChild("send_im_to_email"))  	{  		childSetText("email_address",getString("log_in_to_change") ); -//		childSetText("busy_response", getString("log_in_to_change")); -		 +//		childSetText("busy_response", getString("log_in_to_change"));		  	} @@ -1573,8 +1564,7 @@ void LLPanelPreference::saveSettings()  		{  			view_stack.push_back(*iter);  		} -	} -	 +	}	  }  void LLPanelPreference::cancel() @@ -1607,4 +1597,3 @@ void LLPanelPreference::setControlFalse(const LLSD& user_data)  	if (control)  		control->set(LLSD(FALSE));  } - diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h index a30422564a..d292f3bb7b 100644 --- a/indra/newview/llfloaterpreference.h +++ b/indra/newview/llfloaterpreference.h @@ -85,7 +85,6 @@ protected:  	void		onBtnCancel();  	void		onBtnApply(); -//	void		onClickClearCache();  	void		onClickBrowserClearCache();  	// if the custom settings box is clicked @@ -141,7 +140,7 @@ public:  	static void initWindowSizeControls(LLPanel* panelp); -	static void buildLists(void* data); +	void buildPopupLists();  	static void refreshSkin(void* data);  	static void cleanupBadSetting();  	static F32 sAspectRatio;	 @@ -153,7 +152,6 @@ private:  	bool mOriginalHideOnlineStatus;  	std::string mDirectoryVisibility; -  };  class LLPanelPreference : public LLPanel diff --git a/indra/newview/llnavigationbar.cpp b/indra/newview/llnavigationbar.cpp index e65b7d8a0c..9797c01371 100644 --- a/indra/newview/llnavigationbar.cpp +++ b/indra/newview/llnavigationbar.cpp @@ -82,9 +82,24 @@ public:  	struct Params : public LLInitParam::Block<Params, LLMenuItemCallGL::Params>  	{ -		Mandatory<EType> item_type; - -		Params() {} +		Mandatory<EType>		item_type; +		Optional<const LLFontGL*> back_item_font, +								current_item_font, +								forward_item_font; +		Optional<std::string>	back_item_image, +								forward_item_image; +		Optional<S32>			image_hpad, +								image_vpad; +		Params() +		:	item_type(), +			back_item_font("back_item_font"), +			current_item_font("current_item_font"), +			forward_item_font("forward_item_font"), +			back_item_image("back_item_image"), +			forward_item_image("forward_item_image"), +			image_hpad("image_hpad"), +			image_vpad("image_vpad") +		{}  	};  	/*virtual*/ void	draw(); @@ -97,33 +112,38 @@ private:  	static const S32			ICON_WIDTH			= 16;  	static const S32			ICON_HEIGHT			= 16; -	static const std::string	ICON_IMG_BACKWARD; -	static const std::string	ICON_IMG_FORWARD;  	LLIconCtrl*		mArrowIcon;  }; -const std::string LLTeleportHistoryMenuItem::ICON_IMG_BACKWARD("teleport_history_backward.tga"); -const std::string LLTeleportHistoryMenuItem::ICON_IMG_FORWARD("teleport_history_forward.tga"); +static LLDefaultChildRegistry::Register<LLTeleportHistoryMenuItem> r("teleport_history_menu_item"); +  LLTeleportHistoryMenuItem::LLTeleportHistoryMenuItem(const Params& p)  :	LLMenuItemCallGL(p),  	mArrowIcon(NULL)  {  	// Set appearance depending on the item type. -	if (p.item_type  == TYPE_CURRENT) +	if (p.item_type == TYPE_BACKWARD) +	{ +		setFont( p.back_item_font ); +		setLabel(std::string("   ") + std::string(p.label)); +	} +	else if (p.item_type == TYPE_CURRENT)  	{ -		setFont(LLFontGL::getFontSansSerifBold()); +		setFont( p.current_item_font );  	}  	else  	{ -		setFont(LLFontGL::getFontSansSerif()); +		setFont( p.forward_item_font );  		setLabel(std::string("   ") + std::string(p.label));  	}  	LLIconCtrl::Params icon_params;  	icon_params.name("icon"); -	icon_params.rect(LLRect(0, ICON_HEIGHT, ICON_WIDTH, 0)); +	LLRect rect(0, ICON_HEIGHT, ICON_WIDTH, 0); +	rect.translate( p.image_hpad, p.image_vpad ); +	icon_params.rect( rect );  	icon_params.mouse_opaque(false);  	icon_params.follows.flags(FOLLOWS_LEFT | FOLLOWS_TOP);  	icon_params.visible(false); @@ -132,9 +152,9 @@ LLTeleportHistoryMenuItem::LLTeleportHistoryMenuItem(const Params& p)  	// no image for the current item  	if (p.item_type == TYPE_BACKWARD) -		mArrowIcon->setValue(ICON_IMG_BACKWARD); +		mArrowIcon->setValue( p.back_item_image() );  	else if (p.item_type == TYPE_FORWARD) -		mArrowIcon->setValue(ICON_IMG_FORWARD); +		mArrowIcon->setValue( p.forward_item_image() );  	addChild(mArrowIcon);  } diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index c8b86118be..1605838b94 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -5753,19 +5753,8 @@ void LLSelectMgr::redo()  //-----------------------------------------------------------------------------  BOOL LLSelectMgr::canDoDelete() const  { -	bool can_delete = false; -	LLViewerObject* obj = const_cast<LLSelectMgr*>(this)->mSelectedObjects->getFirstDeleteableObject() ;  // HACK: casting away constness - MG  	// Note: Can only delete root objects (see getFirstDeleteableObject() for more info) -	if (obj!= NULL) -	{ -		// all the faces needs to be selected -		if(const_cast<LLSelectMgr*>(this)->mSelectedObjects->contains(obj,SELECT_ALL_TES )) -		{ -			can_delete = true; -		} -	} -	 -	return can_delete; +	return const_cast<LLSelectMgr*>(this)->mSelectedObjects->getFirstDeleteableObject() != NULL; // HACK: casting away constness - MG  }  //----------------------------------------------------------------------------- diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 2353484ece..431b4d3c0a 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -2310,12 +2310,6 @@ class LLObjectEnableReportAbuse : public view_listener_t  	bool handleEvent(const LLSD& userdata)  	{  		bool new_value = LLSelectMgr::getInstance()->getSelection()->getObjectCount() != 0; -/*		// all the faces needs to be selected -		if(LLSelectMgr::getInstance()->getSelection()->contains(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(),SELECT_ALL_TES )) -		{ -			new_value = true; -		} - */  		return new_value;  	}  }; @@ -2704,7 +2698,6 @@ BOOL enable_has_attachments(void*)  bool enable_object_mute()  {  	LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); -	  	bool new_value = (object != NULL);  	if (new_value)  	{ @@ -2717,19 +2710,6 @@ bool enable_object_mute()  			BOOL is_self = avatar->isSelf();  			new_value = !is_linden && !is_self;  		} -		else -		{ -			if( LLSelectMgr::getInstance()->getSelection()->contains(object,SELECT_ALL_TES )) -			{ -				new_value = true; -			}		 -			else  -			{ -				new_value = false; -			} - -		} -  	}  	return new_value;  } diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 5be7f2945f..e066546bd8 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1454,6 +1454,8 @@ void LLUIImageList::onUIImageLoaded( BOOL success, LLViewerFetchedTexture *src_v  						llclamp((F32)scale_rect.mRight / (F32)imagep->getWidth(), 0.f, 1.f),  						llclamp((F32)scale_rect.mBottom / (F32)imagep->getHeight(), 0.f, 1.f)));  			} + +			imagep->onImageLoaded();  		}  	}  } diff --git a/indra/newview/skins/default/colors.xml b/indra/newview/skins/default/colors.xml index acb3262093..cdbeed111e 100644 --- a/indra/newview/skins/default/colors.xml +++ b/indra/newview/skins/default/colors.xml @@ -648,7 +648,7 @@       reference="LtGray" />      <color       name="TextFgTentativeColor" -	 value="0 0 0 .33" /> +     value="0.4 0.4 0.4 1" />      <color       name="TimeTextColor"       reference="LtGray" /> diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index e7579ec653..607df10048 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -57,6 +57,9 @@ with the same filename but different name    <texture name="Arrow_Small_Left" file_name="widgets/Arrow_Small_Left.png" preload="true" />    <texture name="Arrow_Small_Right" file_name="widgets/Arrow_Small_Right.png" preload="true" /> +  <texture name="Arrow_Down" file_name="widgets/Arrow_Down.png"	preload="true" /> +  <texture name="Arrow_Up" file_name="widgets/Arrow_Up.png" preload="true" /> +    <texture name="AudioMute_Off" file_name="icons/AudioMute_Off.png" preload="false" />    <texture name="AudioMute_Over" file_name="icons/AudioMute_Over.png" preload="false" />    <texture name="AudioMute_Press" file_name="icons/AudioMute_Press.png" preload="false" /> diff --git a/indra/newview/skins/default/xui/en/floater_animation_preview.xml b/indra/newview/skins/default/xui/en/floater_animation_preview.xml index 26ace7b617..4f4288b654 100644 --- a/indra/newview/skins/default/xui/en/floater_animation_preview.xml +++ b/indra/newview/skins/default/xui/en/floater_animation_preview.xml @@ -525,7 +525,7 @@ Maximum animation length is [MAX_LENGTH] seconds.  We recommend BVH files exported from Poser 4.      </text>      <button -	 top="580" +    	top="580"       follows="bottom|left"       height="23"       label="Upload (L$[AMOUNT])" @@ -534,7 +534,7 @@ We recommend BVH files exported from Poser 4.       name="ok_btn"       width="128" />      <button -	 top="580" +    	top="580"       follows="bottom|left"       height="23"       label="Cancel" diff --git a/indra/newview/skins/default/xui/en/floater_lagmeter.xml b/indra/newview/skins/default/xui/en/floater_lagmeter.xml index 19f5155f88..b24c745bdd 100644 --- a/indra/newview/skins/default/xui/en/floater_lagmeter.xml +++ b/indra/newview/skins/default/xui/en/floater_lagmeter.xml @@ -1,7 +1,7 @@  <?xml version="1.0" encoding="utf-8" standalone="yes" ?>  <floater   legacy_header_height="18" - height="150" + height="170"   layout="topleft"   name="floater_lagmeter"   help_topic="floater_lagmeter" @@ -328,7 +328,7 @@       left="10"       name="minimize"  	 tool_tip="Toggle floater size" -     top_delta="4" +     top_delta="24"       width="40">          <button.commit_callback           function="LagMeter.ClickShrink" /> diff --git a/indra/newview/skins/default/xui/en/floater_world_map.xml b/indra/newview/skins/default/xui/en/floater_world_map.xml index 9c11a88c34..e632b67d11 100644 --- a/indra/newview/skins/default/xui/en/floater_world_map.xml +++ b/indra/newview/skins/default/xui/en/floater_world_map.xml @@ -62,7 +62,7 @@       left="4"       layout="topleft"       name="Show My Location" -     tool_tip="Center map on your avatar's location" +     tool_tip="Center map on my avatar's location"       top="6"       width="24" >  		<button.commit_callback @@ -235,7 +235,7 @@       left="136"       top="6"       name="Go Home" -     tool_tip="Teleport home" +     tool_tip="Teleport to my home location"       width="24" >  		<button.commit_callback  		function="WMap.GoHome" /> diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml index 6384b1238e..861b0de2cf 100644 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml @@ -68,7 +68,7 @@               parameter="inventory" />          </menu_item_check>          <menu_item_call -         label="Show Sidetray Inventory" +         label="Show Inventory in Side Tray"           name="ShowSidetrayInventory"           shortcut="control|I"           visible="false"> @@ -433,6 +433,8 @@          </menu_item_check>          <menu_item_separator           layout="topleft" />--> +        <menu_item_separator +         layout="topleft" />          <menu_item_call           label="Snapshot"           layout="topleft" @@ -442,6 +444,8 @@               function="Floater.Show"               parameter="snapshot" />          </menu_item_call> +        <menu_item_separator +         layout="topleft" />      <menu           create_jump_keys="true"           label="Sun" diff --git a/indra/newview/skins/default/xui/en/panel_group_notices.xml b/indra/newview/skins/default/xui/en/panel_group_notices.xml index 0dea81eefe..1b70b95a93 100644 --- a/indra/newview/skins/default/xui/en/panel_group_notices.xml +++ b/indra/newview/skins/default/xui/en/panel_group_notices.xml @@ -10,11 +10,9 @@   width="310">      <panel.string       name="help_text"> -        Notices let you send a message and -an optionally attached item. Notices only go to -group members in Roles with the ability to -receive Notices. You can turn off Notices on -the General tab. +        Notices let you send a message and an optionally attached item. +Notices only go to group members in Roles with the ability to receive Notices. +You can turn off Notices on the General tab.      </panel.string>      <panel.string       name="no_notices_text"> @@ -31,7 +29,7 @@ the General tab.       name="lbl2"       top="5"       width="300"> -     Notices are kept for 14 days +     Notices are kept for 14 days.  Maximum 200 per group daily      </text>      <scroll_list @@ -93,6 +91,7 @@ Maximum 200 per group daily       layout="topleft"       name="refresh_notices"       right="-5" +     tool_tip="Refresh list of notices"       top_delta="0"       width="23" />      <panel @@ -192,7 +191,7 @@ Maximum 200 per group daily           top_pad="15"           word_wrap="true"           width="150"> -            Drag here to attach something -- > +            Drag and drop item here to attach it:          </text>          <icon           height="72" @@ -228,7 +227,7 @@ Maximum 200 per group daily           left="10"           layout="topleft"           name="drop_target" -         tool_tip="Drag an inventory item onto the message box to send it with the notice. You must have permission to copy and transfer the object to send it with the notice." +         tool_tip="Drag an inventory item onto this target box to send it with this notice. You must have permission to copy and transfer the item in order to attach it."           width="280" />     </panel>      <panel diff --git a/indra/newview/skins/default/xui/en/panel_group_roles.xml b/indra/newview/skins/default/xui/en/panel_group_roles.xml index a5bab3232c..9548119d58 100644 --- a/indra/newview/skins/default/xui/en/panel_group_roles.xml +++ b/indra/newview/skins/default/xui/en/panel_group_roles.xml @@ -258,7 +258,7 @@ things in this group. There's a broad variety of Abilities.           name="static"           top_pad="5"           width="300"> -            Assigned Roles +            Assigned Members          </text>          <scroll_list           draw_stripes="true" diff --git a/indra/newview/skins/default/xui/en/panel_main_inventory.xml b/indra/newview/skins/default/xui/en/panel_main_inventory.xml index 37d59de66f..aeb28e4c60 100644 --- a/indra/newview/skins/default/xui/en/panel_main_inventory.xml +++ b/indra/newview/skins/default/xui/en/panel_main_inventory.xml @@ -30,13 +30,16 @@       layout="topleft"       left_delta="-4"       name="inventory filter tabs" +     tab_min_width="70" +     tab_height="30"       tab_position="top" -     top_pad="4" +     top_pad="10" +     halign="center"       width="305">          <inventory_panel           follows="left|top|right|bottom"           height="295" -         label="All Items" +         label="ALL ITEMS"           layout="topleft"           left="1"           name="All Items" @@ -45,7 +48,7 @@          <inventory_panel           follows="left|top|right|bottom"           height="295" -         label="Recent Items" +         label="RECENT ITEMS"           layout="topleft"           left_delta="0"           name="Recent Items" diff --git a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml index 214e39614e..854227619b 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_sound.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_sound.xml @@ -23,7 +23,7 @@       name="System Volume"       show_text="false"       slider_label.halign="right" -     top_pad="5" +     top="10"       volume="true"       width="350">          <slider.commit_callback @@ -230,12 +230,13 @@       width="22" />     <check_box       label_text.halign="left" -     follows="right|top" -    height="16" -    control_name ="EnableVoiceChat" -   disabled_control="CmdLineDisableVoice" -     label="Voice" -     left="50" +     follows="left|top" +     height="16" +     control_name ="EnableVoiceChat" +     disabled_control="CmdLineDisableVoice" +     label="Enable voice" +     layout="topleft" +     left="28"       name="enable_voice_check"       top_pad="5"       width="110" @@ -249,15 +250,16 @@       height="15"       increment="0.05"       initial_value="0.5" -     label_width="0" +     label="Voice" +     label_width="160"       layout="topleft" -     left="165" -     top_delta="0" +     left="0" +     top_delta="20"       name="Voice Volume"       show_text="false"       slider_label.halign="right"       volume="true" -     width="185"> +     width="350">          <slider.commit_callback           function="Pref.setControlFalse"           parameter="MuteVoice" /> @@ -283,63 +285,70 @@       follows="left|top"       height="13"       layout="topleft" -     left="170" +     left="30"       name="Listen from" -     width="200"> +     width="200" +     top="205">          Listen from:      </text>      <icon -	 follows="left" +	 follows="left|top"  	 height="18"  	 image_name="Cam_FreeCam_Off" +         layout="topleft"  	 name="camera_icon"  	 mouse_opaque="false"  	 visible="true" -	 width="18" /> +	 width="18" +         left="80" +         top="219"/>  	<icon -	 follows="left" +	 follows="left|top"  	 height="18"  	 image_name="Move_Walk_Off" +         layout="topleft"  	 name="avatar_icon"  	 mouse_opaque="false"  	 visible="true" -	 width="18" /> +	 width="18" +         top="239" +         left="80" +         />     <radio_group       enabled_control="EnableVoiceChat"       control_name="VoiceEarLocation"       draw_border="false" -	 follows="left" -     left_delta="20" -	 top = "210" -	 width="221" -	 height="38" -     name="ear_location"> -        <radio_item -         height="16" -         label="Camera position" -         left_pad="1" -	follows="topleft" -         name="0" -         top_delta="-30" -         width="200" /> -        <radio_item -         height="16" -	follows="topleft" -         label="Avatar position" -         left_delta="0" -         name="1" -         top_delta="19" -         width="200" /> -    </radio_group> +     follows="left|top" +     layout="topleft" +     left="100" +     width="221" +     height="38" +     name="ear_location" +     top="218"> +    <radio_item +     height="16" +     label="Camera position" +     follows="left|top" +     layout="topleft" +     name="0" +     width="200"/> +    <radio_item +     height="16" +     follows="left|top" +     label="Avatar position" +     layout="topleft" +     name="1" +     width="200" /> +   </radio_group>    <button     control_name="ShowDeviceSettings" -   follows="left|bottom" +   follows="left|top"     height="19"     is_toggle="true" -   label="Input/Output Devices" +   label="Input/Output devices"     layout="topleft" -   left="165" -   top_pad="12" +   left="30" +   top="270"     name="device_settings_btn"     width="190">    </button> diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 3b32912fbf..7fafa63e57 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -1770,7 +1770,8 @@ Clears (deletes) the media and all params from the given face.  	<string name="tattoo">Tattoo</string>  	<string name="invalid">invalid</string> -	<!-- notify --> +	<!-- LLGroupNotify --> +	<!-- used in the construction of a Group Notice blue dialog box, buttons, tooltip etc. Seems to be no longer utilized by code in Viewer 2.0 -->  	<string name="next">Next</string>  	<string name="ok">OK</string>  	<string name="GroupNotifyGroupNotice">Group Notice</string> @@ -1780,6 +1781,7 @@ Clears (deletes) the media and all params from the given face.  	<string name="GroupNotifyViewPastNotices">View past notices or opt-out of receiving these messages here.</string>  	<string name="GroupNotifyOpenAttachment">Open Attachment</string>  	<string name="GroupNotifySaveAttachment">Save Attachment</string> +    <string name="TeleportOffer">Teleport offering</string>    <!-- start-up toast's string-->    <string name="StartUpNotifications">New notifications arrived while you were away.</string> diff --git a/indra/newview/skins/default/xui/en/widgets/filter_editor.xml b/indra/newview/skins/default/xui/en/widgets/filter_editor.xml index 0e34243349..48baa2812d 100644 --- a/indra/newview/skins/default/xui/en/widgets/filter_editor.xml +++ b/indra/newview/skins/default/xui/en/widgets/filter_editor.xml @@ -4,6 +4,7 @@    search_button_visible="true"    text_pad_left="7"    select_on_focus="true" +  text_tentative_color="TextFgTentativeColor"    background_image="TextField_Search_Off"    background_image_disabled="TextField_Search_Disabled"    background_image_focused="TextField_Search_Active"> diff --git a/indra/newview/skins/default/xui/en/widgets/search_combo_box.xml b/indra/newview/skins/default/xui/en/widgets/search_combo_box.xml index c2a70d4b39..5d429d5b5b 100644 --- a/indra/newview/skins/default/xui/en/widgets/search_combo_box.xml +++ b/indra/newview/skins/default/xui/en/widgets/search_combo_box.xml @@ -13,7 +13,8 @@   <combo_editor    name="child1"    select_on_focus="true" -  text_pad_left="30"  +  text_pad_left="30" +  text_tentative_color="TextFgTentativeColor"    background_image="TextField_Search_Off"    background_image_disabled="TextField_Search_Disabled"    background_image_focused="TextField_Search_Active"/> diff --git a/indra/newview/skins/default/xui/en/widgets/search_editor.xml b/indra/newview/skins/default/xui/en/widgets/search_editor.xml index f644a710b2..1616e4c3f7 100644 --- a/indra/newview/skins/default/xui/en/widgets/search_editor.xml +++ b/indra/newview/skins/default/xui/en/widgets/search_editor.xml @@ -4,6 +4,7 @@    search_button_visible="true"    text_pad_left="6"     select_on_focus="true" +  text_tentative_color="TextFgTentativeColor"    background_image="TextField_Search_Off"    background_image_disabled="TextField_Search_Disabled"    background_image_focused="TextField_Search_Active" > diff --git a/indra/newview/skins/default/xui/en/widgets/teleport_history_menu_item.xml b/indra/newview/skins/default/xui/en/widgets/teleport_history_menu_item.xml new file mode 100644 index 0000000000..eaa68f5690 --- /dev/null +++ b/indra/newview/skins/default/xui/en/widgets/teleport_history_menu_item.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes" ?> +<!-- Menu items for the back button drop-down menu of locations. +  Based on menu_item_call.xml --> +<teleport_history_menu_item +  back_item_font="SansSerif" +  current_item_font="SansSerifBold" +  forward_item_font="SansSerif" +  back_item_image="teleport_history_backward.tga" +  forward_item_image="teleport_history_forward.tga" +  image_hpad="1" +  image_vpad="0" +  /> | 
