|
Blender V5.0
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::asset_system |
Typedefs | |
| using | FileUID = uint32_t |
Enumerations | |
| enum | FileSelType { FILE_SEL_REMOVE = 0 , FILE_SEL_ADD = 1 , FILE_SEL_TOGGLE = 2 } |
| enum | FileCheckType { CHECK_DIRS = 1 , CHECK_FILES = 2 , CHECK_ALL = 3 } |
| using FileUID = uint32_t |
Definition at line 33 of file filelist.hh.
| enum FileCheckType |
| Enumerator | |
|---|---|
| CHECK_DIRS | |
| CHECK_FILES | |
| CHECK_ALL | |
Definition at line 41 of file filelist.hh.
| enum FileSelType |
| Enumerator | |
|---|---|
| FILE_SEL_REMOVE | |
| FILE_SEL_ADD | |
| FILE_SEL_TOGGLE | |
Definition at line 35 of file filelist.hh.
| blender::asset_system::AssetLibrary * filelist_asset_library | ( | FileList * | filelist | ) |
Definition at line 1027 of file filelist.cc.
References FileList::asset_library.
Referenced by blender::ed::asset::list::AssetList::asset_library(), ED_fileselect_active_asset_library_get(), and file_panel_asset_catalog_buttons_draw().
| bool filelist_cache_previews_done | ( | FileList * | filelist | ) |
Definition at line 1746 of file filelist.cc.
References FileList::filelist_cache, FileListEntryCache::flags, FLC_PREVIEWS_ACTIVE, FileListEntryCache::previews_done, FileListEntryCache::previews_pool, and FileListEntryCache::previews_todo_count.
Referenced by file_draw_list().
| bool filelist_cache_previews_running | ( | FileList * | filelist | ) |
Definition at line 1739 of file filelist.cc.
References FileList::filelist_cache, and FileListEntryCache::previews_pool.
Referenced by file_draw_list().
| void filelist_cache_previews_set | ( | FileList * | filelist, |
| bool | use_previews ) |
Definition at line 1656 of file filelist.cc.
References BLI_assert, FileList::filelist_cache, filelist_cache_previews_free(), FL_IS_READY, FileList::flags, FileListEntryCache::flags, FLC_PREVIEWS_ACTIVE, FileListEntryCache::previews_done, FileListEntryCache::previews_pool, and FileListEntryCache::previews_todo_count.
Referenced by file_refresh().
| bool filelist_cache_previews_update | ( | FileList * | filelist | ) |
Definition at line 1681 of file filelist.cc.
References BKE_icon_delete(), BLI_assert_msg, BLI_thread_queue_is_empty(), BLI_thread_queue_pop(), FILE_ENTRY_INVALID_PREVIEW, FILE_ENTRY_PREVIEW_LOADING, FileList::filelist_cache, filelist_file_ex(), FileDirEntry::flags, FileListEntryPreview::icon_id, FileListEntryPreview::index, MEM_freeN(), FileDirEntry::preview_icon_id, FileListEntryCache::previews_done, FileListEntryCache::previews_pool, and FileListEntryCache::previews_todo_count.
Referenced by file_draw_list(), file_listener(), and filelist_file_cache_block().
| void filelist_clear | ( | FileList * | filelist | ) |
Definition at line 983 of file filelist.cc.
References filelist_clear_ex().
Referenced by blender::ed::asset::list::AssetList::clear(), ED_fileselect_clear(), and filelist_clear_from_reset_tag().
| void filelist_clear_ex | ( | FileList * | filelist, |
| bool | do_asset_library, | ||
| bool | do_cache, | ||
| bool | do_selection ) |
Definition at line 919 of file filelist.cc.
References BLI_ghash_clear(), FileList::filelist, FileList::filelist_cache, filelist_cache_clear(), filelist_clear_asset_library(), filelist_direntryarr_free(), filelist_intern_free(), filelist_tag_needs_filtering(), FileList::selection_state, and FileListEntryCache::size.
Referenced by filelist_clear(), filelist_free(), and filelist_readjob_update().
| void filelist_clear_from_reset_tag | ( | FileList * | filelist | ) |
A "smarter" version of filelist_clear() that calls partial clearing based on the filelist force-reset flags.
Definition at line 988 of file filelist.cc.
References filelist_clear(), filelist_clear_main_files(), FL_FORCE_RESET, FL_FORCE_RESET_MAIN_FILES, and FileList::flags.
Referenced by blender::ed::asset::list::AssetList::clear_current_file_assets(), ED_fileselect_clear_main_assets(), blender::ed::asset::list::AssetList::ensure_blocking(), blender::ed::asset::list::AssetList::fetch(), and file_refresh().
| const char * filelist_dir | ( | const FileList * | filelist | ) |
Get the root path of the file list. To get the full path for a file, use filelist_file_get_full_path().
Definition at line 1095 of file filelist.cc.
References FileList::filelist, and FileDirEntryArr::root.
Referenced by ED_file_change_dir_ex(), file_external_operation_exec(), file_os_operations_menu_draw(), and filelist_file_get_full_path().
| void filelist_entries_select_index_range_set | ( | FileList * | filelist, |
| FileSelection * | sel, | ||
| FileSelType | select, | ||
| eDirEntry_SelectFlag | flag, | ||
| FileCheckType | check ) |
Definition at line 1972 of file filelist.cc.
References FileDirEntryArr::entries_filtered_num, FileList::filelist, filelist_entry_select_index_set(), FileSelection::first, flag, FileSelection::last, and select.
Referenced by file_box_select_modal(), file_select(), file_select_all_exec(), file_select_deselect_all(), and file_walk_select_selection_set().
| blender::asset_system::AssetRepresentation * filelist_entry_get_asset_representation | ( | const FileList * | filelist, |
| const int | index ) |
Definition at line 1338 of file filelist.cc.
References filelist_entry_intern_get(), and FileListInternEntry::get_asset().
Referenced by blender::ed::asset::list::AssetList::iterate().
Same as filelist_file_get_id(), but gets the file by index (doesn't require the file to be cached, uses FileListInternEntry only).
Definition at line 1332 of file filelist.cc.
References filelist_entry_intern_get(), FileListInternEntry::id, and FileListInternEntry::local_data.
Referenced by file_context().
| const char * filelist_entry_get_relpath | ( | const FileList * | filelist, |
| int | index ) |
Get the FileDirEntry.relpath value without requiring the FileDirEntry to be available (doesn't require the file to be cached, uses FileListInternEntry only).
Definition at line 1350 of file filelist.cc.
References filelist_entry_intern_get(), and FileListInternEntry::relpath.
Referenced by autocomplete_file(), and file_select_match().
| bool filelist_entry_is_selected | ( | FileList * | filelist, |
| int | index ) |
Definition at line 2020 of file filelist.cc.
References BLI_assert, BLI_ghash_lookup(), FileList::filelist_intern, FileListIntern::filtered, POINTER_AS_UINT, POINTER_FROM_UINT, FileList::selection_state, and FileListInternEntry::uid.
Referenced by ED_fileselect_selected_files_full_paths(), file_context(), and file_current_selection_range_get().
| void filelist_entry_parent_select_set | ( | FileList * | filelist, |
| FileSelType | select, | ||
| eDirEntry_SelectFlag | flag, | ||
| FileCheckType | check ) |
Set selection of the '..' parent entry, but only if it's actually visible.
Definition at line 2033 of file filelist.cc.
References filelist_entry_select_index_set(), FileList::filter_data, flag, FileListFilter::flags, FLF_HIDE_PARENT, and select.
Referenced by file_box_select_exec(), file_select_exec(), and file_walk_select_selection_set().
| eDirEntry_SelectFlag filelist_entry_select_get | ( | FileList * | filelist, |
| FileDirEntry * | entry, | ||
| FileCheckType | check ) |
Definition at line 1989 of file filelist.cc.
References BLI_assert, BLI_ghash_lookup(), CHECK_ALL, CHECK_DIRS, CHECK_FILES, ELEM, FILE_TYPE_DIR, POINTER_AS_UINT, POINTER_FROM_UINT, FileList::selection_state, FileDirEntry::typeflag, and FileDirEntry::uid.
Referenced by file_draw_list(), file_rename_state_activate(), and filelist_entry_select_index_get().
| eDirEntry_SelectFlag filelist_entry_select_index_get | ( | FileList * | filelist, |
| int | index, | ||
| FileCheckType | check ) |
Definition at line 2007 of file filelist.cc.
References filelist_entry_select_get(), and filelist_file().
Referenced by file_delete_exec(), file_delete_poll(), file_external_operation_exec(), file_is_any_selected(), file_os_operations_menu_draw(), file_os_operations_menu_poll(), file_select(), file_select_all_exec(), file_select_exec(), file_selection_get(), file_sfile_to_operator_ex(), file_smoothscroll_invoke(), and file_walk_select_selection_set().
| void filelist_entry_select_index_set | ( | FileList * | filelist, |
| int | index, | ||
| FileSelType | select, | ||
| eDirEntry_SelectFlag | flag, | ||
| FileCheckType | check ) |
Definition at line 1959 of file filelist.cc.
References filelist_entry_select_set(), filelist_file(), flag, and select.
Referenced by file_rename_state_activate(), file_select_match(), file_walk_select_selection_set(), filelist_entries_select_index_range_set(), and filelist_entry_parent_select_set().
| unsigned int filelist_entry_select_set | ( | const FileList * | filelist, |
| const FileDirEntry * | entry, | ||
| FileSelType | select, | ||
| const eDirEntry_SelectFlag | flag, | ||
| FileCheckType | check ) |
Definition at line 1910 of file filelist.cc.
References BLI_assert, BLI_ghash_insert(), BLI_ghash_lookup_p(), BLI_ghash_remove(), CHECK_ALL, CHECK_DIRS, CHECK_FILES, ELEM, FILE_SEL_ADD, FILE_SEL_REMOVE, FILE_SEL_TOGGLE, FILE_TYPE_DIR, flag, POINTER_AS_UINT, POINTER_FROM_UINT, select, FileList::selection_state, FileDirEntry::typeflag, and FileDirEntry::uid.
Referenced by ED_fileselect_activate_by_id(), ED_fileselect_activate_by_relpath(), file_box_select_modal(), file_params_rename_end(), file_params_renamefile_activate(), and filelist_entry_select_index_set().
| FileDirEntry * filelist_file | ( | FileList * | filelist, |
| int | index ) |
Request a file from the file browser cache, adding it to the cache if necessary.
As a rule of thumb, this can be used for operations on individual files (e.g. selection, active, renaming, etc.). But avoid calling this on many files (like when iterating the entire list), to not create a bunch of cache entries for a single operation. While a bit against the point of "intern" entries, in this case it's probably better to have queries like filelist_entry_get_id(), that take a file index and return data directly from the FileListInternEntry.
Definition at line 1285 of file filelist.cc.
References filelist_file_ex().
Referenced by ED_fileselect_activate_by_relpath(), ED_fileselect_active_asset_get(), ED_fileselect_selected_files_full_paths(), file_box_select_modal(), file_context(), file_delete_exec(), file_draw_list(), file_execute(), file_external_operation_exec(), file_os_operations_menu_draw(), file_params_renamefile_activate(), file_rename_state_activate(), file_select_do(), file_sfile_to_operator_ex(), filelist_entry_select_index_get(), filelist_entry_select_index_set(), filelist_geticon_get_file(), and fileselect_file_set().
| bool filelist_file_cache_block | ( | FileList * | filelist, |
| int | index ) |
Load in cache all entries "around" given index (as much as block cache may hold).
Definition at line 1440 of file filelist.cc.
References BLI_assert, FileListEntryCache::block_center_index, FileListEntryCache::block_cursor, FileListEntryCache::block_end_index, FileListEntryCache::block_entries, FileListEntryCache::block_start_index, FileDirEntryArr::entries_filtered_num, FileList::filelist, FileList::filelist_cache, filelist_cache_previews_clear(), filelist_cache_previews_push(), filelist_cache_previews_update(), filelist_file_cache_block_create(), filelist_file_cache_block_release(), FL_IS_READY, FileList::flags, FileListEntryCache::flags, FLC_PREVIEWS_ACTIVE, i, max_ii(), min_ii(), printf, and FileListEntryCache::size.
Referenced by file_draw_list().
| void filelist_file_cache_slidingwindow_set | ( | FileList * | filelist, |
| size_t | window_size ) |
Definition at line 1378 of file filelist.cc.
References FileList::filelist_cache, filelist_cache_clear(), FileListEntryCache::size, and size().
Referenced by file_draw_list().
| FileDirEntry * filelist_file_ex | ( | FileList * | filelist, |
| int | index, | ||
| bool | use_request ) |
Definition at line 1241 of file filelist.cc.
References BLI_ghash_insert(), BLI_ghash_popkey(), BLI_ghash_remove(), FileDirEntryArr::entries_filtered_num, FileList::filelist, FileList::filelist_cache, filelist_cache_file_lookup(), filelist_cache_previews_push(), filelist_file_create_entry(), filelist_file_release_entry(), FileListEntryCache::misc_cursor, FileListEntryCache::misc_entries, FileListEntryCache::misc_entries_indices, POINTER_FROM_INT, POINTER_FROM_UINT, FileListEntryCache::previews_pool, ret, FileListEntryCache::size, and FileListEntryCache::uids.
Referenced by ED_fileselect_activate_by_id(), filelist_cache_previews_update(), and filelist_file().
Find a file representing id.
Definition at line 1310 of file filelist.cc.
References FileDirEntryArr::entries_filtered_num, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_intern, FileListIntern::filtered, FileListInternEntry::id, and FileListInternEntry::local_data.
Referenced by ED_fileselect_activate_by_id(), and file_params_find_renamed().
| int filelist_file_find_path | ( | FileList * | filelist, |
| const char * | filename ) |
Find a file from a file name, or more precisely, its file-list relative path, inside the filtered items.
Definition at line 1290 of file filelist.cc.
References FileDirEntryArr::entries_filtered_num, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_intern, FileListIntern::filtered, FileListInternEntry::relpath, and STREQ.
Referenced by file_params_find_renamed().
| void filelist_file_get_full_path | ( | const FileList * | filelist, |
| const FileDirEntry * | file, | ||
| char | r_filepath[1282] ) |
| ID * filelist_file_get_id | ( | const FileDirEntry * | file | ) |
Get the ID a file represents (if any). For FILE_MAIN, FILE_MAIN_ASSET.
Definition at line 1345 of file filelist.cc.
References FileDirEntry::id.
Referenced by ED_fileselect_active_asset_get(), file_but_enable_drag(), file_context(), and file_draw_indicator_icons().
| ImBuf * filelist_file_get_preview_image | ( | const FileDirEntry * | file | ) |
Definition at line 237 of file filelist.cc.
References BKE_icon_imbuf_get_buffer(), and FileDirEntry::preview_icon_id.
Referenced by file_draw_tooltip_custom_func().
| bool filelist_file_is_preview_pending | ( | const FileList * | filelist, |
| const FileDirEntry * | file ) |
Definition at line 215 of file filelist.cc.
References FILE_ENTRY_PREVIEW_LOADING, filelist_is_ready(), and FileDirEntry::flags.
Referenced by file_draw_indicator_icons(), and file_draw_list().
| int filelist_files_ensure | ( | FileList * | filelist | ) |
Limited version of full update done by space_file's file_refresh(), to be used by operators and such. Ensures given filelist is ready to be used (i.e. it is filtered and sorted), unless it is tagged for a full refresh.
Definition at line 1168 of file filelist.cc.
References FileDirEntryArr::entries_filtered_num, FileList::filelist, filelist_filter(), filelist_needs_force_reset(), filelist_needs_reading(), and filelist_sort().
Referenced by autocomplete_file(), ED_fileselect_activate_by_relpath(), ED_fileselect_init_layout(), ED_fileselect_selected_files_full_paths(), file_context(), file_current_selection_range_get(), file_delete_exec(), file_delete_poll(), file_draw_list(), file_external_operation_exec(), file_highlight_set(), file_is_any_selected(), file_os_operations_menu_draw(), file_os_operations_menu_poll(), file_rename_state_activate(), file_select_all_exec(), file_select_deselect_all(), file_select_do(), file_select_exec(), file_select_match(), file_selection_get(), file_sfile_to_operator_ex(), file_smoothscroll_invoke(), file_walk_select_do(), blender::ed::asset::list::AssetList::iterate(), and blender::ed::asset::list::AssetList::size().
| int filelist_files_num_entries | ( | FileList * | filelist | ) |
Return the total raw number of entries listed in the given filelist, whether they are filtered out or not.
Definition at line 1045 of file filelist.cc.
References FileDirEntryArr::entries_num, and FileList::filelist.
Referenced by file_draw_hint_if_invalid().
| void filelist_filter | ( | FileList * | filelist | ) |
Definition at line 274 of file filelist_filter.cc.
References ELEM, FileListIntern::entries, FileDirEntryArr::entries_filtered_num, FileDirEntryArr::entries_num, FILE_MAX_LIBEXTRA, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_cache, filelist_cache_clear(), FileList::filelist_intern, filelist_islibrary(), FileList::filter_data, FileList::filter_fn, FileListIntern::filtered, FL_NEED_FILTERING, FileList::flags, FileListFilter::flags, FLF_HIDE_LIB_DIR, LISTBASE_FOREACH, FileList::max_recursion, MEM_freeN(), MEM_mallocN(), FileList::prepare_filter_fn, FileDirEntryArr::root, and FileListEntryCache::size.
Referenced by blender::ed::asset::list::AssetList::ensure_blocking(), blender::ed::asset::list::AssetList::fetch(), file_refresh(), and filelist_files_ensure().
| void filelist_free | ( | FileList * | filelist | ) |
Definition at line 1002 of file filelist.cc.
References FileList::asset_library_ref, BLI_ghash_free(), FileList::filelist_cache, filelist_clear_ex(), FileList::filter_data, FL_NEED_FILTERING, FL_NEED_SORTING, FileList::flags, MEM_freeN(), MEM_SAFE_FREE, printf, and FileList::selection_state.
Referenced by ED_fileselect_exit(), file_free(), and filelist_readjob_free().
| void filelist_free_icons | ( | ) |
Definition at line 191 of file filelist.cc.
References _Max, BLI_assert, G, gSpecialFileImages, i, and IMB_freeImBuf().
Referenced by ED_file_exit().
| void filelist_freelib | ( | FileList * | filelist | ) |
Definition at line 1032 of file filelist.cc.
References BLO_blendhandle_close(), and FileList::libfiledata.
Referenced by blender::ed::asset::list::AssetList::clear(), blender::ed::asset::list::AssetList::clear_current_file_assets(), ED_fileselect_clear(), ED_fileselect_clear_main_assets(), file_free(), and filelist_readjob_free().
Definition at line 230 of file filelist.cc.
References BKE_icon_imbuf_get_buffer(), filelist_geticon_get_file(), and FileDirEntry::preview_icon_id.
Referenced by file_draw_list().
| int filelist_geticon_file_type | ( | FileList * | filelist, |
| int | index, | ||
| bool | is_main ) |
Definition at line 390 of file filelist.cc.
References filelist_geticon_file_type_ex(), and filelist_geticon_get_file().
Referenced by file_draw_list().
Get one of the larger document icons as image. E.g. a folder or file icon. A file type icon can be overlaid on top then.
Definition at line 270 of file filelist.cc.
References filelist_geticon_get_file(), and filelist_geticon_special_file_image_ex().
| ImBuf * filelist_geticon_special_file_image_ex | ( | const FileDirEntry * | file | ) |
Definition at line 251 of file filelist.cc.
References Document, FILE_TYPE_DIR, filelist_ensure_special_file_image(), FILENAME_IS_PARENT, Folder, Parent, FileDirEntry::relpath, and FileDirEntry::typeflag.
Referenced by file_add_preview_drag_but(), and filelist_geticon_special_file_image().
| void filelist_init_icons | ( | ) |
| bool filelist_is_dir | ( | const FileList * | filelist, |
| const char * | path ) |
Definition at line 1100 of file filelist.cc.
References FileList::check_dir_fn.
Referenced by ED_file_change_dir_ex(), file_directory_enter_handle(), file_draw_hint_if_invalid(), file_filename_enter_handle(), and filelist_readjob_start_ex().
| bool filelist_is_ready | ( | const FileList * | filelist | ) |
Definition at line 1153 of file filelist.cc.
References FL_IS_READY, and FileList::flags.
Referenced by file_draw_hint_if_invalid(), file_draw_list(), file_params_renamefile_activate(), file_smoothscroll_invoke(), filelist_file_is_preview_pending(), and blender::ed::asset::list::AssetList::is_loaded().
| bool filelist_islibrary | ( | FileList * | filelist, |
| char * | dir, | ||
| char ** | r_group ) |
| dir | Must be FILE_MAX_LIBEXTRA long! |
Definition at line 2043 of file filelist.cc.
References FileList::asset_library, BKE_blendfile_library_path_explode(), FileList::filelist, and FileDirEntryArr::root.
Referenced by file_delete_poll(), file_draw_hint_if_invalid(), file_external_operation_exec(), file_os_operations_menu_draw(), file_os_operations_menu_poll(), and filelist_filter().
| BlendHandle * filelist_lib | ( | FileList * | filelist | ) |
Definition at line 1040 of file filelist.cc.
References FileList::libfiledata.
Referenced by ED_file_path_button().
| bool filelist_needs_filtering | ( | FileList * | filelist | ) |
Definition at line 269 of file filelist_filter.cc.
References FL_NEED_FILTERING, and FileList::flags.
Referenced by file_refresh().
| bool filelist_needs_force_reset | ( | const FileList * | filelist | ) |
Definition at line 1130 of file filelist.cc.
References FL_FORCE_RESET, FL_FORCE_RESET_MAIN_FILES, and FileList::flags.
Referenced by ED_fileselect_activate_by_id(), ED_fileselect_activate_by_relpath(), blender::ed::asset::list::AssetList::ensure_blocking(), blender::ed::asset::list::AssetList::fetch(), file_refresh(), filelist_files_ensure(), filelist_needs_reading(), and blender::ed::asset::list::AssetList::needs_refetch().
| int filelist_needs_reading | ( | const FileList * | filelist | ) |
Definition at line 1904 of file filelist.cc.
References FileDirEntryArr::entries_num, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, and filelist_needs_force_reset().
Referenced by blender::ed::asset::list::AssetList::ensure_blocking(), blender::ed::asset::list::AssetList::fetch(), file_main_region_needs_refresh_before_draw(), file_refresh(), filelist_files_ensure(), and blender::ed::asset::list::AssetList::needs_refetch().
| bool filelist_needs_reset_on_main_changes | ( | const FileList * | filelist | ) |
Definition at line 1163 of file filelist.cc.
References FILELIST_TAGS_USES_MAIN_DATA, and FileList::tags.
Referenced by file_main_region_needs_refresh_before_draw(), file_refresh(), file_reset_filelist_showing_main_data(), and blender::ed::asset::list::AssetList::tag_main_data_dirty().
| FileList * filelist_new | ( | short | type | ) |
Definition at line 845 of file filelist.cc.
References BLI_ghash_new(), BLI_ghashutil_intcmp(), BLI_ghashutil_inthash_p(), FileDirEntryArr::entries_num, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_cache, filelist_settype(), MEM_callocN(), and FileList::selection_state.
Referenced by file_duplicate(), file_refresh(), and blender::ed::asset::list::FileListWrapper::FileListWrapper().
| bool filelist_pending | ( | const FileList * | filelist | ) |
Definition at line 1158 of file filelist.cc.
References FL_IS_PENDING, and FileList::flags.
Referenced by ED_fileselect_activate_by_id(), ED_fileselect_activate_by_relpath(), blender::ed::asset::list::AssetList::fetch(), and file_refresh().
Forcibly run the job as a blocking task on the main thread.
Definition at line 3351 of file filelist.cc.
References C, and filelist_readjob_start_ex().
Referenced by blender::ed::asset::list::AssetList::ensure_blocking().
| int filelist_readjob_running | ( | FileList * | filelist, |
| wmWindowManager * | wm ) |
Definition at line 3361 of file filelist.cc.
References filelist_jobtype_get(), and WM_jobs_test().
May run the job in either the main thread or asynchronously.
Definition at line 3346 of file filelist.cc.
References C, and filelist_readjob_start_ex().
Referenced by blender::ed::asset::list::AssetList::fetch(), and file_refresh().
| void filelist_readjob_stop | ( | FileList * | filelist, |
| wmWindowManager * | wm ) |
Definition at line 3356 of file filelist.cc.
References filelist_jobtype_get(), and WM_jobs_kill_type().
Referenced by blender::ed::asset::list::AssetList::clear(), blender::ed::asset::list::AssetList::clear_current_file_assets(), ED_fileselect_clear(), ED_fileselect_clear_main_assets(), blender::ed::asset::list::AssetList::fetch(), and file_refresh().
| void filelist_set_asset_catalog_filter_options | ( | FileList * | filelist, |
| eFileSel_Params_AssetCatalogVisibility | catalog_visibility, | ||
| const bUUID * | catalog_id ) |
| catalog_id | The catalog that should be filtered by if catalog_visibility is FILE_SHOW_ASSETS_FROM_CATALOG. May be NULL otherwise. |
Referenced by file_refresh().
| void filelist_setdir | ( | FileList * | filelist, |
| char | dirpath[1282] ) |
May modify in place given dirpath, which is expected to be FILE_MAX_LIBEXTRA length.
References C, flag, and select.
Referenced by ED_file_change_dir_ex(), file_duplicate(), file_refresh(), and blender::ed::asset::list::AssetList::setup().
| void filelist_setfilter_options | ( | FileList * | filelist, |
| bool | do_filter, | ||
| bool | hide_dot, | ||
| bool | hide_parent, | ||
| uint64_t | filter, | ||
| uint64_t | filter_id, | ||
| bool | filter_assets_only, | ||
| const char * | filter_glob, | ||
| const char * | filter_search ) |
Definition at line 330 of file filelist_filter.cc.
References BLI_strcmp_ignore_pad(), BLI_strncpy_ensure_pad(), FILE_TYPE_BLENDERLIB, filelist_tag_needs_filtering(), FileListFilter::filter, filter, FileList::filter_data, FileListFilter::filter_glob, FileListFilter::filter_id, FILTER_ID_ALL, FileListFilter::filter_search, FileListFilter::flags, FLF_ASSETS_ONLY, FLF_DO_FILTER, FLF_HIDE_DOT, FLF_HIDE_PARENT, STREQ, STRNCPY_UTF8, and update().
Referenced by file_refresh(), and blender::ed::asset::list::AssetList::setup().
| void filelist_setindexer | ( | FileList * | filelist, |
| const FileIndexerType * | indexer ) |
Set the indexer to be used by the filelist.
The given indexer allocation should be handled by the caller or defined statically.
Definition at line 118 of file filelist.cc.
References BLI_assert, and FileList::indexer.
Referenced by file_refresh(), and blender::ed::asset::list::AssetList::setup().
| void filelist_setlibrary | ( | FileList * | filelist, |
| const AssetLibraryReference * | asset_library_ref ) |
| asset_library_ref | May be NULL to unset the library. |
Definition at line 166 of file filelist.cc.
References FileList::asset_library_ref, filelist_compare_asset_libraries(), FL_FORCE_RESET, FileList::flags, MEM_callocN(), and MEM_SAFE_FREE.
Referenced by file_refresh(), and blender::ed::asset::list::AssetList::setup().
| void filelist_setrecursion | ( | FileList * | filelist, |
| int | recursion_level ) |
Definition at line 1122 of file filelist.cc.
References FL_FORCE_RESET, FileList::flags, and FileList::max_recursion.
Referenced by file_parent_exec(), file_refresh(), file_select_do(), and blender::ed::asset::list::AssetList::setup().
| void filelist_setsorting | ( | FileList * | filelist, |
| short | sort, | ||
| bool | invert_sort ) |
Definition at line 342 of file filelist_sort.cc.
References FL_NEED_SORTING, FL_SORT_INVERT, FileList::flags, FileList::sort, and sort().
Referenced by file_refresh(), and blender::ed::asset::list::AssetList::setup().
| void filelist_settype | ( | FileList * | filelist, |
| short | type ) |
Definition at line 858 of file filelist.cc.
References FileList::check_dir_fn, FILE_ASSET_LIBRARY, FILE_ASSET_LIBRARY_ALL, file_indexer_noop, FILE_LOADLIB, FILE_MAIN, FILE_MAIN_ASSET, filelist_checkdir_dir(), filelist_checkdir_lib(), filelist_checkdir_main(), filelist_checkdir_return_always_valid(), filelist_readjob_all_asset_library(), filelist_readjob_asset_library(), filelist_readjob_dir(), filelist_readjob_lib(), filelist_readjob_main(), filelist_readjob_main_assets(), FILELIST_TAGS_NO_THREADS, FILELIST_TAGS_USES_MAIN_DATA, FileList::filter_fn, FL_FORCE_RESET, FileList::flags, FileList::indexer, is_filtered_asset_library(), is_filtered_file(), is_filtered_lib(), is_filtered_main(), is_filtered_main_assets(), prepare_filter_asset_library(), FileList::prepare_filter_fn, FileList::read_job_fn, FileList::tags, and FileList::type.
Referenced by file_refresh(), and filelist_new().
| void filelist_sort | ( | FileList * | filelist | ) |
Definition at line 306 of file filelist_sort.cc.
References BLI_assert, BLI_listbase_sort_r(), compare_asset_catalog(), compare_date(), compare_extension(), compare_name(), compare_size(), FileListIntern::entries, FILE_SORT_ALPHA, FILE_SORT_ASSET_CATALOG, FILE_SORT_DEFAULT, FILE_SORT_EXTENSION, FILE_SORT_SIZE, FILE_SORT_TIME, FileList::filelist_intern, filelist_tag_needs_filtering(), FL_NEED_SORTING, FL_SORT_INVERT, FileList::flags, FileSortData::inverted, and FileList::sort.
Referenced by blender::ed::asset::list::AssetList::ensure_blocking(), blender::ed::asset::list::AssetList::fetch(), file_refresh(), and filelist_files_ensure().
| void filelist_tag_force_reset | ( | FileList * | filelist | ) |
Definition at line 1135 of file filelist.cc.
References FL_FORCE_RESET, and FileList::flags.
Referenced by blender::ed::asset::list::AssetList::clear().
| void filelist_tag_force_reset_mainfiles | ( | FileList * | filelist | ) |
Definition at line 1140 of file filelist.cc.
References FILELIST_TAGS_USES_MAIN_DATA, FL_FORCE_RESET_MAIN_FILES, FileList::flags, and FileList::tags.
Referenced by blender::ed::asset::list::AssetList::clear_current_file_assets(), ED_fileselect_clear_main_assets(), file_refresh(), file_reset_filelist_showing_main_data(), and blender::ed::asset::list::AssetList::tag_main_data_dirty().
| void filelist_tag_needs_filtering | ( | FileList * | filelist | ) |
Definition at line 264 of file filelist_filter.cc.
References FL_NEED_FILTERING, and FileList::flags.
Referenced by blender::ed::asset_browser::AssetCatalogDropTarget::drop_assets_into_catalog(), filelist_clear_ex(), filelist_clear_main_files(), filelist_set_asset_catalog_filter_options(), filelist_setfilter_options(), and filelist_sort().
| void filelist_tag_reload_asset_library | ( | FileList * | filelist | ) |
Definition at line 1148 of file filelist.cc.
References FL_RELOAD_ASSET_LIBRARY, and FileList::flags.
Referenced by blender::ed::asset::list::AssetList::clear_current_file_assets(), and ED_fileselect_clear_main_assets().
| bool filelist_uid_is_set | ( | const FileUID | uid | ) |
Definition at line 1366 of file filelist.cc.
References filelist_uid_unset().
| void filelist_uid_unset | ( | FileUID * | r_uid | ) |
Definition at line 1373 of file filelist.cc.
References FILE_UID_UNSET.
Referenced by filelist_readjob_startjob(), and filelist_uid_is_set().