|
Blender V4.5
|
Inherits blender::ui::BasicTreeViewItem.
Definition at line 77 of file asset_catalog_tree_view.cc.
| blender::ed::asset_browser::AssetCatalogTreeViewItem::AssetCatalogTreeViewItem | ( | const AssetCatalogTreeItem & | catalog_item | ) |
Definition at line 267 of file asset_catalog_tree_view.cc.
References blender::ui::BasicTreeViewItem::BasicTreeViewItem().
|
overridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 295 of file asset_catalog_tree_view.cc.
References IFACE_, uiLayout::op(), RNA_string_set(), UI_ITEM_NONE, UI_menutype_draw(), WM_menutype_find(), and WM_OP_INVOKE_DEFAULT.
|
overridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Definition at line 278 of file asset_catalog_tree_view.cc.
References blender::ui::BasicTreeViewItem::add_label(), 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 347 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 342 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 272 of file asset_catalog_tree_view.cc.
References blender::ed::asset_browser::AssetCatalogTreeView::activate_catalog_by_id(), and blender::ui::AbstractTreeViewItem::get_tree_view().
|
overridevirtual |
See AbstractViewItem::rename().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 331 of file asset_catalog_tree_view.cc.
References blender::ed::asset::catalog_rename(), 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 324 of file asset_catalog_tree_view.cc.
References blender::ed::asset::catalogs_read_only(), and blender::ui::AbstractTreeViewItem::get_tree_view().