Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_workspace_types.h
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| /** \file | /** \file | ||||
| * \ingroup DNA | * \ingroup DNA | ||||
| * | * | ||||
| * Use API in BKE_workspace.h to edit these. | * Use API in BKE_workspace.h to edit these. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "DNA_ID.h" | #include "DNA_ID.h" | ||||
| #include "DNA_asset_types.h" | #include "DNA_asset_types.h" | ||||
| #include "DNA_viewer_path_types.h" | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /** #bToolRef_Runtime.flag */ | /** #bToolRef_Runtime.flag */ | ||||
| enum { | enum { | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | typedef struct WorkSpace { | ||||
| int order; | int order; | ||||
| /** Info text from modal operators (runtime). */ | /** Info text from modal operators (runtime). */ | ||||
| char *status_text; | char *status_text; | ||||
| /** Workspace-wide active asset library, for asset UIs to use (e.g. asset view UI template). The | /** Workspace-wide active asset library, for asset UIs to use (e.g. asset view UI template). The | ||||
| * Asset Browser has its own and doesn't use this. */ | * Asset Browser has its own and doesn't use this. */ | ||||
| AssetLibraryReference asset_library_ref; | AssetLibraryReference asset_library_ref; | ||||
| /** | |||||
HooglyBoogly: This could use a comment to describe how it relates to the viewer path stored in editors.
I… | |||||
| * Ground truth for the currently active viewer node. When a viewer node is activated its path is | |||||
| * set here. Editors can check here for which node is active (currently the node editor, | |||||
| * spreadsheet and viewport do this). | |||||
| */ | |||||
| ViewerPath viewer_path; | |||||
| } WorkSpace; | } WorkSpace; | ||||
| /** | /** | ||||
| * Generic (and simple/primitive) struct for storing a history of assignments/relations | * Generic (and simple/primitive) struct for storing a history of assignments/relations | ||||
| * of workspace data to non-workspace data in a listbase inside the workspace. | * of workspace data to non-workspace data in a listbase inside the workspace. | ||||
| * | * | ||||
| * Using this we can restore the old state of a workspace if the user switches back to it. | * Using this we can restore the old state of a workspace if the user switches back to it. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||
This could use a comment to describe how it relates to the viewer path stored in editors.
I guess the other cases in DNA could use a short comment too.