225 if (active_params_old) {
253 bool needs_init =
false;
261 if (region_execute) {
287 else if (!sfile->
op) {
293 if (region_execute) {
337 params->highlight_file = -1;
387 if (
params->rename_flag != 0) {
629 if (
params->highlight_file == -1) {
801 const char **
UNUSED(r_tooltip))
841 if (
U.experimental.use_asset_browser) {
1004 if (
G.background ==
false) {
1015 if (
G.background ==
false) {
#define BLENDER_BOOKMARK_FILE
const char * BKE_appdir_folder_id(const int folder_id, const char *subfolder)
struct ScrArea * CTX_wm_area(const bContext *C)
struct Scene * CTX_data_scene(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_RESULT_MEMBER_NOT_FOUND
struct bScreen * CTX_wm_screen(const bContext *C)
struct SpaceFile * CTX_wm_space_file(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
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, const size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
@ FILE_TAG_REBUILD_MAIN_FILES
@ FILE_BROWSE_MODE_ASSETS
@ V2D_SCROLL_VERTICAL_HIDE
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 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 Scene *owner_scene, 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.
StructRNA RNA_FileSelectEntry
StructRNA RNA_SpaceFileBrowser
StructRNA RNA_FileSelectParams
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
bool file_draw_hint_if_invalid(const SpaceFile *sfile, const ARegion *region)
void file_calc_previews(const bContext *C, ARegion *region)
void file_draw_list(const bContext *C, ARegion *region)
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_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_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_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_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_tag_force_reset(FileList *filelist)
void filelist_free(struct FileList *filelist)
void filelist_readjob_stop(wmWindowManager *wm, Scene *owner_scene)
void filelist_cache_previews_set(FileList *filelist, const bool use_previews)
void filelist_setsorting(struct FileList *filelist, const short sort, bool invert_sort)
void folder_history_list_ensure_for_active_browse_mode(SpaceFile *sfile)
void filelist_sort(struct 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 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_readjob_start(FileList *filelist, const bContext *C)
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_clear(struct FileList *filelist)
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_setlibrary(FileList *filelist, const FileSelectAssetLibraryUID *asset_library)
bool filelist_needs_reset_on_main_changes(const FileList *filelist)
bool filelist_needs_force_reset(FileList *filelist)
int filelist_needs_reading(struct FileList *filelist)
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])
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)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item, int value)
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)
void ED_file_read_bookmarks(void)
static const char * file_context_dir[]
static void file_header_region_draw(const bContext *C, ARegion *region)
static void file_tools_region_init(wmWindowManager *wm, ARegion *region)
static void file_main_region_draw(const bContext *C, ARegion *region)
static void file_ui_region_listener(const wmRegionListenerParams *params)
static ARegion * file_ui_region_ensure(ScrArea *area, ARegion *region_prev)
static SpaceLink * file_duplicate(SpaceLink *sl)
static void file_main_region_listener(const wmRegionListenerParams *params)
static void filepath_drop_copy(wmDrag *drag, wmDropBox *drop)
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 void file_listener(const wmSpaceTypeListenerParams *params)
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_tool_props_region_listener(const wmRegionListenerParams *params)
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_id_remap(ScrArea *area, SpaceLink *sl, ID *UNUSED(old_id), ID *UNUSED(new_id))
static void file_init(wmWindowManager *UNUSED(wm), ScrArea *area)
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_tools_region_listener(const wmRegionListenerParams *UNUSED(params))
static void file_tag_reset_list(ScrArea *area, SpaceFile *sfile)
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 bool filepath_drop_poll(bContext *C, wmDrag *drag, const wmEvent *UNUSED(event), const char **UNUSED(r_tooltip))
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)
FileSelectAssetLibraryUID asset_library
onReloadFnData on_reload_custom_data
struct wmTimer * smoothscroll_timer
struct FileLayout * layout
FileSelectParams * params
struct wmTimer * previews_timer
FileAssetSelectParams * asset_params
ListBase folder_histories
SpaceFile_Runtime * runtime
struct SpaceLink *(* duplicate)(struct SpaceLink *sl)
void(* exit)(struct wmWindowManager *wm, struct ScrArea *area)
void(* keymap)(struct wmKeyConfig *keyconf)
void(* operatortypes)(void)
void(* free)(struct SpaceLink *sl)
void(* space_subtype_item_extend)(struct bContext *C, EnumPropertyItem **item, int *totitem)
struct SpaceLink *(* create)(const struct ScrArea *area, const struct Scene *scene)
void(* refresh)(const struct bContext *C, struct ScrArea *area)
void(* listener)(const wmSpaceTypeListenerParams *params)
void(* init)(struct wmWindowManager *wm, struct ScrArea *area)
bContextDataCallback context
void(* space_subtype_set)(struct ScrArea *area, int value)
void(* id_remap)(struct ScrArea *area, struct SpaceLink *sl, struct ID *old_id, struct ID *new_id)
char name[BKE_ST_MAXNAME]
int(* space_subtype_get)(struct ScrArea *area)
struct wmKeyConfig * defaultconf
struct wmEvent * eventstate
wmDropBox * WM_dropbox_add(ListBase *lb, const char *idname, bool(*poll)(bContext *, wmDrag *, const wmEvent *, const char **), void(*copy)(wmDrag *, wmDropBox *), void(*cancel)(struct Main *, wmDrag *, wmDropBox *))
ListBase * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
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)