Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_userdef_types.h
| Show First 20 Lines • Show All 589 Lines • ▼ Show 20 Lines | typedef struct UserDef_FileSpaceData { | ||||
| int flag; /* FileSelectParams.flag */ | int flag; /* FileSelectParams.flag */ | ||||
| int filter_id; /* FileSelectParams.filter_id */ | int filter_id; /* FileSelectParams.filter_id */ | ||||
| /** Info used when creating the file browser in a temporary window. */ | /** Info used when creating the file browser in a temporary window. */ | ||||
| int temp_win_sizex; | int temp_win_sizex; | ||||
| int temp_win_sizey; | int temp_win_sizey; | ||||
| } UserDef_FileSpaceData; | } UserDef_FileSpaceData; | ||||
| /** | |||||
| * Store UI data here instead of the space | |||||
| * since the space is typically a window which is freed. | |||||
| */ | |||||
| typedef struct UserDef_Experimental { | |||||
| /** #eUserPref_Experimental_Flag options. */ | |||||
| int flag; | |||||
| char _pad0[4]; | |||||
| } UserDef_Experimental; | |||||
| typedef struct UserDef { | typedef struct UserDef { | ||||
| /** UserDef has separate do-version handling, and can be read from other files. */ | /** UserDef has separate do-version handling, and can be read from other files. */ | ||||
| int versionfile, subversionfile; | int versionfile, subversionfile; | ||||
| /** #eUserPref_Flag. */ | /** #eUserPref_Flag. */ | ||||
| int flag; | int flag; | ||||
| /** #eDupli_ID_Flags. */ | /** #eDupli_ID_Flags. */ | ||||
| short dupflag; | short dupflag; | ||||
| ▲ Show 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | typedef struct UserDef { | ||||
| char _pad5[4]; | char _pad5[4]; | ||||
| struct WalkNavigation walk_navigation; | struct WalkNavigation walk_navigation; | ||||
| /** The UI for the user preferences. */ | /** The UI for the user preferences. */ | ||||
| UserDef_SpaceData space_data; | UserDef_SpaceData space_data; | ||||
| UserDef_FileSpaceData file_space_data; | UserDef_FileSpaceData file_space_data; | ||||
| UserDef_Experimental experimental; | |||||
| /** Runtime data (keep last). */ | /** Runtime data (keep last). */ | ||||
| UserDef_Runtime runtime; | UserDef_Runtime runtime; | ||||
| } UserDef; | } UserDef; | ||||
| /* from blenkernel blender.c */ | /* from blenkernel blender.c */ | ||||
| extern UserDef U; | extern UserDef U; | ||||
| /* ***************** USERDEF ****************** */ | /* ***************** USERDEF ****************** */ | ||||
| Show All 16 Lines | #ifdef WITH_USERDEF_WORKSPACES | ||||
| USER_SECTION_WORKSPACE_CONFIG = 9, | USER_SECTION_WORKSPACE_CONFIG = 9, | ||||
| USER_SECTION_WORKSPACE_ADDONS = 10, | USER_SECTION_WORKSPACE_ADDONS = 10, | ||||
| USER_SECTION_WORKSPACE_KEYMAPS = 11, | USER_SECTION_WORKSPACE_KEYMAPS = 11, | ||||
| #endif | #endif | ||||
| USER_SECTION_VIEWPORT = 12, | USER_SECTION_VIEWPORT = 12, | ||||
| USER_SECTION_ANIMATION = 13, | USER_SECTION_ANIMATION = 13, | ||||
| USER_SECTION_NAVIGATION = 14, | USER_SECTION_NAVIGATION = 14, | ||||
| USER_SECTION_FILE_PATHS = 15, | USER_SECTION_FILE_PATHS = 15, | ||||
| USER_SECTION_EXPERIMENTAL = 16, | |||||
| } eUserPref_Section; | } eUserPref_Section; | ||||
| /** #UserDef_SpaceData.flag (State of the user preferences UI). */ | /** #UserDef_SpaceData.flag (State of the user preferences UI). */ | ||||
| typedef enum eUserPref_SpaceData_Flag { | typedef enum eUserPref_SpaceData_Flag { | ||||
| /** Hide/expand key-map preferences. */ | /** Hide/expand key-map preferences. */ | ||||
| USER_SPACEDATA_INPUT_HIDE_UI_KEYCONFIG = (1 << 0), | USER_SPACEDATA_INPUT_HIDE_UI_KEYCONFIG = (1 << 0), | ||||
| USER_SPACEDATA_ADDONS_SHOW_ONLY_ENABLED = (1 << 1), | USER_SPACEDATA_ADDONS_SHOW_ONLY_ENABLED = (1 << 1), | ||||
| } eUserPref_SpaceData_Flag; | } eUserPref_SpaceData_Flag; | ||||
| /** #UserDef_Experimental.flag. */ | |||||
| typedef enum eUserPref_Experimental_Flag { | |||||
| USER_EXPERIMENTAL_ALL = (1 << 0), | |||||
| } eUserPref_Experimental_Flag; | |||||
| /** #UserDef.flag */ | /** #UserDef.flag */ | ||||
| typedef enum eUserPref_Flag { | typedef enum eUserPref_Flag { | ||||
| USER_AUTOSAVE = (1 << 0), | USER_AUTOSAVE = (1 << 0), | ||||
| USER_FLAG_NUMINPUT_ADVANCED = (1 << 1), | USER_FLAG_NUMINPUT_ADVANCED = (1 << 1), | ||||
| USER_FLAG_UNUSED_2 = (1 << 2), /* cleared */ | USER_FLAG_UNUSED_2 = (1 << 2), /* cleared */ | ||||
| USER_FLAG_UNUSED_3 = (1 << 3), /* cleared */ | USER_FLAG_UNUSED_3 = (1 << 3), /* cleared */ | ||||
| USER_FLAG_UNUSED_4 = (1 << 4), /* cleared */ | USER_FLAG_UNUSED_4 = (1 << 4), /* cleared */ | ||||
| USER_TRACKBALL = (1 << 5), | USER_TRACKBALL = (1 << 5), | ||||
| ▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines | |||||