diff options
Diffstat (limited to 'source/blender/makesdna/DNA_space_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 0ad66c63169..a90047b9daa 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1854,6 +1854,22 @@ typedef struct SpaceStatusBar { /** \name Spreadsheet * \{ */ +typedef struct SpreadsheetColumnID { + char *name; + int index; + char _pad[4]; +} SpreadsheetColumnID; + +typedef struct SpreadsheetColumn { + struct SpreadsheetColumn *next, *prev; + /** + * Identifies the data in the column. + * This is a pointer instead of a struct to make it easier if we want to "subclass" + * #SpreadsheetColumnID in the future for different kinds of ids. + */ + SpreadsheetColumnID *id; +} SpreadsheetColumn; + typedef struct SpaceSpreadsheet { SpaceLink *next, *prev; /** Storage of regions for inactive spaces. */ @@ -1863,6 +1879,9 @@ typedef struct SpaceSpreadsheet { char _pad0[6]; /* End 'SpaceLink' header. */ + /* List of #SpreadsheetColumn. */ + ListBase columns; + struct ID *pinned_id; /* eSpaceSpreadsheet_FilterFlag. */ @@ -1880,8 +1899,6 @@ typedef struct SpaceSpreadsheet { SpaceSpreadsheet_Runtime *runtime; } SpaceSpreadsheet; -/** \} */ - typedef enum eSpaceSpreadsheet_FilterFlag { SPREADSHEET_FILTER_SELECTED_ONLY = (1 << 0), } eSpaceSpreadsheet_FilterFlag; @@ -1892,6 +1909,8 @@ typedef enum eSpaceSpreadsheet_ObjectEvalState { SPREADSHEET_OBJECT_EVAL_STATE_NODE = 2, } eSpaceSpreadsheet_Context; +/** \} */ + /* -------------------------------------------------------------------- */ /** \name Space Defines (eSpace_Type) * \{ */ |