summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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-10/+10
| | | | | | 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-16/+13
|
* Merge pull request #55662 from ↵Rémi Verschelde2021-12-061-2/+2
|\ | | | | | | KoBeWi/update_minimum_size_changed_to_update_minimum_size
| * Rename minimum_size_changed() methodkobewi2021-12-061-2/+2
| |
* | Fix bad popups offset in editor with single window offjmb4622021-12-061-2/+2
|/ | | | | Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Bind column_titles_visible as propertykobewi2021-12-051-0/+1
|
* Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-1/+1
|
* Rename built-in `SGN()` macro to `SIGN()`Hugo Locurcio2021-11-161-1/+1
| | | | | This matches the name of the GDScript function (except it's uppercase here).
* Use "enum class" for input enumsAaron Franke2021-11-121-31/+31
|
* 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 possible crash when calling Tree.notification from _readyRobin Arys2021-10-231-1/+3
|
* Remove EDSCALE dependency from /scene/guiYuri Sizov2021-10-041-13/+5
|
* Fix tree title column size minimum widthjmb4622021-09-281-1/+1
|
* Fix minimum size of TreeItemfloppyhammer2021-09-261-40/+80
|
* Merge pull request #53049 from AnilBK/dont-construct-2Rémi Verschelde2021-09-251-1/+1
|\
| * Construct values only when necessary.Anilforextra2021-09-251-1/+1
| |
* | Correctly calculate position of the folding arrow in TreeYuri Sizov2021-09-251-1/+2
|/
* Merge pull request #52313 from groud/cache_tree_item_sizeRémi Verschelde2021-09-151-34/+68
|\
| * Cache TreeItem minimum size for performance.Gilles Roudière2021-09-011-34/+68
| |
* | Fix error when click edge of the tree iconTomasz Chabora2021-09-131-1/+10
|/
* Add support for internal nodeskobewi2021-08-281-6/+5
|
* Merge pull request #52096 from kleonc/tree-item-drag-drop-drawingMax Hilbrunner2021-08-271-14/+20
|\ | | | | Tree Fix line rendering when drag and dropping TreeItem
| * Tree Fix line rendering when drag and dropping TreeItemkleonc2021-08-251-14/+20
| |
* | Makes FontData importable resource.bruvzg2021-08-271-1/+22
|/ | | | | | | Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-3/+1
| | | | | | | | * `_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.
* Added icons and API for indeterminate checkmarks for the Tree class.Kevin Fischer2021-08-161-1/+24
|
* Optimize StringName usagereduz2021-07-181-98/+98
| | | | | | | | | | | * 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.
* Merge pull request #50135 from KoBeWi/🌲.update()Rémi Verschelde2021-07-131-32/+30
|\ | | | | Update Tree when modified
| * Update Tree when modifiedkobewi2021-07-041-32/+30
| |
* | Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648Hugo Locurcio2021-07-071-0/+4
|\ \ | | | | | | Avoid using a nullptr root in Tree._range_click_timeout().
| * | Avoid using a nullptr root in Tree._range_click_timeout().voxelv2021-06-301-0/+4
| |/ | | | | | | Fixes #46648
* / Clean up Treereduz2021-07-041-29/+119
|/ | | | | | | | | | | Fixes some problems introduced by #49917 * Tree used minimum size as a stretch ratio, so it forced a minimum size of 1. * Minimum size redone, stretch ratio moved to a separate setting * Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired. * Added a clip content option for situations where fit to contents does not apply. * Icon would scroll with the item, making it invislbe if the item is too long. * Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
* Fixes crash in case no column in tree is expanded and has minimum sizeGilles Roudière2021-06-291-2/+5
|
* Implement Tree's internal minimum width calculationGilles Roudière2021-06-281-37/+119
|
* Allow disabling scrolling in TreeGilles Roudière2021-06-251-12/+60
|
* Make relationship lines draw on top of TreeItemsYuri Sizov2021-06-211-54/+52
|
* Use mouse and joypad enums instead of plain integersAaron Franke2021-06-201-0/+2
| | | | Also MIDIMessage
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-1/+1
|
* Documentation search fixesGregory Basile2021-06-161-3/+3
| | | | | | Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
* Use bold fonts in editorreduz2021-06-021-2/+22
| | | | | | | * Labels are now bold * Categories in trees are bold * Main editor buttons are bold * Fixed section folding arrows in inspector
* fix-tree-item-draggingfloppyhammer2021-06-011-1/+1
|
* Fix disappearing relationship lines in Tree when item is out of viewYuri Sizov2021-05-261-2/+8
|
* Add highlight to the relationship lines of selected Tree itemsYuri Sizov2021-05-251-10/+83
|
* Tweak dozens of editor property hints for consistencyHugo Locurcio2021-05-251-1/+1
| | | | | | - Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
* Improve TreeItem API and allow to move nodestrollodel2021-05-171-163/+294
|
* Merge pull request #48168 from LightningAA/control-to-ctrl-4.0Rémi Verschelde2021-05-171-7/+7
|\
| * Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A2021-05-071-7/+7
| | | | | | | | InputEventWithModifiers properties/methods
* | Fix Tree::get_column_at_position crashHaoyu Qiu2021-05-161-0/+2
| |
* | Fix Tree's background focus outline displaying behind section headingsHugo Locurcio2021-05-091-6/+9
|/