summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
AgeCommit message (Collapse)Author
2021-06-01Move and expose Code Hint in CodeEditPaulb23
2021-06-01Move and expose AutoComplete in CodeEditPaulb23
2021-05-22Add a keyboard shortcut to select the word under cursor in TextEditHugo Locurcio
This also acts as a general-purpose "deselect" shortcut since pressing it a second time will deselect text. This is available both in the script editor and in TextEdit fields in use, both in the editor and projects. The Duplicate Line script editor shortcut was moved to Ctrl + Shift + D since it conflicts with the new shortcut (Ctrl + D). The rationale for doing so is that Duplicate Line is a less commonly used action, and its behavior can be replicated by copying and pasting the current line anyway. (With no selection active, the whole line will be copied.)
2021-05-22Add custom background line colour to TextEdit and remove marked linesPaulb23
2021-02-18Removed hardcoded shortcuts from /scene and converted to input actionsEric M
This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-12Fix TextEdit autoscroll with wrapped linesPouleyKetchoupp
Index to find the last line wrap index was off by one, which prevented the first wrapped line to trigger autoscroll.
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-01-24Change themes *_color_* to *_*_colorMarcel Admiraal
Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-11Fixed mouse scrolling in TextEdit'sYuri Roubinsky
2020-11-26[Complex Text Layouts] Refactor TextEdit and CodeEdit controls.bruvzg
2020-11-26[Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
2020-10-25ScriptEditor: Fix line number gutter drag selectDevin Curry
Fixes issue #42722
2020-09-11Remove bit fields and use fixed width integers instead.Marcel Admiraal
2020-09-10Move safe line color into editorPaulb23
2020-09-10Move ConnectionGutter to editor code_editorPaulb23
2020-09-10Add folding gutter to code_editPaulb23
2020-09-10Add main_gutter (breakpoints, bookmarks, execution lines) to code_editPaulb23
2020-09-10Added Line numbers to CodeEditPaulb23
2020-09-10Added gutter system to TextEditPaulb23
2020-09-03[Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg
2020-08-09Add option to disable virtual keyboard for TextEditPouleyKetchoupp
Adding support for disabling virtual keyboard on mobile platforms, in order to make it consistent with LineEdit. It allows implementing a custom virtual keyboard.
2020-07-11Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb23
- Extacted all syntax highlighting code from text edit - Removed enable syntax highlighting from text edit - Added line_edited_from signal to text_edit - Renamed get/set_syntax_highlighting to get/set_syntax_highlighter - Added EditorSyntaxHighligher
2020-07-11Convert syntax highlighters into a resourcePaulb23
2020-07-10Add override keywords.Marcel Admiraal
2020-05-16TextEdit search returns a dictionary instead of VectorPouleyKetchoupp
Easier to use than accessing elements in a Vector using indices given by an enum. Breaks compatibility on existing scripts using this functionality.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-04-29Limit undo stack sizeJohn Wigg
The stack size of the undo history of a TextEdit was not limited leading to potential memory leaks when doing lots of operations on a TextEdit. This commit adds the option gui/common/text_edit_undo_stack_max_size to the project settings. The first element of the undo stack is popped if the stack's size exceeds this value ensuring limited memory usage. The default stack size setting is 1024. Fixes #37838.
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
2020-03-11Removed underlining for not clickable symbolsjanglee
2020-02-27Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde
Add a soft line length guideline to the script editor
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-15Add a soft line length guideline to the script editorHugo Locurcio
The default value is 80. The hard line length guideline's default column has been moved to 100 to account for the new soft line length guideline. It can be disabled by setting its value to the same column as the hard line length guideline. This closes https://github.com/godotengine/godot-proposals/issues/347.
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-10-31Improved TextEdit search usability & documentationPouleyKetchoupp
2019-10-27Improve performance of connection info in the script editorPaulb23
2019-09-22Merge pull request #29895 from ptrojahn/menukeyRémi Verschelde
Support menu key in TextEdit and LineEdit controls
2019-09-22Support menu key in TextEdit and LineEdit controlsPaul Trojahn
Related to #15542
2019-09-07Add Ability to Enable/Disable Shortcuts for LineEdit/TextEditEmmanuel Barroga
This PR adds the ability to enable/disable shortcut keys and selection for LineEdit/TextEdit. It also updates the context menu when you disable/enable the shortcut keys or selection.
2019-08-25Refactor TextEdit control height calculationsPaulb23
2019-08-25Minimap scroll now acts similar to scrollbarPaulb23
2019-08-21Add minimap to text_editPaulb23
2019-08-21Add syntax highlighting cachePaulb23
2019-07-09Merge pull request #28190 from griant/testRémi Verschelde
fix improper uncommenting behavior in TextEditor
2019-07-05Show icons for code completion optionsGeequlim
2019-06-24Give TextEdit a custom color for font when read only is setGwyneth Lowe
Previously there was some transparency hard coded into TextEdit when in read only mode. This change adds a custom color for adjusting the font in read only mode. It also applies when syntax highlighting is on.