|
Blender V5.3
|
Inherits blender::ui::AbstractTreeViewItem.
Inherited by blender::ed::spreadsheet::BundleViewerTreeItem, blender::ed::spreadsheet::ClosureInOutViewerTreeItem, and blender::ed::spreadsheet::ViewerNodeItem.
Public Member Functions | |
| Vector< const ViewerDataTreeItem * > | items_path () const |
| void | on_activate (bContext &C) override |
| std::optional< bool > | should_be_active () const override |
| Public Member Functions inherited from blender::ui::AbstractTreeViewItem | |
| AbstractTreeViewItem () | |
| ~AbstractTreeViewItem () override=default | |
| virtual void | build_row (Layout &row)=0 |
| std::optional< std::string > | debug_name () const override |
| std::unique_ptr< DropTargetInterface > | create_item_drop_target () final |
| virtual std::unique_ptr< TreeViewItemDropTarget > | create_drop_target () |
| AbstractTreeView & | get_tree_view () const |
| std::optional< rctf > | get_win_rect (const ARegion ®ion) const |
| void | begin_renaming () |
| bool | toggle_collapsed () |
| virtual bool | set_collapsed (bool collapsed) |
| virtual void | on_collapse_change (bContext &C, bool is_collapsed) |
| virtual std::optional< bool > | should_be_collapsed () const |
| 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 void | build_context_menu (bContext &C, Layout &column) const |
| 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 () |
| virtual std::unique_ptr< AbstractViewItemDragController > | create_drag_controller () const |
| 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 |
| virtual bool | supports_renaming () const |
| bool | is_renaming () const |
| void | begin_renaming () |
| void | end_renaming () |
| void | rename_apply (const bContext &C) |
| virtual void | delete_item (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) |
Definition at line 1203 of file spreadsheet_dataset_draw.cc.
|
inline |
Definition at line 1205 of file spreadsheet_dataset_draw.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), and blender::ui::TreeViewItemContainer::foreach_parent().
Referenced by on_activate(), and should_be_active().
|
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 1390 of file spreadsheet_dataset_draw.cc.
References blender::SpaceSpreadsheet::geometry_id, blender::ui::AbstractTreeViewItem::get_tree_view(), items_path(), NC_SPACE, ND_SPACE_SPREADSHEET, on_activate(), blender::ed::spreadsheet::ViewerDataPath::store(), and blender::WM_main_add_notifier().
Referenced by on_activate().
|
overridevirtual |
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 1399 of file spreadsheet_dataset_draw.cc.
References blender::SpaceSpreadsheet::geometry_id, blender::ui::AbstractTreeViewItem::get_tree_view(), items_path(), and should_be_active().
Referenced by should_be_active().