diff options
| author | Paul Guslisty <pguslisty@productengine.com> | 2010-02-08 19:09:23 +0200 | 
|---|---|---|
| committer | Paul Guslisty <pguslisty@productengine.com> | 2010-02-08 19:09:23 +0200 | 
| commit | acc0a2962bc645335f19bb5e6142690ea99df449 (patch) | |
| tree | c35c8b47e4445707268691446b522ca2705a1533 | |
| parent | 7199c9cc1bbd17eecea33b77a97a5ad7b20d2888 (diff) | |
EXT - 3232 Refactoring: deleted unnecessary image_left_padding, image_right_padding members from button.h and button.xml and their the only place usage in LLTabContainer::reshapeTuple . Now image overlay placement adjustible via: mLeftHPad, mRightHPad, mImageOverlayBottomPad, mImageOverlayTopPad, mImgOverlayLabelSpace
--HG--
branch : product-engine
| -rw-r--r-- | indra/llui/llbutton.cpp | 4 | ||||
| -rw-r--r-- | indra/llui/llbutton.h | 8 | ||||
| -rw-r--r-- | indra/llui/lltabcontainer.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 22 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/widgets/button.xml | 2 | 
5 files changed, 0 insertions, 40 deletions
| diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp index a4a8cc4e17..1d4dc35cee 100644 --- a/indra/llui/llbutton.cpp +++ b/indra/llui/llbutton.cpp @@ -81,8 +81,6 @@ LLButton::Params::Params()  	image_pressed_selected("image_pressed_selected"),  	image_overlay("image_overlay"),  	image_overlay_alignment("image_overlay_alignment", std::string("center")), -	image_left_pad("image_left_pad"), -	image_right_pad("image_right_pad"),  	image_top_pad("image_top_pad"),  	image_bottom_pad("image_bottom_pad"),  	imgoverlay_label_space("imgoverlay_label_space", 1), @@ -145,8 +143,6 @@ LLButton::LLButton(const LLButton::Params& p)  	mImageOverlay(p.image_overlay()),  	mImageOverlayColor(p.image_overlay_color()),  	mImageOverlayAlignment(LLFontGL::hAlignFromName(p.image_overlay_alignment)), -	mImageOverlayLeftPad(p.image_left_pad), -	mImageOverlayRightPad(p.image_right_pad),  	mImageOverlayTopPad(p.image_top_pad),  	mImageOverlayBottomPad(p.image_bottom_pad),  	mImgOverlayLabelSpace(p.imgoverlay_label_space), diff --git a/indra/llui/llbutton.h b/indra/llui/llbutton.h index 3fbc5c6785..8f35db1007 100644 --- a/indra/llui/llbutton.h +++ b/indra/llui/llbutton.h @@ -107,8 +107,6 @@ public:  		Optional<S32>			pad_bottom; // under text label  		//image overlay paddings -		Optional<S32>			image_left_pad; -		Optional<S32>			image_right_pad;  		Optional<S32>			image_top_pad;  		Optional<S32>			image_bottom_pad; @@ -197,10 +195,6 @@ public:  	void			setLeftHPad( S32 pad )					{ mLeftHPad = pad; }  	void			setRightHPad( S32 pad )					{ mRightHPad = pad; } -	void 			setImageOverlayLeftPad( S32 pad )			{ mImageOverlayLeftPad = pad; } -	S32 			getImageOverlayLeftPad() const				{ return mImageOverlayLeftPad; } -	void 			setImageOverlayRightPad( S32 pad )			{ mImageOverlayRightPad = pad; } -	S32 			getImageOverlayRightPad() const				{ return mImageOverlayRightPad; }  	void 			setImageOverlayTopPad( S32 pad )			{ mImageOverlayTopPad = pad; }  	S32 			getImageOverlayTopPad() const				{ return mImageOverlayTopPad; }  	void 			setImageOverlayBottomPad( S32 pad )			{ mImageOverlayBottomPad = pad; } @@ -333,8 +327,6 @@ private:  	S32							mRightHPad;  	S32							mBottomVPad;	// under text label -	S32							mImageOverlayLeftPad; -	S32							mImageOverlayRightPad;  	S32							mImageOverlayTopPad;  	S32							mImageOverlayBottomPad; diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index 19408989a5..ef9d195a19 100644 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -1628,15 +1628,11 @@ void LLTabContainer::setTabImage(LLPanel* child, LLIconCtrl* icon)  void LLTabContainer::reshapeTuple(LLTabTuple* tuple)  {  	static LLUICachedControl<S32> tab_padding ("UITabPadding", 0); -	static LLUICachedControl<S32> image_left_padding ("UIButtonImageLeftPadding", 4); -	static LLUICachedControl<S32> image_right_padding ("UIButtonImageRightPadding", 4);  	static LLUICachedControl<S32> image_top_padding ("UIButtonImageTopPadding", 2);  	static LLUICachedControl<S32> image_bottom_padding ("UIButtonImageBottomPadding", 2);  	if (!mIsVertical)  	{ -		tuple->mButton->setImageOverlayLeftPad(image_left_padding); -		tuple->mButton->setImageOverlayRightPad(image_right_padding);  		tuple->mButton->setImageOverlayTopPad(image_top_padding);  		tuple->mButton->setImageOverlayBottomPad(image_bottom_padding); diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 923ba44906..a32f0d046e 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9938,28 +9938,6 @@        <key>Value</key>        <integer>15</integer>      </map> -    <key>UIButtonImageLeftPadding</key> -    <map> -      <key>Comment</key> -      <string>Button Overlay Image Left Padding</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>4</integer> -    </map> -    <key>UIButtonImageRightPadding</key> -    <map> -      <key>Comment</key> -      <string>Button Overlay Image Right Padding</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>S32</string> -      <key>Value</key> -      <integer>4</integer> -    </map>      <key>UIButtonImageTopPadding</key>      <map>        <key>Comment</key> diff --git a/indra/newview/skins/default/xui/en/widgets/button.xml b/indra/newview/skins/default/xui/en/widgets/button.xml index 5c80fb50af..1b34a731a5 100644 --- a/indra/newview/skins/default/xui/en/widgets/button.xml +++ b/indra/newview/skins/default/xui/en/widgets/button.xml @@ -7,8 +7,6 @@          image_selected="PushButton_Selected"          image_disabled_selected="PushButton_Selected_Disabled"          image_disabled="PushButton_Disabled" -        image_left_pad="0" -        image_right_pad="0"          image_top_pad="0"          image_bottom_pad="0"          imgoverlay_label_space="1" | 
