diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-15 11:58:38 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-15 12:00:02 +0300 |
commit | b617b44419613ae87d64b5d4692515750c83b417 (patch) | |
tree | 71375c9578ea7427e18e72d3c3f6004d43ef74eb /source/blender/makesrna/intern/rna_space.c | |
parent | 2ca48b967894dc2be786e0db1b0ed1fa6abd5383 (diff) |
Spreadsheet: add status bar
This implements the status bar as footer region in the
spreadsheet editor.
It shows the total number of rows and columns as well
as how many rows are actually visible (based on the filter).
The implementation stores the stats in a runtime struct during
drawing and the status bar reads from that struct.
Ref T86142.
Differential Revision: https://developer.blender.org/D10693
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 9e8e9030925..db36909d2f9 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -7257,6 +7257,8 @@ static void rna_def_space_spreadsheet(BlenderRNA *brna) srna = RNA_def_struct(brna, "SpaceSpreadsheet", "Space"); RNA_def_struct_ui_text(srna, "Space Spreadsheet", "Spreadsheet space data"); + rna_def_space_generic_show_region_toggles(srna, (1 << RGN_TYPE_FOOTER)); + prop = RNA_def_property(srna, "pinned_id", PROP_POINTER, PROP_NONE); RNA_def_property_flag(prop, PROP_EDITABLE); RNA_def_property_pointer_funcs(prop, NULL, "rna_SpaceSpreadsheet_pinned_id_set", NULL, NULL); |