|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_blenlib.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 1031 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 1025 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 1040 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 924 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.
Referenced by ED_spacetypes_init().
Definition at line 53 of file space_file.cc.
References BLI_addtail(), MEM_callocN, SpaceFile::regionbase, 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, SPACE_FILE, SpaceFile::spacetype, 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 805 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 766 of file space_file.cc.
References ED_region_panels().
Referenced by ED_spacetype_file().
|
static |
Definition at line 754 of file space_file.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_FILE, 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 660 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(), SpaceFile::previews_timer, and WM_event_timer_remove_notifier().
Referenced by ED_spacetype_file().
|
static |
Definition at line 863 of file space_file.cc.
References BKE_lib_query_foreachid_process_flags_get(), FILE_TAG_REBUILD_MAIN_FILES, IDWALK_READONLY, SpaceFile::op, and SpaceFile::tags.
Referenced by ED_spacetype_file().
|
static |
Definition at line 109 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_freeN(), MEM_SAFE_FREE, SpaceFile::params, SpaceFile::previews_timer, and SpaceFile::runtime.
Referenced by ED_spacetype_file().
Definition at line 728 of file space_file.cc.
References ED_region_header().
Referenced by ED_spacetype_file().
|
static |
Definition at line 718 of file space_file.cc.
References wmWindowManager::defaultconf, ED_region_header_init(), RGN_TYPE_WINDOW, SPACE_FILE, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 850 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(), SpaceFile_Runtime::is_blendfile_readable_reports, SpaceFile::layout, MEM_callocN, RPT_STORE, and SpaceFile::runtime.
Referenced by ED_spacetype_file().
|
static |
Definition at line 635 of file space_file.cc.
References RGN_TYPE_WINDOW, SPACE_FILE, and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 355 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, 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, and wmSpaceTypeListenerParams::window.
Referenced by ED_spacetype_file().
Definition at line 533 of file space_file.cc.
References CTX_wm_space_file(), CTX_wm_window(), View2D::cur, ED_fileselect_ensure_active_params(), ED_fileselect_layout_maskrect(), 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(), V2D_COMMONVIEW_LIST, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_SCROLL_BOTTOM, V2D_SCROLL_RIGHT, View2D::winx, rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_file().
|
static |
Definition at line 430 of file space_file.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_FILE, UI_view2d_region_reinit(), V2D_COMMONVIEW_LIST, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_file().
|
static |
Definition at line 448 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 473 of file space_file.cc.
References ED_area_do_msg_notify_tag_refresh(), ED_fileselect_ensure_active_params(), wmMsgSubscribeValue::owner, params, ptr, RNA_pointer_create(), RNA_struct_find_property(), and WM_msg_subscribe_rna().
Referenced by ED_spacetype_file().
| bool file_main_region_needs_refresh_before_draw | ( | SpaceFile * | sfile | ) |
Definition at line 516 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 335 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 327 of file space_file.cc.
References callback, 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 600 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, 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, 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_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, USER_EXPERIMENTAL_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 347 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 902 of file space_file.cc.
References FILE_TAG_REBUILD_MAIN_FILES, and SpaceFile::tags.
Referenced by ED_spacetype_file().
|
static |
Definition at line 877 of file space_file.cc.
References SpaceFile::asset_params, FileAssetSelectParams::base_params, BLI_listbase_clear(), BLO_read_struct, SpaceFile::files, SpaceFile::folder_histories, SpaceFile::folders_next, SpaceFile::folders_prev, 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 911 of file space_file.cc.
References SpaceFile::asset_params, BLO_write_struct, and SpaceFile::params.
Referenced by ED_spacetype_file().
Definition at line 842 of file space_file.cc.
References SpaceFile::browse_mode, EnumPropertyItem::icon, RNA_enum_from_value(), and rna_enum_space_file_browse_mode_items.
Referenced by ED_spacetype_file().
|
static |
Definition at line 834 of file space_file.cc.
References SpaceFile::browse_mode, EnumPropertyItem::name, RNA_enum_from_value(), and rna_enum_space_file_browse_mode_items.
Referenced by ED_spacetype_file().
Definition at line 813 of file space_file.cc.
References SpaceFile::browse_mode.
Referenced by ED_spacetype_file().
|
static |
Definition at line 829 of file space_file.cc.
References RNA_enum_items_add(), and rna_enum_space_file_browse_mode_items.
Referenced by ED_spacetype_file().
Definition at line 819 of file space_file.cc.
References SpaceFile::browse_mode, and LISTBASE_FOREACH.
Referenced by ED_spacetype_file().
|
static |
Definition at line 697 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 654 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 678 of file space_file.cc.
References ED_region_panels().
Referenced by ED_spacetype_file().
|
static |
Definition at line 666 of file space_file.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_FILE, 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 683 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 749 of file space_file.cc.
References ED_region_panels().
Referenced by ED_spacetype_file().
|
static |
Definition at line 734 of file space_file.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_FILE, 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 771 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 647 of file space_file.cc.
References SpaceFile::browse_mode, FILE_BROWSE_MODE_ASSETS, and params.
Referenced by ED_spacetype_file().
Definition at line 799 of file space_file.cc.
References wmDropBox::ptr, RNA_string_set(), and WM_drag_get_single_path().
Referenced by file_dropboxes().
Definition at line 788 of file space_file.cc.
References CTX_wm_space_file(), wmDrag::type, and WM_DRAG_PATH.
Referenced by file_dropboxes().