Commit Graph

144 Commits (c20bd2dfee1068d5a23eef9a10d21c2035c0b324)

Author SHA1 Message Date
Richard Nelson c20bd2dfee cleaned up LLUICtrlFactory...
removed redundant functionality
moved buildPanel to LLPanel
2010-08-16 15:00:51 -07:00
Andrew Dyukov 55c887225f EXT-8010 ADDITIONAL FIX Fixed problems with avatar links underlining.
There were two problems:

1. Underlining broke when avatar's first and second name were on different lines.
2. There was no underline on hover for avatar miniinspector links in plaintext IM.

- First problem was caused by calling LLOnHoverChangeableTextSegment::draw() for the same segment twice- for first and second name that were
on different lines, while handleHover() was called only once. So handleHover() was called -> text was underlined -> first part of segment was
drawn underlined -> its draw set style back to normal -> second part of segment was drawn without underlining.

Fixed this by setting style back to normal only when drawing the last part of the segment.

- Second problem was caused by unusual way of appending link to text in chat history.

Changed it so that LLTextBase::appendText() now receives link not inside style params, but directly.
Also added "/inspect" ending to check in LLUrlEntryAgent::underlineOnHoverOnly().

Reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/833/

--HG--
branch : product-engine
2010-08-09 15:14:45 +03:00
Vadim Savchuk 4d40d670a1 EXT-8463 FIXED Crash in IM/chat floaters.
Reason
======

Each message in an IM/chat session has a header. The header shows an (i) button on hover and hides it when mouse leaves the header.

The button is shown by adding it as a header child and hidden by resetting the button parent.

So, if you close the IM session so that the hovered header doesn't get the MouseLeave message (e.g. by Ctrl+W),
the button gets destroyed. If you then open the IM session again and hover a message header, the destroyed button
is referenced, which leads to crash.

Fix
===

We make sure that when a hovered message header is being destroyed (by closing the IM session),
the button is detached (i.e. its parent gets reset), so that it remains usable.
I also add a couple of checks for the case when the (i) button fails to construct from XML file.

Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/783/

--HG--
branch : product-engine
2010-07-20 19:59:34 +03:00
Tofu Linden f954db0263 Checker: FORWARD_NULL
Function: LLChatHistory::appendMessage(const LLChat &, const LLSD &, const LLStyle::Params &)
File: /indra/newview/llchathistory.cpp
2010-07-05 11:54:50 +01:00
Yuri Chebotarev b14e19c1ac EXT-7820 FIX escape only parameters of slurl
reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/614/

--HG--
branch : product-engine
2010-06-22 15:46:17 +03:00
Yuri Chebotarev 884e08b509 EXT-6527 FIX Introduce new plain_text flag in LLTextBase and prevent image segment from being created if this flag is set.
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/587/

--HG--
branch : product-engine
2010-06-18 10:47:49 +03:00
Igor Borovkov 33d91c0a39 EXT-7137 FIXED nearby chat messages coming from non-null id with from name "Second Life" are no longer considered "system messages"
Messages coming from objects named "Second Life" were mistaken for messages coming from system
under the name "Second Life".

It is impossible to distinguish using the from_id and from_name two cases:
- messages coming from system under the name "Second Life" but under the id of an object
- messages comding from object named "Second Life"

Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/556/

--HG--
branch : product-engine
2010-06-11 19:21:26 +03:00
Vladimir Pchelko ac9543be9e EXT-6654 FIXED Using escaped (LLURI::escape()) text for objects link.
reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/543/

--HG--
branch : product-engine
2010-06-10 16:32:41 +03:00
Richard Linden 813d4cc8a3 added newline at end 2010-06-01 18:51:26 -07:00
Richard Linden 2646eb8166 EXT-7557 - About Second Life > Credits does not open with scrollbar all the way at the top
also made floaters not update title label every time they are resized
2010-05-29 13:31:37 -07:00
Alexei Arabadji 5ba494c4fa EXT-7363 FIXED Provided passing owner ID through chat object since it is necessary to correctly build objectim SLURL when chat history reloads content.
reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/420/

--HG--
branch : product-engine
2010-05-20 16:47:33 +03:00
Roxie Linden 8ba5517a08 Automated merge 2010-04-07 13:20:33 -07:00
Roxie Linden 658ccc3e85 Re-insert backed out SLE checkin so we can fix it 2010-04-07 11:08:04 -07:00
Tofu Linden 8da371b0f0 merge 2010-04-07 12:16:36 +01:00
Tofu Linden 0bb3f144c0 Backed out changeset 63b699f90efd 2010-04-07 10:37:07 +01:00
Tofu Linden e46f128d20 PE merge 2010-04-02 12:35:24 +01:00
Eugene Mutavchi 32283a93e0 Fixed normal bug EXT-6357 (SLapp for object chat does display an inspector) - added new LLUrlEntry to support 'secondlife:///app/objectim/{UUID}/' SLapps. Fixed passing the SLURL to inspect_remote_object floater.
Reviewed by Vadim Savchuk, https://codereview.productengine.com/secondlife/r/158/

