summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2009-08-19 15:05:08 -0400
committerNat Goodspeed <nat@lindenlab.com>2009-08-19 15:05:08 -0400
commit25ceef032b49591244c7df704494436b8b2e4044 (patch)
tree1d89248970ae66d7054f0f01e7343744f0be83cb /indra/llui
parent21bfcbde7ec6e6b3e8a92237b7c33879216c4e82 (diff)
Wrap LLFloaterReg::toggleInstance() as well as showInstance() and hideInstance().
Use toggleInstance() in testfloaters.py.
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfloaterreglistener.cpp6
-rw-r--r--indra/llui/llfloaterreglistener.h1
2 files changed, 7 insertions, 0 deletions
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) */