Blender Git Loki
Git Commits -> Revision 4ee2d9d
Revision 4ee2d9d by Julian Eisel (master) September 30, 2021, 14:39 (GMT) |
UI: Support easy dropping into/onto rows in new tree-view API Adds an easy way to add drop support for tree-view rows. Most of the work is handled by the tree-view UI code. The tree items can simply override a few functions (`can_drop()`, `on_drop()`, `drop_tooltip()`) to implement their custom drop behavior. While dragging over a tree-view item that can be dropped into/onto, the item can show a custom and dynamic tooltip explaining what's gonna happen on drop. This isn't used yet, but will soon be for asset catalogs. See documentation here: https://wiki.blender.org/wiki/Source/Interface/Views#Further_Customizations |
Commit Details:
Full Hash: 4ee2d9df428d16f07e351f5554b951ae75804ea0
Parent Commit: 42ce88f
Lines Changed: +223, -4
1 Added Path:
/source/blender/editors/interface/interface_dropboxes.cc (+66, -0) (View)
10 Modified Paths:
/source/blender/editors/include/UI_interface.h (+9, -0) (Diff)
/source/blender/editors/include/UI_tree_view.hh (+16, -4) (Diff)
/source/blender/editors/interface/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+47, -0) (Diff)
/source/blender/editors/interface/interface_query.c (+10, -0) (Diff)
/source/blender/editors/interface/interface_view.cc (+17, -0) (Diff)
/source/blender/editors/interface/tree_view.cc (+52, -0) (Diff)
/source/blender/editors/screen/area.c (+3, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)
/source/blender/editors/include/UI_tree_view.hh (+16, -4) (Diff)
/source/blender/editors/interface/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+47, -0) (Diff)
/source/blender/editors/interface/interface_query.c (+10, -0) (Diff)
/source/blender/editors/interface/interface_view.cc (+17, -0) (Diff)
/source/blender/editors/interface/tree_view.cc (+52, -0) (Diff)
/source/blender/editors/screen/area.c (+3, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -0) (Diff)