diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2009-08-19 15:05:08 -0400 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2009-08-19 15:05:08 -0400 | 
| commit | 25ceef032b49591244c7df704494436b8b2e4044 (patch) | |
| tree | 1d89248970ae66d7054f0f01e7343744f0be83cb | |
| parent | 21bfcbde7ec6e6b3e8a92237b7c33879216c4e82 (diff) | |
Wrap LLFloaterReg::toggleInstance() as well as showInstance() and hideInstance().
Use toggleInstance() in testfloaters.py.
| -rw-r--r-- | indra/llui/llfloaterreglistener.cpp | 6 | ||||
| -rw-r--r-- | indra/llui/llfloaterreglistener.h | 1 | 
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) */  | 
