diff options
author | Todd Stinson <stinson@lindenlab.com> | 2011-12-16 10:15:43 -0800 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2011-12-16 10:15:43 -0800 |
commit | dcd945fc74b57313da96e97f7de4ee0b6b81ef70 (patch) | |
tree | 9db01c431537e157c4068db601c555a1e31919be /indra/newview/llfloaterpathfindingconsole.cpp | |
parent | b793c3aa1986d352cb90994d6d283eab55a7a3ba (diff) |
Adding functionality for the linksets button on the console to open the linksets floater.
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.cpp')
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 4235228c08..a2182a2551 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -27,8 +27,10 @@ #include "llviewerprecompiledheaders.h" #include "llfloaterpathfindingconsole.h" +#include "llfloaterpathfindinglinksets.h" #include "llsd.h" +#include "llbutton.h" //--------------------------------------------------------------------------- // LLFloaterPathfindingConsole @@ -36,6 +38,11 @@ BOOL LLFloaterPathfindingConsole::postBuild() { + LLButton *linksetBtn = getChild<LLButton>("view_and_edit_linksets"); + llassert(linksetBtn != NULL); + + linksetBtn->setClickedCallback(boost::bind(&LLFloaterPathfindingConsole::onViewEditLinksetClicked, this)); + return LLFloater::postBuild(); } @@ -47,3 +54,8 @@ LLFloaterPathfindingConsole::LLFloaterPathfindingConsole(const LLSD& seed) LLFloaterPathfindingConsole::~LLFloaterPathfindingConsole() { } + +void LLFloaterPathfindingConsole::onViewEditLinksetClicked() +{ + LLFloaterPathfindingLinksets::openLinksetsEditor(); +} |