diff options
author | Richard Linden <none@none> | 2011-09-23 17:01:15 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2011-09-23 17:01:15 -0700 |
commit | b6d7f99f065c87f7409a1e5e1ba1b59f3f4a3efb (patch) | |
tree | 88cb3ace73821f78fca959a6dc4279489887dc99 /indra/llui/lltoolbar.h | |
parent | 0c5d69b662b97d7716c2b00baccd112eb1c6ec98 (diff) |
EXP-1239 FIX make toolbars wrap when there is not enough room
spacing between buttons now configurable and correct
background art now wraps buttons correctly
created customizable panel for button background
Diffstat (limited to 'indra/llui/lltoolbar.h')
-rw-r--r-- | indra/llui/lltoolbar.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/indra/llui/lltoolbar.h b/indra/llui/lltoolbar.h index 9b08b26ce4..92c289cd3f 100644 --- a/indra/llui/lltoolbar.h +++ b/indra/llui/lltoolbar.h @@ -59,7 +59,6 @@ namespace LLToolBarEnums enum SideType { - SIDE_NONE = 0, SIDE_BOTTOM, SIDE_LEFT, SIDE_RIGHT, @@ -101,10 +100,16 @@ public: Optional<S32> min_button_width, max_button_width, button_height; + + Optional<S32> pad_left, + pad_top, + pad_right, + pad_bottom, + pad_between; // get rid of this Multiple<LLToolBarButton::Params> buttons; - Optional<LLUIImage*> background_image; + Optional<LLPanel::Params> button_panel; Params(); }; @@ -129,16 +134,19 @@ private: LLToolBarEnums::ButtonType mButtonType; LLLayoutStack* mCenteringStack; LLLayoutStack* mWrapStack; - LLLayoutPanel* mCenterPanel; + LLPanel* mButtonPanel; LLToolBarEnums::SideType mSideType; bool mWrap; bool mNeedsLayout; S32 mMinButtonWidth, mMaxButtonWidth, - mButtonHeight; - - LLUIImagePtr mBackgroundImage; + mButtonHeight, + mPadLeft, + mPadRight, + mPadTop, + mPadBottom, + mPadBetween; LLToolBarButton::Params mButtonParams[LLToolBarEnums::BTNTYPE_COUNT]; }; |