summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-221-3/+15
|\
| * Add hover state to Tree items displayDavid Giardi2024-10-171-3/+15
| |
* | 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>
* Add auto translate mode for cells in TreeHaoyu Qiu2024-10-011-0/+7
|
* [FileSystem Dock] Add symlink indicator and tooltip.bruvzg2024-09-061-0/+4
|
* [Tree] Fix error when removing child from `Tree`A Thousand Ships2024-08-281-0/+3
| | | | New `last_child` member was not properly updated
* Improve Tree performanceaaronp642024-07-261-0/+1
| | | | 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/+2
| | | | | | | | | | | 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.
* Fix Tree and FileSystemList edit popup double events and ESC behavior.bruvzg2024-05-171-0/+1
|
* Fix TreeItem button handlingHaoyu Qiu2024-04-181-0/+2
| | | | | | - 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
* Revert "Correctly display tooltips for buttons in Tree when they overlap ↵Haoyu Qiu2024-04-181-1/+0
| | | | | | cell content" This reverts commit 8278a5f274eda7484b4f31a5acb4af34b9d4fc39.
* Merge pull request #88300 from FaycalElOuariachi/add-TreeItem-is_visible_in_treeRémi Verschelde2024-03-051-0/+4
|\ | | | | | | Add `is_visible_in_tree` in `TreeItem`
| * Add is_visible_in_tree in TreeItemFaycal ElOuariachi2024-03-051-0/+4
| |
* | Add auto translation to `Tree`Michael Alexsander2024-03-011-0/+2
|/
* Add `get_button_color(column, id)`radzo732024-01-281-0/+1
| | | | Docs should point to Color constuctor instead of just the class, but I unfortunately cannot.
* Use callable for `TreeItem` custom drawA Thousand Ships2024-01-231-2/+5
| | | | Deprecating old functionality
* Implement disabled state for Checkbox in TreeStanislav Labzyuk2023-11-151-0/+4
|
* Register theme properties with ThemeDBYuri Sizov2023-09-111-2/+1
|
* Correctly display tooltips for buttons in Tree when they overlap cell contentMiguel Pereira2023-08-271-0/+1
|
* GUI: Fix text overlapping icon in `Tree`Danil Alexeev2023-08-241-0/+4
|
* GUI: Fix `Tree` performance regression by using cacheDanil Alexeev2023-08-041-1/+5
|
* Merge pull request #78393 from AThousandShips/tree_tooltipYuri Sizov2023-07-121-0/+1
|\ | | | | | | Add ability to set the tooltip text of a `TreeItem` button
| * Add ability to set the tooltip text of a `TreeItem` buttonNinni Pipping2023-06-181-0/+1
| |
* | Merge pull request #75460 from ↵Yuri Sizov2023-07-121-0/+4
|\ \ | |/ |/| | | | | | | joao-pedro-braz/add_new_item_stylebox_to_the_tree_control Add a new "inner_item_margin" Theme constant to the Tree control
| * Add the "inner_item_margin" Theme constant to the Tree controlJoão Pedro Braz2023-06-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | This PR adds the "inner_item_margin" Theme constant to the Tree Control. It behaves like a horizontal padding (in CSS), but only in the active writing direction (So on LTR it'll apply a left padding and on RTL right padding). The Editor Theme has been updated to make use of this and a result items in Trees and ItemLists no longer "hugs" their border, expressing a proper spacing instead.
* | Tree: Add ability to configure text autowrap mode for individual cellsDanil Alexeev2023-06-031-0/+4
| |
* | Implement `TreeItem.add_child`Yuri Sizov2023-05-311-4/+3
|/
* Merge pull request #76794 from Wiwip/inline-editRémi Verschelde2023-05-111-1/+2
|\ | | | | | | Inline editor for the file system dock
| * Modifies the file system dock to use the inline editor instead of a dialog.Wiwip2023-05-101-1/+2
| | | | | | | | *Bugsquad edit:* Closes https://github.com/godotengine/godot-proposals/issues/4933
* | Improve editor state persistenceHendrik Brucker2023-05-111-2/+6
| |
* | Fix multiline items drawing in `Tree`Danil Alexeev2023-04-281-2/+2
|/
* Add support for multiline strings to `Tree`Danil Alexeev2023-04-251-9/+16
|
* Add allow_search property to ItemList and Treeneedleful2023-04-181-0/+4
|
* Add scrollbar offset theme constants to TreeHaoyu Qiu2023-04-061-0/+10
|
* Merge pull request #75340 from Barugon/tree_colunm_title_alignmentRémi Verschelde2023-04-031-0/+4
|\ | | | | | | Implement column title alignment for `Tree`
| * Implement column title alignment for `Tree`Barugon2023-03-271-0/+4
| |
* | Make icons of scripted and custom classes fit the editor UIYuri Sizov2023-03-311-1/+5
|/ | | | | | | | | | | Also: - Add an option to limit the icon size in PopupMenu. This is similar to how this works in Tree and TreeItem. - Add the same option to TabBar. - Add a theme constant for Tree, PopupMenu, Button, and TabBar to apply this limit on the control level. Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
* Merge pull request #70433 from Sauermann/fix-treeitem-idRémi Verschelde2023-01-161-11/+11
|\ | | | | | | Fix confusion about TreeItem.add_button ambiguity between id and index
| * Fix confusion about TreeItem.add_button ambiguity between id and indexMarkus Sauermann2022-12-291-11/+11
| | | | | | | | | | | | | | A TreeItem button has an id and an index, which can be distinct. This leads to confusion. This PR documents the distinction between id and index.
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
|/ | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Rename theme cache separation namesIceflower2022-11-301-2/+2
|
* [Font] Add an import option to pre-render all glyphs required for the ↵bruvzg2022-11-101-0/+1
| | | | translation.
* Tree recursive foldingNinni Pipping2022-09-211-0/+10
|
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-2/+4
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Add a lifecycle method for manual theme item caching to ControlYuri Sizov2022-09-011-4/+8
|
* Rename TreeItem's `set_tooltip` to `set_tooltip_text`Micky2022-08-301-3/+3
| | | | | | | | | `set_tooltip` -> `set_tooltip_text` `get_tooltip` -> `get_tooltip_text` For consistency: `get_button_tooltip` -> `get_button_tooltip_text` And the `tooltip` parameter in `add_button` was renamed to `tooltip_text`
* Replace Array return types with TypedArray 3kobewi2022-08-241-1/+1
|
* fixed Tree UI control bug corrupting child cachederammo2022-08-041-0/+7
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+2
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.