Blender Git Loki

Git Commits -> Revision 01df48a

Revision 01df48a by Hans Goudey (master)
November 19, 2021, 22:36 (GMT)
Refactor: Port spreadsheet data set to UI tree view

This patch removes a bunch of specific code for drawing the spreadsheet
data set region, which was an overly specific solution for a generic UI.
Nowadays, the UI tree view API used for asset browser catalogs is a much
better way to implement this behavior.

To make this possible, the tree view API is extended in a few ways.
Collapsibility can now be turned off, and whether an item should
be active is moved to a separate virtual function.

The only visual change is that the items are now drawn in a box,
just like the asset catalog.

Differential Revision: https://developer.blender.org/D13198

Commit Details:

Full Hash: 01df48a983944ab3f8a6f3be926f825ac83bbc14
Parent Commit: a0780ad
Lines Changed: +263, -580

1 Added Path:

/source/blender/editors/space_spreadsheet/spreadsheet_panels.cc (+37, -0) (View)

2 Deleted Paths:

/source/blender/editors/space_spreadsheet/spreadsheet_dataset_layout.cc (+0, -118)
/source/blender/editors/space_spreadsheet/spreadsheet_dataset_layout.hh (+0, -68)

15 Modified Paths:

/source/blender/editors/include/UI_interface.h (+2, -7) (Diff)
/source/blender/editors/include/UI_tree_view.hh (+20, -10) (Diff)
/source/blender/editors/interface/interface.c (+0, -46) (Diff)
/source/blender/editors/interface/interface_handlers.c (+0, -4) (Diff)
/source/blender/editors/interface/interface_intern.h (+0, -8) (Diff)
/source/blender/editors/interface/interface_query.c (+0, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -16) (Diff)
/source/blender/editors/interface/tree_view.cc (+27, -5) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+6, -5) (Diff)
/source/blender/editors/space_spreadsheet/CMakeLists.txt (+1, -2) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+6, -28) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc (+152, -214) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.hh (+2, -40) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc (+3, -5) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh (+6, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021