diff options
author | Callum Prentice <callum@lindenlab.com> | 2010-02-04 17:03:41 -0800 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2010-02-04 17:03:41 -0800 |
commit | 259fa5fd0b67459145eb5463d79f37271ee7af0a (patch) | |
tree | 27c7eaddb0c6f7dd406228e3a61fc89b6fedb159 /indra/newview/llsidetray.h | |
parent | 80139d95adbcb2258c5541a4e0ace32f32b78ba5 (diff) | |
parent | a4aed31ad9fd1874b134af87145ec93b283dbbfb (diff) |
Merge with tip
Diffstat (limited to 'indra/newview/llsidetray.h')
-rw-r--r-- | indra/newview/llsidetray.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llsidetray.h b/indra/newview/llsidetray.h index de2cfe9711..b1c8675793 100644 --- a/indra/newview/llsidetray.h +++ b/indra/newview/llsidetray.h @@ -94,7 +94,15 @@ public: * if no such tab - return NULL, otherwise a pointer to the panel * Pass params as array, or they may be overwritten(example - params["name"]="nearby") */ - LLPanel* showPanel (const std::string& panel_name, const LLSD& params); + LLPanel* showPanel (const std::string& panel_name, const LLSD& params); + + /** + * Toggling Side Tray tab which contains "sub_panel" child of "panel_name" panel. + * If "sub_panel" is not visible Side Tray is opened to display it, + * otherwise Side Tray is collapsed. + * params are passed to "panel_name" panel onOpen(). + */ + void togglePanel (LLPanel* &sub_panel, const std::string& panel_name, const LLSD& params); /* * get the panel (don't show it or do anything else with it) |