diff options
author | McCabe Maxsted | 2009-04-24 15:40:59 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-04-24 15:40:59 -0700 |
commit | 6ba527aba9a09cde627309a4acd73b161b65e185 (patch) | |
tree | cacef790c5bbea1a035ae1f22ac0f863e5539b25 /linden/indra/newview/llimpanel.cpp | |
parent | Started 1.2.0 branch (diff) | |
download | meta-impy-6ba527aba9a09cde627309a4acd73b161b65e185.zip meta-impy-6ba527aba9a09cde627309a4acd73b161b65e185.tar.gz meta-impy-6ba527aba9a09cde627309a4acd73b161b65e185.tar.bz2 meta-impy-6ba527aba9a09cde627309a4acd73b161b65e185.tar.xz |
Communicate window now shows the number of unread IMs
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llimpanel.cpp | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index dede746..5a563a4 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "llconsole.h" | 49 | #include "llconsole.h" |
50 | #include "llfloater.h" | 50 | #include "llfloater.h" |
51 | #include "llfloatergroupinfo.h" | 51 | #include "llfloatergroupinfo.h" |
52 | #include "llfloaterchatterbox.h" | ||
52 | #include "llimview.h" | 53 | #include "llimview.h" |
53 | #include "llinventory.h" | 54 | #include "llinventory.h" |
54 | #include "llinventorymodel.h" | 55 | #include "llinventorymodel.h" |
@@ -1160,6 +1161,7 @@ void LLFloaterIMPanel::init(const std::string& session_label) | |||
1160 | FALSE); | 1161 | FALSE); |
1161 | 1162 | ||
1162 | setTitle(mSessionLabel); | 1163 | setTitle(mSessionLabel); |
1164 | |||
1163 | mInputEditor->setMaxTextLength(1023); | 1165 | mInputEditor->setMaxTextLength(1023); |
1164 | // enable line history support for instant message bar | 1166 | // enable line history support for instant message bar |
1165 | mInputEditor->setEnableLineHistory(TRUE); | 1167 | mInputEditor->setEnableLineHistory(TRUE); |
@@ -1472,7 +1474,21 @@ void LLFloaterIMPanel::addHistoryLine(const std::string &utf8msg, const LLColor4 | |||
1472 | && hostp | 1474 | && hostp |
1473 | && source != gAgent.getID()) | 1475 | && source != gAgent.getID()) |
1474 | { | 1476 | { |
1475 | hostp->setFloaterFlashing(this, TRUE); | 1477 | // Only start flashing on first update so we can |
1478 | // get the proper unread number of unread tabs here | ||
1479 | if (!hostp->isFloaterFlashing(this)) | ||
1480 | { | ||
1481 | hostp->setFloaterFlashing(this, TRUE); | ||
1482 | LLFloaterChatterBox::markAsUnread(true); | ||
1483 | } | ||
1484 | |||
1485 | //// Only increment the number of unread IMs if they're from individuals | ||
1486 | //// We increment the first received for the rest during new IM creation. | ||
1487 | //if (mDialog == IM_SESSION_P2P_INVITE || | ||
1488 | // mDialog == IM_NOTHING_SPECIAL) | ||
1489 | //{ | ||
1490 | // LLFloaterChatterBox::markAsUnread(true); | ||
1491 | //} | ||
1476 | } | 1492 | } |
1477 | } | 1493 | } |
1478 | 1494 | ||
@@ -1540,13 +1556,17 @@ void LLFloaterIMPanel::setVisible(BOOL b) | |||
1540 | LLMultiFloater* hostp = getHost(); | 1556 | LLMultiFloater* hostp = getHost(); |
1541 | if( b && hostp ) | 1557 | if( b && hostp ) |
1542 | { | 1558 | { |
1543 | hostp->setFloaterFlashing(this, FALSE); | 1559 | if (hostp->isFloaterFlashing(this)) |
1544 | 1560 | { | |
1545 | /* Don't change containing floater title - leave it "Instant Message" JC | 1561 | hostp->setFloaterFlashing(this, FALSE); |
1546 | LLUIString title = sTitleString; | 1562 | LLFloaterChatterBox::markAsUnread(false); |
1547 | title.setArg("[NAME]", mSessionLabel); | 1563 | |
1548 | hostp->setTitle( title ); | 1564 | /* Don't change containing floater title - leave it "Instant Message" JC |
1549 | */ | 1565 | LLUIString title = sTitleString; |
1566 | title.setArg("[NAME]", mSessionLabel); | ||
1567 | hostp->setTitle( title ); | ||
1568 | */ | ||
1569 | } | ||
1550 | } | 1570 | } |
1551 | } | 1571 | } |
1552 | 1572 | ||