summaryrefslogtreecommitdiff
path: root/indra/llui/lltexteditor.h
AgeCommit message (Collapse)Author
2024-03-08Merge branch 'main' into release/luau-scripting for Emoji release.Nat Goodspeed
2024-02-13Add help() function to Lua "builtins."Nat Goodspeed
help() with no argument lists all our viewer builtins. help(function, function, ...) shows help text for each named function. Each argument can be either a string or the function in question (e.g. help(help)). To support Lua-related text containing line breaks, make LLTextEditor:: pasteTextWithLinebreaks() a public template method. Change the existing implementation, which specifically accepts (const LLWString&), into its LLWString specialization. The generic template passes llconvert(arg) to that specialization, the one real implementation. Make LLFloaterLUADebug methods call pasteTextWithLinebreaks() instead of insertText(), which ignores newline characters. To allow help() to accept an actual function as well as a string name, add a lookup-by-function-pointer map to LuaFunction. (A Lua function does not store a name.) Make the constructor store an entry in the new lookup map as well as in the original registry map. Change LuaFunction::getRegistry() and getRegistered() to getState() and getRState(), respectively. Each returns a std::pair, but the first binds non-const references while the second binds const references.
2024-02-12WIP: Changes towards supporting Lua console help text.Nat Goodspeed
2024-01-24SL-20416 Avoid of taking focus by EmojiPickerAlexander Gavriliuk
2023-10-02SL-20391 Show Emoji Completion floater after backspacing a characterAlexander Gavriliuk
2023-09-30DRTVWR-589: Emulate print() better, show output on Lua floater.Nat Goodspeed
Break out a lua_print_msg() function common to print_debug(), print_info() and print_warning(). Instead of accepting a single argument, lua_print_msg() accepts arbitrary arguments, passing each to the Lua tostring() function and concatenating the results. In addition to returning the combined string to its caller for level-appropriate logging, it also posts the message to a "lua output" LLEventPump for any interested party. Make LLFloaterLUADebug listen on "lua output" when the floater is constructed, storing the connection in an LLTempBoundListener to stop listening when the floater is destroyed. Append each message to the floater's output panel with a line break. Make LLTextEditor::addLineBreakChar() public. insertText("\n") only appends a little rectangle glyph. Enlarge the text capacity of the floater's output panel to be able to report whatever messages a Lua script wants to print. Add diagnostic logging for posting events from Lua, and receiving events to forward to Lua. Since lua_pop() is a macro implemented on lua_settop(), replace the awkward construct lua_pop(L, lua_gettop(L)) with lua_settop(L, 0). Use lambdas instead of std::bind() to connect LuaListener and LLLeapListener.
2023-04-14SL-19575 Create emoji gallery access iconAlexander Gavriliuk
2023-02-08Merge branch 'xcode-14.1' into DRTVWR-489-emojiKitty Barnett
2022-11-09Merge branch contribution/emoji into DRTVWR-489-emojiKitty Barnett
2022-10-23Add emoji helper support to LLTextEditorKitty Barnett
2022-10-23Add emoji helper support to LLTextEditorKitty Barnett
2022-10-19Fix menu leaks and lazy creation in text editing and scroll listsRye Mutt
2022-01-24SL-3007 Ability to report abuse from chatAndrey Kleshchev
2016-03-07merge DRTVWR-398 build cleanup fixesOz Linden
2015-11-10remove execute permission from many files that should not have itOz Linden
2014-12-28STORM-2094 Save button not activated if spelling corrected in Notecard and ↵Jonathan Yap
no other changes made
2014-07-07Merge viewer-release and become version 3.7.12simon
2014-05-14Refactor more script editor properties away from LLTextEditor to LLScriptEditorCinder
2014-05-07Merge downstream version 3.7.8 codesimon
2014-05-07merge changes for 3.7.7-releaseOz Linden
2014-04-18Move some more script editor functions from LLTextEditor to LLScriptEditorCinder
2014-04-18Begin moving script editor portions of LLTextEditor to their own derived class.Cinder
This should fix the run off segment bugs by not overriding LLTextBase::clearSegments() in LLTextEditor TODO: Move the rest of the script stuff out of LLTextEditor for simplicity sake
2014-03-06MAINT-3610 FIXED SL viewer partly 'eats' chat-messagesmaksymsproductengine
2014-02-06Adding clear methods to remove any highlighting.Ima Mechanique
2013-11-18merge changes for STORM-1831Oz Linden
2013-11-11Automated merge with http://bitbucket.org/lindenlab/viewer-releaseRichard Linden
2013-11-10Refactoring load routines to remove uneeded methodsIma Mechanique
2013-10-04Merge v3.6.7 inIma Mechanique
2013-09-09merge with viewer-releaseRichard Linden
2013-08-19merge changes for DRTVWR-285Oz Linden
2013-09-17MAINT-3119 FIXED Select auto-completed part using cursor positionMnikolenko ProductEngine
2013-07-30Summer cleaning - removed a lot of llcommon dependencies to speed up build timesRichard Linden
consolidated most indra-specific constants in llcommon under indra_constants.h fixed issues with operations on mixed unit types (implicit and explicit) made LL_INFOS() style macros variadic in order to subsume other logging methods such as ll_infos added optional tag output to error recorders
2013-06-27Moving LSL highlighting colour info into .../skins/default/colors.xml where ↵Ima Mechanique
it makes more sense than its own xml file. Changing other functions to read it.
2013-06-26Merging last four months of developmentIma Mechanique
2013-05-22Pull merge from viewer-releaseMerov Linden
2013-05-20merge changes for 3.5.2-releaseOz Linden
2013-05-14CHUI-958 FIXED Log spam: "drawtext: Ran off Segmentation End" and To field ↵maksymsproductengine
in nearby chat blank when selected
2013-03-29Update Mac and Windows breakpad builds to latestGraham Madarasz
2013-03-13merge changes for latest viewer-developmentOz Linden
2013-02-05STORM-1831 merging in previous workIma Mechanique
2013-01-30Pull merge from lindenlab/viewer-developementMerov Linden
2013-01-25CHUI-291 FIX New auto-replace feature does not work with chui text input ↵Cho
boxes in conversation floater Modified LLAutoReplace to pass back a string for replacement instead of modifying the input string
2013-01-25CHUI-291 FIX New auto-replace feature does not work with chui text input ↵Cho
boxes in conversation floater Fixed autoreplace in LLTextEditor so it updates correctly and works with undo
2013-01-23CHUI-291 FIX New auto-replace feature does not work with chui text input ↵Cho
boxes in conversation floater Moved autoreplace hooks from LLLineEditor to LLTextEditor, and modified LLAutoReplace accordingly
2012-11-09STORM-1855: Improve performance of pasting large blocks of text in the ↵Oz Linden
script editor
2012-07-17MAINT-1276: Add ability to paste LSL tooltips into scripts. Reviewed by Kellysimon@Simon-PC.lindenlab.com
2012-06-19CHUI-127 FIXED (Make chat field auto resizable)Paul ProductEngine
- 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
2011-11-23Changes to filter out tabs from file load and to test if loading/saving ↵Ima Mechanique
should be allowed.
2010-12-13STORM-229 FIXED Fixed long loading times and stalling of Viewer while ↵Andrew Productengine
loading big scripts or pasting a lot of text into script. The bug was fixed by Satomi Ahn. Here is the description of what causes the problem from her comment in ticket: "Disabling the loading of syntax keywords in LLScriptEdCore::postBuild() removes the freeze (and with it: syntax highlighting). So it obviously comes from the parsing of the text. I also noticed something else: by adding a llwarn in LLTextEditor::updateSegments(), I saw that this function was called a lot of times when loading a script, roughly once for each line in the script (naively I would have thought only necessary to update when finished... or to only update the new line). My llwarn was in the "if (mReflowIndex < S32_MAX && mKeywords.isLoaded())", which means that, at each call, the text is actually parsed for all keywords... so the parsing of the script becomes quadratic instead of linear!!!" - To fix this, Satomi added a flag depending on which parsing is disabled when it is not necessary.
2010-08-13Change license from GPL to LGPL (version 2.1)Oz Linden