|
Blender V5.3
|
Inherits blender::blender::NonCopyable.
Public Member Functions | |
| AssetList ()=delete | |
| AssetList (AssetList &&other)=default | |
| ~AssetList ()=default | |
Public Attributes | |
| FileListWrapper | filelist_ |
| AssetLibraryReference | library_ref_ |
Asset list API | |
Internally re-uses FileList from the File Browser. It does all the heavy lifting already. | |
| AssetList (eFileSelectType filesel_type, const AssetLibraryReference &asset_library_ref) | |
| void | ensure_updated () |
| void | setup () |
| void | fetch (const bContext &C) |
| void | ensure_blocking (const bContext &C) |
| void | clear (wmWindowManager *wm) |
| void | clear_current_file_assets (wmWindowManager *wm) |
| bool | needs_refetch () const |
| bool | is_loaded () const |
| asset_system::AssetLibrary * | asset_library () const |
| void | iterate (AssetListIterFn fn) const |
| int | size () const |
| void | tag_main_data_dirty () const |
| void | remap_id (ID *id_old, ID *id_new) const |
| static bool | listen (const wmNotifier ¬ifier) |
Definition at line 90 of file asset_list.cc.
|
delete |
Referenced by AssetList(), and blender::ed::asset::list::ensure_list_storage().
| blender::ed::asset::list::AssetList::AssetList | ( | eFileSelectType | filesel_type, |
| const AssetLibraryReference & | asset_library_ref ) |
Definition at line 118 of file asset_list.cc.
References filelist_, and library_ref_.
|
default |
References AssetList().
|
default |
| asset_system::AssetLibrary * blender::ed::asset::list::AssetList::asset_library | ( | ) | const |
Definition at line 212 of file asset_list.cc.
References filelist_, and blender::filelist_asset_library().
Referenced by ~AssetList().
| void blender::ed::asset::list::AssetList::clear | ( | wmWindowManager * | wm | ) |
Definition at line 234 of file asset_list.cc.
References filelist_, blender::filelist_clear(), blender::filelist_freelib(), blender::filelist_readjob_stop(), blender::filelist_tag_force_reset(), NC_ASSET, ND_ASSET_LIST, and blender::WM_main_add_notifier().
Referenced by blender::ed::asset::list::clear(), and ~AssetList().
| void blender::ed::asset::list::AssetList::clear_current_file_assets | ( | wmWindowManager * | wm | ) |
Definition at line 247 of file asset_list.cc.
References filelist_, blender::filelist_clear_from_reset_tag(), blender::filelist_freelib(), blender::filelist_readjob_stop(), blender::filelist_tag_force_reset_mainfiles(), blender::filelist_tag_reload_asset_library(), NC_ASSET, ND_ASSET_LIST, and blender::WM_main_add_notifier().
Referenced by blender::ed::asset::list::clear(), and ~AssetList().
| void blender::ed::asset::list::AssetList::ensure_blocking | ( | const bContext & | C | ) |
Definition at line 186 of file asset_list.cc.
References C, filelist_, blender::filelist_clear_from_reset_tag(), blender::filelist_filter(), blender::filelist_needs_force_reset(), blender::filelist_needs_reading(), blender::filelist_readjob_blocking_run(), blender::filelist_sort(), NC_ASSET, and ND_ASSET_LIST_READING.
Referenced by ~AssetList().
| void blender::ed::asset::list::AssetList::ensure_updated | ( | ) |
Definition at line 143 of file asset_list.cc.
References ELEM, blender::FILE_TYPE_BLENDERLIB, filelist_, blender::filelist_set_asset_include_online(), blender::filelist_setfilter_options(), blender::filelist_setlibrary(), FILTER_ID_ALL, library_ref_, blender::OnlineAndOffline, blender::OnlyOffline, blender::OnlyOnline, and blender::U.
Referenced by ~AssetList().
| void blender::ed::asset::list::AssetList::fetch | ( | const bContext & | C | ) |
Definition at line 168 of file asset_list.cc.
References C, blender::CTX_wm_manager(), filelist_, blender::filelist_clear_from_reset_tag(), blender::filelist_filter(), blender::filelist_needs_force_reset(), blender::filelist_needs_reading(), blender::filelist_pending(), blender::filelist_readjob_start(), blender::filelist_readjob_stop(), blender::filelist_sort(), NC_ASSET, and ND_ASSET_LIST_READING.
Referenced by ~AssetList().
| bool blender::ed::asset::list::AssetList::is_loaded | ( | ) | const |
Definition at line 207 of file asset_list.cc.
References filelist_, and blender::filelist_is_ready().
Referenced by ~AssetList().
| void blender::ed::asset::list::AssetList::iterate | ( | AssetListIterFn | fn | ) | const |
Definition at line 217 of file asset_list.cc.
References filelist_, blender::filelist_entry_get_asset_representation(), and blender::filelist_files_ensure().
Referenced by ~AssetList().
|
static |
Definition at line 264 of file asset_list.cc.
References blender::wmNotifier::action, blender::wmNotifier::category, blender::wmNotifier::data, ELEM, NA_ADDED, NA_DOWNLOAD_FINISHED, NA_EDITED, NA_REMOVED, NA_RENAME, NC_ASSET, NC_ID, ND_ASSET_LIST, ND_ASSET_LIST_PREVIEW, and ND_ASSET_LIST_READING.
Referenced by blender::ed::asset::list::listen(), and ~AssetList().
| bool blender::ed::asset::list::AssetList::needs_refetch | ( | ) | const |
Definition at line 202 of file asset_list.cc.
References filelist_, blender::filelist_needs_force_reset(), and blender::filelist_needs_reading().
Referenced by ~AssetList().
Definition at line 306 of file asset_list.cc.
References tag_main_data_dirty().
Referenced by ~AssetList().
| void blender::ed::asset::list::AssetList::setup | ( | ) |
Definition at line 123 of file asset_list.cc.
References blender::AS_asset_library_root_path_from_library_ref(), blender::ed::asset::index::file_indexer_asset, blender::file_indexer_noop, FILE_MAX_LIBEXTRA, FILE_SELECT_MAX_RECURSIONS, blender::FILE_SORT_ASSET_CATALOG, filelist_, blender::filelist_setdir(), blender::filelist_setindexer(), blender::filelist_setrecursion(), blender::filelist_setsorting(), library_ref_, blender::STRNCPY(), blender::U, and USER_DEVELOPER_TOOL_TEST.
Referenced by ~AssetList().
| int blender::ed::asset::list::AssetList::size | ( | ) | const |
Definition at line 289 of file asset_list.cc.
References filelist_, and blender::filelist_files_ensure().
Referenced by ~AssetList().
| void blender::ed::asset::list::AssetList::tag_main_data_dirty | ( | ) | const |
Definition at line 294 of file asset_list.cc.
References filelist_, blender::filelist_is_ready(), blender::filelist_needs_reset_on_main_changes(), blender::filelist_tag_force_reset(), and blender::filelist_tag_force_reset_mainfiles().
Referenced by remap_id(), and ~AssetList().
| FileListWrapper blender::ed::asset::list::AssetList::filelist_ |
Definition at line 92 of file asset_list.cc.
Referenced by asset_library(), AssetList(), clear(), clear_current_file_assets(), ensure_blocking(), ensure_updated(), fetch(), is_loaded(), iterate(), needs_refetch(), setup(), size(), and tag_main_data_dirty().
| AssetLibraryReference blender::ed::asset::list::AssetList::library_ref_ |
Definition at line 93 of file asset_list.cc.
Referenced by AssetList(), ensure_updated(), and setup().