|
Blender V5.3
|
Inherits blender::ui::AbstractTreeViewItem.
Public Member Functions | |
| BoneCollectionItem (bArmature &armature, const int bcoll_index, const bool has_any_selected_bones) | |
| void | build_row (Layout &row) override |
| void | build_context_menu (bContext &C, Layout &column) const override |
| std::optional< bool > | should_be_active () const override |
| void | on_activate (bContext &C) override |
| std::optional< bool > | should_be_collapsed () const override |
| bool | set_collapsed (const bool collapsed) override |
| void | on_collapse_change (bContext &C, const bool is_collapsed) override |
| bool | supports_renaming () const override |
| bool | rename (const bContext &C, StringRefNull new_name) override |
| StringRef | get_rename_string () const override |
| void | delete_item (bContext *C) override |
| std::unique_ptr< AbstractViewItemDragController > | create_drag_controller () const override |
| std::unique_ptr< TreeViewItemDropTarget > | create_drop_target () override |
| Public Member Functions inherited from blender::ui::AbstractTreeViewItem | |
| AbstractTreeViewItem () | |
| ~AbstractTreeViewItem () override=default | |
| std::optional< std::string > | debug_name () const override |
| std::unique_ptr< DropTargetInterface > | create_item_drop_target () final |
| AbstractTreeView & | get_tree_view () const |
| std::optional< rctf > | get_win_rect (const ARegion ®ion) const |
| void | begin_renaming () |
| bool | toggle_collapsed () |
| void | uncollapse_by_default () |
| bool | is_collapsed () const |
| bool | is_collapsible () const |
| int | count_parents () const |
| AbstractTreeViewItem * | get_parent () |
| AbstractTreeViewItem * | get_child () |
| void | on_filter () override |
| StringRefNull | label () const |
| Public Member Functions inherited from blender::ui::AbstractViewItem | |
| virtual | ~AbstractViewItem ()=default |
| virtual std::optional< bool > | should_be_selected () const |
| virtual void | set_selected (const bool select) |
| void | activate (bContext &C) |
| void | activate_for_context_menu (bContext &C) |
| void | deactivate () |
| AbstractView & | get_view () const |
| ui::ButtonViewItem * | view_item_button () const |
| void | disable_interaction () |
| bool | is_interactive () const |
| void | disable_activatable () |
| void | select_on_click_set () |
| bool | is_select_on_click () const |
| void | always_reactivate_on_click () |
| void | activate_for_context_menu_set () |
| bool | is_hovered () const |
| bool | is_active () const |
| bool | is_selected () const |
| bool | is_search_highlight () const |
| bool | is_renaming () const |
| void | begin_renaming () |
| void | end_renaming () |
| void | rename_apply (const bContext &C) |
| bool | is_filtered_visible () const |
| Public Member Functions inherited from blender::ui::TreeViewItemContainer | |
| template<class ItemT, typename... Args> | |
| ItemT & | add_tree_item (Args &&...args) |
| AbstractTreeViewItem & | add_tree_item (std::unique_ptr< AbstractTreeViewItem > item) |
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 |
| bool | should_be_filtered_visible (StringRefNull filter_string) const override |
| virtual bool | matches_single (const AbstractTreeViewItem &other) const |
| void | ensure_parents_uncollapsed () |
| Protected Member Functions inherited from blender::ui::AbstractViewItem | |
| AbstractViewItem ()=default | |
| void | add_rename_button (Block &block) |
| 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 |
| void | sort_alpha () |
| void | foreach_sort_invert (TreeViewSortOrder order) |
Definition at line 207 of file interface_template_bone_collection_tree.cc.
|
inline |
Definition at line 215 of file interface_template_bone_collection_tree.cc.
References blender::ui::AbstractTreeViewItem::label_.
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 269 of file interface_template_bone_collection_tree.cc.
References C, blender::ui::menutype_draw(), and blender::WM_menutype_find().
|
inlineoverridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Definition at line 224 of file interface_template_bone_collection_tree.cc.
References blender::ui::Layout::active_set(), blender::ANIM_armature_bonecoll_contains_active_bone(), blender::ANIM_armature_bonecoll_is_editable(), blender::ARM_BCOLL_SOLO_ACTIVE, blender::ui::BUT_INACTIVE, blender::ui::button_flag_enable(), blender::ui::ITEM_R_ICON_ONLY, blender::ui::Layout::label(), blender::ui::Layout::prop(), rna_pointer(), blender::ui::Layout::row(), and blender::ui::uiItemL_ex().
|
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 357 of file interface_template_bone_collection_tree.cc.
References blender::ANIM_armature_bonecoll_is_editable(), and blender::ui::AbstractTreeViewItem::get_tree_view().
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 368 of file interface_template_bone_collection_tree.cc.
References blender::ui::ReorderAndInsert.
|
inlineoverridevirtual |
Reimplemented from blender::ui::AbstractViewItem.
Definition at line 352 of file interface_template_bone_collection_tree.cc.
References blender::ANIM_armature_bonecoll_remove(), C, and blender::ED_undo_push().
|
inlineoverridevirtual |
See AbstractViewItem::get_rename_string().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 347 of file interface_template_bone_collection_tree.cc.
|
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 283 of file interface_template_bone_collection_tree.cc.
References C, blender::ED_undo_push(), blender::RNA_pointer_create_discrete(), blender::RNA_property_int_set(), blender::RNA_property_update(), and blender::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 314 of file interface_template_bone_collection_tree.cc.
References C, blender::ui::AbstractTreeViewItem::is_collapsed(), blender::RNA_pointer_create_discrete(), blender::RNA_property_boolean_set(), blender::RNA_property_update(), and blender::RNA_struct_find_property().
|
inlineoverridevirtual |
See AbstractViewItem::rename().
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 333 of file interface_template_bone_collection_tree.cc.
References C, blender::StringRefNull::c_str(), blender::ED_undo_push(), rna_pointer(), blender::RNA_property_string_set(), blender::RNA_property_update(), and blender::RNA_struct_find_property().
|
inlineprotected |
RNA pointer to the BoneCollection.
Definition at line 379 of file interface_template_bone_collection_tree.cc.
References blender::RNA_pointer_create_discrete().
Referenced by build_row(), and rename().
|
inlineoverridevirtual |
Expand or collapse this tree view item.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 303 of file interface_template_bone_collection_tree.cc.
References blender::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 278 of file interface_template_bone_collection_tree.cc.
|
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 297 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 328 of file interface_template_bone_collection_tree.cc.
References blender::ANIM_armature_bonecoll_is_editable().