summaryrefslogtreecommitdiff
path: root/indra/llui/llpanel.cpp
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-08-20 10:14:28 -0700
committerRichard Nelson <none@none>2010-08-20 10:14:28 -0700
commit02d8197019dcecec7aee80a104c4644ddb4807ca (patch)
treec9d14b91d932c93fbad7a2708cf92d954d86dc16 /indra/llui/llpanel.cpp
parent0399d49e52d16c4335a933ac8d8f2ae251aeec6d (diff)
changed buildPanel/buildFloater to member functions buildFromFile
streamlined LLUICtrlFactory's interface
Diffstat (limited to 'indra/llui/llpanel.cpp')
-rw-r--r--indra/llui/llpanel.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/llui/llpanel.cpp b/indra/llui/llpanel.cpp
index f79429e0f6..51c8f6c743 100644
--- a/indra/llui/llpanel.cpp
+++ b/indra/llui/llpanel.cpp
@@ -972,7 +972,7 @@ static LLFastTimer::DeclareTimer FTM_BUILD_PANELS("Build Panels");
//-----------------------------------------------------------------------------
// buildPanel()
//-----------------------------------------------------------------------------
-BOOL LLPanel::buildPanel(LLPanel* panelp, const std::string& filename, LLXMLNodePtr output_node, const LLPanel::Params& default_params)
+BOOL LLPanel::buildFromFile(const std::string& filename, LLXMLNodePtr output_node, const LLPanel::Params& default_params)
{
LLFastTimer timer(FTM_BUILD_PANELS);
BOOL didPost = FALSE;
@@ -1005,23 +1005,23 @@ BOOL LLPanel::buildPanel(LLPanel* panelp, const std::string& filename, LLXMLNode
LLUICtrlFactory::instance().pushFileName(filename);
{
- if (!panelp->getFactoryMap().empty())
+ if (!getFactoryMap().empty())
{
- sFactoryStack.push_back(&panelp->getFactoryMap());
+ sFactoryStack.push_back(&getFactoryMap());
}
// for local registry callbacks; define in constructor, referenced in XUI or postBuild
- panelp->getCommitCallbackRegistrar().pushScope();
- panelp->getEnableCallbackRegistrar().pushScope();
+ getCommitCallbackRegistrar().pushScope();
+ getEnableCallbackRegistrar().pushScope();
- didPost = panelp->initPanelXML(root, NULL, output_node, default_params);
+ didPost = initPanelXML(root, NULL, output_node, default_params);
- panelp->getCommitCallbackRegistrar().popScope();
- panelp->getEnableCallbackRegistrar().popScope();
+ getCommitCallbackRegistrar().popScope();
+ getEnableCallbackRegistrar().popScope();
- panelp->setXMLFilename(filename);
+ setXMLFilename(filename);
- if (!panelp->getFactoryMap().empty())
+ if (!getFactoryMap().empty())
{
sFactoryStack.pop_back();
}