Blender
V3.3
|
Protected Member Functions | |
std::optional< bool > | should_be_active () const override |
bool | supports_collapsing () const override |
![]() | |
virtual StringRef | get_rename_string () const override |
virtual bool | rename (StringRefNull new_name) override |
virtual bool | matches (const AbstractViewItem &other) const override |
virtual void | update_from_old (const AbstractViewItem &old) override |
virtual bool | matches_single (const AbstractTreeViewItem &other) const |
void | activate () |
void | deactivate () |
bool | is_hovered () const |
bool | is_collapsible () const |
void | ensure_parents_uncollapsed () |
uiButViewItem * | view_item_button () |
![]() | |
AbstractViewItem ()=default | |
void | add_rename_button (uiBlock &block) |
![]() | |
void | foreach_item_recursive (ItemIterFn iter_fn, IterOptions options=IterOptions::None) const |
Additional Inherited Members | |
![]() | |
enum class | IterOptions { None = 0 , SkipCollapsed = 1 << 0 } |
using | ItemIterFn = FunctionRef< void(AbstractTreeViewItem &)> |
![]() | |
template<typename ToType = AbstractViewItem> | |
static ToType * | from_item_handle (uiViewItemHandle *handle) |
![]() | |
std::string | label_ {} |
uiButViewItem * | view_item_but_ = nullptr |
![]() | |
AbstractView * | view_ = nullptr |
bool | is_active_ = false |
bool | is_renaming_ = false |
![]() | |
Vector< std::unique_ptr< AbstractTreeViewItem > > | children_ |
TreeViewItemContainer * | root_ = nullptr |
AbstractTreeViewItem * | parent_ = nullptr |
Definition at line 28 of file spreadsheet_dataset_draw.cc.
blender::ed::spreadsheet::GeometryDataSetTreeViewItem::GeometryDataSetTreeViewItem | ( | GeometryComponentType | component_type, |
StringRef | label, | ||
BIFIconID | icon | ||
) |
Definition at line 107 of file spreadsheet_dataset_draw.cc.
References label, blender::ui::AbstractTreeViewItem::label_, and blender::ui::AbstractTreeViewItem::set_collapsed().
blender::ed::spreadsheet::GeometryDataSetTreeViewItem::GeometryDataSetTreeViewItem | ( | GeometryComponentType | component_type, |
eAttrDomain | domain, | ||
StringRef | label, | ||
BIFIconID | icon | ||
) |
Definition at line 115 of file spreadsheet_dataset_draw.cc.
References label, and blender::ui::AbstractTreeViewItem::label_.
|
overridevirtual |
Implements blender::ui::AbstractTreeViewItem.
Definition at line 139 of file spreadsheet_dataset_draw.cc.
References BLI_str_format_decimal_unit(), count, blender::ui::AbstractTreeViewItem::label_, UI_but_hint_drawstr_set(), uiItemL(), and blender::ui::AbstractTreeViewItem::view_item_button().
|
overridevirtual |
Called when the items state changes from inactive to active.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 124 of file spreadsheet_dataset_draw.cc.
References SpaceSpreadsheet::attribute_domain, C, SpaceSpreadsheet::geometry_component_type, bScreen::id, ptr, RNA_pointer_create(), RNA_property_update(), and RNA_struct_find_property().
|
overrideprotectedvirtual |
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.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 152 of file spreadsheet_dataset_draw.cc.
References SpaceSpreadsheet::attribute_domain, GEO_COMPONENT_TYPE_VOLUME, and SpaceSpreadsheet::geometry_component_type.
|
overrideprotectedvirtual |
Return whether the item can be collapsed. Used to disable collapsing for items with children.
Reimplemented from blender::ui::AbstractTreeViewItem.
Definition at line 169 of file spreadsheet_dataset_draw.cc.