|
Blender V5.0
|
#include <cstdint>#include <memory>#include "BLI_fileops.h"#include "DNA_listBase.h"#include "DNA_space_enums.h"#include "DNA_space_types.h"Go to the source code of this file.
Classes | |
| struct | FileListInternEntry |
| struct | FileListIntern |
| struct | FileListEntryCache |
| struct | FileListEntryPreview |
| struct | FileListEntryPreviewTaskData |
| struct | FileListFilter |
| struct | FileList |
Namespaces | |
| namespace | blender |
| namespace | blender::asset_system |
| namespace | blender::ed |
| namespace | blender::ed::asset_browser |
Macros | |
| #define | FILEDIR_NBR_ENTRIES_UNSET -1 |
| #define | FILELIST_ENTRYCACHESIZE_DEFAULT 1024 /* Keep it a power of two! */ |
Enumerations | |
| enum | { FLC_PREVIEWS_ACTIVE = 1 << 0 } |
| enum | { FLF_DO_FILTER = 1 << 0 , FLF_HIDE_DOT = 1 << 1 , FLF_HIDE_PARENT = 1 << 2 , FLF_HIDE_LIB_DIR = 1 << 3 , FLF_ASSETS_ONLY = 1 << 4 } |
| enum | { FL_FORCE_RESET = 1 << 0 , FL_FORCE_RESET_MAIN_FILES = 1 << 1 , FL_IS_READY = 1 << 2 , FL_IS_PENDING = 1 << 3 , FL_NEED_SORTING = 1 << 4 , FL_NEED_FILTERING = 1 << 5 , FL_SORT_INVERT = 1 << 6 , FL_RELOAD_ASSET_LIBRARY = 1 << 7 } |
| enum | FileListTags { FILELIST_TAGS_USES_MAIN_DATA = (1 << 0) , FILELIST_TAGS_NO_THREADS = (1 << 2) } |
| enum class | SpecialFileImages { Document , Folder , Parent , _Max } |
Functions | |
| void | filelist_cache_clear (FileListEntryCache *cache, size_t new_size) |
| bool | filelist_intern_entry_is_main_file (const FileListInternEntry *intern_entry) |
| void | prepare_filter_asset_library (const FileList *filelist, FileListFilter *filter) |
| bool | is_filtered_file (FileListInternEntry *file, const char *, FileListFilter *filter) |
| bool | is_filtered_asset (FileListInternEntry *file, FileListFilter *filter) |
| bool | is_filtered_lib (FileListInternEntry *file, const char *root, FileListFilter *filter) |
| bool | is_filtered_main (FileListInternEntry *file, const char *, FileListFilter *filter) |
| bool | is_filtered_main_assets (FileListInternEntry *file, const char *, FileListFilter *filter) |
| bool | is_filtered_asset_library (FileListInternEntry *file, const char *root, FileListFilter *filter) |
| #define FILEDIR_NBR_ENTRIES_UNSET -1 |
Definition at line 20 of file filelist_intern.hh.
Referenced by filelist_clear_main_files(), filelist_direntryarr_free(), filelist_file_find_id(), filelist_file_find_path(), filelist_filter(), filelist_needs_reading(), filelist_new(), filelist_readjob_all_asset_library(), filelist_readjob_asset_library(), filelist_readjob_do(), filelist_readjob_main_assets(), filelist_readjob_start_ex(), and filelist_readjob_startjob().
| #define FILELIST_ENTRYCACHESIZE_DEFAULT 1024 /* Keep it a power of two! */ |
Definition at line 118 of file filelist_intern.hh.
Referenced by FileListEntryCache::FileListEntryCache().
| anonymous enum |
| Enumerator | |
|---|---|
| FLF_DO_FILTER | |
| FLF_HIDE_DOT | |
| FLF_HIDE_PARENT | |
| FLF_HIDE_LIB_DIR | |
| FLF_ASSETS_ONLY | |
Definition at line 186 of file filelist_intern.hh.
| anonymous enum |
#FileListCache.flags
| Enumerator | |
|---|---|
| FLC_PREVIEWS_ACTIVE | |
Definition at line 157 of file filelist_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| FL_FORCE_RESET | |
| FL_FORCE_RESET_MAIN_FILES | |
| FL_IS_READY | |
| FL_IS_PENDING | |
| FL_NEED_SORTING | |
| FL_NEED_FILTERING | |
| FL_SORT_INVERT | |
| FL_RELOAD_ASSET_LIBRARY | Trigger a call to AS_asset_library_load() to update asset catalogs (won't reload the actual assets) |
Definition at line 258 of file filelist_intern.hh.
| enum FileListTags |
| Enumerator | |
|---|---|
| FILELIST_TAGS_USES_MAIN_DATA | The file list has references to main data (IDs) and needs special care. |
| FILELIST_TAGS_NO_THREADS | The file list type is not thread-safe. |
Definition at line 274 of file filelist_intern.hh.
|
strong |
| Enumerator | |
|---|---|
| Document | |
| Folder | |
| Parent | |
| _Max | |
Definition at line 281 of file filelist_intern.hh.
| void filelist_cache_clear | ( | FileListEntryCache * | cache, |
| size_t | new_size ) |
Definition at line 817 of file filelist.cc.
References BLI_ghash_clear_ex(), BLI_listbase_clear(), FileListEntryCache::block_center_index, FileListEntryCache::block_cursor, FileListEntryCache::block_end_index, FileListEntryCache::block_entries, FileListEntryCache::block_start_index, FileListEntryCache::cached_entries, copy_vn_i(), filelist_cache_previews_clear(), filelist_entry_free(), LISTBASE_FOREACH_MUTABLE, MEM_reallocN, FileListEntryCache::misc_entries, FileListEntryCache::misc_entries_indices, FileListEntryCache::size, and FileListEntryCache::uids.
Referenced by filelist_clear_ex(), filelist_clear_main_files(), filelist_file_cache_slidingwindow_set(), and filelist_filter().
| bool filelist_intern_entry_is_main_file | ( | const FileListInternEntry * | intern_entry | ) |
Definition at line 403 of file filelist.cc.
References FileListInternEntry::id, and FileListInternEntry::local_data.
Referenced by filelist_intern_free_main_files(), and is_filtered_asset_library().
| bool is_filtered_asset | ( | FileListInternEntry * | file, |
| FileListFilter * | filter ) |
Definition at line 198 of file filelist_filter.cc.
References asset_tag_matches_filter(), BLI_strcasestr(), filelist_file_internal_get_asset_data(), filter, FileListFilter::filter_search, FileListInternEntry::name, and STRNCPY_RLEN.
Referenced by is_filtered_asset_library(), and is_filtered_main_assets().
| bool is_filtered_asset_library | ( | FileListInternEntry * | file, |
| const char * | root, | ||
| FileListFilter * | filter ) |
Definition at line 255 of file filelist_filter.cc.
References filelist_intern_entry_is_main_file(), filter, is_filtered_asset(), is_filtered_lib_type(), and is_filtered_main_assets().
Referenced by filelist_settype().
| bool is_filtered_file | ( | FileListInternEntry * | file, |
| const char * | , | ||
| FileListFilter * | filter ) |
Definition at line 119 of file filelist_filter.cc.
References filter, is_filtered_file_name(), is_filtered_file_relpath(), and is_filtered_file_type().
Referenced by filelist_settype().
| bool is_filtered_lib | ( | FileListInternEntry * | file, |
| const char * | root, | ||
| FileListFilter * | filter ) |
Definition at line 236 of file filelist_filter.cc.
References filter, is_filtered_file_relpath(), and is_filtered_lib_type().
Referenced by filelist_settype().
| bool is_filtered_main | ( | FileListInternEntry * | file, |
| const char * | , | ||
| FileListFilter * | filter ) |
Definition at line 241 of file filelist_filter.cc.
References filter, is_filtered_hidden(), and FileListInternEntry::relpath.
Referenced by filelist_settype().
| bool is_filtered_main_assets | ( | FileListInternEntry * | file, |
| const char * | , | ||
| FileListFilter * | filter ) |
Definition at line 246 of file filelist_filter.cc.
References FileListInternEntry::blentype, filter, is_filtered_asset(), is_filtered_id_file_type(), and FileListInternEntry::name.
Referenced by filelist_settype(), and is_filtered_asset_library().
| void prepare_filter_asset_library | ( | const FileList * | filelist, |
| FileListFilter * | filter ) |
Definition at line 163 of file filelist_filter.cc.
References FileList::asset_library, BLI_assert_msg, and filter.
Referenced by filelist_settype().