Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-03-15 11:58:38 +0300
committerJacques Lucke <jacques@blender.org>2021-03-15 12:00:02 +0300
commitb617b44419613ae87d64b5d4692515750c83b417 (patch)
tree71375c9578ea7427e18e72d3c3f6004d43ef74eb /source/blender/makesdna/DNA_space_types.h
parent2ca48b967894dc2be786e0db1b0ed1fa6abd5383 (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/makesdna/DNA_space_types.h')
-rw-r--r--source/blender/makesdna/DNA_space_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index 0febbe26596..9007d3b6cf4 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -69,6 +69,9 @@ typedef struct SpaceNode_Runtime SpaceNode_Runtime;
/* Defined in `file_intern.h`. */
typedef struct SpaceFile_Runtime SpaceFile_Runtime;
+/* Defined in `spreadsheet_intern.hh`. */
+typedef struct SpaceSpreadsheet_Runtime SpaceSpreadsheet_Runtime;
+
/* -------------------------------------------------------------------- */
/** \name SpaceLink (Base)
* \{ */
@@ -1864,6 +1867,8 @@ typedef struct SpaceSpreadsheet {
uint8_t attribute_domain;
char _pad1[5];
+
+ SpaceSpreadsheet_Runtime *runtime;
} SpaceSpreadsheet;
/** \} */