From b617b44419613ae87d64b5d4692515750c83b417 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 15 Mar 2021 09:58:38 +0100 Subject: 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 --- source/blender/editors/space_spreadsheet/spreadsheet_intern.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/space_spreadsheet/spreadsheet_intern.hh') 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); -- cgit v1.2.3