Blender
V3.3
|
#include <tree_element_overrides.hh>
Overridden Property Operation | |
TreeElementOverridesPropertyOperation (TreeElement &legacy_te, TreeElementOverridesData &override_data) | |
StringRefNull | getOverrideOperationLabel () const |
std::optional< BIFIconID > | getIcon () const override |
Represent a single operation within an overridden property. While usually a single override property represents a single operation (changing the value), a single overridden collection property may have multiple operations, e.g. to insert or remove collection items.
Inherits from the override property class since it should look/behave mostly the same.
Definition at line 75 of file tree_element_overrides.hh.
blender::ed::outliner::TreeElementOverridesPropertyOperation::TreeElementOverridesPropertyOperation | ( | TreeElement & | legacy_te, |
TreeElementOverridesData & | override_data | ||
) |
Definition at line 195 of file tree_element_overrides.cc.
References BLI_assert, BLI_assert_msg, TreeElement::flag, TreeElement::name, blender::ed::outliner::TreeElementOverridesData::operation, blender::ed::outliner::TreeElementOverridesProperty::override_rna_prop, PROP_COLLECTION, RNA_property_type(), RNA_struct_name_get_alloc(), RNA_struct_ui_name(), TreeElement::store_elem, TE_FREE_NAME, TSE_LIBRARY_OVERRIDE_OPERATION, and TreeStoreElem::type.
|
overridevirtual |
Define the icon to be displayed for this element. If this returns an icon, this will be displayed. Otherwise, tree_element_get_icon() may still determine an icon. By default no value is returned (#std::nullopt).
All elements should be ported to use this over tree_element_get_icon().
Reimplemented from blender::ed::outliner::AbstractTreeElement.
Definition at line 236 of file tree_element_overrides.cc.
References RNA_struct_ui_icon().
StringRefNull blender::ed::outliner::TreeElementOverridesPropertyOperation::getOverrideOperationLabel | ( | ) | const |
Return a short string to display in the right column of the properties mode, indicating what the override operation did (e.g. added or removed a collection item).
Definition at line 224 of file tree_element_overrides.cc.
References BLI_assert_unreachable, ELEM, IDOVERRIDE_LIBRARY_OP_INSERT_AFTER, IDOVERRIDE_LIBRARY_OP_INSERT_BEFORE, and TIP_.