summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastgroupnotifypanel.cpp
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-08-24 20:04:52 +0000
committerRichard Nelson <richard@lindenlab.com>2009-08-24 20:04:52 +0000
commit138bf1132262c479dbbd5c95195db46b1efd065f (patch)
treebe2286f245865008b4ca6d738194133542822d65 /indra/newview/lltoastgroupnotifypanel.cpp
parentc2619694fd2f94ad7da2d6e936494f4c16601212 (diff)
merge -r 130399-131510 skinning-21 -> viewer-2.0.0-3
DEV-11254 DEV-11254 DEV-2003: DEV-21567 DEV-37301 EXT-104 EXT-138 EXT-217 EXT-256 EXT-259 EXT-259 EXT-328 EXT-348 EXT-386 EXT-399 EXT-403 EXT-460 EXT-492 EXT-492 EXT-531 EXT-537 EXT-684 improved text editor (handles multiple fonts simultaneously as well as inline widgets)
Diffstat (limited to 'indra/newview/lltoastgroupnotifypanel.cpp')
-rw-r--r--indra/newview/lltoastgroupnotifypanel.cpp25
1 files changed, 15 insertions, 10 deletions
diff --git a/indra/newview/lltoastgroupnotifypanel.cpp b/indra/newview/lltoastgroupnotifypanel.cpp
index 8a61f6cfda..6f26b4077c 100644
--- a/indra/newview/lltoastgroupnotifypanel.cpp
+++ b/indra/newview/lltoastgroupnotifypanel.cpp
@@ -40,12 +40,12 @@
#include "lliconctrl.h"
#include "llnotify.h"
#include "lltextbox.h"
-#include "llviewertexteditor.h"
+#include "lltexteditor.h"
#include "lluiconstants.h"
#include "llui.h"
#include "llviewercontrol.h"
#include "lltrans.h"
-#include "llinitparam.h"
+#include "llstyle.h"
#include "llglheaders.h"
#include "llagent.h"
@@ -75,23 +75,25 @@ LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification
const std::string& from_name = payload["sender_name"].asString();
std::stringstream from;
from << from_name << "/" << groupData.mName;
- LLTextBox* pTitleText = this->getChild<LLTextBox>("title");
+ LLTextBox* pTitleText = getChild<LLTextBox>("title");
pTitleText->setValue(from.str());
//message body
const std::string& subject = payload["subject"].asString();
const std::string& message = payload["message"].asString();
- LLTextEditor* pMessageText = getChild< LLTextEditor>("message");
+ LLTextEditor* pMessageText = getChild<LLTextEditor>("message");
pMessageText->setValue("");
pMessageText->setEnabled(FALSE);
- pMessageText->setTakesFocus(FALSE);
- static const LLStyleSP headerstyle(new LLStyle(true, textColor,
- "SansSerifBig"));
- static const LLStyleSP datestyle(new LLStyle(true, textColor, "serif"));
+ LLStyle::Params date_style;
+ date_style.color = textColor;
+ date_style.font.name = "SANSSERIF";
- pMessageText->appendStyledText(subject + "\n",false,false,headerstyle);
+ LLStyle::Params header_style_params;
+ header_style_params.color = textColor;
+ header_style_params.font = LLFontGL::getFontSansSerifBig();
+ pMessageText->appendStyledText(subject + "\n",false,false,header_style_params);
std::string timeStr = "["+LLTrans::getString("UTCTimeWeek")+"],["
+LLTrans::getString("UTCTimeDay")+"] ["
@@ -106,7 +108,10 @@ LLToastGroupNotifyPanel::LLToastGroupNotifyPanel(LLNotificationPtr& notification
LLSD substitution;
substitution["datetime"] = (S32) notice_date.secondsSinceEpoch();
LLStringUtil::format(timeStr, substitution);
- pMessageText->appendStyledText(timeStr, false, false, datestyle);
+ LLStyle::Params date_style_params;
+ date_style_params.color = textColor;
+ date_style_params.font = LLFontGL::getFontMonospace();
+ pMessageText->appendStyledText(timeStr, false, false, date_style);
pMessageText->appendColoredText(std::string("\n\n") + message, false,
false, textColor);