summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Disable code font ligatures by default in the editorHugo Locurcio2022-11-121-2/+2
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-35/+35
|
* Fix some bugs about search in code editorRindbee2022-10-111-44/+53
| | | | | | 1. Fix #61713; 2. Fix the bug when there are consecutive matches, forward searching will skip the adjacent item; 3. Fix the bug that enable the selection-only option will affect the operations in search mode.
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-9/+9
| | | | change warnings=all to use /W4.
* Merge pull request #61902 from Paulb23/multi-caretRémi Verschelde2022-10-061-239/+429
|\ | | | | | | Add Multi-caret support to TextEdit
| * Add multi caret support to EditorPaulb232022-10-051-240/+430
| |
* | Split script navigation state and edit statekobewi2022-09-251-14/+23
|/
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-4/+4
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Rename every instance of `caret_blink_speed` to `caret_blink_interval`Micky2022-09-061-1/+1
| | | | | | It's been changed in EditorSettings, LineEdit, TextEdit. Affects setters and getters, and passed parameters, too.
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-8/+8
| | | | | | | | | | 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`.
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-4/+4
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-4/+4
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-4/+0
|/
* Replace Array return types with TypedArraykobewi2022-08-221-2/+2
|
* Allow using numpad for zoom shortcuts in the 2D/code editorsHugo Locurcio2022-08-101-1/+2
| | | | This behavior is consistent with GIMP.
* Fix guidelines appearanceStanislav Labzyuk2022-08-021-0/+2
|
* Fix script editor zoom shortcuts not marking events as accepted.bruvzg2022-07-251-0/+3
|
* Adding shader preprocessor supportYuri Roubinsky2022-07-221-0/+4
| | | | Co-authored-by: TheOrangeDay <6472143+TheOrangeDay@users.noreply.github.com>
* Fix negative search result matchAndreas Raddau2022-07-121-1/+1
|
* Fix regressions from Font refactorbruvzg2022-07-081-1/+0
| | | | | Remove unnecessary font override Fixes button outline draw when it should not, causing button colors to be slightly off
* Fix regressions from Font refactorbruvzg2022-07-071-56/+52
| | | | | Fixes `p_font.is_null()` errors due to incorrect resource type used. Fixes code editor font not set correctly, and OpenType features applied to the wrong font.
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-15/+30
|
* Add an option to drag'n'drop selected text in TextEditConteZero2022-06-261-0/+1
|
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-4/+0
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Indicate code editor search match numberOğuzhan Eroğlu2022-04-271-22/+76
|
* Add GDExtension support to Scriptreduz2022-03-271-13/+13
| | | | | | | | | * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
* Initialize bools in the headers in editorAaron Franke2022-03-121-6/+0
|
* Port existing _notification code to use switch statements (part 1/3)jmb4622022-02-161-42/+47
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-4/+1
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-2/+2
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-18/+18
| | | | | | | | 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-18/+18
|
* Add missing SNAME macro optimization in some function callsjmb4622022-02-061-2/+2
|
* Remove get_focus_owner() from Control, replaced by ↵Gilles Roudière2022-02-031-2/+2
| | | | get_viewport()->gui_get_focus_owner()
* Fix theming update of shader editorYuri Roubinsky2022-01-251-15/+18
|
* Rename request_code_completion signalkobewi2022-01-221-1/+1
|
* Prevent error emitting when clicking on error in code text editorYuri Roubinsky2022-01-051-1/+3
|
* 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-2/+2
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fixup last commit, change misleading CodeEditor for consistencyRémi Verschelde2021-12-091-3/+3
|
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-3/+3
|
* ScrollContainer's scrollbar visibility is now enumkobewi2021-12-071-1/+1
|
* Make delete_lines work correctly regardless of the selectionator-dev2021-11-261-1/+1
|
* Use "enum class" for input enumsAaron Franke2021-11-121-9/+9
|
* Add option to make selection uniqueConteZero2021-10-271-0/+1
|
* Improve GDScript Editor and Improve latencyGordon MacPherson2021-09-211-8/+1
| | | | | | | | | Improvements: - GDScript Highlighter is faster by 25% as keys are smaller (hashes instead of strings) - Removes message queue from _apply_settings_change to allow resize to work correctly - Some performance fixes are pending still Note: this resolves the code editor behaving badly when resizing in debug builds
* Merge pull request #52655 from Chaosus/toggle_scripts_panelRémi Verschelde2021-09-171-8/+5
|\
| * Added status bar and toggle scripts panel button to EditorHelp/VScriptsYuri Roubinsky2021-09-151-8/+5
| |
* | Tweak the script editor's line/column indicator for readabilityHugo Locurcio2021-09-141-4/+2
|/ | | | | | | - Use a colon instead of parentheses and a comma to reduce visual clutter. - Pad the line number with 4 spaces to account for scripts longer than 999 lines.