Commit Graph

445 Commits (9edad026f4494de1a6f02ecc3f477faa27a361ef)

Author SHA1 Message Date
mberezhnoy 8e924c8505 CHUI-823 ([CHUIBUG]Triple-clicking on the scroll back button in the CHUI causes all the conversation to be selected) 2013-03-07 13:49:29 +02:00
Richard Linden f07b9c2c69 renamed LLTrace stat gathering classes/methods to make the structure of LLTrace clearer
Count becomes CountStatHandle
Count.sum becomes sum(Count, value), etc.
2013-03-06 11:08:25 -08:00
Mnikolenko ProductEngine 477920b138 CHUI-809 FIXED "Start IM" menu item is added 2013-03-05 15:40:31 +02:00
Mnikolenko ProductEngine 4b43672690 CHUI-751 FIXED Triple click is now handled. 2013-02-11 15:22:24 +02:00
maksymsproductengine 46294bdcac CHUI-731 FIXED Viewer crashed while deleting text from IM message 2013-02-08 19:54:34 +02:00
Tank_Master 52d9b07503 Merge viewer-bear 2013-09-12 21:15:34 -07:00
Ansariel a9258d9510 Add enable check for remove friend option in agent slurl context menu 2013-08-28 22:41:18 +02:00
Ansariel 2d178f9863 Remove now duplicate registration of Url.SendIM commit function in LLTextBase 2013-08-28 19:26:54 +02:00
Tank_Master 5a8d94c50f Merge LL 3.6.4 pass 1 2013-08-28 00:10:39 -07:00
Cinders 94f55ec769 FIRE-11437 - Fix chat moderator styling. Also, revert my changes to llstylemap.cpp, grab a speaker's slurl directly 2013-08-23 08:41:48 -06:00
Cinders 490f6bc1cc FIRE-11330 Part 1 - Don't style chat name slurls as html links 2013-08-21 13:12:29 -06:00
ziree 5f8833aaf6 Fix text bleeding at the top edge of scrolling text boxes. 2013-08-19 13:52:58 +02:00
Ansariel ab5afa556f FIRE-11224: Introduce FSRegistrarUtils class to be able to run enabled checks from LLUI and disable context menu items in scroll lists and text areas 2013-08-06 15:03:24 +02:00
Ansariel f7b82b7744 Prevent unnecessary calculations in LLNormalTextSegment::getNumChars 2013-07-28 21:47:49 +02:00
Nicky 813bd3653a Don't make excessive string copies in LLNormalTextSegment::getNumChars to avoid massive frame stalls. 2013-07-28 20:48:43 +02:00
Ansariel 6d2a6151f6 Remove old on-the-fly texteditor font change code that apparrently has now been implemented by LL 2013-07-23 16:36:09 +02:00
Cinders fd73af3125 Fix right-click send IM 2013-07-16 19:00:38 -06:00
Tank_Master d4640277d0 Merge LL 3.5.3 release. 2013-07-09 16:24:58 -07:00
Ansariel 4bb3fab19e Fix remaining linker error. Compiles and links now... 2013-06-30 13:12:41 +02:00
Cinders c7196a5d4d Fix llui build 2013-06-26 18:11:11 -06:00
Tank_Master 14001c54df Gastly CHUI merge pass 1, don't count on anything to work. 2013-06-26 12:14:54 -07:00
Richard Linden cbff0e7ab8 SH-3468 WIP add memory tracking base class
attempted fix for gcc compile errors
can't use typeid() on a class that doesn't have a method
defined in a translation unit
fix is to force classes deriving from LLMemTrackable to
use their own static member named sMemStat
2013-01-04 13:48:35 -08:00
Richard Linden 1f56e57008 SH-3468 WIP add memory tracking base class
created memory tracking trace type
instrumented a few classes with memory tracking
2012-12-18 00:58:26 -08:00
William Todd Stinson 0356ef61cf CHUI-243: Add calls the parent class's implementation for onFocusReceived() and onFocusLost() to ensure that the focus change messages are properly propagated. 2012-10-19 16:21:35 -07:00
Gilbert Gonzales 49ad7fd4b5 CHUI-410: Post code review submit, changed useLabel() to return bool instead of BOOL. Adjusted code accordingly. 2012-10-17 17:52:10 -07:00
Gilbert Gonzales 05a72687d8 CHUI-410: Now when a converation floater is focused the default text 'To <Some User>' displays only when the text input field is empty. 2012-10-17 14:55:36 -07:00
Todd Stinson 3e038cd71b Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-release. 2012-07-27 12:53:54 -07:00
Tank_Master ea86bb88c3 first pass merge 2013-02-04 10:52:32 -08:00
Nicky 8704782bb4 Crashfix; make sure spellcheck does not run past end of string buffer. 2012-12-29 18:55:51 +01:00
Don Kjer c06c35609c Updating linux build to gcc4.6 2012-10-11 00:09:04 +00:00
Don Kjer cf7eb79fa7 Removed most llappearance -> llui dependencies (LLTrans remains). Moved LLInventoryIcon::EIconName into LLInventoryType. Moved LLInventoryIcon back to newview. Moved LLUI gl_* functions into llrender. 2012-09-08 04:39:11 +00:00
Ansariel 8cef8cde8c Set FSFixCursorPosition to false as default & added some comments about the changes in 31082 (730b485e3553) 2012-11-29 00:41:20 +01:00
Ansariel c5cddceed3 Experimental fix for FIRE-2983, FIRE-3534 & FIRE-4650 for QA testing:
This is a modified version of the fix for FIRE-1574 and comes with an additional debug setting "FSFixCursorPosition" to disable the FIRE-1574 fix completely for QA testing
2012-11-26 23:59:13 +01:00
Ansariel eb39d5d71b Added option to not show icon for SLURL links & moved left-side icon directly in front of the link in contrast to pre-EXP-1953 2012-10-28 20:12:56 +01:00
Ansariel 3a9f5a553a Added option to show icons of SLURLs on either left or right side of the link 2012-10-28 19:44:02 +01:00
Paul ProductEngine 9ab042dd1d CHUI-196 FIXED (Chat text entry area gets resized unexpectedly with certain user display names)
- Fixed label length calculating
2012-07-06 17:49:02 +03:00
Paul ProductEngine a7831406ab CHUI-180 FIXED (Started an ad hoc IM spams log with drawtext warning)
- Don't draw TextBase context if it's empty and in focus
2012-06-27 18:52:08 +03:00
Dave Parks 9e9d32de38 merge 2012-06-22 14:04:33 -05:00
Oz Linden 4397516ca5 merge changes for DRTVWR-168 2012-06-21 17:50:41 -04:00
Paul ProductEngine 18aabdfd3d CHUI-127 FIXED (Make chat field auto resizable)
- Replaced LLLineEditor with newly created LLChatEntry
- Moved some functionality (such as setting label) to the LLTextBase as it can be useful to the other derived classes
2012-06-19 09:44:40 +03:00
Todd Stinson 32063b5999 EXP-1953: Altering the behavior of building an LLTextBase such that icons are appended in place rather than prepended out of context. 2012-06-12 16:58:59 -07:00
Kitty Barnett 80b1a2c0a8 STORM-276 Insert braces around if/for/while loops 2012-06-11 13:39:45 +02:00
Ansariel 732fc8918c Added "offerteleport" FS SLurl command and wired it up in agent SLurl context menu 2012-09-07 18:26:19 +02:00
Tank_Master 8cb09ca444 Merge to FS LGPL 29865 2012-08-30 15:45:02 -07:00
Tank_Master cb24ec2e0d merge LL 3.3.4 beta
autoreplace does not work (needs a hook in nearby chat), no cmd line option to add new stuff
spellcheck only works when packaged
2012-07-16 21:59:14 -07:00
Tank_Master 0d4ca6478f removed spellcheck, to be replaced by LL's version 2012-07-10 23:57:05 -07:00
Ansariel 80be39c63a Added new Firestorm specific SLurl command and command handler with some basic functionality:
* Zoom to avatar
* Teleport to avatar
* Track avatar
all from the SLurl context menu in chat and contact list
2012-08-12 19:00:20 +02:00
Kitty Barnett 34e7226ac8 STORM-276 FIXED Squiggles overflow line editor height when font size is set to large
- Also reduced squiggle width from 6 to 4 and prevented running past the end of a word
2012-05-15 13:13:44 +02:00
Oz Linden 95090c5d1e merge changes for version 3.3.1 2012-05-08 15:51:56 -04:00
Nat Goodspeed 0249a0d1e7 Automated merge with http://hg.secondlife.com/viewer-release 2012-04-26 14:07:09 -04:00
Kelly Washington 6d3be57d33 SEC-995 FIX viewer is easily spammed to death by chat
removed a couple more unnecessary string copies from unfortunate LLSD behavior.
reviewed with simon, post review from Richard.
2012-04-25 11:26:54 -07:00
Richard Linden 4472354b54 SEC-995 FIX viewer is easily spammed to death by chat
removed unnecessary string copies from chat message handling
2012-04-23 18:48:43 -07:00
Tank_Master e61c20d499 Merge LL 3.3.1 Viewer Release 2012-04-26 17:31:35 -07:00
Richard Linden 11c53b444d EXP-1884 FIX Errors in navigating text when editing Landmarks and picks once a vertical scrollbar is shown
fixed horizontal scrollbar showing up in local chat
2012-02-15 18:12:26 -08:00
Richard Linden 6a6cf3aa78 EXP-1884 FIX Errors in navigating text when editing Landmarks and picks once a vertical scrollbar is shown 2012-02-10 16:35:22 -08:00
Richard Linden aa345bd8f3 EXP-1874 FIX Unexpected scrollbar in text notification 2012-02-09 17:14:37 -08:00
Kitty Barnett 9c792e3376 STORM-276 FIXED Misspellings that span multiple lines don't have their squiggly lines drawn correctly 2012-02-14 22:33:28 +01:00
Kitty Barnett c34b440fec STORM-276 FIXED Typing in an LLTextEditor freezes the viewer 2012-02-14 21:57:58 +01:00
Leslie Linden ba32b72a9e Mac build fix -- added missing enumeration from switch 2012-02-06 16:20:38 -08:00
Richard Linden e854db0645 EXP-1513 FIX Underscore ( _ ) fails to show in first chat entry in Local Chat
EXP-1854 FIX Text positioning in mini inspector a couple pixels too low
2012-02-03 19:04:36 -08:00
Kitty Barnett 49e0c38ee8 STORM-276 Added preferences panel 2012-02-03 19:45:00 +01:00
Kitty Barnett a9d1121977 STORM-276 Added spellcheck functionality to the LLTextEditor control 2012-02-03 15:20:34 +01:00
Richard Linden c47c31fdbf EXP-1513 FIX Underscore ( _ ) fails to show in first chat entry in Local Chat 2012-01-31 17:51:43 -08:00
Richard Linden cf02780ddf EXP-1513 WIP Underscore ( _ ) fails to show in first chat entry in Local Chat
cleaned up font positioning on buttons
2012-01-27 17:48:08 -08:00
ziree 85d9e702a6 Fixed text editors scrolling when border is visible. Causes slight overpainting on the border, but that's pretty marginal. To be revised later, hopefully. 2012-03-05 17:40:33 +01:00
Kitty Barnett 6f03000abe - internal : change the font of an LLTextBase derived control at run-time 2012-01-10 20:30:48 +01:00
Nicky 5f99af5951 Merge up to 26351 / 0c99a89542b0 (FS tip). 2012-01-31 11:52:14 +01:00
Nicky 22b19c797f Prevent crash in spellchecking if indices round of words bound. 2012-01-15 04:07:12 +01:00
Richard Linden 1b1ad93c5d EXP-1512 FIX changing UI size changes cursor position in notecards
fixed case where adding text between 2 consecutive newlines created gibberish
2012-01-03 12:21:30 -08:00
Richard Linden 0aa2c7343a EXP-1512 FIX changing UI size changes cursor position in notecards 2011-12-08 20:36:47 -08:00
Nicky 6958381112 Merge up to 26092/6ceebf5ce17b; Branch Chat-NearbyChat from catznip-3.2.0 (http:///bitbucket.org/Kitty_Barnett/catznip-3.2.0).
This will enable chat docking/undocking from contacts floater again.
2012-01-23 14:56:47 +01:00
Nicky 161c1b019f Merge up from 24496 / a656486925e8 (FS tip) to 25952 / 931cb0061118 (V/Dev FUI tip)
Observations and broken stuff so far:
- LLSideTray is gone.
- LLBottomTray is gone.
- LLFloaterSnapshot was changed and gave lots of merge conflicts. Flickr upload will be broken.
- LLNearbyChat is derived from LLPanel now. That broke quite some stuff rearding autohiding and docking of chatbar.
- Profile floaters are gone and all web based now.
- Russian translation gave huge mere conflicts with the new russian xml files from LL. Unmergeable. I took the LL files.
- XUI files in general will need some love and testing.
2012-01-17 17:57:52 +01:00
Dave Parks 8a8e9ccdb6 SH-2652 Don't allocate 6000+ strings every frame 2011-11-04 16:15:05 -05:00
Kitty Barnett 480808d5f3 Merged with default tip (Revision 913d90c3225b)
--HG--
branch : Chat-NearbyChat
2011-10-27 16:49:31 +02:00
Kitty Barnett 7768379ffb Merged with Chat-NearbyChat head from SL-2.8
--HG--
branch : Chat-NearbyChat
2011-09-29 00:32:58 +02:00
Kitty Barnett a200a71ea8 - internal : reviewed for SL-3.0
--HG--
branch : Chat-NearbyChat
2011-09-19 23:53:06 +02:00
Kitty Barnett 121978b125 - fixed : "Click here to chat" hint text doesn't dissapear when focus is given to the multiline chatbar (thankies Mistress)
--HG--
branch : Chat-NearbyChat
2011-09-05 23:42:25 +02:00
Kitty Barnett e6b55bafb0 - added : multi-line chat bar to the nearby chat history floater
--HG--
branch : Chat-NearbyChat
2011-08-20 12:39:37 +02:00
Seth ProductEngine aad5943ab0 STORM-1234 FIXED text editor selection which was skipping the last character in line.
Added handling of the wrapped lines case when calculating the starting position for selection.

The bug is a regression caused by the fix of STORM-320 which was dealing with calculating the position of the input cursor while navigating through the lines of text with word wrapping enabled.
2011-07-14 23:46:27 +03:00
Richard Linden 2595d53ded Automated merge with http://hg.secondlife.com/viewer-development 2011-05-25 18:14:55 -07:00
Richard Linden a8405dea54 EXP-829 FIX Text Box Alignment bug
EXP-755 FIX [PUBLIC] 'Search' and 'World Map' links in Sidebar are unclickable

fixed issues with UI scaling and text layout as well as incorrect text editor rect transforms


reviewed by Callum
2011-05-25 18:10:58 -07:00
brad kittenbrink b3dddbf30b Fix for error in debug build accessing beyond the end of a vector.
reviewed by davep.
2011-05-12 16:09:29 -07:00
Dave Parks a25f898703 merge 2011-05-02 14:52:12 -05:00
seth_productengine 2147889a2e STORM-320 FIXED navigation with arrow keys through the text with enabled word-wrapping. 2011-04-20 01:17:41 +03:00
Seth ProductEngine c94d687539 STORM-721 FIXED Fix for text clipping in a textbox without a scroller.
Committed on behalf of Richard Linden:
This patch makes clipping work consistently with text and embedded widgets. The widgets will only be displayed if the corresponding text they are embedded in is displayed.  There is also a new param "clip" for text widgets that can be used to disable clipping entirely.  I introduced this as a potential work around due to the fact that we *used* to assume that text was never clipped in the vertical direction unless we had scrolling turned on.  This hasn't been the case for over a year, but now we can selectively turn off vertical text clipping with (clip="false") if we have to.
2011-04-10 00:31:52 +03:00
Dave Parks 3b5d6eed12 merge 2011-04-19 14:55:11 -05:00
Loren Shih 6a59861bde Automated merge up from viewer-development 2010-12-07 14:56:36 -05:00
Paul Guslisty e997a09343 STORM-593 FIXED Make transparent texteditor and lineeditor
Reason: If some child of transparent LLFloater has a visible non-transparent background then this part of floater is non-transparent. As a result floater became partially transparent.

Solution: When transparent floater changes focus, iterate through its children and set corresponding (corresponding to whether control in active or in inactive floater see STORM-535) transparency value.

- Added method LLUICtrl::getCurrentTransparency. This method calculates transparency level of a control. Calculated value should be used as an alpha chennel value in case we want this control to be transparent. For now this method is used by LLFloater to adjust transparency of its children.

- Added calculating of transparecny level for: LLLineEditor, LLTextBase, LLinventoryListItem, LLScrollContainer, LLScrollListCtrl, LLAccrodionCtrlTab.

- Added method LLFlaoter::updateChildrenTransparency which updates transparency value of its children
2010-11-24 19:12:02 +02:00
Dave Parks d682394d02 merge 2010-11-11 11:23:10 -06:00
Loren Shih a5e63b1dc0 Merge 2010-11-08 12:57:26 -05:00
Dave Parks 7aff5c6ff9 Fix for crash when clicking "about land" and land has no owner or something.
Reviewed by Nyx.
2010-11-02 16:28:56 -05:00
Kyle Ambroff fa17864382 Merge with lindenlab/viewer-development 2010-10-29 19:52:01 -07:00
Vadim ProductEngine 463969116f STORM-501 FIXED Script-editor shows ERRORS in the wrong line.
LLTextBase::setCursor() sometimes failed to work properly if line wrapping was enabled.
This is a slightly optimized version of the patch made by Satomi Ahn.
2010-10-29 23:48:46 +03:00
Kyle Ambroff f940b49d0f Merge with andrew 2010-10-21 15:56:13 -07:00
Loren Shih ae5cf3cefa Automated merge up from viewer-development 2010-10-21 10:58:23 -04:00
ziree a912e5b24c Fix script editor not accepting different fonts in skinning. 2011-12-29 01:21:53 +01:00
ziree 8bd0295f3d Performance tweaks: do not allocate strings where they can be const. Partly from davep, SH-2652. 2011-12-10 00:26:39 +01:00
Tonya Souther a1a402bde7 Prevent clickable links from extending past the text area. From Dawa Gurbux, fixes FIRE-2983. 2011-11-11 09:57:24 -06:00
Kitty Barnett f678ff9919 Merged in spell checker branch 2011-09-18 19:37:29 +02:00
Kitty Barnett 06d5fc49eb - fixed : the first word of a line or text editor is shown as misspelled if it doesn't start with an alpha character
-> i.e. "/0Hello world" on the nearby chat bar would show "Hello" as being misspelled

--HG--
branch : Misc-Spellcheck
2011-09-18 15:12:32 +02:00
Kitty Barnett 32861cedb7 - fixed : newly typed text in a text editor isn't spell checked
--HG--
branch : Misc-Spellcheck
2011-09-09 15:48:06 +02:00
Kitty Barnett 8edfff7669 - changed : don't provide feedback on the current word while it's still being typed/edited (for text editors)
--HG--
branch : Misc-Spellcheck
2011-09-08 21:15:19 +02:00
Kitty Barnett 72a9670d7c - internal : only spell check segments that contain actual text
--HG--
branch : Misc-Spellcheck
2011-09-08 00:12:12 +02:00
Kitty Barnett 864bd87857 - added : basic spell checking functionality for the LLTextEditor (LLTextBase) control
--HG--
branch : Misc-Spellcheck
2011-09-07 22:48:23 +02:00
Arrehn 9fd0edb326 Initial 2.8.3+ merge, Tozh & Arrehn
Issues: Graphics preferences tab, lighting, depth of field
Issues: Color preferences tab, new direct chat
Issues: Build floater Mesh build tab
Issues: German translations of build, viewer menus
Issues: pipeline issues with mac, possibly other things
Issues: uploading content / temp content
Issues: Windlight quickprefs, parcel windlight, RLVa windlight
2011-08-26 11:18:49 -04:00
Arrehn 61cb88c510 Mini-merge up to FS-tip. Note: Reverted OSX Lion build sdk changes, due to failure to produce a viable build on snowleopard. 2011-08-05 11:35:59 -04:00
ziree ac28f59c9e Experimental fix/patch for FIRE-1574 - Cursor displacement in notecards should be greatly reduced now. 2011-07-12 16:41:53 +02:00
Arrehn a30a9064b1 Merge Firestorm up to LL 2.4 Release. (initial pass)
RLVa needs additional merging
2011-01-18 00:50:43 -05:00
Arrehn a4549db263 FIRE-119 VWR-17751 Satomi Ahn - Script editors reported on wrong line
Thanks Satomi!
2010-12-11 19:51:34 -05:00
Arrehn d0d3e716dc Rolling back before back RLV merge 2010-11-04 10:02:01 -07:00
Loren Shih 7687653871 Automated merge up from viewer-development 2010-10-20 12:18:33 -04:00
Vadim ProductEngine d97355a19f STORM-390 FIXED "Place Profile" appeared instead of "Resident Profile" after clicking on user name in a nearby chat toast.
Now clicking an avatar name opens avatar profile; clicking an object name opens object inspector.

This change rolls back the fix of STORM-358.
2010-10-19 19:55:19 +03:00
Oz Linden a5619d16f7 correct licenses (fix problem with license change merge) 2010-10-13 07:24:37 -04:00
Andrew Meadows ac500df89e Post-convert merge by convert_monolith.py from http://hg.lindenlab.com/brad/viewer-simconsole 2010-09-10 15:39:20 -07:00
Aimee Linden ffae589843 Post-convert merge by convert_monolith.py from /Users/Aimee/Documents/Work/Linden-Lab/Development/viewer/convert/viewer-identity-evolution 2010-09-03 17:41:39 +01:00
Aimee Linden 0a74d15935 Merge between james/viewer-identity-evolution and dessie/viewer-public 2010-09-03 15:30:16 +01:00
Tofu Linden 1d89a80ba7 merge 2010-08-25 15:58:08 +01:00
Aimee Linden 97b3314200 EXT-8398/EXT-8300 FIXED Avatar icons displaced from SLURL profile links
Icon was being inserted before any text preceding the link.

Reviewed by Richard.
2010-08-25 01:19:44 +01:00
Tofu Linden e416840f85 Backed out changeset c3d41f18ce2b
back-out the back-out for this branch.  yay.
2010-08-24 19:22:00 +01:00
Tofu Linden 98cc236503 Backed out changeset a62bf7c0af21
Backing out this merge that I pushed (prematurely) to the wrong place.
2010-08-24 18:44:39 +01:00
Tofu Linden 6ba23344c9 merge heads. whew. 2010-08-24 18:37:53 +01:00
Richard Linden 9db7d6cb3d fix for sim console not staying scrolled to bottom 2010-08-24 09:41:35 -07:00
Richard Linden 5a6a792920 fix for sim console not staying scrolled to bottom 2010-08-24 09:41:35 -07:00
Oz Linden 06b0d72efa Change license from GPL to LGPL (version 2.1) 2010-08-13 07:24:57 -04: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
Leyla Farazha 6f256e2d57 Merge with dessie/viewer-release 2010-08-04 15:44:45 -07:00
Christian Goetze (CG) 6a1fefac22 Redo the same merge as in changeset "2026f824953f", but this time with feeeeling. 2010-08-02 16:59:20 -07:00
Richard Nelson d72a21aca1 further UI rendering performance improvements 2010-07-30 15:17:32 -07:00
Kent Quirk 19c0d6d4ea Merge from q/viewer-release to dessie/viewer-release for 2.1.1 beta 1 2010-07-30 10:11:55 -04:00
Andrew Dyukov b934743014 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
Richard Nelson b95ad3b5ce further UI rendering performance improvements 2010-07-30 15:17:32 -07:00
Richard Linden b5a94da19b fix for vertical truncation of sidebar headers 2010-07-29 11:56:19 -07:00
Richard Linden e69f0f8a02 fix for vertical truncation of sidebar headers 2010-07-29 11:56:19 -07:00
Richard Linden 15247f0869 Backed out changeset: 58571b4e704b 2010-07-27 14:22:14 -07:00
Leyla Farazha 0e06dc8964 Merge from dessie/viewer-release 2010-07-27 14:13:07 -07:00
Richard Linden b4dfa76c9d merge 2010-07-27 10:30:17 -07:00
Richard Linden 0f2f597e7a merge 2010-07-27 10:30:17 -07:00
Andrew Dyukov 4919f0b341 EXT-8010 FIXED Implemented special behaviour of avatar links.
Avatar links are now underlined only on hover. Also they have the same color as other links.

- Underlining text and getting it back to normal are done in handleHover() and draw() of new LLOnHoverChangeableTextSegment
class derived from LLNormalTextSegment. This class has two pointers to styles- one for style which will be used for text
on hover, and another otherwise. This special type of text segment is used if link's boolean member mUnderlineOnHoverOnly
is true. So it is URL's flag depending on which textbase adds new text segment(like it currently happens with mDisabledLink).

- Changed avatar link color in colors.xml to emphasis (because it was white before and was inconsistent with other links).

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

--HG--
branch : product-engine
2010-07-26 18:10:29 +03:00
Andrew Dyukov 0c8cddecc1 EXT-8010 FIXED Implemented special behaviour of avatar links.
Avatar links are now underlined only on hover. Also they have the same color as other links.

- Underlining text and getting it back to normal are done in handleHover() and draw() of new LLOnHoverChangeableTextSegment
class derived from LLNormalTextSegment. This class has two pointers to styles- one for style which will be used for text
on hover, and another otherwise. This special type of text segment is used if link's boolean member mUnderlineOnHoverOnly
is true. So it is URL's flag depending on which textbase adds new text segment(like it currently happens with mDisabledLink).

- Changed avatar link color in colors.xml to emphasis (because it was white before and was inconsistent with other links).

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

--HG--
branch : product-engine
2010-07-26 18:10:29 +03:00
Richard Linden 50d8cc6d37 first pass ui rendering performance improvements 2010-07-23 22:07:15 -07:00
Richard Linden 6cc6f81678 first pass ui rendering performance improvements 2010-07-23 22:07:15 -07:00
Richard Nelson fde4edf75d merge 2010-07-20 11:31:23 -07:00
Richard Nelson 572e72d8a1 merge 2010-07-20 11:31:23 -07:00
Leyla Farazha 99176071bf Merge from q/viewer-release just picking up 13634 (39cb633321ed) for the creator icon fix 2010-07-20 11:30:21 -07:00
Leyla Farazha d603085c03 Merge with dessie/viewer-release 2010-07-19 17:22:12 -07:00
Richard Linden b36abda510 merge 2010-07-16 17:13:17 -07:00
Richard Linden b73ef2f338 merge 2010-07-16 17:13:17 -07:00
Richard Linden 5eaab96a0b EXT-8465 FIX Text selection is often unreadable 2010-07-16 17:11:51 -07:00
Richard Linden 109ff259ca EXT-8465 FIX Text selection is often unreadable 2010-07-16 17:11:51 -07:00
Monroe Linden 551f74125b Changes to allow disabling an LLTextBox (or LLTextBox subclass) to gray out the text.
Due to some legacy issues, text boxes will not gray out on disable unless they have their text_readonly_color property in xui set to "LabelDisabledColor" (or some other color distinct from their text color).

Reviewed by Richard.
2010-07-15 16:32:50 -07:00
Monroe Linden 6ad6f91163 Changes to allow disabling an LLTextBox (or LLTextBox subclass) to gray out the text.
Due to some legacy issues, text boxes will not gray out on disable unless they have their text_readonly_color property in xui set to "LabelDisabledColor" (or some other color distinct from their text color).

Reviewed by Richard.
2010-07-15 16:32:50 -07:00
Dessie Linden 5d85dad85f Reverted changeset 2bb10eae42bf 2010-07-15 12:31:08 -07:00
Richard Linden 2c722547ea changed allow_html to parse_urls to be clearer about its meaning
allow_html still supported as alternate
2010-07-15 10:20:06 -07:00
Richard Linden 2fb2efe2a2 changed allow_html to parse_urls to be clearer about its meaning
allow_html still supported as alternate
2010-07-15 10:20:06 -07:00
Richard Linden 1d1377079b EXT-8300 FIX Creator's icon overlaps description text on object's mini-inspector
reviewed by Leyla
2010-07-14 11:48:33 -07:00
Richard Linden 1f79bee86e EXT-8237 FIX Opening up Edit Outfit- Add More->Shirt causes FPS to drop from 60fps to 18fps for a really long time
EXT-8235 FIX HUGE long delay when reopening and/or closing edit outfit sidepanel if "Add More..." is active
EXT-7695 FIX UI lockup after add wearable, right click av -> Change Outfit

reviewed by Vir
2010-07-09 14:26:56 -07:00
Leyla Farazha 5546f78fff fixing windows line endings 2010-07-06 17:55:12 -07:00
Leyla Farazha 33d1aa30ab Merge from dessie/viewer-release 2010-07-06 17:51:07 -07:00
Yuri Chebotarev 04838e411b merge
--HG--
branch : product-engine
2010-07-02 15:27:08 +03:00
Yuri Chebotarev 0cf9168895 EXT-5692 FIX Add callback to create widget segment with LLAvatarIconCtrl (or LLGroupIconCtrl) based on url match id.
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/610/

--HG--
branch : product-engine
2010-07-02 15:23:05 +03:00
Richard Linden 187a4b638d EXT-7654 - About Land Floater> Icons missing
fixed layout of embedded icons in text labels
2010-07-01 19:48:39 -07:00
Leyla Farazha 86ba458ebc merge fix 2010-06-21 15:04:12 -07:00
Leyla Farazha c897061856 Merge with q/viewer-release 2010-06-21 10:21:52 -07:00
Yuri Chebotarev f26eb91c44 EXT-7766 FIX change the order of processing url matching and linebreaks
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/596/

--HG--
branch : product-engine
2010-06-18 10:49:09 +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
Richard Nelson 380f472308 EXT-7833 FIX [crashhunters] Crash in LLTextBase::reflow() 2010-06-14 15:37:39 -07:00
Yuri Chebotarev 0904b13cbb EXT-7726 FIX didn't increase width if image segment didn't fit current line
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/557/

--HG--
branch : product-engine
2010-06-14 11:05:15 +03:00
Yuri Chebotarev 75d3856811 EXT-7654 FIX "AddText" didn't create image segment now, use appendImageSegment
reviewed by Richard Nelson, Vadim Savchuk at https://codereview.productengine.com/secondlife/r/616/

--HG--
branch : product-engine
2010-06-22 15:50:34 +03:00
Vadim Savchuk 3e80a0e025 Merge from default branch
--HG--
branch : product-engine
2010-06-07 14:07:45 +03:00
Yuri Chebotarev 6bbe55558f EXT-7623 FIX One more place where text was processed into segments without LLLineBreakSegment.
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/516/

--HG--
branch : product-engine
2010-06-07 12:56:29 +03:00
Richard Nelson 46e1253ee1 DEV-50015 FIX Implement changes to the Buy L$ button in the top bar of the viewer
reviewed by Mani
2010-06-04 14:25:51 -07:00
Richard Linden fbf7279016 merge fixes 2010-06-03 14:37:02 -07:00
Richard Linden f79ac664dd merge 2010-06-03 14:15:11 -07:00
Tofu Linden 3fe3e119d8 merge from PE's viewer-trunk 2010-06-03 11:18:17 +01:00
Yuri Chebotarev 5c263cdc64 EXT-6333 FIX introduce new segments - LLLineBreakSegment and LLImageSegment
reviewed by Richard Nelson at https://codereview.productengine.com/secondlife/r/241/

--HG--
branch : product-engine
2010-06-03 10:38:03 +03:00
Richard Linden 6df66c35b3 fixed compile error 2010-06-02 14:43:45 -07:00
Richard Linden 9e7cf5c1bc eliminated several warnings on startup 2010-06-02 13:33:15 -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
Richard Linden efdfc298d4 Merge 2010-05-28 16:55:58 -07:00
Richard Linden 2703125698 Backed out changeset: 13b29333f1db 2010-05-28 16:55:12 -07:00
Richard Nelson 7435ff08b5 DEV-50271 FIX SLURL support for non-clickable display names
separate mIsLink from mLink to support non-clickable urls (e.g. secondlife:///app/agent/0e346d8b-4433-4d66-a6b0-fd37083abc4c/completename)
2010-05-26 13:14:47 -07:00
James Cook 0ebdba45f6 Merge with dessie/viewer-public to get Callum's webkit changes 2010-05-26 10:53:59 -07:00
Richard Nelson a01de4d25f EXT-7058 FIX Viewer freezes if IM chat floater with teleport offer is resized a few times 2010-05-26 10:10:20 -07:00
Richard Nelson f682c996d2 DEV-50271 FIX SLURL support for non-clickable display names 2010-05-24 18:29:29 -07:00
Richard Nelson 4ea7d2de9f DEV-50271 FIX SLURL support for non-clickable display names
reviewed by James
2010-05-24 17:25:35 -07:00
James Cook 2b7153c26a merge from dessie/viewer-public right before SLE code landed 2010-05-11 16:11:09 -07:00
Eugene Mutavchi 647327d0ec Fixed normal bug EXT-6907 ('Show residents profile' menu opens inspector instead of profile) - added 'Url.ShowProfile' action.
Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/282/

--HG--
branch : product-engine
2010-04-21 20:23:55 +03:00
Richard Nelson 6cc65f9e5f merge 2010-04-01 12:52:04 -07:00
Richard Nelson 7b4046df83 EXT-3531 - Ctrl-P does not work reliably on login 2010-04-01 11:47:21 -07:00
James Cook ecc2c72650 Merge latest viewer-hotfix, approximately equal to Viewer 2.0 final 2010-03-29 16:55:22 -07:00
Richard Linden e3e50bf7ed added some comments for fix to EXT-5549 2010-03-23 12:47:11 -07:00
Richard Nelson 07bc1f0ba5 fixed line ending style where I copied from araxis merge window 2010-03-23 11:22:46 -07:00
Richard Nelson 91b90b0a17 EXT-5549 Can't select last character in chat window 2010-03-23 11:18:01 -07:00
Vadim Savchuk d3a606f832 Manual merge from default branch.
Resolved conflicts in llpanellandmarks.cpp.

--HG--
branch : product-engine
2010-03-24 18:04:26 +02:00
Yuri Chebotarev 6efbbfa080 fix for EXT-4288 Shrinking chat history window from top doesn't keep scroll thumb at bottom
--HG--
branch : product-engine
2010-03-22 15:35:34 +02:00
James Cook f0d3ea53cd Merge latest from viewer-hotfix, including fix for TOS screen 2010-03-10 20:32:56 -08:00
Richard Nelson dcbf0ab31b merge 2010-03-10 18:22:26 -08:00
Richard Nelson 1e5fe95b1d EXT-6295 - Cannot log in with new account, TOS dialog does not load
reviewed by Mani
2010-03-10 18:20:18 -08:00
James Cook 60799effae Merge 2010-03-10 15:46:45 -08:00
Monroe Linden 347585cf97 Fix for EXT-6276.
Added a check in LLTextBase::drawSelectionBackground() to keep it from sending degenerate rectangles to gl_rect_2d().  This seems to be what was causing the GL state to go bad.

Reviewed by Richard at http://codereview.lindenlab.com/534001
2010-03-10 14:32:40 -08:00