From 25ceef032b49591244c7df704494436b8b2e4044 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 19 Aug 2009 15:05:08 -0400 Subject: Wrap LLFloaterReg::toggleInstance() as well as showInstance() and hideInstance(). Use toggleInstance() in testfloaters.py. --- indra/llui/llfloaterreglistener.cpp | 6 ++++++ indra/llui/llfloaterreglistener.h | 1 + 2 files changed, 7 insertions(+) (limited to 'indra/llui') diff --git a/indra/llui/llfloaterreglistener.cpp b/indra/llui/llfloaterreglistener.cpp index 37708a7cd9..cb8fa6dfda 100644 --- a/indra/llui/llfloaterreglistener.cpp +++ b/indra/llui/llfloaterreglistener.cpp @@ -27,6 +27,7 @@ LLFloaterRegListener::LLFloaterRegListener(const std::string& pumpName): requiredName["name"] = LLSD(); add("showInstance", &LLFloaterRegListener::showInstance, requiredName); add("hideInstance", &LLFloaterRegListener::hideInstance, requiredName); + add("toggleInstance", &LLFloaterRegListener::toggleInstance, requiredName); } void LLFloaterRegListener::getBuildMap(const LLSD& event) const @@ -58,3 +59,8 @@ void LLFloaterRegListener::hideInstance(const LLSD& event) const { LLFloaterReg::hideInstance(event["name"], event["key"]); } + +void LLFloaterRegListener::toggleInstance(const LLSD& event) const +{ + LLFloaterReg::toggleInstance(event["name"], event["key"]); +} diff --git a/indra/llui/llfloaterreglistener.h b/indra/llui/llfloaterreglistener.h index 049389c094..58d2c07936 100644 --- a/indra/llui/llfloaterreglistener.h +++ b/indra/llui/llfloaterreglistener.h @@ -29,6 +29,7 @@ private: void getBuildMap(const LLSD& event) const; void showInstance(const LLSD& event) const; void hideInstance(const LLSD& event) const; + void toggleInstance(const LLSD& event) const; }; #endif /* ! defined(LL_LLFLOATERREGLISTENER_H) */ -- cgit v1.2.3