103 region->v2d.minzoom = region->v2d.maxzoom = 1.0f;
120 sfile->
files =
nullptr;
127 if (sfile->
runtime !=
nullptr) {
144 if (sfile->
runtime ==
nullptr) {
171 sfilen->
op =
nullptr;
178 if (active_params_old) {
212 if (sfile->
runtime !=
nullptr) {
221 sfile->
tags &= ~FILE_TAG_REBUILD_MAIN_FILES;
225 params->highlight_file = -1;
231 params->filter_id &= asset::types_supported_as_filter_flags();
294 if (
params->rename_flag != 0) {
304 const short region_flag_old = region_props->
flag;
315 region_props->
flag &= ~RGN_FLAG_HIDDEN;
319 if (region_flag_old != region_props->
flag) {
398 if (active_file_id && (wmn->
reference == active_file_id)) {
400 params->rename_id = active_file_id;
437 region->v2d.cur.ymin = trunc(region->v2d.cur.ymin);
438 region->v2d.cur.ymax = trunc(region->v2d.cur.ymax);
486 msg_sub_value_area_tag_refresh.
owner = region;
487 msg_sub_value_area_tag_refresh.user_data = area;
539 View2D *v2d = ®ion->v2d;
552 v2d->
keepofs &= ~V2D_LOCKOFS_Y;
557 v2d->
keepofs &= ~V2D_LOCKOFS_Y;
562 v2d->
keepofs &= ~V2D_LOCKOFS_X;
582 if (
params->highlight_file == -1) {
663 return sfile->
op !=
nullptr;
824 region->v2d.flag &= ~V2D_IS_INIT;
886 sfile->
files =
nullptr;
926 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
1035 if (
G.background ==
false) {
1048 if (cfgdir.has_value()) {
#define BLENDER_BOOKMARK_FILE
std::optional< std::string > BKE_appdir_folder_id(int folder_id, const char *subfolder) ATTR_WARN_UNUSED_RESULT
SpaceFile * CTX_wm_space_file(const bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
int BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
void BKE_reports_free(ReportList *reports)
void BKE_reports_init(ReportList *reports, int flag)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
void BLI_addhead(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define BLI_path_join(...)
#define STRNCPY(dst, src)
#define BLO_write_struct(writer, struct_name, data_ptr)
#define BLO_read_struct(reader, struct_name, ptr_p)
@ RGN_FLAG_NO_USER_RESIZE
@ FILE_TAG_REBUILD_MAIN_FILES
eFileSel_Params_AssetCatalogVisibility
@ FILE_BROWSE_MODE_ASSETS
#define USER_EXPERIMENTAL_TEST(userdef, member)
@ V2D_SCROLL_VERTICAL_HIDE
@ FS_CATEGORY_SYSTEM_BOOKMARKS
FileSelectParams * ED_fileselect_get_active_params(const SpaceFile *sfile)
ID * ED_fileselect_active_asset_get(const SpaceFile *sfile)
FileSelectParams * ED_fileselect_ensure_active_params(SpaceFile *sfile)
void ED_fileselect_exit(wmWindowManager *wm, SpaceFile *sfile)
bool ED_fileselect_is_asset_browser(const SpaceFile *sfile)
FileAssetSelectParams * ED_fileselect_get_asset_params(const SpaceFile *sfile)
void ED_fileselect_layout_maskrect(const FileLayout *layout, const View2D *v2d, rcti *r_rect)
void ED_area_tag_redraw(ScrArea *area)
void ED_region_panels(const bContext *C, ARegion *region)
void ED_region_header(const bContext *C, ARegion *region)
void ED_region_header_init(ARegion *region)
void ED_region_visibility_change_update(bContext *C, ScrArea *area, ARegion *region)
void ED_area_tag_refresh(ScrArea *area)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
void ED_area_do_msg_notify_tag_refresh(bContext *C, wmMsgSubscribeKey *msg_key, wmMsgSubscribeValue *msg_val)
void ED_region_tag_redraw(ARegion *region)
void IMB_thumb_makedirs()
Read Guarded memory(de)allocation.
void UI_ThemeClearColor(int colorid)
void UI_view2d_scrollers_draw(View2D *v2d, const rcti *mask_custom)
void UI_view2d_view_restore(const bContext *C)
void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
void UI_view2d_view_ortho(const View2D *v2d)
#define ND_SPACE_ASSET_PARAMS
#define ND_SPACE_FILE_PREVIEW
#define ND_SPACE_FILE_PARAMS
#define ND_SPACE_FILE_LIST
DEGForeachIDComponentCallback callback
int file_context(const bContext *C, const char *member, bContextDataResult *result)
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_parent(wmOperatorType *ot)
void(* onReloadFn)(SpaceFile *space_data, onReloadFnData custom_data)
void FILE_OT_select_box(wmOperatorType *ot)
void FILE_OT_directory_new(wmOperatorType *ot)
void FILE_OT_edit_directory_path(wmOperatorType *ot)
void FILE_OT_bookmark_add(wmOperatorType *ot)
void FILE_OT_select_bookmark(wmOperatorType *ot)
void folder_history_list_ensure_for_active_browse_mode(SpaceFile *sfile)
void FILE_OT_refresh(wmOperatorType *ot)
void FILE_OT_mouse_execute(wmOperatorType *ot)
void file_params_invoke_rename_postscroll(wmWindowManager *wm, wmWindow *win, SpaceFile *sfile)
void FILE_OT_sort_column_ui_context(wmOperatorType *ot)
void FILE_OT_filepath_drop(wmOperatorType *ot)
void FILE_OT_previous(wmOperatorType *ot)
void file_execute_region_panels_register(ARegionType *art)
void FILE_OT_bookmark_delete(wmOperatorType *ot)
void FILE_OT_external_operation(wmOperatorType *ot)
void FILE_OT_select_walk(wmOperatorType *ot)
void FILE_OT_filenum(wmOperatorType *ot)
void folder_history_list_free(SpaceFile *sfile)
void FILE_OT_delete(wmOperatorType *ot)
ListBase folder_history_list_duplicate(ListBase *listbase)
void fileselect_refresh_params(SpaceFile *sfile)
void FILE_OT_bookmark_cleanup(wmOperatorType *ot)
void FILE_OT_smoothscroll(wmOperatorType *ot)
void FILE_OT_bookmark_move(wmOperatorType *ot)
void FILE_OT_select_all(wmOperatorType *ot)
void FILE_OT_reset_recent(wmOperatorType *ot)
int file_highlight_set(SpaceFile *sfile, ARegion *region, int mx, int my)
void FILE_OT_select(wmOperatorType *ot)
void FILE_OT_start_filter(wmOperatorType *ot)
void file_tool_props_region_panels_register(ARegionType *art)
void FILE_OT_execute(wmOperatorType *ot)
void file_external_operations_menu_register()
void FILE_OT_rename(wmOperatorType *ot)
void file_tools_region_panels_register(ARegionType *art)
void FILE_OT_cancel(wmOperatorType *ot)
void file_params_renamefile_activate(SpaceFile *sfile, FileSelectParams *params)
void FILE_OT_next(wmOperatorType *ot)
void FILE_OT_view_selected(wmOperatorType *ot)
void FILE_OT_highlight(wmOperatorType *ot)
void FILE_OT_hidedot(wmOperatorType *ot)
void filelist_freelib(FileList *filelist)
void filelist_cache_previews_set(FileList *filelist, const bool use_previews)
bool filelist_needs_force_reset(const FileList *filelist)
void filelist_clear_from_reset_tag(FileList *filelist)
bool filelist_pending(const 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_set_asset_catalog_filter_options(FileList *filelist, eFileSel_Params_AssetCatalogVisibility catalog_visibility, const ::bUUID *catalog_id)
void filelist_free(FileList *filelist)
void filelist_setlibrary(FileList *filelist, const AssetLibraryReference *asset_library_ref)
void filelist_free_icons()
void filelist_setdir(FileList *filelist, char dirpath[FILE_MAX_LIBEXTRA])
void filelist_setrecursion(FileList *filelist, const int recursion_level)
void filelist_setsorting(FileList *filelist, const short sort, bool invert_sort)
bool filelist_cache_previews_update(FileList *filelist)
void filelist_settype(FileList *filelist, short type)
FileList * filelist_new(short type)
void filelist_readjob_stop(FileList *filelist, wmWindowManager *wm)
int filelist_needs_reading(const 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)
void filelist_sort(FileList *filelist)
void filelist_setindexer(FileList *filelist, const FileIndexerType *indexer)
void filelist_readjob_start(FileList *filelist, const int space_notifier, const bContext *C)
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_dupallocN)(const void *vmemh)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int RNA_enum_from_value(const EnumPropertyItem *item, const int value)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
const EnumPropertyItem rna_enum_space_file_browse_mode_items[]
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 bool filepath_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
static void file_execution_region_draw(const bContext *C, ARegion *region)
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 void filepath_drop_copy(bContext *, wmDrag *drag, wmDropBox *drop)
static void file_ui_region_listener(const wmRegionListenerParams *listener_params)
static void file_space_blend_read_data(BlendDataReader *reader, SpaceLink *sl)
static void file_operatortypes()
void file_on_reload_callback_register(SpaceFile *sfile, onReloadFn callback, onReloadFnData custom_data)
static bool file_ui_region_poll(const RegionPollParams *params)
static void file_space_subtype_set(ScrArea *area, int value)
static void file_execution_region_init(wmWindowManager *wm, ARegion *region)
static void file_id_remap(ScrArea *area, SpaceLink *sl, const blender::bke::id::IDRemapper &)
static int file_space_icon_get(const ScrArea *area)
static void file_free(SpaceLink *sl)
static void file_on_reload_callback_call(SpaceFile *sfile)
static blender::StringRefNull file_space_name_get(const ScrArea *area)
static void file_refresh(const bContext *C, ScrArea *area)
static void file_tools_region_draw(const bContext *C, ARegion *region)
static bool file_tool_props_region_poll(const RegionPollParams *params)
static void file_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
static SpaceLink * file_create(const ScrArea *, const Scene *)
static void file_listener(const wmSpaceTypeListenerParams *listener_params)
static void file_main_region_listener(const wmRegionListenerParams *listener_params)
bool file_main_region_needs_refresh_before_draw(SpaceFile *sfile)
static void file_dropboxes()
void ED_file_read_bookmarks()
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_space_blend_read_after_liblink(BlendLibReader *, ID *, SpaceLink *sl)
static void file_space_subtype_item_extend(bContext *, EnumPropertyItem **item, int *totitem)
static void file_keymap(wmKeyConfig *keyconf)
static void file_main_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
static void file_ui_region_draw(const bContext *C, ARegion *region)
static void file_init(wmWindowManager *, ScrArea *area)
static SpaceLink * file_duplicate(SpaceLink *sl)
static bool file_execution_region_poll(const RegionPollParams *params)
static void file_space_blend_write(BlendWriter *writer, SpaceLink *sl)
static void file_header_region_init(wmWindowManager *wm, ARegion *region)
bool(* poll)(const RegionPollParams *params)
void(* message_subscribe)(const wmRegionMessageSubscribeParams *params)
void(* listener)(const wmRegionListenerParams *params)
void(* draw)(const bContext *C, ARegion *region)
void(* init)(wmWindowManager *wm, ARegion *region)
short asset_catalog_visibility
AssetLibraryReference asset_library_ref
FileSelectParams base_params
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
const wmNotifier * notifier
const wmNotifier * notifier
struct wmKeyConfig * defaultconf
struct wmEvent * eventstate
wmDropBox * WM_dropbox_add(ListBase *lb, const char *idname, bool(*poll)(bContext *C, wmDrag *drag, const wmEvent *event), void(*copy)(bContext *C, wmDrag *drag, wmDropBox *drop), void(*cancel)(Main *bmain, wmDrag *drag, wmDropBox *drop), WMDropboxTooltipFunc tooltip)
const char * WM_drag_get_single_path(const wmDrag *drag)
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(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_timer_remove_notifier(wmWindowManager *wm, wmWindow *win, wmTimer *timer)