summaryrefslogtreecommitdiffstats
path: root/editor/plugins/text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Add get_base_editor to ScriptEditorBasesent442021-05-151-0/+4
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-1/+1
|
* Removed hardcoded shortcuts from /scene and converted to input actionsEric M2021-02-181-14/+14
| | | | | | This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
* Change themes *_color_* to *_*_colorMarcel Admiraal2021-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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-2/+2
|
* Rename Control margin to offsetMarcel Admiraal2020-12-231-1/+1
|
* Implement new shortcuts system.Eric M2020-11-231-0/+3
| | | | unhandled_key_input changed to unhandled_button_input. Controls can set a 'shortcut_context' which they can then use to determine if their shortcuts should be triggered or not, based on if the viewport's focused GUI control is a child of their 'shortcut context'.
* Add main_gutter (breakpoints, bookmarks, execution lines) to code_editPaulb232020-09-101-2/+3
|
* Add and convert editor to use CodeEditPaulb232020-09-101-21/+21
|
* Make unsaved scripts in the script editor more user-friendlyAndrii Doroshenko (Xrayez)2020-07-261-1/+7
| | | | | | | | | | | | | | | Unsaved scripts were previously displayed with blank tabs, which are mostly a result of deleted or improperly moved scripts. This patch makes sure that those kind of scripts are displayed as "[unsaved]" now, and ensures that scripts are removed from the list while deleting scripts from the filesystem dock preventing the unsaved tabs to appear in the first place (a user is already prompted with "no undo" warning while deleting any file). A user is always prompted to save those "[unsaved]" scripts if they attempt to close them without saving in any case except as described above.
* Optimized ScriptEditor initialization when many scripts are loadedPouleyKetchoupp2020-07-171-16/+26
| | | | | | | | | | | | | | 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)
* Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb232020-07-111-45/+15
| | | | | | | | - 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
* Expose Syntax highlighter for editor pluginsPaulb232020-07-111-0/+1
|
* Convert syntax highlighters into a resourcePaulb232020-07-111-14/+9
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-1/+2
| | | | | 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-61/+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.
* Replace NULL with nullptrlupoDharkael2020-04-021-6/+6
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-36/+36
|
* 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).
* | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-19/+11
|/ | | | | | | | | 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.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-11/+11
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-1/+1
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Added 'Replace in files' functionality to text editorsDominik 'dreamsComeTrue' Jasiński2020-02-131-0/+7
| | | | Fixes issue #31146
* Texture refactorJuan Linietsky2020-02-111-1/+1
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Removed translation for bookmarks menu item name in TextEditorPouleyKetchoupp2019-11-251-1/+1
| | | | Only the label's text needs a translation, and it could cause issues when getting the node by name in a different language.
* Remove dependency on the editor directory being in the build's include path.Marcel Admiraal2019-10-101-1/+1
| | | | | | | - Add or remove the necessary subdirectorires to the includes to remove dependency on the editor directory being in the build's include path. - Ensure includes in modified files conform to style guideline. - Remove editor from the build include path.
* Support menu key in TextEdit and LineEdit controlsPaul Trojahn2019-09-221-3/+12
| | | | Related to #15542
* Add "Find in Files..." to the text editorMichael Alexsander Silva Dias2019-08-121-2/+12
|
* Move "Go to Line..." from "Edit" to "Go To" in text editorMichael Alexsander Silva Dias2019-08-091-20/+27
|
* Fix Find in Files Not Working ProperlyEmmanuel Barroga2019-08-061-0/+5
| | | When using the "Find in Files" option to search in non-script files (e.g. .tscn), the search does not work properly.
* Fix memory leaks with SyntaxHighlightersPaulb232019-07-251-0/+9
|
* Merge pull request #29071 from YeldhamDev/improve_bookmarksRémi Verschelde2019-07-011-9/+49
|\ | | | | Improve bookmarks
| * Improve bookmarksMichael Alexsander Silva Dias2019-05-241-9/+49
| |