|
Blender V5.0
|
#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_path_utils.hh"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BKE_appdir.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_lib_query.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_types.hh"#include "ED_asset.hh"#include "ED_asset_indexer.hh"#include "ED_fileselect.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "IMB_thumbs.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "BLO_read_write.hh"#include "file_indexer.hh"#include "file_intern.hh"#include "filelist.hh"#include "fsmenu.h"Go to the source code of this file.
| void ED_file_exit | ( | ) |
Definition at line 1058 of file space_file.cc.
References filelist_free_icons(), fsmenu_free(), and G.
Referenced by WM_exit_ex().
| void ED_file_init | ( | ) |
Definition at line 1052 of file space_file.cc.
References ED_file_read_bookmarks(), and IMB_thumb_makedirs().
Referenced by WM_init().
| void ED_file_read_bookmarks | ( | ) |
Definition at line 1067 of file space_file.cc.
References BKE_appdir_folder_id(), BLENDER_BOOKMARK_FILE, BLENDER_USER_CONFIG, BLI_path_join, ED_fsmenu_get(), FILE_MAX, fsmenu_free(), fsmenu_read_bookmarks(), and fsmenu_read_system().
Referenced by ED_file_init(), and wm_history_file_read_exec().
| void ED_spacetype_file | ( | ) |
Definition at line 952 of file space_file.cc.
References BKE_spacetype_register(), BLI_addhead(), ARegionType::draw, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, file_context(), file_create(), file_dropboxes(), file_duplicate(), file_execute_region_panels_register(), file_execution_region_draw(), file_execution_region_init(), file_execution_region_poll(), file_exit(), file_external_operations_menu_register(), file_foreach_id(), file_free(), file_header_region_draw(), file_header_region_init(), file_id_remap(), file_init(), file_keymap(), file_listener(), file_main_region_draw(), file_main_region_init(), file_main_region_listener(), file_main_region_message_subscribe(), file_operatortypes(), file_refresh(), file_space_blend_read_after_liblink(), file_space_blend_read_data(), file_space_blend_write(), file_space_icon_get(), file_space_name_get(), file_space_subtype_get(), file_space_subtype_item_extend(), file_space_subtype_set(), file_tool_props_region_listener(), file_tool_props_region_panels_register(), file_tool_props_region_poll(), file_tools_region_draw(), file_tools_region_init(), file_tools_region_listener(), file_tools_region_panels_register(), file_ui_region_draw(), file_ui_region_init(), file_ui_region_listener(), file_ui_region_poll(), HEADERY, ARegionType::init, ARegionType::keymapflag, ARegionType::listener, MEM_callocN(), ARegionType::message_subscribe, ARegionType::poll, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, RGN_TYPE_EXECUTE, RGN_TYPE_HEADER, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, SPACE_FILE, and STRNCPY_UTF8.
Referenced by ED_spacetypes_init().
Definition at line 54 of file space_file.cc.
References View2D::align, ARegion::alignment, BKE_area_region_new(), BLI_addtail(), ARegion::flag, View2D::keeptot, View2D::keepzoom, View2D::maxzoom, MEM_callocN(), View2D::minzoom, SpaceFile::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_FLAG_DYNAMIC_SIZE, RGN_FLAG_HIDDEN, RGN_FLAG_NO_USER_RESIZE, RGN_TYPE_EXECUTE, RGN_TYPE_HEADER, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, View2D::scroll, SPACE_FILE, SpaceFile::spacetype, ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_POS_Y, V2D_KEEPASPECT, V2D_KEEPTOT_STRICT, V2D_LIMITZOOM, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_SCROLL_BOTTOM, and V2D_SCROLL_RIGHT.
Referenced by ED_spacetype_file().
|
static |
Definition at line 821 of file space_file.cc.
References filepath_drop_copy(), filepath_drop_poll(), RGN_TYPE_WINDOW, SPACE_EMPTY, WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_file().
Definition at line 165 of file space_file.cc.
References SpaceFile::asset_params, FileSelectParams::dir, ED_fileselect_get_active_params(), filelist_new(), filelist_setdir(), SpaceFile::files, SpaceFile::folder_histories, folder_history_list_duplicate(), SpaceFile::layout, MEM_dupallocN(), SpaceFile::op, SpaceFile::params, SpaceFile::previews_timer, SpaceFile::runtime, SpaceFile::smoothscroll_timer, and FileSelectParams::type.
Referenced by ED_spacetype_file().
Definition at line 782 of file space_file.cc.
References C, and ED_region_panels().
Referenced by ED_spacetype_file().
|
static |
Definition at line 770 of file space_file.cc.
References ED_region_panels_init(), View2D::keepzoom, RGN_TYPE_WINDOW, ARegion::runtime, SPACE_FILE, ARegion::v2d, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 675 of file space_file.cc.
References SpaceFile::op, and params.
Referenced by ED_spacetype_file().
|
static |
Definition at line 153 of file space_file.cc.
References ED_fileselect_exit(), ListBase::first, SpaceFile::previews_timer, ScrArea::spacedata, and WM_event_timer_remove_notifier().
Referenced by ED_spacetype_file().
|
static |
Definition at line 879 of file space_file.cc.
References BKE_lib_query_foreachid_process_flags_get(), data, FILE_TAG_REBUILD_MAIN_FILES, IDWALK_READONLY, SpaceFile::op, and SpaceFile::tags.
Referenced by ED_spacetype_file().
|
static |
Definition at line 110 of file space_file.cc.
References SpaceFile::asset_params, BKE_reports_free(), BLI_assert, filelist_free(), filelist_freelib(), SpaceFile::files, folder_history_list_free(), SpaceFile_Runtime::is_blendfile_readable_reports, SpaceFile::layout, MEM_SAFE_FREE, SpaceFile::params, SpaceFile::previews_timer, and SpaceFile::runtime.
Referenced by ED_spacetype_file().
Definition at line 743 of file space_file.cc.
References C, and ED_region_header().
Referenced by ED_spacetype_file().
|
static |
Definition at line 733 of file space_file.cc.
References ED_region_header_init(), RGN_TYPE_WINDOW, ARegion::runtime, SPACE_FILE, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 866 of file space_file.cc.
References file_reset_filelist_showing_main_data().
Referenced by ED_spacetype_file().
|
static |
Definition at line 136 of file space_file.cc.
References BKE_reports_init(), FileLayout::dirty, fileselect_refresh_params(), ListBase::first, SpaceFile_Runtime::is_blendfile_readable_reports, SpaceFile::layout, MEM_callocN(), RPT_STORE, SpaceFile::runtime, and ScrArea::spacedata.
Referenced by ED_spacetype_file().
|
static |
Definition at line 650 of file space_file.cc.
References RGN_TYPE_WINDOW, SPACE_FILE, and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 359 of file space_file.cc.
References wmNotifier::action, wmSpaceTypeListenerParams::area, SpaceFile::browse_mode, wmNotifier::category, wmNotifier::data, ED_area_tag_refresh(), ED_fileselect_active_asset_get(), ED_fileselect_get_active_params(), FILE_BROWSE_MODE_ASSETS, file_on_reload_callback_call(), file_params_invoke_rename_postscroll(), file_reset_filelist_showing_main_data(), filelist_cache_previews_update(), SpaceFile::files, ListBase::first, G_MAIN, NA_ACTIVATED, NA_ADDED, NA_EDITED, NA_JOB_FINISHED, NA_REMOVED, NA_RENAME, NA_SELECTED, NC_ASSET, NC_ID, NC_SPACE, ND_SPACE_ASSET_PARAMS, ND_SPACE_CHANGED, ND_SPACE_FILE_LIST, ND_SPACE_FILE_PARAMS, ND_SPACE_FILE_PREVIEW, wmSpaceTypeListenerParams::notifier, params, wmNotifier::reference, ScrArea::spacedata, and wmSpaceTypeListenerParams::window.
Referenced by ED_spacetype_file().
Definition at line 546 of file space_file.cc.
References C, CTX_wm_area(), CTX_wm_space_file(), CTX_wm_window(), View2D::cur, ED_fileselect_ensure_active_params(), ED_fileselect_layout_maskrect(), ED_region_draw_overflow_indication(), wmWindow::eventstate, file_calc_previews(), file_draw_hint_if_invalid(), file_draw_list(), file_highlight_set(), FILE_IMGDISPLAY, file_main_region_needs_refresh_before_draw(), file_refresh(), FILE_VERTICALDISPLAY, View2D::keepofs, SpaceFile::layout, params, View2D::scroll, TH_BACK, UI_ThemeClearColor(), UI_view2d_region_reinit(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), ARegion::v2d, V2D_COMMONVIEW_LIST, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_SCROLL_BOTTOM, V2D_SCROLL_RIGHT, ARegion::winx, ARegion::winy, rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_file().
|
static |
Definition at line 434 of file space_file.cc.
References C, View2D::cur, ED_operator_asset_browsing_active(), ARegion::flag, wmKeyMap::poll, RGN_FLAG_INDICATE_OVERFLOW, RGN_TYPE_WINDOW, ARegion::runtime, SPACE_FILE, trunc, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_LIST, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler_v2d_mask(), WM_keymap_ensure(), rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_file().
|
static |
Definition at line 460 of file space_file.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_ACTIVATED, NA_RENAME, NA_SELECTED, NC_ID, NC_SPACE, ND_SPACE_FILE_LIST, ND_SPACE_FILE_PARAMS, wmRegionListenerParams::notifier, and wmRegionListenerParams::region.
Referenced by ED_spacetype_file().
|
static |
Definition at line 485 of file space_file.cc.
References ED_area_do_msg_notify_tag_refresh(), ED_fileselect_ensure_active_params(), ListBase::first, bScreen::id, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, params, ptr, RNA_pointer_create_discrete(), RNA_struct_find_property(), ScrArea::spacedata, U, wmMsgSubscribeValue::user_data, and WM_msg_subscribe_rna().
Referenced by ED_spacetype_file().
| bool file_main_region_needs_refresh_before_draw | ( | SpaceFile * | sfile | ) |
Definition at line 529 of file space_file.cc.
References FILE_TAG_REBUILD_MAIN_FILES, filelist_needs_reading(), filelist_needs_reset_on_main_changes(), SpaceFile::files, and SpaceFile::tags.
Referenced by file_context(), and file_main_region_draw().
|
static |
Definition at line 339 of file space_file.cc.
References SpaceFile_Runtime::on_reload, SpaceFile_Runtime::on_reload_custom_data, and SpaceFile::runtime.
Referenced by file_listener().
| void file_on_reload_callback_register | ( | SpaceFile * | sfile, |
| onReloadFn | callback, | ||
| onReloadFnData | custom_data ) |
Register an on-reload callback function. Note that there can only be one such function at a time; registering a new one will overwrite the previous one.
Definition at line 331 of file space_file.cc.
References SpaceFile_Runtime::on_reload, SpaceFile_Runtime::on_reload_custom_data, and SpaceFile::runtime.
Referenced by ED_fileselect_activate_by_id(), and ED_fileselect_activate_by_relpath().
|
static |
Definition at line 615 of file space_file.cc.
References FILE_OT_bookmark_add(), FILE_OT_bookmark_cleanup(), FILE_OT_bookmark_delete(), FILE_OT_bookmark_move(), FILE_OT_cancel(), FILE_OT_delete(), FILE_OT_directory_new(), FILE_OT_edit_directory_path(), FILE_OT_execute(), FILE_OT_external_operation(), FILE_OT_filenum(), FILE_OT_filepath_drop(), FILE_OT_hidedot(), FILE_OT_highlight(), FILE_OT_mouse_execute(), FILE_OT_next(), FILE_OT_parent(), FILE_OT_previous(), FILE_OT_refresh(), FILE_OT_rename(), FILE_OT_reset_recent(), FILE_OT_select(), FILE_OT_select_all(), FILE_OT_select_bookmark(), FILE_OT_select_box(), FILE_OT_select_walk(), FILE_OT_smoothscroll(), FILE_OT_sort_column_ui_context(), FILE_OT_start_filter(), FILE_OT_view_selected(), and WM_operatortype_append().
Referenced by ED_spacetype_file().
Definition at line 199 of file space_file.cc.
References FileAssetSelectParams::asset_catalog_visibility, FileAssetSelectParams::asset_library_ref, BKE_area_find_region_type(), SpaceFile::bookmarknr, C, FileAssetSelectParams::catalog_id, CTX_wm_manager(), CTX_wm_space_file(), CTX_wm_window(), FileLayout::dirty, ED_area_tag_redraw(), ED_fileselect_ensure_active_params(), ED_fileselect_get_asset_params(), ED_fileselect_is_asset_browser(), ED_fsmenu_get(), ED_region_visibility_change_update(), FILE_ASSETS_ONLY, FILE_FILTER, FILE_HIDE_DOT, FILE_HIDE_TOOL_PROPS, FILE_IMGDISPLAY, blender::ed::asset::index::file_indexer_asset, file_indexer_noop, file_params_renamefile_activate(), FILE_SORT_INVERT, FILE_TAG_REBUILD_MAIN_FILES, filelist_cache_previews_set(), filelist_clear_from_reset_tag(), filelist_filter(), filelist_needs_filtering(), filelist_needs_force_reset(), filelist_needs_reading(), filelist_needs_reset_on_main_changes(), filelist_new(), filelist_pending(), filelist_readjob_start(), filelist_readjob_stop(), filelist_set_asset_catalog_filter_options(), filelist_setdir(), filelist_setfilter_options(), filelist_setindexer(), filelist_setlibrary(), filelist_setrecursion(), filelist_setsorting(), filelist_settype(), filelist_sort(), filelist_tag_force_reset_mainfiles(), SpaceFile::files, fileselect_refresh_params(), ARegion::flag, View2D::flag, folder_history_list_ensure_for_active_browse_mode(), FS_CATEGORY_BOOKMARKS, FS_CATEGORY_RECENT, FS_CATEGORY_SYSTEM, FS_CATEGORY_SYSTEM_BOOKMARKS, fsmenu_get_active_indices(), SpaceFile_Runtime::is_blendfile_status_set, SpaceFile::layout, NC_SPACE, ND_SPACE_FILE_LIST, params, SpaceFile::previews_timer, SpaceFile::recentnr, RGN_FLAG_HIDDEN, RGN_TYPE_TOOL_PROPS, SpaceFile::runtime, SpaceFile::system_bookmarknr, SpaceFile::systemnr, SpaceFile::tags, blender::ed::asset::types_supported_as_filter_flags(), U, USER_DEVELOPER_TOOL_TEST, ARegion::v2d, V2D_IS_INIT, and WM_event_timer_remove_notifier().
Referenced by ED_spacetype_file(), and file_main_region_draw().
Definition at line 351 of file space_file.cc.
References ED_area_tag_refresh(), filelist_needs_reset_on_main_changes(), filelist_tag_force_reset_mainfiles(), and SpaceFile::files.
Referenced by file_id_remap(), and file_listener().
|
static |
Definition at line 930 of file space_file.cc.
References FILE_TAG_REBUILD_MAIN_FILES, and SpaceFile::tags.
Referenced by ED_spacetype_file().
|
static |
Definition at line 893 of file space_file.cc.
References SpaceFile::asset_params, FileAssetSelectParams::base_params, BLI_listbase_clear(), BLO_read_struct, FILE_ASSET_IMPORT_APPEND, FILE_ASSET_IMPORT_APPEND_REUSE, FILE_ASSET_IMPORT_FOLLOW_PREFS, FILE_ASSET_IMPORT_LINK, SpaceFile::files, SpaceFile::folder_histories, SpaceFile::folders_next, SpaceFile::folders_prev, FileAssetSelectParams::import_method, SpaceFile::layout, SpaceFile::op, SpaceFile::params, SpaceFile::previews_timer, FileSelectParams::rename_id, SpaceFile::runtime, and SpaceFile::tags.
Referenced by ED_spacetype_file().
|
static |
Definition at line 939 of file space_file.cc.
References SpaceFile::asset_params, BLO_write_struct, and SpaceFile::params.
Referenced by ED_spacetype_file().
|
static |
Definition at line 858 of file space_file.cc.
References SpaceFile::browse_mode, ListBase::first, EnumPropertyItem::icon, RNA_enum_from_value(), rna_enum_space_file_browse_mode_items, and ScrArea::spacedata.
Referenced by ED_spacetype_file().
|
static |
Definition at line 850 of file space_file.cc.
References SpaceFile::browse_mode, ListBase::first, EnumPropertyItem::name, RNA_enum_from_value(), rna_enum_space_file_browse_mode_items, and ScrArea::spacedata.
Referenced by ED_spacetype_file().
|
static |
Definition at line 829 of file space_file.cc.
References SpaceFile::browse_mode, ListBase::first, and ScrArea::spacedata.
Referenced by ED_spacetype_file().
|
static |
Definition at line 845 of file space_file.cc.
References RNA_enum_items_add(), and rna_enum_space_file_browse_mode_items.
Referenced by ED_spacetype_file().
|
static |
Definition at line 835 of file space_file.cc.
References SpaceFile::browse_mode, ListBase::first, LISTBASE_FOREACH, ScrArea::regionbase, ScrArea::spacedata, and V2D_IS_INIT.
Referenced by ED_spacetype_file().
|
static |
Definition at line 712 of file space_file.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_RENAME, NC_ID, NC_SCENE, ND_MODE, wmRegionListenerParams::notifier, and wmRegionListenerParams::region.
Referenced by ED_spacetype_file().
|
static |
Definition at line 669 of file space_file.cc.
References SpaceFile::browse_mode, FILE_BROWSE_MODE_ASSETS, SpaceFile::op, and params.
Referenced by ED_spacetype_file().
Definition at line 693 of file space_file.cc.
References C, and ED_region_panels().
Referenced by ED_spacetype_file().
|
static |
Definition at line 681 of file space_file.cc.
References ED_region_panels_init(), RGN_TYPE_WINDOW, ARegion::runtime, View2D::scroll, SPACE_FILE, ARegion::v2d, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HIDE, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 698 of file space_file.cc.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NC_SCENE, ND_MODE, wmRegionListenerParams::notifier, and wmRegionListenerParams::region.
Referenced by ED_spacetype_file().
Definition at line 765 of file space_file.cc.
References C, and ED_region_panels().
Referenced by ED_spacetype_file().
|
static |
Definition at line 749 of file space_file.cc.
References ED_region_panels_init(), View2D::keepzoom, RGN_TYPE_WINDOW, ARegion::runtime, SPACE_FILE, ARegion::v2d, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 787 of file space_file.cc.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NC_SPACE, ND_SPACE_FILE_LIST, wmRegionListenerParams::notifier, and wmRegionListenerParams::region.
Referenced by ED_spacetype_file().
|
static |
Definition at line 662 of file space_file.cc.
References SpaceFile::browse_mode, FILE_BROWSE_MODE_ASSETS, and params.
Referenced by ED_spacetype_file().
Definition at line 815 of file space_file.cc.
References wmDropBox::ptr, RNA_string_set(), and WM_drag_get_single_path().
Referenced by file_dropboxes().
Definition at line 804 of file space_file.cc.
References C, CTX_wm_space_file(), wmDrag::type, and WM_DRAG_PATH.
Referenced by file_dropboxes().