Skip to content
Snippets Groups Projects
Commit 2813e49d authored by AlexanderP ProductEngine's avatar AlexanderP ProductEngine
Browse files

CHUI-362 WIP (Torn off conversation name is highlighted when selected in...

CHUI-362 WIP (Torn off conversation name is highlighted when selected in conversation list with different conversation showing in message panel): implemented method for a switch off tabs (switching to an invisible state)
parent 82837474
No related branches found
No related tags found
No related merge requests found
...@@ -1556,6 +1556,17 @@ BOOL LLTabContainer::setTab(S32 which) ...@@ -1556,6 +1556,17 @@ BOOL LLTabContainer::setTab(S32 which)
return is_visible; return is_visible;
} }
void LLTabContainer::hideAllTabs()
{
setCurrentPanelIndex(-1);
for(tuple_list_t::iterator iter = mTabList.begin(); iter != mTabList.end(); ++iter)
{
(* iter)->mTabPanel->setVisible(FALSE);
}
}
BOOL LLTabContainer::selectTabByName(const std::string& name) BOOL LLTabContainer::selectTabByName(const std::string& name)
{ {
LLPanel* panel = getPanelByName(name); LLPanel* panel = getPanelByName(name);
......
...@@ -192,6 +192,7 @@ class LLTabContainer : public LLPanel ...@@ -192,6 +192,7 @@ class LLTabContainer : public LLPanel
BOOL selectTabPanel( LLPanel* child ); BOOL selectTabPanel( LLPanel* child );
BOOL selectTab(S32 which); BOOL selectTab(S32 which);
BOOL selectTabByName(const std::string& title); BOOL selectTabByName(const std::string& title);
void hideAllTabs();
BOOL getTabPanelFlashing(LLPanel* child); BOOL getTabPanelFlashing(LLPanel* child);
void setTabPanelFlashing(LLPanel* child, BOOL state); void setTabPanelFlashing(LLPanel* child, BOOL state);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment