summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Pass caret index when deleting selection with backspaceAlfred Reinold Baudisch2022-11-051-2/+2
| | | | | | | | Fixes and closes #67992
* | Merge pull request #67994 from YeldhamDev/how_suggestiveRémi Verschelde2022-11-021-1/+18
|\ \ | | | | | | | | | Stop centering clicked suggestions in the autocomplete popup
| * | Stop centering clicked suggestions in the autocomplete popupMichael Alexsander2022-10-281-1/+18
| | |
* | | Fix crash in code completion when using an invalid / null fontPaulb232022-10-161-4/+12
|/ /
* / Improved breakpoints hover indicatorVolTer2022-10-101-14/+18
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-8/+8
| | | | change warnings=all to use /W4.
* Add multi caret support to CodeEditPaulb232022-10-051-349/+396
|
* Add mutliple Caret support to TextEditPaulb232022-10-051-2/+2
|
* Merge pull request #65540 from MewPurPur/easier-bookmarksRémi Verschelde2022-09-261-11/+24
|\ | | | | | | Implement Shift+LMB as a Way to Toggle Bookmarks
| * Shift+LMB to Toggle BookmarksVolTer2022-09-081-11/+24
| |
* | Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-3/+3
|/ | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-28/+28
| | | | | | | | | | 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-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()`).
* Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-2/+1
|
* Replace Array return types with TypedArraykobewi2022-08-221-7/+7
|
* Rename OSX to macOS and iPhoneOS to iOS.bruvzg2022-07-211-1/+1
|
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-14/+14
|
* Add the ability to drag the code completion scrollbar using the mouse clickMinusKube2022-07-031-1/+50
|
* Use range iterators for RBSet in most casesAaron Record2022-05-191-4/+4
|
* 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!
* Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and ↵bruvzg2022-05-131-0/+5
| | | | CodeEdit.
* Add a new HashMap implementationreduz2022-05-121-1/+3
| | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-2/+2
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* fix lines ending in comments causing auto indentNathan Franke2022-04-281-1/+2
|
* Rename theme properties to include underscoresFireForge2022-04-231-1/+1
| | | | | | | | | | | | | | - check_vadjust -> check_v_adjust - close_h_ofs -> close_h_offset - close_v_ofs -> close_v_offset - commentfocus -> comment_focus - hseparation -> h_separation - ofs -> offset - selectedframe -> selected_frame - state_machine_selectedframe -> state_machine_selected_frame - table_hseparation -> table_h_separation - table_vseparation -> table_v_separation - vseparation -> v_separation
* Fix inspector group name capitalizationFireForge2022-03-281-1/+1
|
* Add GDExtension support to Scriptreduz2022-03-271-15/+15
| | | | | | | | | * 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).
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-0/+1
|
* Add sub-pixel glyph positioning support.bruvzg2022-02-121-1/+1
|
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-17/+9
|
* String: Add contains().Anilforextra2022-02-041-1/+1
|
* With auto_brace_complete enabled, selected text now gets wrapped by bracesIgor Kordiukiewicz2022-01-301-15/+28
|
* Merge pull request #57281 from Rubonnek/rename-subsequenceRémi Verschelde2022-01-271-1/+1
|\
| * Rename String::is_subsequence_ofi to String::is_subsequence_ofnWilson E. Alvarez2022-01-261-1/+1
| |
* | Fix selection being deleted and indentation not being accounted forPreslavb2022-01-231-1/+5
|/
* Rename request_code_completion signalkobewi2022-01-221-4/+4
|
* Convert TextEdit callbacks to CallablePaulb232022-01-191-9/+3
|
* Fix CodeEdit guidelines position.bruvzg2022-01-141-1/+1
|
* Merge pull request #55851 from Chaosus/better-completion-options-list_rebasedRémi Verschelde2022-01-061-13/+90
|\
| * Fix highlight for completion options match (rebased)Yuri Roubinsky2021-12-121-13/+90
| | | | | | Co-authored-by: Gustav Andersson <gvekan@users.noreply.github.com>
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Fix various typosluz paz2022-01-021-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-5/+5
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-3/+3
|
* Merge pull request #55227 from ator-dev/fix-code-foldingRémi Verschelde2021-11-251-22/+5
|\
| * Fix code folding when end of block is unindented delimiterator-dev2021-11-241-22/+5
| |
* | Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-3/+3
|/
* Fix TextEdit mouse interactions when the last line is hiddenPaulb232021-11-171-7/+13
|
* Use "enum class" for input enumsAaron Franke2021-11-121-9/+9
|
* Ignore empty Font resources as theme override.bruvzg2021-10-251-1/+1
| | | | | Add range hint to font_size properties. Remove excessive `base_size` Font property.