diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llimpanel.cpp | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llimpanel.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index 2529d04..3a947bc 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llimpanel.cpp | 2 | * @file llimpanel.cpp |
3 | * @brief LLIMPanel class definition | 3 | * @brief LLIMPanel class definition |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "llviewerprecompiledheaders.h" | 32 | #include "llviewerprecompiledheaders.h" |
@@ -934,7 +937,7 @@ void LLFloaterIMPanel::init(const LLString& session_label) | |||
934 | 937 | ||
935 | session_start.setArg("[NAME]", getTitle()); | 938 | session_start.setArg("[NAME]", getTitle()); |
936 | mSessionStartMsgPos = | 939 | mSessionStartMsgPos = |
937 | mHistoryEditor->getText().length(); | 940 | mHistoryEditor->getWText().length(); |
938 | 941 | ||
939 | addHistoryLine( | 942 | addHistoryLine( |
940 | session_start, | 943 | session_start, |
@@ -1634,7 +1637,7 @@ void LLFloaterIMPanel::sendMsg() | |||
1634 | 1637 | ||
1635 | gViewerStats->incStat(LLViewerStats::ST_IM_COUNT); | 1638 | gViewerStats->incStat(LLViewerStats::ST_IM_COUNT); |
1636 | } | 1639 | } |
1637 | mInputEditor->setText(""); | 1640 | mInputEditor->setText(LLString::null); |
1638 | 1641 | ||
1639 | // Don't need to actually send the typing stop message, the other | 1642 | // Don't need to actually send the typing stop message, the other |
1640 | // client will infer it from receiving the message. | 1643 | // client will infer it from receiving the message. |
@@ -1666,7 +1669,7 @@ void LLFloaterIMPanel::sessionInitReplyReceived(const LLUUID& session_id) | |||
1666 | //we assume the history editor hasn't moved at all since | 1669 | //we assume the history editor hasn't moved at all since |
1667 | //we added the starting session message | 1670 | //we added the starting session message |
1668 | //so, we count how many characters to remove | 1671 | //so, we count how many characters to remove |
1669 | S32 chars_to_remove = mHistoryEditor->getText().length() - | 1672 | S32 chars_to_remove = mHistoryEditor->getWText().length() - |
1670 | mSessionStartMsgPos; | 1673 | mSessionStartMsgPos; |
1671 | mHistoryEditor->removeTextFromEnd(chars_to_remove); | 1674 | mHistoryEditor->removeTextFromEnd(chars_to_remove); |
1672 | 1675 | ||
@@ -1764,7 +1767,7 @@ void LLFloaterIMPanel::addTypingIndicator(const std::string &name) | |||
1764 | // we may have lost a "stop-typing" packet, don't add it twice | 1767 | // we may have lost a "stop-typing" packet, don't add it twice |
1765 | if (!mOtherTyping) | 1768 | if (!mOtherTyping) |
1766 | { | 1769 | { |
1767 | mTypingLineStartIndex = mHistoryEditor->getText().length(); | 1770 | mTypingLineStartIndex = mHistoryEditor->getWText().length(); |
1768 | LLUIString typing_start = sTypingStartString; | 1771 | LLUIString typing_start = sTypingStartString; |
1769 | typing_start.setArg("[NAME]", name); | 1772 | typing_start.setArg("[NAME]", name); |
1770 | addHistoryLine(typing_start, gSavedSettings.getColor4("SystemChatColor"), false); | 1773 | addHistoryLine(typing_start, gSavedSettings.getColor4("SystemChatColor"), false); |
@@ -1784,7 +1787,7 @@ void LLFloaterIMPanel::removeTypingIndicator(const LLIMInfo* im_info) | |||
1784 | // Must do this first, otherwise addHistoryLine calls us again. | 1787 | // Must do this first, otherwise addHistoryLine calls us again. |
1785 | mOtherTyping = FALSE; | 1788 | mOtherTyping = FALSE; |
1786 | 1789 | ||
1787 | S32 chars_to_remove = mHistoryEditor->getText().length() - mTypingLineStartIndex; | 1790 | S32 chars_to_remove = mHistoryEditor->getWText().length() - mTypingLineStartIndex; |
1788 | mHistoryEditor->removeTextFromEnd(chars_to_remove); | 1791 | mHistoryEditor->removeTextFromEnd(chars_to_remove); |
1789 | if (im_info) | 1792 | if (im_info) |
1790 | { | 1793 | { |