From 3fbc4a1dba0cf0e72061b2bd9761137f6256be4f Mon Sep 17 00:00:00 2001 From: TighMacFanatic Date: Thu, 12 May 2011 13:35:08 -0400 Subject: [PATCH 01/22] Added money transactions to local chat --- indra/newview/llviewermessage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 99844508f..8115bca09 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5256,6 +5256,10 @@ void process_money_balance_reply( LLMessageSystem* msg, void** ) args["MESSAGE"] = desc; LLNotifications::instance().add("SystemMessage", args); + // Also send notification to chat -- MC + LLChat chat(desc); + LLFloaterChat::addChat(desc); + // Once the 'recent' container gets large enough, chop some // off the beginning. const U32 MAX_LOOKBACK = 30; From 3f426fcb6734f6b8f08c8cdd314b8260065cebe7 Mon Sep 17 00:00:00 2001 From: TighMacFanatic Date: Thu, 12 May 2011 13:35:31 -0400 Subject: [PATCH 02/22] Added Open History button to local chat --- indra/newview/llfloaterchat.cpp | 11 +++++++++++ indra/newview/llfloaterchat.h | 1 + .../skins/default/xui/en-us/floater_chat_history.xml | 7 ++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index 3f5641558..88030b6b0 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -115,6 +115,7 @@ LLFloaterChat::LLFloaterChat(const LLSD& seed) childSetValue("translate chat", gSavedSettings.getBOOL("TranslateChat")); childSetVisible("Chat History Editor with mute",FALSE); childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); + childSetAction("chat_history_open", onClickChatHistoryOpen, this); setDefaultBtn("Chat"); } @@ -666,6 +667,16 @@ void LLFloaterChat::onClickToggleActiveSpeakers(void* userdata) //self->childSetVisible("active_speakers_panel", !self->childIsVisible("active_speakers_panel")); } +// static +void LLFloaterChat::onClickChatHistoryOpen(void* userdata) +{ + char command[256]; + sprintf(command, "\"%s\\%s\"", gDirUtilp->getPerAccountChatLogsDir().c_str(), "chat.txt"); + gViewerWindow->getWindow()->ShellEx(command); + + llinfos << command << llendl; +} + //static bool LLFloaterChat::visible(LLFloater* instance, const LLSD& key) { diff --git a/indra/newview/llfloaterchat.h b/indra/newview/llfloaterchat.h index f75a32b7e..775f21be6 100644 --- a/indra/newview/llfloaterchat.h +++ b/indra/newview/llfloaterchat.h @@ -82,6 +82,7 @@ public: static void onClickToggleShowMute(LLUICtrl* caller, void *data); static void onClickToggleTranslateChat(LLUICtrl* caller, void *data); static void onClickToggleActiveSpeakers(void* userdata); + static void onClickChatHistoryOpen(void* userdata); static void chatFromLogFile(LLLogChat::ELogLineType type,std::string line, void* userdata); static void loadHistory(); static void* createSpeakersPanel(void* data); diff --git a/indra/newview/skins/default/xui/en-us/floater_chat_history.xml b/indra/newview/skins/default/xui/en-us/floater_chat_history.xml index 8f954de46..63f0818f3 100644 --- a/indra/newview/skins/default/xui/en-us/floater_chat_history.xml +++ b/indra/newview/skins/default/xui/en-us/floater_chat_history.xml @@ -81,7 +81,12 @@ -