summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename LineEdit caret_* properties getters and setters to match propertyMarcel Admiraal2021-04-171-2/+2
|
* Fix: Selection Only in Find/Replace now preserves selectionSushi2021-04-071-1/+1
|
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+4
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-4/+4
|
* 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-4/+4
|
* Rename Control margin to offsetMarcel Admiraal2020-12-231-4/+4
|
* Merge pull request #43742 from qarmin/editor_modules_default_valuesRémi Verschelde2020-12-081-0/+2
|\ | | | | Initialize class/struct variables with default values in platform/ and editor/
| * Initialize class/struct variables with default values in platform/ and editor/Rafał Mikrut2020-12-021-0/+2
| |
* | Rename CubeMesh BoxMeshMarcel Admiraal2020-12-051-1/+1
|/
* Reversed Toggle Script Button iconYuri Roubinsky2020-11-301-4/+4
|
* [Complex Text Layouts] Refactor TextEdit and CodeEdit controls.bruvzg2020-11-261-15/+86
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-45/+23
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Keep cursor relative position after multiline moveHaoyu Qiu2020-11-111-0/+6
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Remove breakpoints from editor settingsPaulb232020-09-101-2/+0
|
* Move ConnectionGutter to editor code_editorPaulb232020-09-101-1/+0
|
* Add main_gutter (breakpoints, bookmarks, execution lines) to code_editPaulb232020-09-101-30/+24
|
* Added Line numbers to CodeEditPaulb232020-09-101-2/+2
|
* Add and convert editor to use CodeEditPaulb232020-09-101-71/+71
|
* Merge pull request #33760 from nekomatata/script-editor-init-optimizationRémi Verschelde2020-07-261-2/+0
|\ | | | | Optimized ScriptEditor initialization when many scripts are loaded
| * Optimized ScriptEditor initialization when many scripts are loadedPouleyKetchoupp2020-07-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change avoids the editor to freeze for several seconds when a project with lots of scripts is loaded in the editor. It focuses on a few heavy operations previously executed on all previously loaded scripts: - Initialize script resource (script validation/parsing) only on focus - ScriptTextEditor: code editor and edit menu are added to the scene only on focus - Add to recent scripts only when opening new scripts (load/save scene metadata)
* | Reintroduce code completionGeorge Marques2020-07-201-0/+1
|/
* Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb232020-07-111-7/+14
| | | | | | | | - 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-3/+3
|
* Improve null check in FindReplaceBarYuri Sizov2020-07-061-15/+18
|
* Fix error label clicking in status bar for shader editorYuri Roubinsky2020-06-231-2/+1
|
* Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-4/+8
| | | | | | | | | | | ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
* Fix code editor Replace tool to work with 'Selection Only' optionMaganty Rushyendra2020-06-161-9/+36
| | | | | | Ensures that when the `Selection Only` option is selected, the Replace tool replaces occurrences of the search phrase only within the selected region, and in order of occurrence.
* Fix match count for whole word search in editorMaganty Rushyendra2020-06-151-3/+4
| | | | Check if a match borders a new line char when incrementing match counts.
* Fix whole word search slowdown in editorMaganty Rushyendra2020-06-121-1/+1
| | | | | | Reduce repeated iteration through the full text when counting the number of occurrences of whole words while searching a file in the editor.
* FIX CodeTextEditor not respecting focus in _inputMrRevington2020-05-221-1/+1
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-37/+73
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-63/+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.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-2/+4
| | | | | | | 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.
* Rename InputFilter back to InputRémi Verschelde2020-04-281-3/+3
| | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Merge pull request #37447 from ThakeeNathees/text-replace-empty-string-fixRémi Verschelde2020-04-061-1/+9
|\ | | | | replace selected text with empty string bug fixed
| * replace selected text with empty string bug fixedThakee Nathees2020-04-061-1/+9
| | | | | | | | Fix: #37416
* | Replace NULL with nullptrlupoDharkael2020-04-021-2/+2
|/
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-42/+42
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-4/+4
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-3/+3
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-261-1/+1
|
* Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde2020-03-011-1/+1
|\ | | | | Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
| * Rename `scancode` to `keycode`.bruvzg2020-02-251-1/+1
| | | | | | | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* | Merge pull request #36621 from ↵Rémi Verschelde2020-03-011-1/+1
|\ \ | | | | | | | | | | | | WizardOhio24/fix-wrong-selection-on-line-clone-down Fix wrong selection on cloning a line down in the editor
| * | Fix wrong selection on cloning a line down in the editorRichard Menzies2020-02-291-1/+1
| | |
* | | Signals: Manually port most of remaining connect_compat usesRémi Verschelde2020-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
* | | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-47/+25
|/ / | | | | | | | | | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* | Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde2020-02-271-2/+3
|\ \ | |/ |/| Add a soft line length guideline to the script editor