diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-12-20 17:14:51 -0500 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-12-20 17:14:51 -0500 |
commit | 261ac32dda439fa1fc5708c78168967bf4d484e6 (patch) | |
tree | 22f0e531422f6b39b40ed943c80e13634a15e7a4 /indra/newview/lltoastscripttextbox.cpp | |
parent | 4bd6edc6b037195012583467a3e5e754f6a5af77 (diff) | |
parent | e9d21ba941a52665d7ad2ee3483c6ac7b7ec6486 (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(); +} |