diff options
Diffstat (limited to 'indra/llui/lltoggleablemenu.h')
-rwxr-xr-x[-rw-r--r--] | indra/llui/lltoggleablemenu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/llui/lltoggleablemenu.h b/indra/llui/lltoggleablemenu.h index f036cdfffb..55a6483021 100644..100755 --- a/indra/llui/lltoggleablemenu.h +++ b/indra/llui/lltoggleablemenu.h @@ -41,7 +41,13 @@ protected: LLToggleableMenu(const Params&); friend class LLUICtrlFactory; public: - virtual void handleVisibilityChange (BOOL curVisibilityIn); + ~LLToggleableMenu(); + + boost::signals2::connection setVisibilityChangeCallback( const commit_signal_t::slot_type& cb ); + + virtual void onVisibilityChange (BOOL curVisibilityIn); + + virtual bool addChild (LLView* view, S32 tab_group = 0); const LLRect& getButtonRect() const { return mButtonRect; } @@ -54,9 +60,12 @@ public: // its visibility off. bool toggleVisibility(); + LLHandle<LLToggleableMenu> getHandle() { return getDerivedHandle<LLToggleableMenu>(); } + protected: bool mClosedByButtonClick; LLRect mButtonRect; + commit_signal_t* mVisibilityChangeSignal; }; #endif // LL_LLTOGGLEABLEMENU_H |