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/editors/space_spreadsheet/spreadsheet_intern.hh | |
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/editors/space_spreadsheet/spreadsheet_intern.hh')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_intern.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh b/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh index 10a875e2c14..7e3b79a6706 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh +++ b/source/blender/editors/space_spreadsheet/spreadsheet_intern.hh @@ -16,4 +16,10 @@ #pragma once +typedef struct SpaceSpreadsheet_Runtime { + int visible_rows; + int tot_rows; + int tot_columns; +} SpaceSpreadsheet_Runtime; + void spreadsheet_operatortypes(void); |