Blender
V3.3
|
Public Member Functions | |
AssetCatalogTreeView (::AssetLibrary *library, FileAssetSelectParams *params, SpaceFile &space_file) | |
void | build_tree () override |
void | activate_catalog_by_id (CatalogID catalog_id) |
![]() | |
virtual | ~AbstractTreeView ()=default |
void | foreach_item (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const |
![]() | |
virtual | ~AbstractView ()=default |
void | register_item (AbstractViewItem &item) |
virtual bool | listen (const wmNotifier &) const |
bool | is_renaming () const |
bool | begin_renaming () |
void | end_renaming () |
Span< char > | get_rename_buffer () const |
MutableSpan< char > | get_rename_buffer () |
![]() | |
template<class ItemT , typename... Args> | |
ItemT & | add_tree_item (Args &&...args) |
AbstractTreeViewItem & | add_tree_item (std::unique_ptr< AbstractTreeViewItem > item) |
Friends | |
class | AssetCatalogTreeViewItem |
class | AssetCatalogDropController |
class | AssetCatalogTreeViewAllItem |
Additional Inherited Members | |
![]() | |
enum class | IterOptions { None = 0 , SkipCollapsed = 1 << 0 } |
using | ItemIterFn = FunctionRef< void(AbstractTreeViewItem &)> |
![]() | |
AbstractView ()=default | |
void | update_from_old (uiBlock &new_block) |
bool | is_reconstructed () const |
![]() | |
void | foreach_item_recursive (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const |
![]() | |
Vector< std::unique_ptr< AbstractTreeViewItem > > | children_ |
TreeViewItemContainer * | root_ = nullptr |
AbstractTreeViewItem * | parent_ = nullptr |
Definition at line 42 of file asset_catalog_tree_view.cc.
blender::ed::asset_browser::AssetCatalogTreeView::AssetCatalogTreeView | ( | ::AssetLibrary * | library, |
FileAssetSelectParams * | params, | ||
SpaceFile & | space_file | ||
) |
Definition at line 172 of file asset_catalog_tree_view.cc.
void blender::ed::asset_browser::AssetCatalogTreeView::activate_catalog_by_id | ( | CatalogID | catalog_id | ) |
Definition at line 240 of file asset_catalog_tree_view.cc.
References FileAssetSelectParams::asset_catalog_visibility, FileAssetSelectParams::catalog_id, FILE_SHOW_ASSETS_FROM_CATALOG, NC_SPACE, ND_SPACE_ASSET_PARAMS, and WM_main_add_notifier().
Referenced by blender::ed::asset_browser::AssetCatalogDropController::drop_asset_catalog_into_catalog(), blender::ed::asset_browser::AssetCatalogTreeViewItem::on_activate(), and blender::ed::asset_browser::AssetCatalogDragController::on_drag_start().
|
overridevirtual |
Implements blender::ui::AbstractTreeView.
Definition at line 182 of file asset_catalog_tree_view.cc.
References blender::bke::AssetCatalogTree::foreach_root_item(), and blender::ui::AbstractTreeViewItem::set_collapsed().
|
friend |
Definition at line 50 of file asset_catalog_tree_view.cc.
|
friend |
Definition at line 51 of file asset_catalog_tree_view.cc.
|
friend |
Definition at line 49 of file asset_catalog_tree_view.cc.