|
Blender V4.3
|
Inherits blender::ui::BasicTreeViewItem.
Definition at line 76 of file asset_catalog_tree_view.cc.
| blender::ed::asset_browser::AssetCatalogTreeViewItem::AssetCatalogTreeViewItem | ( | const AssetCatalogTreeItem & | catalog_item | ) |
Definition at line 266 of file asset_catalog_tree_view.cc.
|
overridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 294 of file asset_catalog_tree_view.cc.
References blender::asset_system::AssetCatalogPath::c_str(), blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::AssetCatalogTreeItem::get_catalog_id(), IFACE_, RNA_string_set(), UI_ITEM_NONE, UI_menutype_draw(), uiItemFullO(), uiItemO(), WM_menutype_find(), and WM_OP_INVOKE_DEFAULT.
|
overridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Definition at line 277 of file asset_catalog_tree_view.cc.
References blender::ui::BasicTreeViewItem::add_label(), blender::asset_system::AssetCatalogPath::c_str(), blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::AssetCatalogTreeItem::has_unsaved_changes(), blender::ui::AbstractTreeViewItem::is_hovered(), blender::ui::AbstractTreeViewItem::label_, RNA_string_set(), UI_but_extra_operator_icon_add(), blender::ui::AbstractViewItem::view_item_button(), and WM_OP_INVOKE_DEFAULT.
|
overridevirtual |
Add drag support for catalog items.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 352 of file asset_catalog_tree_view.cc.
References blender::ui::AbstractTreeViewItem::get_tree_view().
|
overridevirtual |
Add dropping support for catalog items.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 347 of file asset_catalog_tree_view.cc.
|
overridevirtual |
Called when the view changes an item's state from inactive to active. Will only be called if the state change is triggered through the view, not through external changes. E.g. a click on an item calls it, a change in the value returned by should_be_active() to reflect an external state change does not.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 271 of file asset_catalog_tree_view.cc.
References blender::ed::asset_browser::AssetCatalogTreeView::activate_catalog_by_id(), blender::asset_system::AssetCatalogTreeItem::get_catalog_id(), and blender::ui::AbstractTreeViewItem::get_tree_view().
|
overridevirtual |
See AbstractViewItem::rename().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 336 of file asset_catalog_tree_view.cc.
References blender::ed::asset::catalog_rename(), blender::asset_system::AssetCatalogTreeItem::get_catalog_id(), and blender::ui::AbstractTreeViewItem::get_tree_view().
|
overridevirtual |
Queries if the view item supports renaming in principle. Renaming may still fail, e.g. if another item is already being renamed.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 329 of file asset_catalog_tree_view.cc.
References blender::ed::asset::catalogs_read_only(), and blender::ui::AbstractTreeViewItem::get_tree_view().