summaryrefslogtreecommitdiff
path: root/scene/gui/tree.cpp
AgeCommit message (Collapse)Author
2022-03-30Make vararg method bind no return and returnPierre-Thomas Meisels
Type emit_signal exposed method return type set UndoRedo add_do_method and add_undo_method exposed return void Set TreeItem::_call_recursive_bind returns void Set _rpc_bind and _rpc_id_bind returns void in Node Set _call_group and _call_group_flags method returns void in SceneTree Set godot-cpp-test CI flag to false
2022-03-09Remove VARIANT_ARG* macrosreduz
* Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-02-27Double clicking scene tree icon focuses that nodeFazil Babu
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-15Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde
2022-02-08Improve TreeItem button APIHaoyu Qiu
2022-02-08Merge pull request #40140 from hinlopen/tree-scroll-centerRémi Verschelde
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-02-06Add missing SNAME macro optimization in some function callsjmb462
2022-02-05Add shortcut_cell double click functionalityGer Hean
2022-02-05Center when scrolling to tree item.Stijn Hinlopen
2022-02-01Merge pull request #57355 from akien-mga/method-bindings-clearer-typesRémi Verschelde
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2022-01-28Improve some method bindings to use specific `Object` subtypesRémi Verschelde
This was made possible by changes to `VariantCaster` which now make it possible to pass any `Object`-derived type as pointer.
2022-01-27Merge pull request #57205 from TechnoPorg/variant-template-castRémi Verschelde
Allow method binds to take Object subclasses as arguments
2022-01-25Allow method binds to take Object subclasses as argumentsTechnoPorg
This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object. This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary. A few small changes also had to be made to other files, due to the changes cascading down all the includes.
2022-01-20Merge pull request #53276 from Phischermen/propagate_checkRémi Verschelde
2022-01-18Addded methods to propagate checks & refactored classes to use new methods.Kevin Fischer
2022-01-11Merge pull request #56322 from madmiraal/fix-42450Rémi Verschelde
2022-01-05Merge pull request #55791 from ↵Rémi Verschelde
kleonc/tree-dont-consume-mouse-if-collapser-not-visible
2022-01-05Merge pull request #56346 from pycbouh/control-treentegerRémi Verschelde
2022-01-05Merge pull request #56408 from eazrael/tree-fix-selectionmode-rowRémi Verschelde
Tree: Fix de-select when selection mode set to SELECT_ROW
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-02Tree: Fix de-select when selection mode set to SELECT_ROWChristoph Nelles
It no longer de-selects an already selected row if the SELECT_MODE is set to SELECT_ROW. Update scene/gui/tree.cpp Co-authored-by: Michael Alexsander <michaelalexsander@protonmail.com>
2021-12-30Fix an incorrect exposed property type in TreeYuri Sizov
2021-12-29Rename speed to velocity when it's a directional VectorMarcel Admiraal
2021-12-10Tree Don't consume mouse event by collapse arrow which isn't shownkleonc
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-06Merge pull request #55662 from ↵Rémi Verschelde
KoBeWi/update_minimum_size_changed_to_update_minimum_size
2021-12-06Fix bad popups offset in editor with single window offjmb462
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-12-06Rename minimum_size_changed() methodkobewi
2021-12-05Bind column_titles_visible as propertykobewi
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-16Rename built-in `SGN()` macro to `SIGN()`Hugo Locurcio
This matches the name of the GDScript function (except it's uppercase here).
2021-11-12Use "enum class" for input enumsAaron Franke
2021-10-25Ignore empty Font resources as theme override.bruvzg
Add range hint to font_size properties. Remove excessive `base_size` Font property.
2021-10-23Fix possible crash when calling Tree.notification from _readyRobin Arys
2021-10-04Remove EDSCALE dependency from /scene/guiYuri Sizov
2021-09-28Fix tree title column size minimum widthjmb462
2021-09-26Fix minimum size of TreeItemfloppyhammer
2021-09-25Merge pull request #53049 from AnilBK/dont-construct-2Rémi Verschelde
2021-09-25Construct values only when necessary.Anilforextra
2021-09-25Correctly calculate position of the folding arrow in TreeYuri Sizov
2021-09-15Merge pull request #52313 from groud/cache_tree_item_sizeRémi Verschelde
2021-09-13Fix error when click edge of the tree iconTomasz Chabora
2021-09-01Cache TreeItem minimum size for performance.Gilles Roudière
2021-08-28Add support for internal nodeskobewi
2021-08-27Merge pull request #52096 from kleonc/tree-item-drag-drop-drawingMax Hilbrunner
Tree Fix line rendering when drag and dropping TreeItem