--HG--
branch : product-engine
2010-04-02 13:36:58 +03:00
Eugene Mutavchi 81582cb376 Fixed normal bug EXT-5831(Do not apply font color to timestamps in chat history) - added new 'ChatTimestampColor' color setting, which is set to timestamps for chat history messages in text mode which are not from log.
Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/160/.

--HG--
branch : product-engine
2010-04-02 13:15:50 +03:00
Roxie Linden 9523c70f9d DEV-45809 - Merge Second Life Enterprise changes into viewer 2.x trunk
Includes: DEV-45800, DEV-45803 - Grid Manager
DEV-45804 - SLURL refactor
DEV-45801 - Single username field (for Identity Evolution and SLE Ldap)
Also,
Includes Certificate Management code allowing the viewer to connect to
grids not signed by a well know key (just like any web browser).  Also
contains secure storage for things like passwords.
The security/certificate code is modular with the intention of adding modules
to directly use the operating system facilities for crypto if available.
(that's much more secure than we'll ever be)

Also, refactor of voice to modularize it, and add a diamondware voice module.
CR:  Aimee, James, Lynx, Mani, Karina and a list of thousands
2010-04-02 02:03:21 -07:00
Roxie Linden 86dc5bce1a Automated merge 2010-03-29 16:24:58 -07:00
Kent Quirk 32253813b4 EXT-3818 -- absolute minimal fix for Viewer 2, can be better fixed in 2.1. Previous proposed fix caused a crash on at least one machine, too risky. 2010-03-26 17:05:29 -04:00
Kent Quirk 1ed3117a6d Backed out changeset 686628355e4a as it caused a crash. 2010-03-26 11:38:42 -04:00
Kent Quirk d2cbc6c5b6 Fix for EXT-3818 -- back out some code that was put in for EXT-6373, but overreached. 2010-03-26 10:43:07 -04:00
Alexei Arabadji 3318c8f09e fixed EXT-3818 “[BSI] plain text chat has too much space between lines”,
To fix EXT-6373 I added vertical padding between posts in plain-text and
unified padding in default mode of IM/chat history.
Now I'm backing out the changes to plain-text mode that led to EXT-3818.
reviewed by Leyla Farazha at
https://codereview.productengine.com/secondlife/r/95/

--HG--
branch : product-engine
2010-03-25 18:06:48 +02:00
Alexei Arabadji 920d54297f fixed major EXT-6500 “Message Well counter changes to '-1' after
plain text chat was enabled while unresolved offer was in hided IM window”,
Added check to LLToastNotifyPanel destructor whether we should close
notification since notification will be reused by IM floater when reload
messages, the rule is: if LLToastNotifyPanel destroying but IM floater is
exists – we shouldn't close notification.
The problem is that notification was incorrectly deleted when IM floater
reloads messages on chat log fromat change event.
reviewed by Vadim Savchuk at
https://codereview.productengine.com/secondlife/r/80/

--HG--
branch : product-engine
2010-03-25 17:09:20 +02:00
Richard Linden 3d97712755 merge 2010-03-23 11:29:12 -07:00
Richard Nelson 91b90b0a17 EXT-5549 Can't select last character in chat window 2010-03-23 11:18:01 -07:00
Richard Linden b30488f9ee merge 2010-03-23 10:13:31 -07:00
Roxie Linden 18b7ab0018 Weekly automated merge from viewer 2.0 2010-03-22 16:12:41 -07:00
Richard Nelson 3dc1bcd6ff merge 2010-03-19 16:03:08 -07:00
Richard Nelson 8992f058e0 merge 2010-03-19 14:22:40 -07:00
Andrew Dyukov ab23ae0229 Implemented normal task EXT-6379 ([TRUNCATION] [EN XUI REDESIGN] - Receiving Landmarks).
- Button order was fixed in changeset dd44dac25177. It was an implemetation of EXT-5906 (Reverse buttons order in the inventory offers). That changeset
was included in cumulative diff at https://codereview.productengine.com/secondlife/r/52/ and already made its way into viewer 2-0.

- This changeset removes inventory offer button truncation in IM in German locale by increasing default width of IM floater and decreasing distance between buttons.

Reviewed by Vadim at https://codereview.productengine.com/secondlife/r/77/

