summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastpanel.h
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2019-09-05 22:00:41 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2019-09-05 22:00:41 +0300
commitc3bd256f3340e9223b8855368648f3925760c0b4 (patch)
tree072244e740dffe530b4bd9c7e41c3074ac337402 /indra/newview/lltoastpanel.h
parentf636b48109e3234ce8a5c36502c7f2615c253bb1 (diff)
parent894725f3314d24c20414a9a2491cf0cd59882788 (diff)
Upstream merge from viewer-neko
Diffstat (limited to 'indra/newview/lltoastpanel.h')
-rw-r--r--indra/newview/lltoastpanel.h19
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 */