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:
@@ -130,10 +130,7 @@ LLFloaterGodTools::LLFloaterGodTools()
|
||||
factory_map["request"] = LLCallbackMap(createPanelRequest, this);
|
||||
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_god_tools.xml", &factory_map);
|
||||
|
||||
childSetTabChangeCallback("GodTools Tabs", "grid", onTabChanged, this);
|
||||
childSetTabChangeCallback("GodTools Tabs", "region", onTabChanged, this);
|
||||
childSetTabChangeCallback("GodTools Tabs", "objects", onTabChanged, this);
|
||||
childSetTabChangeCallback("GodTools Tabs", "request", onTabChanged, this);
|
||||
getChild<LLTabContainer>("GodTools Tabs")->setCommitCallback(boost::bind(&LLFloaterGodTools::onTabChanged,_1,_2));
|
||||
|
||||
sendRegionInfoRequest();
|
||||
|
||||
@@ -244,15 +241,12 @@ void LLFloaterGodTools::showPanel(const std::string& panel_name)
|
||||
if (panel) panel->setFocus(TRUE);
|
||||
}
|
||||
|
||||
|
||||
// static
|
||||
void LLFloaterGodTools::onTabChanged(void* data, bool from_click)
|
||||
//static
|
||||
void LLFloaterGodTools::onTabChanged(LLUICtrl* ctrl, const LLSD& param)
|
||||
{
|
||||
LLPanel* panel = (LLPanel*)data;
|
||||
if (panel)
|
||||
{
|
||||
LLPanel* panel = (LLPanel*)ctrl->getChildView(param.asString(),false,false);
|
||||
if(panel)
|
||||
panel->setFocus(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user