summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix crash when executing CodeEdit._main_gutter_draw_callbackHaoyu Qiu2021-10-181-3/+3
|
* Merge pull request #53476 from Paulb23/breakpoint-move-up-fixRémi Verschelde2021-10-061-3/+4
|\
| * Fix breakpointed_lines out of sync when removing lines abovePaulb232021-10-061-3/+4
| |
* | Fix the "END" key behaving like "PAGE_DOWN" in code completion.Eric M2021-10-061-1/+1
|/ | | | Before: behaved like page down. After: goes to last item.
* Fix deleting selection at the first line do not work with backspaceJean-Michel Bernard2021-10-011-5/+5
|
* Use range iterators for `Map`Lightning_A2021-09-301-8/+8
|
* Improved breakpoint gutter for CodeEdit.Eric M2021-09-301-6/+13
| | | | Added preview of breakpoint placement on hover. Added override of icon for the Editor to use an SVG so it is no longer blurry.
* Fix incorrect offsets of tooltip content in `CodeEdit`Yuri Roubinsky2021-09-241-3/+3
| | | | | Fix incorrect offsets of tooltip content in `CodeEdit`
* Construct values only when necessary.Anilforextra2021-09-231-2/+2
|
* Change completion prefixes to single char and unnecessary ui_cancel accept_eventPaulb232021-09-201-10/+13
|
* Merge pull request #52583 from e8newallm/52360Rémi Verschelde2021-09-141-1/+3
|\ | | | | Removed updates that caused unnecessary window updates
| * Removed updates that caused unnecessary window updatesMatthew Newall2021-09-131-1/+3
| |
* | Merge pull request #52443 from Paulb23/code-edit-indext-fixesRémi Verschelde2021-09-131-3/+3
|\ \ | | | | | | Fix brace placement with space auto indent
| * | Fix brace placement with space auto indentPaulb232021-09-061-3/+3
| | |
* | | Merge pull request #52346 from Paulb23/string-tracking-fixesRémi Verschelde2021-09-131-4/+13
|\ \ \ | | | | | | | | Fix getting deliminator start over empty lines and blank start keys
| * | | Fix getting deliminator start over empty lines and blank start keysPaulb232021-09-021-4/+13
| |/ /
* | / Fix block deliminator not-folding at end of filePaulb232021-09-091-1/+6
| |/ |/|
* | Merge pull request #52339 from jmb462/fix-fold-function-with-comment-failMax Hilbrunner2021-09-071-4/+18
|\ \ | | | | | | Fix wrong folding behaviour of last block if containing comment