|
Blender V5.3
|
#include <tree_element_overrides.hh>
Inherits blender::ed::outliner::TreeElementOverridesProperty.
Static Public Member Functions | |
Overridden Property | |
Represents an RNA property that was overridden. | |
| static ID * | owner_id (TreeElementOverridesData &override_data) |
| static ID * | owner_id (TreeElementOverridesData &override_data) |
| Static Public Member Functions inherited from blender::ed::outliner::AbstractTreeElement | |
| static void | uncollapse_by_default (TreeElement *legacy_te) |
Static Public Attributes | |
| static constexpr eTreeStoreElemType | element_type = TSE_LIBRARY_OVERRIDE_OPERATION |
| Static Public Attributes inherited from blender::ed::outliner::TreeElementOverridesProperty | |
| static constexpr eTreeStoreElemType | element_type = TSE_LIBRARY_OVERRIDE |
Overridden Property Operation | |
| TreeElementOverridesPropertyOperation (TreeElement &legacy_te, TreeElementOverridesData &override_data) | |
| StringRefNull | get_override_operation_label () const |
| StringRefNull | get_override_operation_tooltip () const |
| std::optional< BIFIconID > | get_icon () const override |
| short | get_operation_type () const |
| IDOverrideLibraryPropertyOperation * | get_override_operation_from_id (ID &id, IDOverrideLibraryProperty &override_property) const |
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 100 of file tree_element_overrides.hh.
| blender::ed::outliner::TreeElementOverridesPropertyOperation::TreeElementOverridesPropertyOperation | ( | TreeElement & | legacy_te, |
| TreeElementOverridesData & | override_data ) |
Definition at line 220 of file tree_element_overrides.cc.
References blender::BLI_assert(), BLI_assert_msg, blender::ed::outliner::TreeElement::flag, blender::ed::outliner::TreeElement::name, blender::ed::outliner::TreeElementOverridesData::operation, blender::ed::outliner::TreeElementOverridesProperty::override_rna_prop, blender::PROP_COLLECTION, blender::RNA_property_type(), blender::RNA_struct_name_get_alloc(), blender::RNA_struct_ui_name(), blender::ed::outliner::TreeElement::store_elem, blender::ed::outliner::TE_FREE_NAME, blender::ed::outliner::TreeElementOverridesProperty::TreeElementOverridesProperty(), blender::TSE_LIBRARY_OVERRIDE_OPERATION, and blender::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::TreeElementOverridesProperty.
Definition at line 285 of file tree_element_overrides.cc.
References blender::RNA_struct_ui_icon().
| short blender::ed::outliner::TreeElementOverridesPropertyOperation::get_operation_type | ( | ) | const |
Return liboverride operation type (eID_OverrideLib_Op).
Definition at line 294 of file tree_element_overrides.cc.
| IDOverrideLibraryPropertyOperation * blender::ed::outliner::TreeElementOverridesPropertyOperation::get_override_operation_from_id | ( | ID & | id, |
| IDOverrideLibraryProperty & | override_property ) const |
Return the liboverride operation matching this tree element, for the given ID and library override property.
Definition at line 299 of file tree_element_overrides.cc.
References blender::BLI_assert(), ID_IS_OVERRIDE_LIBRARY_REAL, blender::IDOverrideLibraryProperty::operations, and UNUSED_VARS_NDEBUG.
| StringRefNull blender::ed::outliner::TreeElementOverridesPropertyOperation::get_override_operation_label | ( | ) | 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 249 of file tree_element_overrides.cc.
References blender::LIBOVERRIDE_OP_ADD, blender::LIBOVERRIDE_OP_CUSTOM, blender::LIBOVERRIDE_OP_INSERT_AFTER, blender::LIBOVERRIDE_OP_INSERT_BEFORE, blender::LIBOVERRIDE_OP_MULTIPLY, blender::LIBOVERRIDE_OP_NOOP, blender::LIBOVERRIDE_OP_REPLACE, blender::LIBOVERRIDE_OP_SUBTRACT, and RPT_.
| StringRefNull blender::ed::outliner::TreeElementOverridesPropertyOperation::get_override_operation_tooltip | ( | ) | const |
Return a longer string to display as tooltip in the right column of the properties mode.
Definition at line 277 of file tree_element_overrides.cc.
|
static |
The ID identifying this element in the tree-store, see #AbstractTreeDisplay::add_element().
Definition at line 175 of file tree_element_overrides.cc.
References blender::ed::outliner::TreeElementOverridesData::id.
|
staticconstexpr |
Definition at line 106 of file tree_element_overrides.hh.