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/blenkernel/intern/screen.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/blenkernel/intern/screen.c')
-rw-r--r-- | source/blender/blenkernel/intern/screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/screen.c b/source/blender/blenkernel/intern/screen.c index fd7f1acb456..1766ac5b85f 100644 --- a/source/blender/blenkernel/intern/screen.c +++ b/source/blender/blenkernel/intern/screen.c @@ -1701,6 +1701,11 @@ static void direct_link_area(BlendDataReader *reader, ScrArea *area) sclip->scopes.track_preview = NULL; sclip->scopes.ok = 0; } + else if (sl->spacetype == SPACE_SPREADSHEET) { + SpaceSpreadsheet *sspreadsheet = (SpaceSpreadsheet *)sl; + + sspreadsheet->runtime = NULL; + } } BLI_listbase_clear(&area->actionzones); |