|
Blender V4.3
|
Inherits blender::ui::AbstractTreeViewItem.
Protected Member Functions | |
| PointerRNA | rna_pointer () |
Protected Member Functions inherited from blender::ui::AbstractTreeViewItem | |
| virtual bool | supports_collapsing () const |
| void | toggle_collapsed_from_view (bContext &C) |
| void | change_state_delayed () override |
| bool | matches (const AbstractViewItem &other) const override |
| void | update_from_old (const AbstractViewItem &old) override |
| virtual bool | matches_single (const AbstractTreeViewItem &other) const |
| bool | is_hovered () const |
| void | ensure_parents_uncollapsed () |
Protected Member Functions inherited from blender::ui::AbstractViewItem | |
| AbstractViewItem ()=default | |
| void | add_rename_button (uiBlock &block) |
| virtual bool | should_be_filtered_visible (StringRefNull filter_string) const |
Protected Member Functions inherited from blender::ui::TreeViewItemContainer | |
| void | foreach_item_recursive (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const |
| void | foreach_parent (ItemIterFn iter_fn) const |
Additional Inherited Members | |
Public Types inherited from blender::ui::TreeViewItemContainer | |
| enum class | IterOptions { None = 0 , SkipCollapsed = 1 << 0 , SkipFiltered = 1 << 1 } |
| using | ItemIterFn = FunctionRef<void(AbstractTreeViewItem &)> |
Protected Attributes inherited from blender::ui::AbstractTreeViewItem | |
| std::string | label_ |
Protected Attributes inherited from blender::ui::AbstractViewItem | |
| AbstractView * | view_ = nullptr |
| uiButViewItem * | view_item_but_ = nullptr |
| bool | is_activatable_ = true |
| bool | is_interactive_ = true |
| bool | is_active_ = false |
| bool | is_renaming_ = false |
| bool | is_highlighted_search_ = false |
| bool | is_filtered_visible_ = true |
Protected Attributes inherited from blender::ui::TreeViewItemContainer | |
| Vector< std::unique_ptr< AbstractTreeViewItem > > | children_ |
| TreeViewItemContainer * | root_ = nullptr |
| AbstractTreeViewItem * | parent_ = nullptr |
Definition at line 201 of file interface_template_bone_collection_tree.cc.
|
inline |
Definition at line 209 of file interface_template_bone_collection_tree.cc.
References blender::ui::AbstractTreeViewItem::label_, and BoneCollection::name.
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 264 of file interface_template_bone_collection_tree.cc.
References UI_menutype_draw(), and WM_menutype_find().
|
inlineoverridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Definition at line 218 of file interface_template_bone_collection_tree.cc.
References ANIM_armature_bonecoll_contains_active_bone(), ANIM_armature_bonecoll_is_editable(), ARM_BCOLL_SOLO_ACTIVE, bArmature::flag, BoneCollection::name, rna_pointer(), UI_but_flag_enable(), UI_BUT_INACTIVE, UI_ITEM_R_ICON_ONLY, uiItemL(), uiItemL_ex(), uiItemR(), uiLayoutRow(), and uiLayoutSetActive().
|
inlineoverridevirtual |
If an item wants to support being dragged, it has to return a drag controller here. That is an object implementing #AbstractViewItemDragController.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 346 of file interface_template_bone_collection_tree.cc.
References ANIM_armature_bonecoll_is_editable(), and blender::ui::AbstractTreeViewItem::get_tree_view().
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 357 of file interface_template_bone_collection_tree.cc.
References blender::ui::ReorderAndInsert.
|
inlineoverridevirtual |
See AbstractViewItem::get_rename_string().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 341 of file interface_template_bone_collection_tree.cc.
References BoneCollection::name.
|
inlineoverridevirtual |
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 278 of file interface_template_bone_collection_tree.cc.
References ED_undo_push(), bArmature::id, RNA_pointer_create(), RNA_property_int_set(), RNA_property_update(), and RNA_struct_find_property().
|
inlineoverridevirtual |
Called when the view changes an item's state from expanded to collapsed, or vice versa. 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_collapsed() to reflect an external state change does not.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 308 of file interface_template_bone_collection_tree.cc.
References bArmature::id, blender::ui::AbstractTreeViewItem::is_collapsed(), RNA_pointer_create(), RNA_property_boolean_set(), RNA_property_update(), and RNA_struct_find_property().
|
inlineoverridevirtual |
See AbstractViewItem::rename().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 327 of file interface_template_bone_collection_tree.cc.
References blender::StringRefNull::c_str(), ED_undo_push(), rna_pointer(), RNA_property_string_set(), RNA_property_update(), and RNA_struct_find_property().
|
inlineprotected |
RNA pointer to the BoneCollection.
Definition at line 368 of file interface_template_bone_collection_tree.cc.
References bArmature::id, and RNA_pointer_create().
Referenced by build_row(), and rename().
|
inlineoverridevirtual |
Expand or collapse this tree view item.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 297 of file interface_template_bone_collection_tree.cc.
References ANIM_armature_bonecoll_is_expanded_set(), and blender::ui::AbstractTreeViewItem::set_collapsed().
|
inlineoverridevirtual |
If the result is not empty, it controls whether the item should be active or not, usually depending on the data that the view represents. Note that since this is meant to reflect externally managed state changes, on_activate() will never be called if this returns true.
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 273 of file interface_template_bone_collection_tree.cc.
References bArmature_Runtime::active_collection_index, and bArmature::runtime.
|
inlineoverridevirtual |
If the result is not empty, it controls whether the item should be collapsed or not, usually depending on the data that the view represents.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 291 of file interface_template_bone_collection_tree.cc.
References blender::ui::AbstractTreeViewItem::is_collapsed().
|
inlineoverridevirtual |
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 322 of file interface_template_bone_collection_tree.cc.
References ANIM_armature_bonecoll_is_editable().