From dcd945fc74b57313da96e97f7de4ee0b6b81ef70 Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Fri, 16 Dec 2011 10:15:43 -0800 Subject: Adding functionality for the linksets button on the console to open the linksets floater. --- indra/newview/llfloaterpathfindingconsole.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'indra/newview/llfloaterpathfindingconsole.cpp') 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("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(); +} -- cgit v1.2.3