summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change themes *_color_* to *_*_colorMarcel Admiraal2021-01-241-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix TextEdit drawing Caret and icons out of boundsPaulb232021-01-141-28/+35
|
* Makes script editor not draw non existent spaces.David Kennedy2021-01-051-2/+1
| | | | Fixes #44775 Editor is incorrectly drawing non existent space.
* Revert "solved ctrl + alt + special character Issue #6851"Rémi Verschelde2021-01-051-1/+1
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | 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 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-6/+6
|
* Merge pull request #44605 from madmiraal/rename-control-marginRémi Verschelde2020-12-231-13/+13
|\ | | | | Rename Control margin to offset
| * Rename Control margin to offsetMarcel Admiraal2020-12-231-13/+13
| |
* | Use integer text position in scroll container, TextEdit and canvas editor, ↵bruvzg2020-12-211-1/+1
|/ | | | | | to ensure sharp text rendering. Use integer font align/advance with any font scaling, to ensure sharp text rendering.
* GUI: use cursor in TextEdit for non selected text.Sergey Minakov2020-12-161-7/+10
|
* Fixed mouse scrolling in TextEdit'sYuri Roubinsky2020-12-111-3/+5
|
* Static analyzer fixes:bruvzg2020-12-091-2/+2
| | | | | | Removes unused code in OS. Fixes return types. Fixes few typos.
* [Complex Text Layouts] Performance optimizations.bruvzg2020-12-071-2/+5
|
* [Complex Text Layouts] Adds missing Font::SPACING_* to the Label, LineEdit, ↵bruvzg2020-12-061-1/+1
| | | | | | TextEdit, TextLine and TextParagraph. Fixes oversized editor control height (default editor spacing is negative) and control size changing when text is set.
* [Complex Text Layouts] Refactor TextEdit and CodeEdit controls.bruvzg2020-11-261-720/+1066
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-19/+20
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* GUI: send cursor data from TextEditSergey Minakov2020-11-151-1/+13
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-3/+3
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Removed redundant line from TextEditYuri Roubinsky2020-10-281-4/+0
| | | introduced in https://github.com/godotengine/godot/pull/43026
* ScriptEditor: Fix line number gutter drag selectDevin Curry2020-10-251-20/+55
| | | | Fixes issue #42722
* Shows ColorRect in Color constants autocompletionYuri Roubinsky2020-10-231-1/+20
|
* TextEdit - fix valid bounds in 'set_line'. Fixes #41967Dominik 'dreamsComeTrue' Jasiński2020-10-171-1/+1
|
* Move safe line color into editorPaulb232020-09-101-13/+0
|
* Move ConnectionGutter to editor code_editorPaulb232020-09-101-109/+8
|
* Add folding gutter to code_editPaulb232020-09-101-109/+26
|
* Add main_gutter (breakpoints, bookmarks, execution lines) to code_editPaulb232020-09-101-251/+17
|
* Changed line_edited_from(from) to lines_edit_from(from, to)Paulb232020-09-101-3/+3
|
* Added Line numbers to CodeEditPaulb232020-09-101-67/+12
|
* Added gutter system to TextEditPaulb232020-09-101-21/+373
|
* [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-45/+45
|
* Skip indentation of empty lines when indenting a selection.Cheeseness2020-08-141-0/+3
|
* Merge pull request #37769 from HellonLegs/masterRémi Verschelde2020-08-141-1/+1
|\ | | | | solved ctrl + alt + special character Issue #6851
| * solved control + alt issueHellonLegs2020-04-101-1/+1
| |
* | Add option to disable virtual keyboard for TextEditPouleyKetchoupp2020-08-091-2/+13
| | | | | | | | | | | | | | Adding support for disabling virtual keyboard on mobile platforms, in order to make it consistent with LineEdit. It allows implementing a custom virtual keyboard.
* | Fix TextEdit line width cache not being updatedPaulb232020-07-291-0/+1
| |
* | Fix Return key events in LineEdit & TextEdit on AndroidPouleyKetchoupp2020-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the device implementation, editor actions could be received with different action ids or not at all for multi-line. Added a parameter to virtual keyboards to properly handle single-line and multi-line cases in all situations. Single-line: Input type set to text without multiline to make sure actions are sent. IME options are set to DONE action to force action id consistency. Multi-line: Input type set to text and multiline to make sure enter triggers new lines. Actions are disabled by the multiline flag, so '\n' characters are handled in text changed callbacks.
* | Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb232020-07-111-487/+49
| | | | | | | | | | | | | | | | - 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
* | Convert syntax highlighters into a resourcePaulb232020-07-111-27/+23
| |
* | Add a separate application focus/in notification out from Window focus ↵Juan Linietsky2020-06-301-2/+2
| | | | | | | | notification.
* | No longer scroll vertically when scrollbars are unavailableStijn Hinlopen2020-06-201-21/+4
| |
* | TextEdit search returns a dictionary instead of VectorPouleyKetchoupp2020-05-161-9/+5
| | | | | | | | | | Easier to use than accessing elements in a Vector using indices given by an enum. Breaks compatibility on existing scripts using this functionality.
* | Fixed text editor drawing if smooth scrolling is disabled.Marcus Brummer2020-05-161-3/+1
| | | | | | | | Fixes #38778
* | Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-252/+477
| | | | | | | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* | Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-321/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #38655 from ↵Rémi Verschelde2020-05-121-1/+1
|\ \ | | | | | | | | | | | | ice-blaze/minimap-shifted-selection-by-one-line#38532 Fix minimap selection offset
| * | Fix minimap selection offsetetienne.frank2020-05-111-1/+1
| | | | | | | | | | | | The minimap selection was shifted of 1 line too late.
* | | Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
|/ / | | | | | | | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* | Merge pull request #31086 from volzhs/underlineRémi Verschelde2020-05-071-2/+2
|\ \ | | | | | | Use underline position and thickness value in font file
| * | Use underline position and thickness value in font filevolzhs2020-04-291-2/+2
| | |