Commit Graph

172 Commits

Author SHA1 Message Date
Liru Færs
6839cba56a Encapsulate LFIDBearer::sActive, set with member setActive
This function caches the current type when active,
in the future it could be more useful than that.

sActive is now const, getActive returns const,
IDBearers display information, the interface should only be used for that
2020-01-06 12:22:31 -05:00
Liru Færs
5a561e03b8 Introduce Types for ID Bearer IDs 2019-11-23 23:05:33 -05:00
Liru Færs
78fbc214ca Make chat loaded from log file be in LogChatColor instead of hardcoded grey 2019-11-16 10:02:01 -05:00
Liru Færs
60e71f5724 Fix Beware's issue with SinguReplaceLinks failing for system messages
Fixes Teleport Offers in local being links
Fixes System Messages in IMs not enforcing link replacement
Fixes IM Chat History being loaded with replacement support,
at the log point, we can only consider it text from an outside source.
Changes IM Chat History color from hard coded grey to SystemChatColor
2019-11-16 03:49:47 -05:00
Liru Færs
bbd3cb3469 Fix compile 2019-10-11 16:44:59 -04:00
Lirusaito
01b4f52fb0 Add support for better speakerlist for conferences 2019-08-02 20:30:15 -04:00
Lirusaito
01b02fd6b1 We must prompt the user before giving them support the first time 2019-07-26 20:24:09 -04:00
Lirusaito
bf10ab4bb1 Fix single line profile button for Group IMs started by others 2019-07-23 02:29:34 -04:00
Lirusaito
9945fc1767 Enable Abuse Report from P2P IM 2019-07-12 17:48:59 -04:00
Lirusaito
68a4975fe1 Actually fix the removal of Starting session
Thanks for the assistance and testing, Router~!
2019-04-17 15:01:48 -04:00
Router Gray
fd6b367746 Fix missed changes for is_trivially_copyable and make gcc happy about them (#4) 2019-04-13 16:43:47 -04:00
Lirusaito
5228451c9c Fix a lag bug of chat vanishing at the start, 'cause that's wrong.
This might break chat, but I'm sleepy, so you get it untested...
do the math yourself if it's wrong.
2019-04-13 03:09:12 -04:00
Lirusaito
c78770138d If a log file doesn't exist, just let the user know with a sound
Also a warning, in the log, displaying the path.
2019-04-13 03:02:26 -04:00
Lirusaito
947cf57100 And then I remembered windows is windows. 2019-04-13 02:53:01 -04:00
Lirusaito
3ad4770b44 [Support] Show a concise indicator in chat for viewer channel/branch 2019-04-09 04:40:42 -04:00
Lirusaito
a1d06e682e Switch to using typedef'd uuid types everywhere and auto for iterators
Oh, and some related opts.
2019-04-04 22:20:21 -04:00
Lirusaito
b1ecf08013 Feature request: Colon after build number in support chats for nonactions 2019-03-24 19:48:20 -04:00
Lirusaito
7c9eb35568 We optimized llformat, let's not bother caching version string
It would be used less than once per frame, better to save resources.
2019-03-24 19:43:49 -04:00
Lirusaito
1839a37294 Only parse highlights (script keyword parsing) for script editor 2019-03-24 18:54:10 -04:00
Lirusaito
c16fa02558 Support chats have build in every message, cool. This is optional. 2019-03-23 03:40:20 -04:00
Lirusaito
8946aa9ee5 If a group starts with "Singularity ", mark it as a support session
This is probably not the best way to go about this, but since we're
not in control of support groups on other grids, and we have support
groups in other languages we don't run on Second Life, this is better
than maintaining a list of IDs somewhere.
2019-03-23 02:07:02 -04:00
Lirusaito
cc88b1edcd Do this instead 2019-03-23 01:00:12 -04:00
Lirusaito
cfc71a47db Fix up ShellEx
It's now crossplatform wrapper for std::system opening of a file/path/url.
It returns an int just like std::system, 0 means it worked.
It's static so you don't need to gViewerWindow->getWindow() anymore,
honestly it should've been static in the first place.

Clean up other code to use this function because duplicate code sucks.

# Conflicts:
#	indra/llwindow/llwindowmacosx.h
#	indra/llwindow/llwindowsdl2.cpp
2019-03-19 02:43:35 -04:00
Lirusaito
0269affb69 I need less unstaged code
Here's pieces of the WIP offline->IM->online fix
2019-02-15 19:33:22 -05:00
Lirusaito
2493c401f9 Force replacing registered urls everywhere that's not from another user
I think I covered all my bases:
Local Chat, IMs/Group/Conference Chats
Script Dialogs
Group Notices

There are a few others maybe, like notifications EMs can spawn but if
those are intentionally tricking people, grid owners should be informed.
2019-02-09 16:51:15 -05:00
Lirusaito
269576805b Replace URLs everywhere in text editors, like upstream.
This works for notifications, and profiles, and chats, and even updates!
Amazing, right?
SinguReplaceLinks is on by default, URL highlighting works regardless, no rogue labels with this off.

Select, right click, Copy Raw lets you copy the link with its hidden url shown
and you can paste it back the same way if you're wanting to paste it all over!

LLTextEditor overhaul synced the code with upstream LLTextBase as much as we could.
appendStyledText is now just appendText
Every setText appendText's now and adds a style based on the texteditor's color and font, this could slightly increase the weight of text editors (one extra segment) but it fixes a nasty bug with running past segmentation.
Also no longer update the utf8
Removed append() which was no longer being used
LLTextEditor and LLViewerTextEditor now have an extra boolean at the end of their constructors to have this replacement turned on at construction time (this also sets them read only)
Update TextSegments to have a Tooltip string, like upstream.
Hardened notecard previews so they don't accidentally replace the text when they go read only.

Thanks to Deltek and Router Gray for helping me test and debug this commit!
2019-01-16 01:01:19 -05:00
Lirusaito
8c7fceb081 Resolve and link registered SLURLS that are in chat.
Adds handle_registered_urls function
Use this as a drop in replacement for appendStyledText where applicable
2019-01-11 09:11:20 -05:00
Lirusaito
aef77312aa Wooops, fix minor bug introduced in the conference thing. 2019-01-09 22:03:20 -05:00
Lirusaito
022fba2ba4 Add option "Add to Conference" to Conference chats and Instant Messages
Sync code from upstream for inviting people to conference via Avatar Picker
2019-01-08 11:27:51 -05:00
Lirusaito
adba4cf1fa Beware the coral, it adds the reef factor 2019-01-07 17:39:54 -05:00
Lirusaito
f33429f1bb Buncha pointless sync and cleanup 2016-05-27 12:17:30 -04:00
Lirusaito
44cc052d40 Forgetful Liru 2016-05-02 21:53:17 -04:00
Lirusaito
e50899dc68 Feature Request: Option to focus on avatar from instant message with them
Will be in the dropdown in IM at the bottom, only if they're in the sim...
Actually, this feature works pretty well as an in-sim indicator (if it works as intended!)
2016-05-02 19:06:12 -04:00
Lirusaito
62b6531468 I thought I'd done all these right already... meh~ 2016-03-31 07:38:43 -04:00
Lirusaito
2653567d82 Sync with alchemy
Moves some constants out of llavatarconstants.h
8ebf8f4608bd: Change various const constants to constexpr
e07d5d43ba30: CID-143595
30b6935fc66d: CID-143595
acc96f9051cb: Fix a memory leak in viewer side baking initial wearable setup
Sync llmodel.*

Changesets assimilated:
f8f7706c2902: CID-143554 - fix out of bounds access
223eb65adce4: CID-143554 - Chase
2ceb49aaa133: CID-42838, CID-42930, CID-42933, CID-42938, CID-42940, CID-42945, CID-42948, CID-56111, CID-83907
d220005d9f23: Missing null check before deref
31dbb0f3b6ee: CID-42571 CID-42576 CID-42578
49caf082e65c: change unordered_map to flat_map
Doesn't cause as many problems as a hashmap when it comes to assumptions in the
LLUI system.
f93f5e881484: "update" linux cef
downgrade to fix javascript problems
cba818dd9269: Various null checks and etc.
1b4c6bc483bb: CID-42847, CID-42854, CID-42886, CID-42921, CID-42922, CID-42923, CID-42924, CID-42925,
CID-42927, CID-42928, CID-83871, CID-83876, CID-83878, CID-83880, CID-83900, CID-143573
0fe90cd9ec24: Various file size related things
a79f6f653dca: CID-42918 - Initialize member pointers in LLFloaterGodTools
0b70d600d978: Tweak LLFloaterBuyLand initializations
e8b173ffe813: CID-42854 - Additional fix to LLDrawInfo
b5d745cf3fde: Fix signage
4f2e2f384781: Initialize and cleanup various class member variables.
CID-42899, CID-42900, CID-42902, CID-42903, CID-42904, CID-42905, CID-42909, CID-42910,
CID-42911, CID-42912, CID-42913, CID-42967, CID-83853, CID-83898, CID-83890, CID-143584
9851a3e39b4c: Fix platform specific include directories
5c074e84f1be: Initialize and clenaup various more class member variables.
CID-42885, CID-42853, CID-42894, CID-42895, CID-42896, CID-83908, CID-143574, CID-143575,
CID-143576, CID-143576, CID-143578
ac262854ac92: Brace sub-object in initialization to make our intentions clear to clang
358da477d4c1: More double brace init
c3850119314a: Initialize various member pointers in panels
CID-83902, CID-83903, CID-83905, CID-83909, CID-83911, CID-83912, CID-143572
2016-03-30 21:06:47 -04:00
Shyotl
1e488fef6d Merge branch 'master' of https://github.com/Lirusaito/SingularityViewer.git
Conflicts:
	indra/newview/llviewerregion.cpp
2015-06-26 20:38:43 -05:00
Shyotl
09f4528bfb Removed LLDynamicArray, LLDynamicArrayIndexed, LLDynamicArrayPtr, LLDLinked, LLDynamicQueuePtr, LLEnum, and LLIndexedQueue. Added new LLPointer variants. 2015-06-19 18:27:21 -05:00
Inusaito Sayori
b11511b7b9 Merge branch 'master' of git://github.com/Shyotl/SingularityViewer
Conflicts:
	indra/newview/lldrawpoolwlsky.cpp
2015-06-19 05:42:49 -04:00
Shyotl
1c627317ec No longer include llerrorlegacy.h. Updated llstl to include deletion utilites. 2015-06-19 03:54:20 -05:00
Inusaito Sayori
e2347651e9 I dunno what this is... Code clean up? Sure. 2015-05-25 15:40:15 -04:00
Inusaito Sayori
078a6980b9 Feature: Find on Map from IM floater's flyout menu. 2015-05-19 11:49:35 -04:00
Inusaito Sayori
eb0247d27a Revert "[STORM-2109] Apply fixes from Brett Joseph of Vivox", this doesn't seem ready yet.
This reverts commit 0681b88cbc.
2015-03-25 08:18:32 -04:00
Inusaito Sayori
0681b88cbc [STORM-2109] Apply fixes from Brett Joseph of Vivox
Applies the following commits:
fe982eedd58b5ac91f250f8446dc44dd2624c976 - Better MediaConnect handling of 1026 return status,  media already connected.
6d343c74f6cfd456f99bd4bc39fa7a5ef3a1fc50 - More voice related changes to improve the user's experience.
f85263acf3902f2d54e108c4b62fa090e91b2b6e - Added the loop back setting so people can hear themselves during the mic test.

Removes outdated SLim code from llimpanel.cpp
2015-03-18 22:59:44 -04:00
Inusaito Sayori
5279697890 mFocusLostSignal is not needed, these disconnect themselves. 2015-02-11 01:44:26 -05:00
Inusaito Sayori
adecaca730 Work around crash signature 8715
Apparently SL Grid gives some odd session types for P2P?
This should be looked into closer, but for now just accept that it happens.
2015-02-04 01:07:56 -05:00
Inusaito Sayori
290f143b5c Fix the << button on local chat not working, thanks for pointing this out, Nomade~
Also code cleanupsies~
2015-01-21 17:21:38 -05:00
Inusaito Sayori
72c85ef104 Solve Issue 1234: Enable opening of chat logs in external editor under linux too
Requires xdg-open, but meh~
2015-01-12 19:14:53 -05:00
Inusaito Sayori
f26d7c7bf2 Update instant message stuff
Fixes auto response chats not showing the name, anymore; switches to using 25% more font color transparency to indicate autoresponse
Cleans up and reorganizes im codestuffs~
2014-12-27 10:20:57 -05:00
Inusaito Sayori
cc32df6fd8 Update and Sync Mutelist with upstream alchemy
Satisfies the feature request for mute toggle to display mute status
Adds dynamic mute/unmute option to P2P IM dropdown.

Translators should look into the changes made in this commit for:
floater_chat_history.xml, floater_instant_message.xml, floater_instant_message_concisebuttons.xml
panel_avatar.xml has been taken care of for spanish and french, although they should be looked into more closely by the translators.

Cleanup and Sync in related places~
Removal of old static callbacks.
Moves God Names logic into LFSimFeatureHandler
Adds a custom function LLMuteList::hasMute() for quickly checking if a mute is in the internal set.
2014-12-16 19:42:27 -05:00
Inusaito Sayori
0e48a2196f Update/Modernize LLAvatarName and LLAvatarNameCache and _EVERYTHING_ they touch
Fairly certain this adds the feature in which the user may click the online notification to open a chat with the user coming online.

Translators may want to look at the xml changes of this change to see what to update

Removes old LegacyMultiAttachmentSupport patch
Moves LLAvatarName-centric functions into LLAvatarName from elsewhere.
Adds boost::signals2::connections to name polling places.
Removes more old icky static callbacks
Merge from Alchemy, credit where due~
Update notifications.xml to have a bunch of the tags from upstream to ease diffing
2014-12-16 17:55:23 -05:00