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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user