diff options
author | Dessie Linden <dessie@lindenlab.com> | 2010-12-16 14:35:08 -0800 |
---|---|---|
committer | Dessie Linden <dessie@lindenlab.com> | 2010-12-16 14:35:08 -0800 |
commit | 8a6cb0399230953dda23b47edec07e5082e5dafd (patch) | |
tree | cf775805e18cff0ac6ba01160e15de126eb95e6c /indra/newview/lltoastscripttextbox.cpp | |
parent | aa212430857e59e317d65b61748365a2fc4eb0ba (diff) | |
parent | 73962e2134035855def0177db171d8eddaa193cb (diff) |
Merge
Diffstat (limited to 'indra/newview/lltoastscripttextbox.cpp')
-rw-r--r-- | indra/newview/lltoastscripttextbox.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/newview/lltoastscripttextbox.cpp b/indra/newview/lltoastscripttextbox.cpp index c013f521cc..2529ec865a 100644 --- a/indra/newview/lltoastscripttextbox.cpp +++ b/indra/newview/lltoastscripttextbox.cpp @@ -46,11 +46,16 @@ const S32 LLToastScriptTextbox::DEFAULT_MESSAGE_MAX_LINE_COUNT= 7; -LLToastScriptTextbox::LLToastScriptTextbox(LLNotificationPtr& notification) -: LLToastNotifyPanel(notification) +LLToastScriptTextbox::LLToastScriptTextbox(const LLNotificationPtr& notification) +: LLToastPanel(notification) { buildFromFile( "panel_notify_textbox.xml"); + LLTextEditor* text_editorp = getChild<LLTextEditor>("text_editor_box"); + text_editorp->setValue(notification->getMessage()); + + getChild<LLButton>("ignore_btn")->setClickedCallback(boost::bind(&LLToastScriptTextbox::onClickIgnore, this)); + const LLSD& payload = notification->getPayload(); //message body @@ -107,3 +112,10 @@ void LLToastScriptTextbox::onClickSubmit() llwarns << response << llendl; } } + +void LLToastScriptTextbox::onClickIgnore() +{ + LLSD response = mNotification->getResponseTemplate(); + mNotification->respond(response); + close(); +} |