Inital full retooling of appearance editor for multi-wearables. Also updated LLTabContainer to use standard commit and validate callback signals.

This commit is contained in:
Shyotl
2012-06-15 09:51:11 -05:00
parent 3796a216d2
commit 4c45e9a9d1
41 changed files with 717 additions and 682 deletions

View File

@@ -147,10 +147,6 @@ BOOL LLPanelGroupRoles::postBuild()
{
LLPanelGroupSubTab* subtabp = (LLPanelGroupSubTab*) mSubTabContainer->getPanelByIndex(i);
// Add click callbacks to all the tabs.
mSubTabContainer->setTabChangeCallback(subtabp, onClickSubTab);
mSubTabContainer->setTabUserData(subtabp, this);
// Hand the subtab a pointer to this LLPanelGroupRoles, so that it can
// look around for the widgets it is interested in.
if (!subtabp->postBuildSubTab(this)) return FALSE;
@@ -158,6 +154,9 @@ BOOL LLPanelGroupRoles::postBuild()
subtabp->addObserver(this);
}
// Add click callbacks to all the tabs.
mSubTabContainer->setCommitCallback(boost::bind(&LLPanelGroupRoles::handleClickSubTab,this));
// Set the current tab to whatever is currently being shown.
mCurrentTab = (LLPanelGroupTab*) mSubTabContainer->getCurrentPanel();
if (!mCurrentTab)
@@ -198,13 +197,6 @@ BOOL LLPanelGroupRoles::isVisibleByAgent(LLAgent* agentp)
}
// static
void LLPanelGroupRoles::onClickSubTab(void* user_data, bool from_click)
{
LLPanelGroupRoles* self = static_cast<LLPanelGroupRoles*>(user_data);
self->handleClickSubTab();
}
void LLPanelGroupRoles::handleClickSubTab()
{
// If we are already handling a transition,