summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@0f5f3bc9546b46b2029fc8896dc859697f1eab97Spartan3222024-11-111-45/+14
|\
| * Merge pull request #96841 from maidopi-usagi/tree_item_height_cacheThaddeus Crews2024-11-101-41/+8
| |\ | | | | | | | | | [Tree] Improve Tree Performance by replacing computed height with TreeItem's cached minimum size
| | * replace computed height with cached item minimum sizeMaidOpi2024-11-071-41/+8
| | |
| * | Fix issue where scrolling to item center would overflow on topAdam Scott2024-11-051-4/+6
| |/
* | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-2/+2
|\|
| * Merge pull request #97934 from adamscott/give-AThousandShips-a-breakThaddeus Crews2024-10-291-2/+2
| |\ | | | | | | | | | [Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
| | * Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-251-2/+2
| | | | | | | | | | | | - Set clang-format `Standard` rule to `c++20`
* | | Merge pull request #818 from Spartan322/fixup/copyright-headersGeorge L. Albany2024-10-271-2/+2
|\ \ \ | | | | | | | | Fix copyright headers referring to Godot
| * | | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| | | |
* | | | Merge commit godotengine/godot@61accf060515416da07d913580419fd8c8490f7bSpartan3222024-10-261-11/+9
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Merge pull request #97157 from pafuent/fixing_tree_item_get_prev_wrapThaddeus Crews2024-10-251-11/+9
| |\ \ | | |/ | |/| | | | Fix `TreeItem` `get_prev*` methods when `p_wrap` is `true`
| | * Fixing TreeItem get_prev_xxx methods when p_wrap is truePablo Andres Fuente2024-09-231-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #85032 The code that fix the issue is courtesy of @Jesusemora, I just added unit tests for it and did a rebase with the latest changes on master. Co-authored-by: Jesusemora <32273722+Jesusemora@users.noreply.github.com>
* | | Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-221-101/+296
|\| |
| * | Merge pull request #98299 from timothyqiu/tree-coordinateThaddeus Crews2024-10-211-1/+1
| |\ \ | | | | | | | | | | | | Fix button click detection when `Tree` is rotated
| | * | Fix button click detection when `Tree` is rotatedHaoyu Qiu2024-10-181-1/+1
| | | |
| * | | Add hover state to Tree items displayDavid Giardi2024-10-171-100/+295
| |/ /
* / / Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | Merge pull request #95889 from KoBeWi/tree_growing_sidewaysRémi Verschelde2024-10-041-4/+4
|\ \ | | | | | | | | | Allow horizontal scrolling in Tree using Shift
| * | Allow horizontal scrolling in Tree using Shiftkobewi2024-08-211-4/+4
| | |
* | | Add auto translate mode for cells in TreeHaoyu Qiu2024-10-011-4/+45
| |/ |/|
* | Merge pull request #96643 from bruvzg/fs_linksRémi Verschelde2024-09-121-0/+28
|\ \ | | | | | | | | | [FileSystem Dock] Add symlink indicator and tooltip.
| * | [FileSystem Dock] Add symlink indicator and tooltip.bruvzg2024-09-061-0/+28
| | |
* | | Merge pull request #96232 from AThousandShips/tree_navigate_rowRémi Verschelde2024-09-081-5/+13
|\ \ \ | |/ / |/| | | | | [Tree] Improve navigation with row select mode
| * | [Tree] Improve navigation with row select modeA Thousand Ships2024-08-281-5/+13
| | | | | | | | | | | | | | | Allows navigating with the `ui_left/right` actions when selecting rows, fixing a navigation inconsistency
* | | Merge pull request #70096 from rune-scape/stringname-dictRémi Verschelde2024-09-031-1/+1
|\ \ \ | | | | | | | | | | | | StringName Dictionary keys
| * | | StringName Dictionary keysrune-scape2024-08-291-1/+1
| |/ / | | | | | | | | | | | | also added 'is_string()' method to Variant and refactored many String type comparisons to use it instead
* | | Merge pull request #96000 from kerstop/deadzone_slider_fixRémi Verschelde2024-09-031-4/+2
|\ \ \ | | | | | | | | | | | | Fix deadzone slider not working correctly
| * | | fix deadzone slider not working correctlykerstop2024-08-231-4/+2
| | |/ | |/|
* | | Merge pull request #96142 from timothyqiu/one-signal-to-invalidate-them-allRémi Verschelde2024-09-021-3/+10
|\ \ \ | |_|/ |/| | | | | Fix collapsing `TreeItem` not updating horizontal scrollbar
| * | Fix collapsing TreeItem not updating horizontal scrollbarHaoyu Qiu2024-08-271-3/+10
| |/
* / Improve Tree performanceaaronp642024-07-261-34/+29
|/ | | | Added TreeItem::last_child to avoid needing to iterate through all children to get to the end. This mainly helps in cases where one TreeItem has many children (1000s), and new children are added to the end, as each add had to iterate through all previously added children.
* Fix issue causing input lock when drag scrolling a `Tree` element on ↵Fredia Huya-Kouadio2024-07-181-0/+18
| | | | | | | | | | | touchscreen devices Prior to this fix, scrolling via mouse drag on touchscreen devices, and drag&drop operation on a `TreeItem` element would conflict with each other preventing the drag scroll from being released when the mouse button is released. The issue is addressed by disabling drag&drop when drag scrolling is ongoing.
* Merge pull request #93179 from TheSofox/tree-nav-crashRémi Verschelde2024-06-241-6/+7
|\ | | | | | | Fix engine crashing when using Down Arrow selection on Tree with no selection
| * Fix engine crashing when using Down Arrow selection on Tree with no selectionSofox2024-06-221-6/+7
| |
* | [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-3/+3
| |
* | [Scene] Add `SceneStringNames::item_selected`A Thousand Ships2024-06-191-2/+2
|/
* [Scene] Add `SceneStringNames::id_pressed`A Thousand Ships2024-05-301-1/+1
|
* Fix Tree and FileSystemList edit popup double events and ESC behavior.bruvzg2024-05-171-1/+25
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+1
|
* Fold TreeItems when clicking to the left of fold iconkobewi2024-05-081-1/+1
|
* Make handling of rename line-edit popups more robustPedro J. Estébanez2024-05-071-3/+1
|
* [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-021-1/+1
| | | | Convenience for a number of cases operating on single values
* Fix Tree minimum size calculationHaoyu Qiu2024-04-251-36/+47
| | | | | | | | | - Take scroll bar space and column title buttons into account - Fix first column min size sometimes missing one level of indent - Fix cell min size ignoring text overrun behavior and item inner margin - Update min size when `hide_root` or `column_title_visible` changes Wrong description of `item_inner_margin_*` constants is also fixed
* Fix wrong Tree column title positionHaoyu Qiu2024-04-231-2/+3
|
* Fix TreeItem button handlingHaoyu Qiu2024-04-181-79/+102
| | | | | | - Fix incorrect tooltip and `get_button_id_at_position()` when column title is visible and when RTL layout is used - Take `button_margin`, `h_separation`, and `item_margin` into account
* Merge pull request #90842 from timothyqiu/revert-79792Rémi Verschelde2024-04-181-3/+10
|\ | | | | | | Revert "Correctly display tooltips for buttons in Tree when they overlap cell content
| * Revert "Correctly display tooltips for buttons in Tree when they overlap ↵Haoyu Qiu2024-04-181-3/+10
| | | | | | | | | | | | cell content" This reverts commit 8278a5f274eda7484b4f31a5acb4af34b9d4fc39.
* | Fix non-embedded Windows resizing to match Viewport content scale factorKoyper2024-04-171-3/+11
|/
* Merge pull request #89977 from aqfranco/masterRémi Verschelde2024-04-041-5/+18
|\ | | | | | | Fix TreeItem shows cell edit in the wrong column when `select_mode=Row` and TreeItem has multiple columns
| * Fix #88892: TreeItem shows cell edit in the wrong column when SelectMode=Row ↵Andre Franco2024-03-281-5/+18
| | | | | | | | | | | | | | | | | | | | and TreeItem has multiple columns Editor would not be brought up when clicking on all but the last column on a TreeItem with SelectMode=Row with multiple columns and when the editor was being brought up when clicking on the last column, it was editing the first column Fixed draw_item, gui_input and edit_selected functions by setting set_meta parameter for each column Fixed select_single_item function by changing selected_col depending on input