--HG--
branch : product-engine
2010-03-19 20:49:02 +02:00
Richard Linden fd096e5011 EXT-5549 - Can't Select Last Character In Chat Window 2010-03-18 17:12:43 -07:00
Alexei Arabadji 00b8bdfe60 Automated merge with https://hg.productengine.com/secondlife/viewer-offers/
--HG--
branch : product-engine
2010-03-17 16:31:05 +02:00
Alexei Arabadji 31370e1aae fixed EXT-6373 “Consecutive offer messages are unreadable in the IM log”,
added spacer panel for IM chat plaintext mode;

--HG--
branch : product-engine
2010-03-17 16:27:35 +02:00
Dmitry Zaporozhan b2cc39d462 (work in progress) low task EXT-6377 - Embedded offer panels aren't reshaped by height on IM window resize
Added new Toast panel class for use in IM floater. New class handles IM floater reshape and updates Toast height.

--HG--
branch : product-engine
2010-03-17 13:26:34 +02:00
Andrew Dyukov 66b60a71f1 Implemented normal subtasks EXT-5906 (Reverse buttons order in the inventory offers) and EXT-5907 (Reverse buttons order in the friendship offer).
- Used reverse iterator when iterating over control list in LLChatHistory::appendMessage().

--HG--
branch : product-engine
2010-03-04 19:37:26 +02:00
Mike Antipov 08ede585ce Work on major bug EXT-5589 (Notifications button falls under side panel)
-- updated LLLayoutStack to process "max_width" & "max_height" attributes for layout_panel.

--HG--
branch : product-engine
2010-02-24 17:13:56 +02:00
Igor Borovkov 6575b685e9 fixed EXT-5526 Objects are shown as persons in the chat history from previous sessions
- new chat source type CHAT_SOURCE_UNKNOWN for avatar names not in cache and object names consisting of two words (avatar names like)
- new icon (unknown_icon.png) for message headers () of nearby chat messagses coming from CHAT_SOURCE_UNKNOWN
- context menu no longer displayed for object names from chat history (no UUIDs)
- double click on message headers in nearby chat no longer opens Inspector (no UUIDs)
- object names (loaded from chat history) in nearby chat are no longer SLURLed (no UUIDs for them)

--HG--
branch : product-engine
2010-02-24 17:18:05 +02:00
Igor Borovkov 25078eb1f9 fixed EXT-5292 'i' btn is visible through inspector
--HG--
branch : product-engine
2010-02-22 17:09:03 +02:00
Eugene Mutavchi 10c5f2f080 Implemented low task EXT-5215 (Disable showing full yyyy/mm/dd timestamp for messages (nearby chat/im) received today)
--HG--
branch : product-engine
2010-02-19 13:36:47 +02:00
Alexei Arabadji eec9f20d74 fixed EXT-5006 “One inventory offer cause blinking of both Conversations and
Notifications wells”,
embedded inventory offer panel into IM window;

--HG--
branch : product-engine
2010-02-18 16:05:11 +02:00
Igor Borovkov f52e703694 completed EXT-5427 Disable appearance of "i" button for SL system messages in IM and other chats
--HG--
branch : product-engine
2010-02-17 18:42:20 +02:00
Igor Borovkov 73d192a408 fixed EXT-5367 Emotes '/me says ...' out of context when nearby chat or group chat window expanded.
--HG--
branch : product-engine
2010-02-17 17:43:13 +02:00
Igor Borovkov 4c5a998f79 fixed EXT-5456 Messages from objects are shownas messages from Second Life in nearby chat history from the prev session
Completed things which were agreed on:
- system messages in the log file are prepended with "Second Life:" after the timestamp
- object names set which are parsed extended to object names consisting with any number of words

Side effect:
"Second Life:" is shown as From Name in Nearby Chat when in plain text chat

--HG--
branch : product-engine
2010-02-17 16:09:50 +02:00
Igor Borovkov 5a1ef0214a fixed EXT-5010 Redundant resident name in the IM log for offers
--HG--
branch : product-engine
2010-02-15 16:43:52 +02:00
Igor Borovkov 8b609519ea fixed reopened EXT-926 System notification toast has avatar's icon
--HG--
branch : product-engine
2010-02-12 15:15:49 +02:00
Igor Borovkov a138401963 implemented graying out chat history from log - EXT-5102 IM chat from previous sessions should be grayed out
--HG--
branch : product-engine
2010-02-10 16:56:12 +02:00
Igor Borovkov 3036f10e38 fixed for plain text chat history EXT-5279 Resident Names should Appear in Selected URL Color
--HG--
branch : product-engine
2010-02-10 16:26:28 +02:00
Ychebotarev ProductEngine 3eeb4e6599 partitial fix for normal task EXT-2957 [BSI] Implement object icon for chat from objects, instead of using generic image for missing profile picture
--HG--
branch : product-engine
2010-02-10 14:35:29 +02:00