summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Prevent error generates if `Delete Line` used on last line in CodeEditorYuri Roubinsky2021-09-141-1/+3
|
* Merge pull request #52662 from Chaosus/fix_bookmarksRémi Verschelde2021-09-141-1/+1
|\ | | | | Fix editor crash on pressing `Go to Previous Bookmark` menu button
| * Fix editor crash on pressing `Go to Previous Bookmark` menu buttonYuri Roubinsky2021-09-141-1/+1
| |
* | Fix Find Next shortcut not working when search bar is focusedThreeRhinosInAnElephantCostume2021-09-021-1/+21
|/
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-5/+2
| | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* Fix carret not following while debugging (Fix #51754)jmb4622021-08-161-3/+3
|
* Reorganise text editor settingsPaulb232021-08-161-31/+48
|
* Move CodeEdit theme overrides into EditorThemePaulb232021-08-131-34/+5
|
* Cleanup and bind remaing methods in TextEditPaulb232021-08-121-13/+9
|
* Cleanup and expose viewport / scrolling methodsPaulb232021-08-121-1/+1
|
* Cleanup TextEdit selection methodsPaulb232021-08-121-18/+18
|
* Expose and cleanup TextEdit line wrap APIPaulb232021-08-121-1/+1
|
* Cleanup and rename caret operationsPaulb232021-08-121-85/+85
|
* Move line length guidelines into CodeEditPaulb232021-08-011-3/+9
|
* Move brace matching into CodeEditPaulb232021-08-011-1/+1
|
* Move auto brace completion to CodeEditPaulb232021-08-011-9/+2
|
* Optimize theme change in code editorPouleyKetchoupp2021-07-301-0/+12
| | | | | Postpone applying the whole theme when a setting changes, to avoid updating everything many times when the whole editor theme is changed.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-3/+1
|
* Optimize StringName usagereduz2021-07-181-60/+60
| | | | | | | | | | | * 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.
* Merge pull request #49719 from LightningAA/rename-node-is-ancestor-ofRémi Verschelde2021-06-291-1/+1
|\ | | | | Rename `is_a_parent_of()` to `is_ancestor_of()`
| * Rename `is_a_parent_of()` to `is_ancestor_of()`Lightning_A2021-06-211-1/+1
| |
* | Merge pull request #49650 from KoBeWi/FindReplaceCrashRémi Verschelde2021-06-241-0/+14
|\ \ | | | | | | Fix crash with FindReplaceBar