summaryrefslogtreecommitdiff
path: root/indra/newview/llimpanel.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-03-04 16:59:57 +0000
committerJosh Bell <josh@lindenlab.com>2008-03-04 16:59:57 +0000
commita10f9639004b4eedc3b6e7b624912ff4ebd8fdc5 (patch)
tree051625f9ac6a0d08f613cf11da318c3fd30b06a9 /indra/newview/llimpanel.cpp
parent62d9c7f76ce4953064fbc2a778ad4ecefb918e01 (diff)
svn merge -r 81304:81392 svn+ssh://svn.lindenlab.com/svn/linden/branches/maint-ui-8-merge
QAR-343 - merge maint-ui-7 and maint-ui-8 to release
Diffstat (limited to 'indra/newview/llimpanel.cpp')
-rw-r--r--indra/newview/llimpanel.cpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp
index 445095a12b..f0a48b9df5 100644
--- a/indra/newview/llimpanel.cpp
+++ b/indra/newview/llimpanel.cpp
@@ -2085,12 +2085,31 @@ void LLFloaterIMPanel::removeTypingIndicator(const LLIMInfo* im_info)
}
//static
-void LLFloaterIMPanel::chatFromLogFile(LLString line, void* userdata)
+void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, LLString line, void* userdata)
{
LLFloaterIMPanel* self = (LLFloaterIMPanel*)userdata;
-
+ LLUIString message = line;
+
+ switch (type)
+ {
+ case LLLogChat::LOG_EMPTY:
+ // add warning log enabled message
+ message = LLFloaterChat::getInstance()->getUIString("IM_logging_string");
+ break;
+ case LLLogChat::LOG_END:
+ // add log end message
+ message = LLFloaterChat::getInstance()->getUIString("IM_logging_string");
+ break;
+ case LLLogChat::LOG_LINE:
+ // just add normal lines from file
+ break;
+ default:
+ // nothing
+ break;
+ }
+
//self->addHistoryLine(line, LLColor4::grey, FALSE);
- self->mHistoryEditor->appendColoredText(line, false, true, LLColor4::grey);
+ self->mHistoryEditor->appendColoredText(message, false, true, LLColor4::grey);
}
void LLFloaterIMPanel::showSessionStartError(