summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastscripttextbox.cpp
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2010-12-15 15:47:09 -0800
committerDon Kjer <don@lindenlab.com>2010-12-15 15:47:09 -0800
commitb0ee1c818aa779edbb57f70b723132ce8d7347f7 (patch)
tree3bc9bac8b1403e0eb6eb7be7d7f07d4946f2ce8c /indra/newview/lltoastscripttextbox.cpp
parentc3958f75d2ef6c998d99e8e97e76e4de0468ecef (diff)
parent3e1f2083abe31d54b4b57ac7e8479b79461f6062 (diff)
Merge from don_linden/viewer-sandbox
Diffstat (limited to 'indra/newview/lltoastscripttextbox.cpp')
-rw-r--r--indra/newview/lltoastscripttextbox.cpp16
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();
+}