Skip to content
Snippets Groups Projects
Commit e61f9d64 authored by Mike Antipov's avatar Mike Antipov
Browse files

Merge

--HG--
branch : product-engine
parents bf2273d0 e7889301
No related branches found
No related tags found
No related merge requests found
...@@ -212,7 +212,8 @@ LLTabContainer::Params::Params() ...@@ -212,7 +212,8 @@ LLTabContainer::Params::Params()
middle_tab("middle_tab"), middle_tab("middle_tab"),
last_tab("last_tab"), last_tab("last_tab"),
use_custom_icon_ctrl("use_custom_icon_ctrl", false), use_custom_icon_ctrl("use_custom_icon_ctrl", false),
tab_icon_ctrl_pad("tab_icon_ctrl_pad", 0) tab_icon_ctrl_pad("tab_icon_ctrl_pad", 0),
use_ellipses("use_ellipses")
{ {
name(std::string("tab_container")); name(std::string("tab_container"));
mouse_opaque = false; mouse_opaque = false;
...@@ -249,7 +250,8 @@ LLTabContainer::LLTabContainer(const LLTabContainer::Params& p) ...@@ -249,7 +250,8 @@ LLTabContainer::LLTabContainer(const LLTabContainer::Params& p)
mMiddleTabParams(p.middle_tab), mMiddleTabParams(p.middle_tab),
mLastTabParams(p.last_tab), mLastTabParams(p.last_tab),
mCustomIconCtrlUsed(p.use_custom_icon_ctrl), mCustomIconCtrlUsed(p.use_custom_icon_ctrl),
mTabIconCtrlPad(p.tab_icon_ctrl_pad) mTabIconCtrlPad(p.tab_icon_ctrl_pad),
mUseTabEllipses(p.use_ellipses)
{ {
static LLUICachedControl<S32> tabcntr_vert_tab_min_width ("UITabCntrVertTabMinWidth", 0); static LLUICachedControl<S32> tabcntr_vert_tab_min_width ("UITabCntrVertTabMinWidth", 0);
...@@ -1485,8 +1487,8 @@ BOOL LLTabContainer::setTab(S32 which) ...@@ -1485,8 +1487,8 @@ BOOL LLTabContainer::setTab(S32 which)
{ {
LLTabTuple* tuple = *iter; LLTabTuple* tuple = *iter;
BOOL is_selected = ( tuple == selected_tuple ); BOOL is_selected = ( tuple == selected_tuple );
tuple->mButton->setUseEllipses(TRUE); tuple->mButton->setUseEllipses(mUseTabEllipses);
tuple->mButton->setHAlign(LLFontGL::LEFT); tuple->mButton->setHAlign(mFontHalign);
tuple->mTabPanel->setVisible( is_selected ); tuple->mTabPanel->setVisible( is_selected );
// tuple->mTabPanel->setFocus(is_selected); // not clear that we want to do this here. // tuple->mTabPanel->setFocus(is_selected); // not clear that we want to do this here.
tuple->mButton->setToggleState( is_selected ); tuple->mButton->setToggleState( is_selected );
......
...@@ -92,6 +92,16 @@ class LLTabContainer : public LLPanel ...@@ -92,6 +92,16 @@ class LLTabContainer : public LLPanel
middle_tab, middle_tab,
last_tab; last_tab;
/**
* Tab label horizontal alignment
*/
Optional<LLFontGL::HAlign> font_halign;
/**
* Tab label ellipses
*/
Optional<bool> use_ellipses;
/** /**
* Use LLCustomButtonIconCtrl or LLButton in LLTabTuple * Use LLCustomButtonIconCtrl or LLButton in LLTabTuple
*/ */
...@@ -294,6 +304,7 @@ class LLTabContainer : public LLPanel ...@@ -294,6 +304,7 @@ class LLTabContainer : public LLPanel
bool mCustomIconCtrlUsed; bool mCustomIconCtrlUsed;
S32 mTabIconCtrlPad; S32 mTabIconCtrlPad;
bool mUseTabEllipses;
}; };
#endif // LL_TABCONTAINER_H #endif // LL_TABCONTAINER_H
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
tab_height="16" tab_height="16"
use_custom_icon_ctrl="true" use_custom_icon_ctrl="true"
tab_icon_ctrl_pad="2" tab_icon_ctrl_pad="2"
font_halign="left"
use_ellipses="true"
top="0" top="0"
width="390" /> width="390" />
<icon <icon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment