diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-09-05 22:00:41 +0300 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-09-05 22:00:41 +0300 |
commit | c3bd256f3340e9223b8855368648f3925760c0b4 (patch) | |
tree | 072244e740dffe530b4bd9c7e41c3074ac337402 /indra/newview/lltoastpanel.h | |
parent | f636b48109e3234ce8a5c36502c7f2615c253bb1 (diff) | |
parent | 894725f3314d24c20414a9a2491cf0cd59882788 (diff) |
Upstream merge from viewer-neko
Diffstat (limited to 'indra/newview/lltoastpanel.h')
-rw-r--r-- | indra/newview/lltoastpanel.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/lltoastpanel.h b/indra/newview/lltoastpanel.h index 6a9b72a5ae..f4c758ade9 100644 --- a/indra/newview/lltoastpanel.h +++ b/indra/newview/lltoastpanel.h @@ -64,4 +64,23 @@ protected: S32 computeSnappedToMessageHeight(LLTextBase* message, S32 maxLineCount); }; +class LLCheckBoxCtrl; + +// Wrapper with support for 'don't ask again' checkbox +class LLCheckBoxToastPanel : public LLToastPanel +{ +public: + LLCheckBoxToastPanel(const LLNotificationPtr& p_ntf); + virtual ~LLCheckBoxToastPanel() {}; + + // set checkboxes acording to defaults from form + void setCheckBoxes(const S32 &h_pad, const S32 &v_pad, LLView *parent_view = NULL); + // set single checkbox + bool setCheckBox(const std::string&, const std::string&, const commit_signal_t::slot_type& cb, const S32 &h_pad, const S32 &v_pad, LLView *parent_view = NULL); +protected: + void onCommitCheckbox(LLUICtrl* ctrl); + + LLCheckBoxCtrl* mCheck; +}; + #endif /* LL_TOASTPANEL_H */ |