Skip to content
Snippets Groups Projects
Commit 25ceef03 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Wrap LLFloaterReg::toggleInstance() as well as showInstance() and hideInstance().

Use toggleInstance() in testfloaters.py.
parent 21bfcbde
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ LLFloaterRegListener::LLFloaterRegListener(const std::string& pumpName): ...@@ -27,6 +27,7 @@ LLFloaterRegListener::LLFloaterRegListener(const std::string& pumpName):
requiredName["name"] = LLSD(); requiredName["name"] = LLSD();
add("showInstance", &LLFloaterRegListener::showInstance, requiredName); add("showInstance", &LLFloaterRegListener::showInstance, requiredName);
add("hideInstance", &LLFloaterRegListener::hideInstance, requiredName); add("hideInstance", &LLFloaterRegListener::hideInstance, requiredName);
add("toggleInstance", &LLFloaterRegListener::toggleInstance, requiredName);
} }
void LLFloaterRegListener::getBuildMap(const LLSD& event) const void LLFloaterRegListener::getBuildMap(const LLSD& event) const
...@@ -58,3 +59,8 @@ void LLFloaterRegListener::hideInstance(const LLSD& event) const ...@@ -58,3 +59,8 @@ void LLFloaterRegListener::hideInstance(const LLSD& event) const
{ {
LLFloaterReg::hideInstance(event["name"], event["key"]); LLFloaterReg::hideInstance(event["name"], event["key"]);
} }
void LLFloaterRegListener::toggleInstance(const LLSD& event) const
{
LLFloaterReg::toggleInstance(event["name"], event["key"]);
}
...@@ -29,6 +29,7 @@ class LLFloaterRegListener: public LLDispatchListener ...@@ -29,6 +29,7 @@ class LLFloaterRegListener: public LLDispatchListener
void getBuildMap(const LLSD& event) const; void getBuildMap(const LLSD& event) const;
void showInstance(const LLSD& event) const; void showInstance(const LLSD& event) const;
void hideInstance(const LLSD& event) const; void hideInstance(const LLSD& event) const;
void toggleInstance(const LLSD& event) const;
}; };
#endif /* ! defined(LL_LLFLOATERREGLISTENER_H) */ #endif /* ! defined(LL_LLFLOATERREGLISTENER_H) */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment