diff options
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 3 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 25 | ||||
-rw-r--r-- | source/blender/makesdna/intern/dna_defaults.c | 1 |
3 files changed, 26 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 3be3daa8dfb..0f957a946d9 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -676,10 +676,9 @@ typedef struct FileSelectParams { short sort; /** Display mode flag. */ short display; - short display_previous; /** Details toggles (file size, creation date, etc.) */ char details_flags; - char _pad2; + char _pad2[3]; /** Filter when (flags & FILE_FILTER) is true. */ int filter; diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 4006cbc977e..126b4638ca1 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -577,6 +577,24 @@ typedef struct UserDef_SpaceData { char _pad0[6]; } UserDef_SpaceData; +/** + * Storage for UI data that to keep it even after the window was closed. (Similar to + * #UserDef_SpaceData.) + */ +typedef struct UserDef_FileSpaceData { + int display_type; /* FileSelectParams.display */ + int thumbnail_size; /* FileSelectParams.thumbnail_size */ + int sort_type; /* FileSelectParams.sort */ + int details_flags; /* FileSelectParams.details_flags */ + int flag; /* FileSelectParams.flag */ + + char _pad[4]; + + /** Info used when creating the file browser in a temporary window. */ + int temp_win_sizex; + int temp_win_sizey; +} UserDef_FileSpaceData; + typedef struct UserDef { /** UserDef has separate do-version handling, and can be read from other files. */ int versionfile, subversionfile; @@ -823,6 +841,7 @@ typedef struct UserDef { /** The UI for the user preferences. */ UserDef_SpaceData space_data; + UserDef_FileSpaceData file_space_data; /** Runtime data (keep last). */ UserDef_Runtime runtime; @@ -972,7 +991,11 @@ typedef enum eUserpref_UI_Flag { USER_ZOOM_HORIZ = (1 << 26), /* for CONTINUE and DOLLY zoom */ USER_SPLASH_DISABLE = (1 << 27), USER_HIDE_RECENT = (1 << 28), - USER_SHOW_THUMBNAILS = (1 << 29), +#ifdef DNA_DEPRECATED + USER_SHOW_THUMBNAILS = + (1 << 29), /* deprecated - We're just trying if there's much desire for this feature, or if + we can make it go for good. Should be cleared if so - Julian, Oct. 2019 */ +#endif USER_SAVE_PROMPT = (1 << 30), USER_HIDE_SYSTEM_BOOKMARKS = (1u << 31), } eUserpref_UI_Flag; diff --git a/source/blender/makesdna/intern/dna_defaults.c b/source/blender/makesdna/intern/dna_defaults.c index 76d076a8638..260f1cd20f6 100644 --- a/source/blender/makesdna/intern/dna_defaults.c +++ b/source/blender/makesdna/intern/dna_defaults.c @@ -250,6 +250,7 @@ const void *DNA_default_table[SDNA_TYPE_MAX] = { SDNA_DEFAULT_DECL(UserDef), SDNA_DEFAULT_DECL(bTheme), SDNA_DEFAULT_DECL_EX(UserDef_SpaceData, UserDef.space_data), + SDNA_DEFAULT_DECL_EX(UserDef_FileSpaceData, UserDef.file_space_data), SDNA_DEFAULT_DECL_EX(WalkNavigation, UserDef.walk_navigation), /* DNA_view3d_defaults.h */ |