diff options
author | Oz Linden <oz@lindenlab.com> | 2011-04-06 19:20:03 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-04-06 19:20:03 -0400 |
commit | 52615d251bc9261fe5765feefbcd31021bd75934 (patch) | |
tree | 2e259b393c6d2405d4a5e30ae9dd25e282c78a4d /indra/newview/llsidetray.h | |
parent | 0a802ae351153008b40d42106c866836d0ee4954 (diff) | |
parent | a1a5a793a70f62c977e97b7433840fcb70f47c03 (diff) |
pull pack late beta fixes from 2.6.3
Diffstat (limited to 'indra/newview/llsidetray.h')
-rw-r--r-- | indra/newview/llsidetray.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llsidetray.h b/indra/newview/llsidetray.h index 2516b5689f..1dddd9e9bc 100644 --- a/indra/newview/llsidetray.h +++ b/indra/newview/llsidetray.h @@ -33,6 +33,13 @@ class LLAccordionCtrl; class LLSideTrayTab; +// Deal with LLSideTrayTab being opaque. Generic do-nothing cast... +template <class T> +T tab_cast(LLSideTrayTab* tab) { return tab; } +// specialized for implementation in presence of LLSideTrayTab definition +template <> +LLPanel* tab_cast<LLPanel*>(LLSideTrayTab* tab); + // added inheritance from LLDestroyClass<LLSideTray> to enable Side Tray perform necessary actions // while disconnecting viewer in LLAppViewer::disconnectViewer(). // LLDestroyClassList::instance().fireCallbacks() calls destroyClass method. See EXT-245. @@ -221,6 +228,9 @@ private: } private: + // Since we provide no public way to query mTabs and mDetachedTabs, give + // LLSideTrayListener friend access. + friend class LLSideTrayListener; LLPanel* mButtonsPanel; typedef std::map<std::string,LLButton*> button_map_t; button_map_t mTabButtons; |