Blender Git Loki

Git Commits -> Revision 75491fe

Revision 75491fe by Jacques Lucke (master)
April 9, 2021, 08:20 (GMT)
Spreadsheet: persistent column storage and data source

A `DataSource` provides columns for the spreadsheet to display.
Every column has a SpreadsheetColumnID as identifier. Columns
are not generated eagerly anymore, instead the main spreadsheet
code can request a column from a data source with an column
identifier. The column identifiers can be stored in DNA and allow us
to store persistent data per column.

On the user level the only thing that changes is that columns are
not shown in alphabetical order anymore. Instead, new columns
are always added on the left. The behavior can be changed,
however I'd prefer not to automate this too much currently. I think
we should just add operators to hide/reorder/resize columns soonish.

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

Commit Details:

Full Hash: 75491fe1002122f19fc9fe8eae941a406b81706a
Parent Commit: 22574f7
Lines Changed: +1298, -866

10 Added Paths:

/source/blender/editors/space_spreadsheet/spreadsheet_cell_value.hh (+51, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_column.cc (+73, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_column.hh (+48, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_column_values.hh (+84, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source.cc (+24, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh (+65, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc (+447, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.hh (+94, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc (+214, -0) (View)
/source/blender/editors/space_spreadsheet/spreadsheet_layout.hh (+42, -0) (View)

4 Deleted Paths:

/source/blender/editors/space_spreadsheet/spreadsheet_column_layout.cc (+0, -237)
/source/blender/editors/space_spreadsheet/spreadsheet_column_layout.hh (+0, -115)
/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc (+0, -453)
/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.hh (+0, -34)

4 Modified Paths:

/source/blender/blenkernel/intern/screen.c (+13, -0) (Diff)
/source/blender/editors/space_spreadsheet/CMakeLists.txt (+10, -4) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+112, -21) (Diff)
/source/blender/makesdna/DNA_space_types.h (+21, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021