|
Blender
V2.93
|
Go to the source code of this file.
Typedefs | |
| 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 } |
Functions | |
| void | folderlist_free (struct ListBase *folderlist) |
| void | folderlist_popdir (struct ListBase *folderlist, char *dir) |
| void | folderlist_pushdir (struct ListBase *folderlist, const char *dir) |
| const char * | folderlist_peeklastdir (struct ListBase *folderlist) |
| int | folderlist_clear_next (struct SpaceFile *sfile) |
| void | folder_history_list_ensure_for_active_browse_mode (struct SpaceFile *sfile) |
| void | folder_history_list_free (struct SpaceFile *sfile) |
| struct ListBase | folder_history_list_duplicate (struct ListBase *listbase) |
| void | filelist_setsorting (struct FileList *filelist, const short sort, bool invert_sort) |
| void | filelist_sort (struct FileList *filelist) |
| void | filelist_setfilter_options (struct FileList *filelist, const bool do_filter, const bool hide_dot, const bool hide_parent, const uint64_t filter, const uint64_t filter_id, const bool filter_assets_only, const char *filter_glob, const char *filter_search) |
| void | filelist_filter (struct FileList *filelist) |
| void | filelist_setlibrary (struct FileList *filelist, const struct FileSelectAssetLibraryUID *asset_library) |
| void | filelist_init_icons (void) |
| void | filelist_free_icons (void) |
| struct ImBuf * | filelist_getimage (struct FileList *filelist, const int index) |
| struct ImBuf * | filelist_file_getimage (const FileDirEntry *file) |
| struct ImBuf * | filelist_geticon_image (struct FileList *filelist, const int index) |
| int | filelist_geticon (struct FileList *filelist, const int index, const bool is_main) |
| struct FileList * | filelist_new (short type) |
| void | filelist_settype (struct FileList *filelist, short type) |
| void | filelist_clear (struct FileList *filelist) |
| void | filelist_clear_ex (struct FileList *filelist, const bool do_cache, const bool do_selection) |
| void | filelist_free (struct FileList *filelist) |
| const char * | filelist_dir (struct FileList *filelist) |
| bool | filelist_is_dir (struct FileList *filelist, const char *path) |
| void | filelist_setdir (struct FileList *filelist, char *r_dir) |
| int | filelist_files_ensure (struct FileList *filelist) |
| int | filelist_needs_reading (struct FileList *filelist) |
| FileDirEntry * | filelist_file (struct FileList *filelist, int index) |
| FileDirEntry * | filelist_file_ex (struct FileList *filelist, int index, bool use_request) |
| int | filelist_file_findpath (struct FileList *filelist, const char *file) |
| struct ID * | filelist_file_get_id (const struct FileDirEntry *file) |
| FileDirEntry * | filelist_entry_find_uuid (struct FileList *filelist, const int uuid[4]) |
| void | filelist_file_cache_slidingwindow_set (struct FileList *filelist, size_t window_size) |
| bool | filelist_file_cache_block (struct FileList *filelist, const int index) |
| bool | filelist_needs_force_reset (struct FileList *filelist) |
| void | filelist_tag_force_reset (struct FileList *filelist) |
| bool | filelist_pending (struct FileList *filelist) |
| bool | filelist_needs_reset_on_main_changes (const struct FileList *filelist) |
| bool | filelist_is_ready (struct FileList *filelist) |
| unsigned int | filelist_entry_select_set (const struct FileList *filelist, const struct FileDirEntry *entry, FileSelType select, unsigned int flag, FileCheckType check) |
| void | filelist_entry_select_index_set (struct FileList *filelist, const int index, FileSelType select, unsigned int flag, FileCheckType check) |
| void | filelist_entries_select_index_range_set (struct FileList *filelist, FileSelection *sel, FileSelType select, unsigned int flag, FileCheckType check) |
| unsigned int | filelist_entry_select_get (struct FileList *filelist, struct FileDirEntry *entry, FileCheckType check) |
| unsigned int | filelist_entry_select_index_get (struct FileList *filelist, const int index, FileCheckType check) |
| bool | filelist_entry_is_selected (struct FileList *filelist, const int index) |
| void | filelist_entry_parent_select_set (struct FileList *filelist, FileSelType select, unsigned int flag, FileCheckType check) |
| void | filelist_setrecursion (struct FileList *filelist, const int recursion_level) |
| struct BlendHandle * | filelist_lib (struct FileList *filelist) |
| bool | filelist_islibrary (struct FileList *filelist, char *dir, char **r_group) |
| void | filelist_freelib (struct FileList *filelist) |
| void | filelist_readjob_start (struct FileList *filelist, const struct bContext *C) |
| void | filelist_readjob_stop (struct wmWindowManager *wm, struct Scene *owner_scene) |
| int | filelist_readjob_running (struct wmWindowManager *wm, struct Scene *owner_scene) |
| bool | filelist_cache_previews_update (struct FileList *filelist) |
| void | filelist_cache_previews_set (struct FileList *filelist, const bool use_previews) |
| bool | filelist_cache_previews_running (struct FileList *filelist) |
| typedef enum FileCheckType FileCheckType |
| typedef enum FileSelType FileSelType |
| enum FileCheckType |
| Enumerator | |
|---|---|
| CHECK_DIRS | |
| CHECK_FILES | |
| CHECK_ALL | |
Definition at line 44 of file filelist.h.
| enum FileSelType |
| Enumerator | |
|---|---|
| FILE_SEL_REMOVE | |
| FILE_SEL_ADD | |
| FILE_SEL_TOGGLE | |
Definition at line 38 of file filelist.h.
| bool filelist_cache_previews_running | ( | struct FileList * | filelist | ) |
Definition at line 2461 of file filelist.c.
References FileList::filelist_cache, NULL, and FileListEntryCache::previews_pool.
Referenced by file_draw_list().
| void filelist_cache_previews_set | ( | struct FileList * | filelist, |
| const bool | use_previews | ||
| ) |
Definition at line 2384 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, and FileListEntryCache::previews_pool.
Referenced by file_refresh().
| bool filelist_cache_previews_update | ( | struct FileList * | filelist | ) |
Definition at line 2408 of file filelist.c.
References BKE_icon_delete(), BLI_thread_queue_is_empty(), BLI_thread_queue_pop(), FILE_ENTRY_INVALID_PREVIEW, FileList::filelist_cache, filelist_file_ex(), FileDirEntry::flags, FileListEntryPreview::icon_id, FileListEntryPreview::index, MEM_freeN, blender::compositor::pool, FileDirEntry::preview_icon_id, FileListEntryCache::previews_done, and FileListEntryCache::previews_pool.
Referenced by file_draw_list(), file_listener(), and filelist_file_cache_block().
| void filelist_clear | ( | struct FileList * | filelist | ) |
Definition at line 1791 of file filelist.c.
References filelist_clear_ex().
Referenced by ED_fileselect_clear(), and file_refresh().
| void filelist_clear_ex | ( | struct FileList * | filelist, |
| const bool | do_cache, | ||
| const bool | do_selection | ||
| ) |
Definition at line 1770 of file filelist.c.
References BLI_ghash_clear(), FileList::filelist, FileList::filelist_cache, filelist_cache_clear(), filelist_direntryarr_free(), filelist_filter_clear(), FileList::filelist_intern, filelist_intern_free(), MEM_freeN, NULL, FileList::selection_state, and FileListEntryCache::size.
Referenced by filelist_clear(), filelist_free(), and filelist_readjob_update().
| const char* filelist_dir | ( | struct FileList * | filelist | ) |
Definition at line 1863 of file filelist.c.
References FileList::filelist, and FileDirEntryArr::root.
Referenced by ED_file_change_dir_ex(), and file_draw_list().
| void filelist_entries_select_index_range_set | ( | struct FileList * | filelist, |
| FileSelection * | sel, | ||
| FileSelType | select, | ||
| unsigned int | flag, | ||
| FileCheckType | check | ||
| ) |
Definition at line 2666 of file filelist.c.
References FileList::filelist, filelist_entry_select_index_set(), FileSelection::first, FileSelection::last, FileDirEntryArr::nbr_entries_filtered, and select().
Referenced by file_box_select_modal(), file_deselect_all(), file_select(), file_select_all_exec(), and file_walk_select_selection_set().
| FileDirEntry* filelist_entry_find_uuid | ( | struct FileList * | filelist, |
| const int | uuid[4] | ||
| ) |
Definition at line 2076 of file filelist.c.
References BLI_ghash_lookup(), FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_cache, filelist_file(), FileList::filelist_intern, FileListIntern::filtered, FileDirEntryArr::nbr_entries_filtered, NULL, FileListInternEntry::uuid, and FileListEntryCache::uuids.
| bool filelist_entry_is_selected | ( | struct FileList * | filelist, |
| const int | index | ||
| ) |
Definition at line 2704 of file filelist.c.
References BLI_assert, BLI_ghash_lookup(), FileList::filelist_intern, FileListIntern::filtered, POINTER_AS_UINT, FileList::selection_state, and FileListInternEntry::uuid.
Referenced by file_current_selection_range_get().
| void filelist_entry_parent_select_set | ( | FileList * | filelist, |
| FileSelType | select, | ||
| uint | flag, | ||
| FileCheckType | check | ||
| ) |
Set selection of the '..' parent entry, but only if it's actually visible.
Definition at line 2720 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_invoke(), and file_walk_select_selection_set().
| unsigned int filelist_entry_select_get | ( | struct FileList * | filelist, |
| struct FileDirEntry * | entry, | ||
| FileCheckType | check | ||
| ) |
Definition at line 2679 of file filelist.c.
References BLI_assert, BLI_ghash_lookup(), CHECK_ALL, CHECK_DIRS, CHECK_FILES, ELEM, FILE_TYPE_DIR, POINTER_AS_UINT, FileList::selection_state, FileDirEntry::typeflag, and FileDirEntry::uuid.
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, |
| const int | index, | ||
| FileCheckType | check | ||
| ) |
Definition at line 2693 of file filelist.c.
References filelist_entry_select_get(), and filelist_file().
Referenced by file_delete_exec(), file_delete_poll(), file_exec(), file_is_any_selected(), file_select(), file_select_all_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, |
| const int | index, | ||
| FileSelType | select, | ||
| unsigned int | flag, | ||
| FileCheckType | check | ||
| ) |
Definition at line 2656 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 2041 of file filelist.c.
References filelist_file_ex().
Referenced by autocomplete_file(), ED_fileselect_active_asset_get(), file_box_select_modal(), file_context(), file_delete_exec(), file_draw_list(), file_exec(), file_params_renamefile_activate(), file_rename_state_activate(), file_select_do(), file_select_match(), file_sfile_to_operator_ex(), filelist_entry_find_uuid(), filelist_entry_select_index_get(), filelist_entry_select_index_set(), filelist_geticon_get_file(), and fileselect_file_set().
| bool filelist_file_cache_block | ( | struct FileList * | filelist, |
| const int | index | ||
| ) |
Definition at line 2172 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, 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(), FileDirEntryArr::nbr_entries_filtered, and FileListEntryCache::size.
Referenced by file_draw_list().
| void filelist_file_cache_slidingwindow_set | ( | struct FileList * | filelist, |
| size_t | window_size | ||
| ) |
Definition at line 2103 of file filelist.c.
References FileList::filelist_cache, filelist_cache_clear(), size(), and FileListEntryCache::size.
Referenced by file_draw_list().
| FileDirEntry* filelist_file_ex | ( | struct FileList * | filelist, |
| int | index, | ||
| bool | use_request | ||
| ) |
Definition at line 1993 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, 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, FileDirEntryArr::nbr_entries_filtered, NULL, POINTER_FROM_INT, FileListEntryCache::previews_pool, ret, FileListEntryCache::size, and FileListEntryCache::uuids.
Referenced by ED_fileselect_activate_by_id(), filelist_cache_previews_update(), and filelist_file().
| int filelist_file_findpath | ( | struct FileList * | filelist, |
| const char * | file | ||
| ) |
Definition at line 2046 of file filelist.c.
References FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_intern, FileListIntern::filtered, FileDirEntryArr::nbr_entries_filtered, FileListInternEntry::relpath, and STREQ.
Referenced by file_params_renamefile_activate().
| struct ID* filelist_file_get_id | ( | const struct FileDirEntry * | file | ) |
| struct ImBuf* filelist_file_getimage | ( | const FileDirEntry * | file | ) |
Definition at line 1152 of file filelist.c.
References BKE_icon_imbuf_get_buffer(), file, and NULL.
Referenced by file_draw_icon().
| 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 1931 of file filelist.c.
References FileList::filelist, filelist_filter(), filelist_needs_force_reset(), filelist_needs_reading(), filelist_sort(), and FileDirEntryArr::nbr_entries_filtered.
Referenced by autocomplete_file(), ED_fileselect_activate_by_id(), ED_fileselect_init_layout(), file_current_selection_range_get(), file_delete_exec(), file_delete_poll(), file_deselect_all(), file_draw_list(), file_exec(), file_highlight_set(), file_is_any_selected(), file_rename_state_activate(), file_select_all_exec(), file_select_do(), file_select_invoke(), file_select_match(), file_selection_get(), file_sfile_to_operator_ex(), file_smoothscroll_invoke(), and file_walk_select_do().
| void filelist_filter | ( | struct FileList * | filelist | ) |
Definition at line 937 of file filelist.c.
References ELEM, FileListIntern::entries, 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, FileDirEntryArr::nbr_entries, FileDirEntryArr::nbr_entries_filtered, NULL, FileDirEntryArr::root, and FileListEntryCache::size.
Referenced by file_refresh(), and filelist_files_ensure().
| void filelist_free | ( | struct FileList * | filelist | ) |
Definition at line 1796 of file filelist.c.
References FileList::asset_library, BLI_ghash_free(), FileList::filelist_cache, filelist_cache_free(), filelist_clear_ex(), FileList::filter_data, FL_NEED_FILTERING, FL_NEED_SORTING, FileList::flags, MEM_freeN, MEM_SAFE_FREE, NULL, and FileList::selection_state.
Referenced by ED_fileselect_exit(), file_free(), and filelist_readjob_free().
| void filelist_free_icons | ( | void | ) |
Definition at line 1128 of file filelist.c.
References BLI_assert, G, gSpecialFileImages, IMB_freeImBuf(), NULL, and SPECIAL_IMG_MAX.
Referenced by ED_file_exit().
| void filelist_freelib | ( | struct FileList * | filelist | ) |
Definition at line 1819 of file filelist.c.
References BLO_blendhandle_close(), FileList::libfiledata, and NULL.
Referenced by ED_fileselect_clear(), file_free(), and filelist_readjob_free().
| int filelist_geticon | ( | struct FileList * | filelist, |
| const int | index, | ||
| const bool | is_main | ||
| ) |
Definition at line 1298 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 1176 of file filelist.c.
References file, filelist_geticon_get_file(), and filelist_geticon_image_ex().
Referenced by file_draw_list().
Definition at line 1145 of file filelist.c.
References BKE_icon_imbuf_get_buffer(), file, filelist_geticon_get_file(), and NULL.
Referenced by file_draw_list().
| void filelist_init_icons | ( | void | ) |
Definition at line 1094 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, x, and y.
Referenced by ED_file_init().
| bool filelist_is_dir | ( | struct FileList * | filelist, |
| const char * | path | ||
| ) |
Definition at line 1868 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().
| bool filelist_is_ready | ( | struct FileList * | filelist | ) |
Definition at line 1910 of file filelist.c.
References FL_IS_READY, and FileList::flags.
Referenced by file_params_renamefile_activate(), and file_smoothscroll_invoke().
| bool filelist_islibrary | ( | struct FileList * | filelist, |
| char * | dir, | ||
| char ** | r_group | ||
| ) |
Definition at line 2731 of file filelist.c.
References BLO_library_path_explode(), FileList::filelist, NULL, and FileDirEntryArr::root.
Referenced by file_delete_poll(), and filelist_filter().
| struct BlendHandle* filelist_lib | ( | struct FileList * | filelist | ) |
Definition at line 1827 of file filelist.c.
References FileList::libfiledata.
Referenced by ED_file_path_button().
| bool filelist_needs_force_reset | ( | struct FileList * | filelist | ) |
Definition at line 1900 of file filelist.c.
References FL_FORCE_RESET, and FileList::flags.
Referenced by ED_fileselect_activate_by_id(), file_refresh(), and filelist_files_ensure().
| int filelist_needs_reading | ( | struct FileList * | filelist | ) |
Definition at line 2603 of file filelist.c.
References FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, and FileDirEntryArr::nbr_entries.
Referenced by file_main_region_needs_refresh_before_draw(), file_refresh(), and filelist_files_ensure().
| bool filelist_needs_reset_on_main_changes | ( | const struct FileList * | filelist | ) |
| struct FileList* filelist_new | ( | short | type | ) |
Definition at line 1721 of file filelist.c.
References BLI_ghash_new(), BLI_ghashutil_uinthash_v4_cmp(), BLI_ghashutil_uinthash_v4_p, FILEDIR_NBR_ENTRIES_UNSET, FileList::filelist, FileList::filelist_cache, filelist_cache_init(), FILELIST_ENTRYCACHESIZE_DEFAULT, filelist_settype(), MEM_callocN, FileDirEntryArr::nbr_entries, FileList::selection_state, and type.
Referenced by file_duplicate(), and file_refresh().
| bool filelist_pending | ( | struct FileList * | filelist | ) |
Definition at line 1915 of file filelist.c.
References FL_IS_PENDING, and FileList::flags.
Referenced by ED_fileselect_activate_by_id(), and file_refresh().
| int filelist_readjob_running | ( | struct wmWindowManager * | wm, |
| struct Scene * | owner_scene | ||
| ) |
Definition at line 3505 of file filelist.c.
References WM_JOB_TYPE_FILESEL_READDIR, and WM_jobs_test().
| void filelist_readjob_stop | ( | struct wmWindowManager * | wm, |
| struct Scene * | owner_scene | ||
| ) |
Definition at line 3500 of file filelist.c.
References WM_JOB_TYPE_FILESEL_READDIR, and WM_jobs_kill_type().
Referenced by ED_fileselect_clear(), and file_refresh().
| void filelist_setdir | ( | struct FileList * | filelist, |
| char * | r_dir | ||
| ) |
May modify in place given r_dir, which is expected to be FILE_MAX_LIBEXTRA length.
Definition at line 1876 of file filelist.c.
References FileList::asset_library, 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(), and file_refresh().
| void filelist_setfilter_options | ( | struct FileList * | filelist, |
| const bool | do_filter, | ||
| const bool | hide_dot, | ||
| const bool | hide_parent, | ||
| const uint64_t | filter, | ||
| const uint64_t | filter_id, | ||
| const bool | filter_assets_only, | ||
| const char * | filter_glob, | ||
| const char * | filter_search | ||
| ) |
Definition at line 988 of file filelist.c.
References BLI_strcmp_ignore_pad(), BLI_strncpy(), BLI_strncpy_ensure_pad(), FILE_TYPE_BLENDERLIB, filelist_filter_clear(), 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().
| void filelist_setlibrary | ( | struct FileList * | filelist, |
| const struct FileSelectAssetLibraryUID * | asset_library | ||
| ) |
| void filelist_setrecursion | ( | struct FileList * | filelist, |
| const int | recursion_level | ||
| ) |
Definition at line 1892 of file filelist.c.
References FL_FORCE_RESET, FileList::flags, and FileList::max_recursion.
Referenced by file_parent_exec(), file_refresh(), and file_select_do().
| void filelist_setsorting | ( | struct FileList * | filelist, |
| const short | sort, | ||
| bool | invert_sort | ||
| ) |
Definition at line 728 of file filelist.c.
References FL_NEED_SORTING, FL_SORT_INVERT, FileList::flags, sort(), and FileList::sort.
Referenced by file_refresh().
| void filelist_settype | ( | struct FileList * | filelist, |
| short | type | ||
| ) |
Definition at line 1735 of file filelist.c.
References FileList::check_dir_fn, FILE_LOADLIB, FILE_MAIN, FILE_MAIN_ASSET, filelist_checkdir_dir(), filelist_checkdir_lib(), filelist_checkdir_main(), filelist_checkdir_main_assets(), 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, is_filtered_file(), is_filtered_lib(), is_filtered_main(), is_filtered_main_assets(), FileList::read_job_fn, FileList::tags, FileList::type, and type.
Referenced by file_refresh(), and filelist_new().
| void filelist_sort | ( | struct FileList * | filelist | ) |
Definition at line 695 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_filter_clear(), FileList::filelist_intern, FL_NEED_SORTING, FileList::flags, NULL, and FileList::sort.
Referenced by file_refresh(), and filelist_files_ensure().
| void filelist_tag_force_reset | ( | struct FileList * | filelist | ) |
Definition at line 1905 of file filelist.c.
References FL_FORCE_RESET, and FileList::flags.
Referenced by file_refresh(), and file_tag_reset_list().
Definition at line 247 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().
| void folder_history_list_ensure_for_active_browse_mode | ( | struct SpaceFile * | sfile | ) |
Definition at line 213 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().
| void folder_history_list_free | ( | struct SpaceFile * | sfile | ) |
Definition at line 240 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 155 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().
| void folderlist_free | ( | struct ListBase * | folderlist | ) |
Definition at line 177 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 143 of file filelist.c.
References FolderList::foldername, ListBase::last, and NULL.
Referenced by file_directory_enter_handle().
| void folderlist_popdir | ( | struct ListBase * | folderlist, |
| char * | dir | ||
| ) |
Definition at line 99 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().
| void folderlist_pushdir | ( | struct ListBase * | folderlist, |
| const char * | dir | ||
| ) |
Definition at line 119 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().