Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_workspace_types.h
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
| typedef struct WorkSpaceLayout { | typedef struct WorkSpaceLayout { | ||||
| struct WorkSpaceLayout *next, *prev; | struct WorkSpaceLayout *next, *prev; | ||||
| struct bScreen *screen DNA_PRIVATE_WORKSPACE; | struct bScreen *screen DNA_PRIVATE_WORKSPACE; | ||||
| /* The name of this layout, we override the RNA name of the screen with this (but not ID name itself) */ | /* The name of this layout, we override the RNA name of the screen with this (but not ID name itself) */ | ||||
| char name[64] DNA_PRIVATE_WORKSPACE; /* MAX_NAME */ | char name[64] DNA_PRIVATE_WORKSPACE; /* MAX_NAME */ | ||||
| } WorkSpaceLayout; | } WorkSpaceLayout; | ||||
| typedef enum eWorkSpaceFlags { | |||||
| WORKSPACE_USE_SCENE_SETTINGS = (1 << 0), | |||||
| WORKSPACE_USE_PREFERED_MODE = (1 << 1), | |||||
| } eWorkSpaceFlags; | |||||
| typedef struct WorkSpace { | typedef struct WorkSpace { | ||||
| ID id; | ID id; | ||||
| ListBase layouts DNA_PRIVATE_WORKSPACE; /* WorkSpaceLayout */ | ListBase layouts DNA_PRIVATE_WORKSPACE; /* WorkSpaceLayout */ | ||||
| /* Store for each hook (so for each window) which layout has | /* Store for each hook (so for each window) which layout has | ||||
| * been activated the last time this workspace was visible. */ | * been activated the last time this workspace was visible. */ | ||||
| ListBase hook_layout_relations DNA_PRIVATE_WORKSPACE_READ_WRITE; /* WorkSpaceDataRelation */ | ListBase hook_layout_relations DNA_PRIVATE_WORKSPACE_READ_WRITE; /* WorkSpaceDataRelation */ | ||||
| ListBase scene_viewlayer_relations DNA_PRIVATE_WORKSPACE_READ_WRITE; /* WorkSpaceDataRelation */ | ListBase scene_viewlayer_relations DNA_PRIVATE_WORKSPACE_READ_WRITE; /* WorkSpaceDataRelation */ | ||||
| /* Custom transform orientations */ | /* Custom transform orientations */ | ||||
| ListBase transform_orientations DNA_PRIVATE_WORKSPACE; | ListBase transform_orientations DNA_PRIVATE_WORKSPACE; | ||||
| int pad; | int preferred_mode; /* enum eObjectMode */ | ||||
| int flags DNA_PRIVATE_WORKSPACE; /* enum eWorkSpaceFlags */ | |||||
| int flags; /* enum eWorkSpaceFlags */ | |||||
| /* should be: '#ifdef USE_WORKSPACE_TOOL'. */ | /* should be: '#ifdef USE_WORKSPACE_TOOL'. */ | ||||
| bToolDef tool; | bToolDef tool; | ||||
| struct ViewLayer *view_layer DNA_DEPRECATED; | struct ViewLayer *view_layer DNA_DEPRECATED; | ||||
| struct ViewRender view_render; | struct ViewRender view_render; | ||||
| } WorkSpace; | } WorkSpace; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | typedef struct WorkSpaceInstanceHook { | ||||
| WorkSpace *active DNA_PRIVATE_WORKSPACE; | WorkSpace *active DNA_PRIVATE_WORKSPACE; | ||||
| struct WorkSpaceLayout *act_layout DNA_PRIVATE_WORKSPACE; | struct WorkSpaceLayout *act_layout DNA_PRIVATE_WORKSPACE; | ||||
| /* Needed because we can't change workspaces/layouts in running handler loop, it would break context. */ | /* Needed because we can't change workspaces/layouts in running handler loop, it would break context. */ | ||||
| WorkSpace *temp_workspace_store; | WorkSpace *temp_workspace_store; | ||||
| struct WorkSpaceLayout *temp_layout_store; | struct WorkSpaceLayout *temp_layout_store; | ||||
| } WorkSpaceInstanceHook; | } WorkSpaceInstanceHook; | ||||
| typedef enum eWorkSpaceFlags { | |||||
| WORKSPACE_USE_SCENE_SETTINGS = (1 << 0), | |||||
| } eWorkSpaceFlags; | |||||
| #endif /* __DNA_WORKSPACE_TYPES_H__ */ | #endif /* __DNA_WORKSPACE_TYPES_H__ */ | ||||