summaryrefslogtreecommitdiffstats
path: root/editor/plugins/text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove set_drag_forwarding_compat()kobewi2023-01-141-2/+0
|
* Change set_drag_forwarding() to use callables.Juan Linietsky2023-01-101-1/+1
| | | | | | | | * This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix various fringe issues with multi-carets and selectionsVolTer2022-12-071-1/+3
|
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+1
|
* Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-1/+1
|\ | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
| |
* | Set the shortcut context for the edit/search/goto menus to the ScriptEditor ↵Eric M2022-10-251-1/+10
|/ | | | so that shortcuts continue to work when FindReplaceBar is focused.
* Merge pull request #61902 from Paulb23/multi-caretRémi Verschelde2022-10-061-3/+4
|\ | | | | | | Add Multi-caret support to TextEdit
| * Add multi caret support to EditorPaulb232022-10-051-3/+4
| |
* | Merge pull request #66300 from KoBeWi/📝🧭Rémi Verschelde2022-10-051-0/+4
|\ \ | |/ |/| | | Split script navigation state and edit state
| * Split script navigation state and edit statekobewi2022-09-251-0/+4
| |
* | Fix the flickering of the line gutter icon when savingRindbee2022-10-031-0/+1
| |
* | Rename Indent Left/Right to Indent/DedentVolTer2022-09-291-8/+8
|/
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-3/+3
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Replace Array return types with TypedArraykobewi2022-08-221-3/+3
|
* Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov2022-07-311-0/+1
| | | | up editor includes
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge2022-07-181-1/+1
|
* Replace most uses of Map by HashMapreduz2022-05-161-5/+5
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-3/+3
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Allow negative indexes in ItemList and PopupMenukobewi2022-03-121-1/+1
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-1/+1
| | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-1/+1
|
* Convert TextEdit callbacks to CallablePaulb232022-01-191-2/+4
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fix bad popups offset in editor with single window offjmb4622021-12-061-1/+1
| | | | | Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Added `reset_size` method to `Control` and `Window` classesYuri Roubinsky2021-11-221-1/+1
|
* Use "enum class" for input enumsAaron Franke2021-11-121-1/+1
|
* Improve save handling for built-in scriptskobewi2021-11-071-11/+14
|
* Add is_built_in() method to Resourcekobewi2021-11-041-1/+1
|
* Move add_syntax_highlighter bind to ScriptEditorBasePaulb232021-10-111-4/+0
|
* Added status bar and toggle scripts panel button to EditorHelp/VScriptsYuri Roubinsky2021-09-151-0/+5
|
* Improve Undo/Redo menu itemsHaoyu Qiu2021-08-171-0/+12
| | | | | | | | | | | * Make Undo/Redo menu items disabled when clicking it does nothing. * Context menu of `TextEdit` * Context menu of `LineEdit` * Editor's Scene menu * Script editor's Edit menu and context menu (for Script and Text) * Make editor undo/redo log messages translatable. * Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`. * Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
* Reorganise text editor settingsPaulb232021-08-161-1/+1
|
* Cleanup and bind remaing methods in TextEditPaulb232021-08-121-2/+4
|
* Protect internal CodeEdit --> TextEdit APIPaulb232021-08-121-1/+1
|
* Cleanup TextEdit selection methodsPaulb232021-08-121-6/+6
|
* Cleanup and rename caret operationsPaulb232021-08-121-12/+13
|
* Optimize StringName usagereduz2021-07-181-11/+11
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Script editor: Rename 'Clone Down' to 'Duplicate Selection'Rémi Verschelde2021-06-291-3/+3
| | | | Fixes #36670.
* Move indent management to CodeEditPaulb232021-06-201-2/+2
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-2/+2
|
* Merge pull request #49238 from Paulb23/code_edit_code_foldingRémi Verschelde2021-06-161-4/+4
|\ | | | | Move code folding into CodeEdit and hide line hiding API
| * Move code folding into CodeEdit and hide line hiding APIPaulb232021-06-011-4/+4
| |
* | Merge pull request #49265 from KoBeWi/keepfreplace_2_keepers_of_replaceRémi Verschelde2021-06-091-0/+4
|\ \ | | | | | | Move FindReplaceBar out of CodeTextEditor
| * | Move FindReplaceBar out of CodeTextEditorkobewi2021-06-081-0/+4
| |/
* / Fix TextEditor redo shortcut typoPaulb232021-06-081-1/+1
|/
* Add custom background line colour to TextEdit and remove marked linesPaulb232021-05-221-52/+1
|