summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastscripttextbox.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-12-16 11:12:15 -0500
committerLoren Shih <seraph@lindenlab.com>2010-12-16 11:12:15 -0500
commitee0055f5af672bef8402679fe8cc41717b0b9678 (patch)
treed2c025aa4d9469d98a0c8544e1634eedfbad0c84 /indra/newview/lltoastscripttextbox.cpp
parentad625861e120cae967d6bc60a9c1f4d86f4c2ed1 (diff)
parent73962e2134035855def0177db171d8eddaa193cb (diff)
Automated merge up from viewer-development
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();
+}