217 if (active_params_old) {
245 bool needs_init =
false;
253 if (region_execute) {
279 else if (!sfile->
op) {
285 if (region_execute) {
324 params->highlight_file = -1;
391 if (
params->rename_flag != 0) {
478 if (active_file_id && (wmn->
reference == active_file_id)) {
480 params->rename_id = active_file_id;
660 if (
params->highlight_file == -1) {
893 "selected_asset_files",
930 for (
int file_index = 0; file_index < num_files_filtered; file_index++) {
957 for (
int file_index = 0; file_index < num_files_filtered; file_index++) {
1092 if (
G.background ==
false) {
1103 if (
G.background ==
false) {
#define BLENDER_BOOKMARK_FILE
const char * BKE_appdir_folder_id(int folder_id, const char *subfolder)
struct ScrArea * CTX_wm_area(const bContext *C)
void CTX_data_dir_set(bContextDataResult *result, const char **dir)
bool CTX_data_equals(const char *member, const char *str)
void CTX_data_pointer_set(bContextDataResult *result, struct ID *id, StructRNA *type, void *data)
void CTX_data_id_pointer_set(bContextDataResult *result, struct ID *id)
bool CTX_data_dir(const char *member)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
@ CTX_DATA_TYPE_COLLECTION
@ CTX_RESULT_MEMBER_NOT_FOUND
void CTX_data_list_add(bContextDataResult *result, struct ID *id, StructRNA *type, void *data)
struct bScreen * CTX_wm_screen(const bContext *C)
void CTX_data_type_set(struct bContextDataResult *result, short type)
struct SpaceFile * CTX_wm_space_file(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
void BKE_reports_clear(ReportList *reports)
void BKE_reports_init(ReportList *reports, int flag)
struct ARegion * BKE_area_find_region_type(const struct ScrArea *area, int type)
void BKE_spacetype_register(struct SpaceType *st)
void BLI_addhead(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkafter(struct ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_join_dirfile(char *__restrict dst, size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
@ FILE_TAG_REBUILD_MAIN_FILES
@ FILE_BROWSE_MODE_ASSETS
#define USER_EXPERIMENTAL_TEST(userdef, member)
@ V2D_SCROLL_VERTICAL_HIDE
const FileIndexerType file_indexer_asset
int64_t ED_asset_types_supported_as_filter_flags(void)
void ED_fileselect_layout_maskrect(const FileLayout *layout, const struct View2D *v2d, struct rcti *r_rect)
struct FileAssetSelectParams * ED_fileselect_get_asset_params(const struct SpaceFile *sfile)
@ FS_CATEGORY_SYSTEM_BOOKMARKS
struct FSMenu * ED_fsmenu_get(void)
struct ID * ED_fileselect_active_asset_get(const struct SpaceFile *sfile)
bool ED_fileselect_is_asset_browser(const struct SpaceFile *sfile)
struct FileSelectParams * ED_fileselect_ensure_active_params(struct SpaceFile *sfile)
struct FileSelectParams * ED_fileselect_get_active_params(const struct SpaceFile *sfile)
void ED_fileselect_exit(struct wmWindowManager *wm, struct SpaceFile *sfile)
void ED_area_tag_redraw(ScrArea *area)
void ED_region_header(const struct bContext *C, struct ARegion *region)
void ED_area_do_msg_notify_tag_refresh(struct bContext *C, struct wmMsgSubscribeKey *msg_key, struct wmMsgSubscribeValue *msg_val)
void ED_region_remove(struct bContext *C, struct ScrArea *area, struct ARegion *region)
void ED_region_panels(const struct bContext *C, struct ARegion *region)
bool ED_area_is_global(const ScrArea *area)
void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *region)
void ED_region_tag_redraw(struct ARegion *region)
void ED_region_header_init(struct ARegion *region)
void ED_area_tag_refresh(ScrArea *area)
void ED_area_init(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
Contains defines and structs used throughout the imbuf module.
void IMB_thumb_makedirs(void)
Read Guarded memory(de)allocation.
void UI_ThemeClearColor(int colorid)
void UI_view2d_region_reinit(struct View2D *v2d, short type, int winx, int winy)
void UI_view2d_view_restore(const struct bContext *C)
void UI_view2d_view_ortho(const struct View2D *v2d)
void UI_view2d_scrollers_draw(struct View2D *v2d, const struct rcti *mask_custom)
#define ND_SPACE_ASSET_PARAMS
#define ND_SPACE_FILE_PREVIEW
#define ND_SPACE_FILE_PARAMS
#define ND_SPACE_FILE_LIST
DEGForeachIDComponentCallback callback
void file_calc_previews(const bContext *C, ARegion *region)
bool file_draw_hint_if_invalid(const bContext *C, const SpaceFile *sfile, ARegion *region)
void file_draw_list(const bContext *C, ARegion *region)
const FileIndexerType file_indexer_noop
void FILE_OT_bookmark_move(struct wmOperatorType *ot)
void FILE_OT_filenum(struct wmOperatorType *ot)
void(* onReloadFn)(struct SpaceFile *space_data, onReloadFnData custom_data)
void FILE_OT_rename(struct wmOperatorType *ot)
void FILE_OT_edit_directory_path(struct wmOperatorType *ot)
void FILE_OT_bookmark_delete(struct wmOperatorType *ot)
void FILE_OT_sort_column_ui_context(struct wmOperatorType *ot)
void FILE_OT_cancel(struct wmOperatorType *ot)
void FILE_OT_highlight(struct wmOperatorType *ot)
void FILE_OT_select(struct wmOperatorType *ot)
void file_params_invoke_rename_postscroll(struct wmWindowManager *wm, struct wmWindow *win, SpaceFile *sfile)
void FILE_OT_directory_new(struct wmOperatorType *ot)
void FILE_OT_view_selected(struct wmOperatorType *ot)
void file_params_renamefile_activate(struct SpaceFile *sfile, struct FileSelectParams *params)
void FILE_OT_parent(struct wmOperatorType *ot)
void FILE_OT_bookmark_add(struct wmOperatorType *ot)
void FILE_OT_hidedot(struct wmOperatorType *ot)
void FILE_OT_mouse_execute(struct wmOperatorType *ot)
void FILE_OT_refresh(struct wmOperatorType *ot)
void FILE_OT_reset_recent(wmOperatorType *ot)
void FILE_OT_select_all(struct wmOperatorType *ot)
void fileselect_refresh_params(struct SpaceFile *sfile)
void file_tool_props_region_panels_register(struct ARegionType *art)
void FILE_OT_delete(struct wmOperatorType *ot)
void FILE_OT_execute(struct wmOperatorType *ot)
void file_tools_region_panels_register(struct ARegionType *art)
void FILE_OT_select_bookmark(struct wmOperatorType *ot)
void FILE_OT_start_filter(struct wmOperatorType *ot)
int file_highlight_set(struct SpaceFile *sfile, struct ARegion *region, int mx, int my)
void FILE_OT_select_box(struct wmOperatorType *ot)
void FILE_OT_select_walk(struct wmOperatorType *ot)
void file_execute_region_panels_register(struct ARegionType *art)
void FILE_OT_next(struct wmOperatorType *ot)
void FILE_OT_filepath_drop(struct wmOperatorType *ot)
void FILE_OT_smoothscroll(struct wmOperatorType *ot)
void FILE_OT_bookmark_cleanup(struct wmOperatorType *ot)
void FILE_OT_previous(struct wmOperatorType *ot)
void filelist_set_asset_catalog_filter_options(FileList *filelist, eFileSel_Params_AssetCatalogVisibility catalog_visibility, const bUUID *catalog_id)
void filelist_free(struct FileList *filelist)
void filelist_cache_previews_set(FileList *filelist, const bool use_previews)
void filelist_setsorting(struct FileList *filelist, const short sort, bool invert_sort)
int filelist_needs_reading(FileList *filelist)
void folder_history_list_ensure_for_active_browse_mode(SpaceFile *sfile)
void filelist_sort(struct FileList *filelist)
void filelist_clear_from_reset_tag(FileList *filelist)
void filelist_freelib(struct FileList *filelist)
void filelist_setfilter_options(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_setlibrary(FileList *filelist, const AssetLibraryReference *asset_library_ref)
void folder_history_list_free(SpaceFile *sfile)
void filelist_setdir(struct FileList *filelist, char *r_dir)
FileList * filelist_new(short type)
ListBase folder_history_list_duplicate(ListBase *listbase)
ID * filelist_file_get_id(const FileDirEntry *file)
void filelist_setrecursion(struct FileList *filelist, const int recursion_level)
bool filelist_cache_previews_update(FileList *filelist)
void filelist_settype(FileList *filelist, short type)
void filelist_readjob_stop(FileList *filelist, wmWindowManager *wm)
void filelist_init_icons(void)
FileDirEntry * filelist_file(struct FileList *filelist, int index)
bool filelist_pending(struct FileList *filelist)
void filelist_filter(FileList *filelist)
void filelist_tag_force_reset_mainfiles(FileList *filelist)
bool filelist_needs_reset_on_main_changes(const FileList *filelist)
int filelist_files_ensure(FileList *filelist)
bool filelist_entry_is_selected(FileList *filelist, const int index)
void filelist_setindexer(FileList *filelist, const FileIndexerType *indexer)
bool filelist_needs_force_reset(FileList *filelist)
void filelist_readjob_start(FileList *filelist, const int space_notifier, const bContext *C)
void filelist_free_icons(void)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_dupallocN)(const void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
static void area(int d1, int d2, int e1, int e2, float weights[2])
static const pxr::TfToken st("st", pxr::TfToken::Immortal)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
const EnumPropertyItem rna_enum_space_file_browse_mode_items[]
static SpaceLink * file_create(const ScrArea *UNUSED(area), const Scene *UNUSED(scene))
static void file_ui_region_init(wmWindowManager *wm, ARegion *region)
static void file_exit(wmWindowManager *wm, ScrArea *area)
static int file_space_subtype_get(ScrArea *area)
static void file_main_region_init(wmWindowManager *wm, ARegion *region)
static void file_execution_region_draw(const bContext *C, ARegion *region)
static bool filepath_drop_poll(bContext *C, wmDrag *drag, const wmEvent *UNUSED(event))
void ED_file_read_bookmarks(void)
const char * file_context_dir[]
static void file_header_region_draw(const bContext *C, ARegion *region)
static void file_tool_props_region_listener(const wmRegionListenerParams *listener_params)
static void file_tools_region_init(wmWindowManager *wm, ARegion *region)
static void file_main_region_draw(const bContext *C, ARegion *region)
static ARegion * file_ui_region_ensure(ScrArea *area, ARegion *region_prev)
static SpaceLink * file_duplicate(SpaceLink *sl)
static void file_ui_region_listener(const wmRegionListenerParams *listener_params)
void ED_spacetype_file(void)
void file_on_reload_callback_register(SpaceFile *sfile, onReloadFn callback, onReloadFnData custom_data)
static void file_space_subtype_set(ScrArea *area, int value)
static void file_execution_region_init(wmWindowManager *wm, ARegion *region)
static bool file_main_region_needs_refresh_before_draw(SpaceFile *sfile)
static ARegion * file_execute_region_ensure(ScrArea *area, ARegion *region_prev)
static void file_free(SpaceLink *sl)
static void file_on_reload_callback_call(SpaceFile *sfile)
static void file_operatortypes(void)
static void file_refresh(const bContext *C, ScrArea *area)
static void file_tools_region_draw(const bContext *C, ARegion *region)
static ARegion * file_tool_props_region_ensure(ScrArea *area, ARegion *region_prev)
static void file_space_subtype_item_extend(bContext *UNUSED(C), EnumPropertyItem **item, int *totitem)
static void file_keymap(struct wmKeyConfig *keyconf)
static int file_context(const bContext *C, const char *member, bContextDataResult *result)
static void file_listener(const wmSpaceTypeListenerParams *listener_params)
static void file_main_region_listener(const wmRegionListenerParams *listener_params)
static void filepath_drop_copy(bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop)
static void file_init(wmWindowManager *UNUSED(wm), ScrArea *area)
static void file_tools_region_listener(const wmRegionListenerParams *listener_params)
static void file_reset_filelist_showing_main_data(ScrArea *area, SpaceFile *sfile)
static void file_main_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
static void file_ui_region_draw(const bContext *C, ARegion *region)
static void file_id_remap(ScrArea *area, SpaceLink *sl, const struct IDRemapper *UNUSED(mappings))
static void file_header_region_init(wmWindowManager *wm, ARegion *region)
static void file_ensure_valid_region_state(bContext *C, wmWindowManager *wm, wmWindow *win, ScrArea *area, SpaceFile *sfile, FileSelectParams *params)
static void file_dropboxes(void)
void(* draw)(const struct bContext *C, struct ARegion *region)
void(* message_subscribe)(const wmRegionMessageSubscribeParams *params)
void(* listener)(const wmRegionListenerParams *params)
void(* init)(struct wmWindowManager *wm, struct ARegion *region)
short asset_catalog_visibility
AssetLibraryReference asset_library_ref
struct AssetMetaData * asset_data
ReportList is_blendfile_readable_reports
onReloadFnData on_reload_custom_data
bool is_blendfile_status_set
struct wmTimer * smoothscroll_timer
struct FileLayout * layout
FileSelectParams * params
struct wmTimer * previews_timer
FileAssetSelectParams * asset_params
ListBase folder_histories
SpaceFile_Runtime * runtime
struct wmNotifier * notifier
struct wmNotifier * notifier
struct wmKeyConfig * defaultconf
struct wmEvent * eventstate
ListBase * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
wmDropBox * WM_dropbox_add(ListBase *lb, const char *idname, bool(*poll)(bContext *, wmDrag *, const wmEvent *), void(*copy)(bContext *, wmDrag *, wmDropBox *), void(*cancel)(Main *, wmDrag *, wmDropBox *), WMDropboxTooltipFunc tooltip)
wmEventHandler_Keymap * WM_event_add_keymap_handler_v2d_mask(ListBase *handlers, wmKeyMap *keymap)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
void WM_msg_subscribe_rna(struct wmMsgBus *mbus, PointerRNA *ptr, const PropertyRNA *prop, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void WM_event_remove_timer_notifier(wmWindowManager *wm, wmWindow *win, wmTimer *timer)