Blender
V3.3
|
Go to the source code of this file.
Typedefs | |
typedef uint32_t | FileUID |
typedef enum FileSelType | FileSelType |
typedef enum FileCheckType | FileCheckType |
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 } |
typedef enum FileCheckType FileCheckType |
typedef enum FileSelType FileSelType |
Definition at line 24 of file filelist.h.
enum FileCheckType |
Enumerator | |
---|---|
CHECK_DIRS | |
CHECK_FILES | |
CHECK_ALL |
Definition at line 32 of file filelist.h.
enum FileSelType |
Enumerator | |
---|---|
FILE_SEL_REMOVE | |
FILE_SEL_ADD | |
FILE_SEL_TOGGLE |
Definition at line 26 of file filelist.h.
struct AssetLibrary* filelist_asset_library | ( | struct FileList * | filelist | ) |
Definition at line 2042 of file filelist.c.
References FileList::asset_library.
Referenced by ED_fileselect_active_asset_library_get(), and file_panel_asset_catalog_buttons_draw().
Definition at line 2719 of file filelist.c.
References FileList::filelist_cache, FileListEntryCache::flags, FLC_PREVIEWS_ACTIVE, NULL, FileListEntryCache::previews_done, FileListEntryCache::previews_pool, and FileListEntryCache::previews_todo_count.
Referenced by blender::ed::asset::AssetList::ensurePreviewsJob(), and file_draw_list().
Definition at line 2712 of file filelist.c.
References FileList::filelist_cache, NULL, and FileListEntryCache::previews_pool.
Referenced by blender::ed::asset::AssetList::ensurePreviewsJob(), and file_draw_list().
Definition at line 2630 of file filelist.c.
References BLI_assert, FileList::filelist_cache, filelist_cache_previews_free(), FL_IS_READY, FileListEntryCache::flags, FileList::flags, FLC_PREVIEWS_ACTIVE, NULL, FileListEntryCache::previews_done, FileListEntryCache::previews_pool, and FileListEntryCache::previews_todo_count.
Referenced by blender::ed::asset::AssetList::ensurePreviewsJob(), and file_refresh().
Definition at line 2655 of file filelist.c.
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, MEM_freeN, blender::compositor::pool, usdtokens::preview(), FileDirEntry::preview_icon_id, FileListEntryCache::previews_done, FileListEntryCache::previews_pool, and FileListEntryCache::previews_todo_count.
Referenced by blender::ed::asset::AssetList::ensurePreviewsJob(), file_draw_list(), file_listener(), and filelist_file_cache_block().
Definition at line 2000 of file filelist.c.
References filelist_clear_ex().
Referenced by blender::ed::asset::AssetList::clear(), ED_fileselect_clear(), and filelist_clear_from_reset_tag().
void filelist_clear_ex | ( | struct FileList * | filelist, |
bool | do_asset_library, | ||
bool | do_cache, | ||
bool | do_selection | ||
) |
Definition at line 1942 of file filelist.c.
References BLI_ghash_clear(), FileList::filelist, FileList::filelist_cache, filelist_cache_clear(), filelist_clear_asset_library(), filelist_direntryarr_free(), FileList::filelist_intern, filelist_intern_free(), filelist_tag_needs_filtering(), NULL, FileList::selection_state, and FileListEntryCache::size.
Referenced by filelist_clear(), filelist_free(), and filelist_readjob_update().
A "smarter" version of filelist_clear() that calls partial clearing based on the filelist force-reset flags.
Definition at line 2005 of file filelist.c.
References filelist_clear(), filelist_clear_main_files(), FL_FORCE_RESET, FL_FORCE_RESET_MAIN_FILES, and FileList::flags.
Referenced by blender::ed::asset::AssetList::fetch(), and file_refresh().
const char* filelist_dir | ( | struct FileList * | filelist | ) |
Definition at line 2106 of file filelist.c.
References FileList::filelist, and FileDirEntryArr::root.
Referenced by assetlist_library_path_from_sfile_get_hack(), ED_file_change_dir_ex(), file_draw_list(), and blender::ed::asset::AssetList::filepath().
void filelist_entries_select_index_range_set | ( | struct FileList * | filelist, |
FileSelection * | sel, | ||
FileSelType | select, | ||
unsigned int | flag, | ||
FileCheckType | check | ||
) |
Definition at line 2936 of file filelist.c.
References FileDirEntryArr::entries_filtered_num, FileList::filelist, filelist_entry_select_index_set(), FileSelection::first, 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().
Definition at line 2975 of file filelist.c.
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 file_context(), and file_current_selection_range_get().
void filelist_entry_parent_select_set | ( | struct FileList * | filelist, |
FileSelType | select, | ||
unsigned int | flag, | ||
FileCheckType | check | ||
) |
Set selection of the '..' parent entry, but only if it's actually visible.
Definition at line 2988 of file filelist.c.
References filelist_entry_select_index_set(), FileList::filter_data, FileListFilter::flags, FLF_HIDE_PARENT, and select().
Referenced by file_box_select_exec(), file_select_exec(), and file_walk_select_selection_set().
unsigned int filelist_entry_select_get | ( | struct FileList * | filelist, |
struct FileDirEntry * | entry, | ||
FileCheckType | check | ||
) |
Definition at line 2949 of file filelist.c.
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().
unsigned int filelist_entry_select_index_get | ( | struct FileList * | filelist, |
int | index, | ||
FileCheckType | check | ||
) |
Definition at line 2964 of file filelist.c.
References filelist_entry_select_get(), and filelist_file().
Referenced by file_delete_exec(), file_delete_poll(), file_is_any_selected(), 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 | ( | struct FileList * | filelist, |
int | index, | ||
FileSelType | select, | ||
unsigned int | flag, | ||
FileCheckType | check | ||
) |
Definition at line 2926 of file filelist.c.
References filelist_entry_select_set(), filelist_file(), and select().
Referenced by file_rename_state_activate(), file_walk_select_selection_set(), filelist_entries_select_index_range_set(), and filelist_entry_parent_select_set().
unsigned int filelist_entry_select_set | ( | const struct FileList * | filelist, |
const struct FileDirEntry * | entry, | ||
FileSelType | select, | ||
unsigned int | flag, | ||
FileCheckType | check | ||
) |
FileDirEntry* filelist_file | ( | struct FileList * | filelist, |
int | index | ||
) |
Definition at line 2280 of file filelist.c.
References filelist_file_ex().
Referenced by autocomplete_file(), ED_fileselect_activate_by_relpath(), ED_fileselect_active_asset_get(), file_box_select_modal(), file_context(), file_delete_exec(), file_draw_list(), file_execute(), file_params_renamefile_activate(), file_rename_state_activate(), file_select_do(), file_select_match(), file_sfile_to_operator_ex(), filelist_entry_select_index_get(), filelist_entry_select_index_set(), filelist_geticon_get_file(), fileselect_file_set(), and blender::ed::asset::AssetList::iterate().
Load in cache all entries "around" given index (as much as block cache may hold).
Definition at line 2416 of file filelist.c.
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, FileListEntryCache::flags, FileList::flags, FLC_PREVIEWS_ACTIVE, max_ii(), min_ii(), and FileListEntryCache::size.
Referenced by blender::ed::asset::AssetList::ensurePreviewsJob(), and file_draw_list().
Definition at line 2348 of file filelist.c.
References FileList::filelist_cache, filelist_cache_clear(), size(), and FileListEntryCache::size.
Referenced by blender::ed::asset::AssetList::ensurePreviewsJob(), and file_draw_list().
FileDirEntry* filelist_file_ex | ( | struct FileList * | filelist, |
int | index, | ||
bool | use_request | ||
) |
Definition at line 2232 of file filelist.c.
References BLI_ghash_insert(), BLI_ghash_lookup(), BLI_ghash_popkey(), BLI_ghash_remove(), FileListEntryCache::block_cursor, FileListEntryCache::block_entries, FileListEntryCache::block_start_index, FileDirEntryArr::entries_filtered_num, FileList::filelist, FileList::filelist_cache, filelist_cache_previews_push(), filelist_file_create_entry(), filelist_file_release_entry(), FileListEntryCache::misc_cursor, FileListEntryCache::misc_entries, FileListEntryCache::misc_entries_indices, NULL, 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.
int filelist_file_find_path | ( | struct FileList * | filelist, |
const char * | file | ||
) |
Find a file from a file name, or more precisely, its file-list relative path, inside the filtered items.
Definition at line 2285 of file filelist.c.
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().
struct ID* filelist_file_get_id | ( | const struct FileDirEntry * | file | ) |
Get the ID a file represents (if any). For FILE_MAIN, FILE_MAIN_ASSET.
struct ImBuf* filelist_file_getimage | ( | const FileDirEntry * | file | ) |
Definition at line 1303 of file filelist.c.
References BKE_icon_imbuf_get_buffer(), file, and NULL.
Referenced by ED_assetlist_asset_image_get(), and file_draw_icon().
int filelist_files_ensure | ( | struct 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 2173 of file filelist.c.
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(), blender::ed::asset::AssetList::ensurePreviewsJob(), file_context(), file_current_selection_range_get(), file_delete_exec(), file_delete_poll(), file_draw_list(), file_highlight_set(), file_is_any_selected(), 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::AssetList::iterate(), and blender::ed::asset::AssetList::size().
int filelist_files_num_entries | ( | struct FileList * | filelist | ) |
Return the total raw number of entries listed in the given filelist
, whether they are filtered out or not.
Definition at line 2060 of file filelist.c.
References FileDirEntryArr::entries_num, and FileList::filelist.
Referenced by file_draw_hint_if_invalid().
Definition at line 1061 of file filelist.c.
References ELEM, FileListIntern::entries, FileDirEntryArr::entries_filtered_num, FileDirEntryArr::entries_num, file, 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, ListBase::first, FL_NEED_FILTERING, FileListFilter::flags, FileList::flags, FLF_HIDE_LIB_DIR, FileList::max_recursion, MEM_freeN, MEM_mallocN, NULL, FileList::prepare_filter_fn, FileDirEntryArr::root, and FileListEntryCache::size.
Referenced by blender::ed::asset::AssetList::fetch(), file_refresh(), and filelist_files_ensure().
Definition at line 2019 of file filelist.c.
References FileList::asset_library_ref, BLI_ghash_free(), FileList::filelist_cache, filelist_cache_free(), filelist_clear_ex(), FileList::filter_data, FL_NEED_FILTERING, FL_NEED_SORTING, FileList::flags, MEM_SAFE_FREE, NULL, and FileList::selection_state.
Referenced by ED_fileselect_exit(), file_free(), and filelist_readjob_free().
Definition at line 1279 of file filelist.c.
References BLI_assert, G, gSpecialFileImages, IMB_freeImBuf(), NULL, and SPECIAL_IMG_MAX.
Referenced by ED_file_exit().
Definition at line 2047 of file filelist.c.
References BLO_blendhandle_close(), FileList::libfiledata, and NULL.
Referenced by blender::ed::asset::AssetList::clear(), ED_fileselect_clear(), file_free(), and filelist_readjob_free().
Definition at line 1449 of file filelist.c.
References file, FileList::filelist, filelist_geticon_ex(), filelist_geticon_get_file(), and FileDirEntryArr::root.
Referenced by file_draw_list().
Definition at line 1327 of file filelist.c.
References file, filelist_geticon_get_file(), and filelist_geticon_image_ex().
Referenced by file_draw_list().
struct ImBuf* filelist_geticon_image_ex | ( | const FileDirEntry * | file | ) |
Definition at line 1308 of file filelist.c.
References file, FILE_TYPE_DIR, FILENAME_IS_PARENT, gSpecialFileImages, NULL, SPECIAL_IMG_DOCUMENT, SPECIAL_IMG_FOLDER, and SPECIAL_IMG_PARENT.
Referenced by ED_assetlist_asset_image_get(), and filelist_geticon_image().
Definition at line 1296 of file filelist.c.
References BKE_icon_imbuf_get_buffer(), file, filelist_geticon_get_file(), and NULL.
Referenced by file_draw_list().
Definition at line 1245 of file filelist.c.
References BLI_assert, datatoc_prvicons_png, datatoc_prvicons_png_size, G, gSpecialFileImages, IB_rect, IMB_allocImBuf(), IMB_freeImBuf(), IMB_ibImageFromMemory(), NULL, ImBuf::rect, SPECIAL_IMG_COLS, SPECIAL_IMG_MAX, SPECIAL_IMG_ROWS, SPECIAL_IMG_SIZE, tile, x, and y.
Referenced by ED_file_init().
Definition at line 2111 of file filelist.c.
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().
Definition at line 2158 of file filelist.c.
References FL_IS_READY, and FileList::flags.
Referenced by file_draw_hint_if_invalid(), file_params_renamefile_activate(), and file_smoothscroll_invoke().
dir | Must be FILE_MAX_LIBEXTRA long! |
Definition at line 2998 of file filelist.c.
References BLO_library_path_explode(), FileList::filelist, NULL, and FileDirEntryArr::root.
Referenced by file_delete_poll(), file_draw_hint_if_invalid(), and filelist_filter().
struct BlendHandle* filelist_lib | ( | struct FileList * | filelist | ) |
Definition at line 2055 of file filelist.c.
References FileList::libfiledata.
Referenced by ED_file_path_button().
Definition at line 2140 of file filelist.c.
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::AssetList::fetch(), file_refresh(), filelist_files_ensure(), filelist_needs_reading(), and blender::ed::asset::AssetList::needsRefetch().
int filelist_needs_reading | ( | struct FileList * | filelist | ) |
Definition at line 2873 of file filelist.c.
References FileDirEntryArr::entries_num, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, and filelist_needs_force_reset().
Referenced by blender::ed::asset::AssetList::fetch(), file_main_region_needs_refresh_before_draw(), file_refresh(), filelist_files_ensure(), and blender::ed::asset::AssetList::needsRefetch().
struct FileList* filelist_new | ( | short | type | ) |
Definition at line 1875 of file filelist.c.
References BLI_ghash_new(), BLI_ghashutil_intcmp(), BLI_ghashutil_inthash_p(), FileDirEntryArr::entries_num, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_cache, filelist_cache_init(), FILELIST_ENTRYCACHESIZE_DEFAULT, filelist_settype(), MEM_callocN, FileList::selection_state, and type.
Referenced by file_duplicate(), and file_refresh().
Definition at line 2163 of file filelist.c.
References FL_IS_PENDING, and FileList::flags.
Referenced by ED_fileselect_activate_by_id(), ED_fileselect_activate_by_relpath(), blender::ed::asset::AssetList::fetch(), and file_refresh().
int filelist_readjob_running | ( | struct FileList * | filelist, |
struct wmWindowManager * | wm | ||
) |
Definition at line 4123 of file filelist.c.
References FileList::filelist, WM_JOB_TYPE_FILESEL_READDIR, and WM_jobs_test().
void filelist_readjob_start | ( | struct FileList * | filelist, |
int | space_notifier, | ||
const struct bContext * | C | ||
) |
void filelist_readjob_stop | ( | struct FileList * | filelist, |
struct wmWindowManager * | wm | ||
) |
Definition at line 4118 of file filelist.c.
References FileList::filelist, WM_JOB_TYPE_FILESEL_READDIR, and WM_jobs_kill_type().
Referenced by blender::ed::asset::AssetList::clear(), ED_fileselect_clear(), blender::ed::asset::AssetList::fetch(), and file_refresh().
void filelist_set_asset_catalog_filter_options | ( | struct FileList * | filelist, |
eFileSel_Params_AssetCatalogVisibility | catalog_visibility, | ||
const struct 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. |
May modify in place given r_dir, which is expected to be FILE_MAX_LIBEXTRA length.
Definition at line 2116 of file filelist.c.
References FileList::asset_library_ref, BKE_main_blendfile_path_from_global(), BLI_assert, BLI_path_normalize_dir(), BLI_strncpy(), FileList::check_dir_fn, FILE_MAX_LIBEXTRA, FileList::filelist, FL_FORCE_RESET, FileList::flags, NULL, FileDirEntryArr::root, STREQ, and UNUSED_VARS_NDEBUG.
Referenced by ED_file_change_dir_ex(), file_duplicate(), file_refresh(), and blender::ed::asset::AssetList::setup().
void filelist_setfilter_options | ( | struct 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 1116 of file filelist.c.
References BLI_strcmp_ignore_pad(), BLI_strncpy(), 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, and update().
Referenced by file_refresh(), and blender::ed::asset::AssetList::setup().
void filelist_setindexer | ( | struct FileList * | filelist, |
const struct FileIndexerType * | indexer | ||
) |
Set the indexer to be used by the filelist.
The given indexer allocation should be handled by the caller or defined statically.
void filelist_setlibrary | ( | struct FileList * | filelist, |
const struct AssetLibraryReference * | asset_library_ref | ||
) |
asset_library_ref | May be NULL to unset the library. |
Definition at line 2132 of file filelist.c.
References FL_FORCE_RESET, FileList::flags, and FileList::max_recursion.
Referenced by file_parent_exec(), file_refresh(), file_select_do(), and blender::ed::asset::AssetList::setup().
Definition at line 753 of file filelist.c.
References FL_NEED_SORTING, FL_SORT_INVERT, FileList::flags, sort(), and FileList::sort.
Referenced by file_refresh(), and blender::ed::asset::AssetList::setup().
Definition at line 1888 of file filelist.c.
References FileList::check_dir_fn, FILE_ASSET_LIBRARY, file_indexer_noop, FILE_LOADLIB, FILE_MAIN, FILE_MAIN_ASSET, filelist_checkdir_dir(), filelist_checkdir_lib(), filelist_checkdir_main(), filelist_checkdir_main_assets(), 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(), NULL, prepare_filter_asset_library(), FileList::prepare_filter_fn, FileList::read_job_fn, FileList::tags, FileList::type, and type.
Referenced by file_refresh(), and filelist_new().
Definition at line 720 of file filelist.c.
References BLI_assert, BLI_listbase_sort_r(), compare_date(), compare_extension(), compare_name(), compare_size(), FileListIntern::entries, FILE_SORT_ALPHA, FILE_SORT_DEFAULT, FILE_SORT_EXTENSION, FILE_SORT_SIZE, FILE_SORT_TIME, FileList::filelist_intern, filelist_tag_needs_filtering(), FL_NEED_SORTING, FileList::flags, NULL, and FileList::sort.
Referenced by blender::ed::asset::AssetList::fetch(), file_refresh(), and filelist_files_ensure().
Definition at line 2145 of file filelist.c.
References FL_FORCE_RESET, and FileList::flags.
Definition at line 2150 of file filelist.c.
References FILELIST_TAGS_USES_MAIN_DATA, FL_FORCE_RESET_MAIN_FILES, FileList::flags, and FileList::tags.
Referenced by file_refresh(), file_reset_filelist_showing_main_data(), and blender::ed::asset::AssetList::tagMainDataDirty().
Definition at line 1056 of file filelist.c.
References FL_NEED_FILTERING, and FileList::flags.
Referenced by blender::ed::asset_browser::AssetCatalogDropController::drop_assets_into_catalog(), filelist_clear_ex(), filelist_clear_main_files(), filelist_set_asset_catalog_filter_options(), filelist_setfilter_options(), and filelist_sort().
Definition at line 2336 of file filelist.c.
References filelist_uid_unset().
Definition at line 2343 of file filelist.c.
References FILE_UID_UNSET.
Referenced by filelist_readjob_startjob(), and filelist_uid_is_set().
Definition at line 236 of file filelist.c.
References BLI_addtail(), folderlist_duplicate(), FileFolderHistory::folders_next, FileFolderHistory::folders_prev, LISTBASE_FOREACH, MEM_dupallocN, and NULL.
Referenced by file_duplicate().
Definition at line 202 of file filelist.c.
References BLI_addtail(), FileFolderHistory::browse_mode, SpaceFile::browse_mode, SpaceFile::folder_histories, folder_history_find(), FileFolderHistory::folders_next, SpaceFile::folders_next, FileFolderHistory::folders_prev, SpaceFile::folders_prev, and MEM_callocN.
Referenced by file_refresh(), and fileselect_initialize_params_common().
Definition at line 229 of file filelist.c.
References SpaceFile::folder_histories, folder_history_entry_free(), and LISTBASE_FOREACH_MUTABLE.
Referenced by ED_fileselect_exit(), and file_free().
int folderlist_clear_next | ( | struct SpaceFile * | sfile | ) |
Definition at line 145 of file filelist.c.
References BLI_listbase_is_empty(), BLI_path_cmp, ED_fileselect_get_active_params(), FolderList::foldername, SpaceFile::folders_next, SpaceFile::folders_prev, ListBase::last, and params.
Referenced by ED_file_change_dir_ex().
Definition at line 166 of file filelist.c.
References BLI_freelistN(), ListBase::first, FolderList::foldername, MEM_freeN, and FolderList::next.
Referenced by ED_file_change_dir_ex(), and folder_history_entry_free().
const char* folderlist_peeklastdir | ( | struct ListBase * | folderlist | ) |
Definition at line 133 of file filelist.c.
References FolderList::foldername, ListBase::last, and NULL.
Referenced by file_directory_enter_handle().
Definition at line 89 of file filelist.c.
References BLI_freelinkN(), BLI_strncpy(), FILE_MAXDIR, FolderList::foldername, ListBase::last, and MEM_freeN.
Referenced by file_next_exec(), and file_previous_exec().
Definition at line 109 of file filelist.c.
References BLI_addtail(), BLI_path_cmp, BLI_strdup(), FolderList::foldername, ListBase::last, and MEM_mallocN.
Referenced by ED_file_change_dir_ex(), file_next_exec(), file_previous_exec(), and fileselect_initialize_params_common().