Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | SpaceOutliner_Runtime |
struct | TreeElement |
struct | TreeElementIcon |
struct | TreeViewContext |
struct | IDsSelectedData |
Namespaces | |
blender | |
blender::ed | |
blender::ed::outliner | |
Macros | |
#define | TREESTORE_ID_TYPE(_id) |
#define | OL_NAMEBUTTON 1 |
#define | TREESTORE(a) ((a)->store_elem) |
#define | OL_Y_OFFSET 2 |
#define | OL_TOG_USER_BUTS_USERS (UI_UNIT_X * 2.0f + V2D_SCROLL_WIDTH) |
#define | OL_TOG_USER_BUTS_STATUS (UI_UNIT_X + V2D_SCROLL_WIDTH) |
#define | OL_RNA_COLX (UI_UNIT_X * 15) |
#define | OL_RNA_COL_SIZEX (UI_UNIT_X * 7.5f) |
#define | OL_RNA_COL_SPACEX (UI_UNIT_X * 2.5f) |
#define | SUPPORT_FILTER_OUTLINER(space_outliner_) (ELEM((space_outliner_)->outlinevis, SO_VIEW_LAYER, SO_OVERRIDES_LIBRARY)) |
#define | SEARCHING_OUTLINER(sov) ((sov)->search_flags & SO_SEARCH_RECURSIVE) |
#define | TSELEM_OPEN(telm, sv) |
Typedefs | |
typedef enum TreeElementInsertType | TreeElementInsertType |
typedef enum TreeTraversalAction | TreeTraversalAction |
typedef TreeTraversalAction(* | TreeTraversalFunc) (struct TreeElement *te, void *customdata) |
typedef struct TreeElement | TreeElement |
typedef struct TreeElementIcon | TreeElementIcon |
typedef struct TreeViewContext | TreeViewContext |
typedef enum TreeItemSelectAction | TreeItemSelectAction |
typedef struct IDsSelectedData | IDsSelectedData |
typedef void(* | outliner_operation_fn) (struct bContext *C, struct ReportList *, struct Scene *scene, struct TreeElement *, struct TreeStoreElem *, TreeStoreElem *, void *) |
Enumerations | |
enum | TreeElementInsertType { TE_INSERT_BEFORE , TE_INSERT_AFTER , TE_INSERT_INTO } |
enum | TreeTraversalAction { TRAVERSE_CONTINUE = 0 , TRAVERSE_BREAK , TRAVERSE_SKIP_CHILDS } |
enum | { TE_ACTIVE = (1 << 0) , TE_ICONROW = (1 << 1) , TE_PRETEND_HAS_CHILDREN = (1 << 2) , TE_FREE_NAME = (1 << 3) , TE_DRAGGING = (1 << 4) , TE_CHILD_NOT_IN_COLLECTION = (1 << 6) , TE_ICONROW_MERGED = (1 << 7) } |
enum | eOLDrawState { OL_DRAWSEL_NONE = 0 , OL_DRAWSEL_NORMAL = 1 , OL_DRAWSEL_ACTIVE = 2 } |
enum | eOLSetState { OL_SETSEL_NONE = 0 , OL_SETSEL_NORMAL = 1 , OL_SETSEL_EXTEND = 2 } |
enum | TreeItemSelectAction { OL_ITEM_DESELECT = 0 , OL_ITEM_SELECT = (1 << 0) , OL_ITEM_SELECT_DATA = (1 << 1) , OL_ITEM_ACTIVATE = (1 << 2) , OL_ITEM_EXTEND = (1 << 3) , OL_ITEM_RECURSIVE = (1 << 4) } |
#define OL_NAMEBUTTON 1 |
Definition at line 169 of file outliner_intern.hh.
Definition at line 195 of file outliner_intern.hh.
Definition at line 196 of file outliner_intern.hh.
Definition at line 194 of file outliner_intern.hh.
#define OL_TOG_USER_BUTS_STATUS (UI_UNIT_X + V2D_SCROLL_WIDTH) |
Definition at line 192 of file outliner_intern.hh.
#define OL_TOG_USER_BUTS_USERS (UI_UNIT_X * 2.0f + V2D_SCROLL_WIDTH) |
Definition at line 191 of file outliner_intern.hh.
#define OL_Y_OFFSET 2 |
Definition at line 189 of file outliner_intern.hh.
#define SEARCHING_OUTLINER | ( | sov | ) | ((sov)->search_flags & SO_SEARCH_RECURSIVE) |
Definition at line 219 of file outliner_intern.hh.
#define SUPPORT_FILTER_OUTLINER | ( | space_outliner_ | ) | (ELEM((space_outliner_)->outlinevis, SO_VIEW_LAYER, SO_OVERRIDES_LIBRARY)) |
Definition at line 200 of file outliner_intern.hh.
#define TREESTORE | ( | a | ) | ((a)->store_elem) |
Definition at line 186 of file outliner_intern.hh.
#define TREESTORE_ID_TYPE | ( | _id | ) |
Definition at line 106 of file outliner_intern.hh.
#define TSELEM_OPEN | ( | telm, | |
sv | |||
) |
Definition at line 222 of file outliner_intern.hh.
typedef struct IDsSelectedData IDsSelectedData |
typedef void(* outliner_operation_fn) (struct bContext *C, struct ReportList *, struct Scene *scene, struct TreeElement *, struct TreeStoreElem *, TreeStoreElem *, void *) |
Definition at line 377 of file outliner_intern.hh.
typedef struct TreeElement TreeElement |
typedef struct TreeElementIcon TreeElementIcon |
typedef enum TreeElementInsertType TreeElementInsertType |
typedef enum TreeItemSelectAction TreeItemSelectAction |
typedef enum TreeTraversalAction TreeTraversalAction |
typedef TreeTraversalAction(* TreeTraversalFunc) (struct TreeElement *te, void *customdata) |
Definition at line 77 of file outliner_intern.hh.
typedef struct TreeViewContext TreeViewContext |
Container to avoid passing around these variables to many functions. Also so we can have one place to assign these variables.
anonymous enum |
Definition at line 151 of file outliner_intern.hh.
enum eOLDrawState |
Enumerator | |
---|---|
OL_DRAWSEL_NONE | |
OL_DRAWSEL_NORMAL | |
OL_DRAWSEL_ACTIVE |
Definition at line 171 of file outliner_intern.hh.
enum eOLSetState |
Enumerator | |
---|---|
OL_SETSEL_NONE | |
OL_SETSEL_NORMAL | |
OL_SETSEL_EXTEND |
Definition at line 177 of file outliner_intern.hh.
Enumerator | |
---|---|
TE_INSERT_BEFORE | |
TE_INSERT_AFTER | |
TE_INSERT_INTO |
Definition at line 62 of file outliner_intern.hh.
enum TreeItemSelectAction |
Enumerator | |
---|---|
OL_ITEM_DESELECT | |
OL_ITEM_SELECT | |
OL_ITEM_SELECT_DATA | |
OL_ITEM_ACTIVATE | |
OL_ITEM_EXTEND | |
OL_ITEM_RECURSIVE |
Definition at line 246 of file outliner_intern.hh.
enum TreeTraversalAction |
Enumerator | |
---|---|
TRAVERSE_CONTINUE | Continue traversal regularly, don't skip children. |
TRAVERSE_BREAK | Stop traversal. |
TRAVERSE_SKIP_CHILDS | Continue traversal, but skip children of traversed element. |
Definition at line 68 of file outliner_intern.hh.
void id_delete_tag_fn | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
struct TreeElement * | te, | ||
struct TreeStoreElem * | tsep, | ||
struct TreeStoreElem * | tselem, | ||
void * | user_data | ||
) |
void id_remap_fn | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
struct TreeElement * | te, | ||
struct TreeStoreElem * | tsep, | ||
struct TreeStoreElem * | tselem, | ||
void * | user_data | ||
) |
void item_rename_fn | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
TreeElement * | te, | ||
struct TreeStoreElem * | tsep, | ||
struct TreeStoreElem * | tselem, | ||
void * | user_data | ||
) |
void lib_reload_fn | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
struct TreeElement * | te, | ||
struct TreeStoreElem * | tsep, | ||
struct TreeStoreElem * | tselem, | ||
void * | user_data | ||
) |
void lib_relocate_fn | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
struct TreeElement * | te, | ||
struct TreeStoreElem * | tsep, | ||
struct TreeStoreElem * | tselem, | ||
void * | user_data | ||
) |
void merged_element_search_menu_invoke | ( | struct bContext * | C, |
TreeElement * | parent_te, | ||
TreeElement * | activate_te | ||
) |
Definition at line 829 of file outliner_tools.cc.
References C, MEM_freeN, merged_element_search_menu(), MergedSearchData::parent_element, MergedSearchData::select_element, and UI_popup_block_invoke().
Referenced by outliner_item_do_activate_from_cursor().
struct TreeElement* outliner_add_collection_recursive | ( | SpaceOutliner * | space_outliner, |
struct Collection * | collection, | ||
TreeElement * | ten | ||
) |
Definition at line 951 of file outliner_tree.cc.
References Collection::children, LISTBASE_FOREACH, outliner_add_collection_init(), outliner_add_collection_objects(), blender::ed::outliner::outliner_add_element(), SpaceOutliner::outlinevis, SO_SCENES, TreeElement::subtree, and TSE_SOME_ID.
Referenced by blender::ed::outliner::TreeElementCollectionBase::expand(), and outliner_add_id_contents().
void outliner_build_tree | ( | struct Main * | mainvar, |
struct Scene * | scene, | ||
struct ViewLayer * | view_layer, | ||
struct SpaceOutliner * | space_outliner, | ||
struct ARegion * | region | ||
) |
Main entry point for building the tree data-structure that the outliner represents.
Definition at line 1667 of file outliner_tree.cc.
References BKE_outliner_treehash_rebuild_from_treestore(), BLI_assert, BLI_assert_msg, blender::ed::outliner::AbstractTreeDisplay::createFromDisplayMode(), ARegion::do_draw, SpaceOutliner::filter, SpaceOutliner::flag, outliner_clear_newid_from_main(), outliner_collections_children_sort(), outliner_filter_tree(), outliner_free_tree(), outliner_restore_scrolling_position(), outliner_sort(), outliner_storage_cleanup(), outliner_store_scrolling_position(), SpaceOutliner::outlinevis, RGN_DRAW_NO_REBUILD, SpaceOutliner::runtime, scene, SpaceOutliner::search_flags, SpaceOutliner::search_string, SO_DATA_API, SO_FILTER_NO_CHILDREN, SO_SEARCH_RECURSIVE, SO_SKIP_SORT_ALPHA, SO_TREESTORE_REBUILD, SpaceOutliner::storeflag, SpaceOutliner::tree, SpaceOutliner_Runtime::tree_display, SpaceOutliner_Runtime::treehash, and SpaceOutliner::treestore.
Referenced by collection_new_exec(), and draw_outliner().
void outliner_cleanup_tree | ( | struct SpaceOutliner * | space_outliner | ) |
Definition at line 192 of file outliner_tree.cc.
References outliner_free_tree(), outliner_storage_cleanup(), and SpaceOutliner::tree.
Referenced by collection_new_exec(), outliner_constraint_operation_exec(), outliner_delete_exec(), outliner_modifier_operation_exec(), outliner_orphans_purge_exec(), and outliner_scene_operation_exec().
void outliner_collection_delete | ( | struct bContext * | C, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct ReportList * | reports, | ||
bool | do_hierarchy | ||
) |
Definition at line 321 of file outliner_collections.cc.
References BKE_collection_delete(), BKE_idtype_get_info_from_id(), BKE_reportf(), BLI_assert, BLI_findindex(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, collection_find_data_to_edit(), COLLECTION_IS_MASTER, Main::collections, CTX_wm_space_outliner(), data, Collection::flag, ID::flag, GS, GSET_ITER, Collection::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_SCE, LIB_EMBEDDED_DATA, LIB_TAG_INDIRECT, LISTBASE_FOREACH, ID::name, NULL, outliner_tree_traverse(), IDTypeInfo::owner_get, Collection::parents, RPT_WARNING, scene, ID::tag, SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_hierarchy_delete_exec(), and outliner_delete_exec().
struct Collection* outliner_collection_from_tree_element | ( | const TreeElement * | te | ) |
Definition at line 66 of file outliner_collections.cc.
References LayerCollection::collection, TreeElement::directdata, ELEM, TreeStoreElem::id, ID_GR, TreeElement::idcode, Scene::master_collection, scene, TREESTORE, TSE_LAYER_COLLECTION, TSE_SCENE_COLLECTION_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_drop_init(), collection_drop_invoke(), collection_duplicate_exec(), collection_find_data_to_edit(), collection_find_selected_to_add(), collection_flag_poll(), do_item_rename(), outliner_color_tag_set_exec(), outliner_draw_hierarchy_lines_recursive(), outliner_draw_restrictbuts(), outliner_drop_insert_collection_find(), outliner_item_drag_drop_invoke(), outliner_restrict_properties_collection_set(), tree_element_get_icon(), and tselem_draw_icon().
void outliner_collection_isolate_flag | ( | struct Scene * | scene, |
struct ViewLayer * | view_layer, | ||
struct LayerCollection * | layer_collection, | ||
struct Collection * | collection, | ||
struct PropertyRNA * | layer_or_collection_prop, | ||
const char * | propname, | ||
bool | value | ||
) |
Definition at line 479 of file outliner_draw.cc.
References BKE_layer_collection_has_layer_collection(), CollectionParent::collection, LayerCollection::collection, COLLECTION_IS_MASTER, ListBase::first, Collection::flag, Collection::id, LayerCollection::layer_collections, ViewLayer::layer_collections, LISTBASE_FOREACH, Scene::master_collection, outliner_collection_is_isolated(), outliner_collection_set_flag_recursive(), outliner_layer_or_collection_pointer_create(), Collection::parents, ptr, RNA_id_pointer_create(), RNA_property_boolean_get_default(), RNA_property_boolean_set(), and scene.
Referenced by collection_isolate_exec(), and outliner_collection_set_flag_recursive_fn().
int outliner_context | ( | const struct bContext * | C, |
const char * | member, | ||
struct bContextDataResult * | result | ||
) |
void outliner_do_object_operation | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
struct SpaceOutliner * | space_outliner, | ||
struct ListBase * | lb, | ||
outliner_operation_fn | operation_fn | ||
) |
Definition at line 1624 of file outliner_tools.cc.
References C, and outliner_do_object_operation_ex().
Referenced by outliner_object_operation_exec().
void outliner_do_object_operation_ex | ( | struct bContext * | C, |
struct ReportList * | reports, | ||
struct Scene * | scene, | ||
struct SpaceOutliner * | space_outliner, | ||
struct ListBase * | lb, | ||
outliner_operation_fn | operation_fn, | ||
void * | user_data, | ||
bool | recurse_selected | ||
) |
recurse_selected | Set to false for operations which are already recursively operating on their children. |
Definition at line 1582 of file outliner_tools.cc.
References C, CTX_data_main(), CTX_wm_window(), TreeStoreElem::flag, ID_OB, ID_SCE, TreeElement::idcode, LISTBASE_FOREACH, outliner_do_object_operation_ex(), outliner_search_back(), TreeElement::subtree, TREESTORE, TSE_SELECTED, TSE_SOME_ID, TSELEM_OPEN, TreeStoreElem::type, user_data, and WM_window_set_active_scene().
Referenced by outliner_do_object_operation(), outliner_do_object_operation_ex(), and outliner_object_operation_exec().
Region drop-box definition.
Definition at line 1577 of file outliner_dragdrop.cc.
References collection_drop_poll(), collection_drop_tooltip(), datastack_drop_poll(), datastack_drop_tooltip(), material_drop_poll(), parent_clear_poll(), parent_drop_poll(), RGN_TYPE_WINDOW, scene_drop_poll(), SPACE_OUTLINER, WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_outliner().
TreeElement* outliner_find_editbone | ( | ListBase * | lb, |
const struct EditBone * | ebone | ||
) |
Referenced by outliner_show_active_get_element().
TreeElement* outliner_find_element_with_flag | ( | const ListBase * | lb, |
short | flag | ||
) |
Find first tree element in tree with matching tree-store flag.
Definition at line 374 of file outliner_utils.cc.
References LISTBASE_FOREACH, outliner_find_element_with_flag(), and TREESTORE.
Referenced by do_outliner_range_select(), find_walk_select_start_element(), get_target_element(), outliner_find_element_with_flag(), and outliner_item_rename_find_active().
TreeElement* outliner_find_id | ( | struct SpaceOutliner * | space_outliner, |
ListBase * | lb, | ||
const struct ID * | id | ||
) |
Find tree-store that refers to given ID.
Referenced by outliner_show_active_get_element(), and parent_drop_set_parents().
TreeElement* outliner_find_item_at_x_in_row | ( | const SpaceOutliner * | space_outliner, |
TreeElement * | parent_te, | ||
float | view_co_x, | ||
bool * | r_is_merged_icon, | ||
bool * | r_is_over_icon | ||
) |
Collapsed items can show their children as click-able icons. This function tries to find such an icon that represents the child item at x-coordinate view_co_x (view-space).
Definition at line 129 of file outliner_utils.cc.
References outliner_find_item_at_x_in_row_recursive(), outliner_item_is_co_over_icon(), TREESTORE, TSE_R_LAYER, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_highlight_update(), and outliner_item_do_activate_from_cursor().
TreeElement* outliner_find_item_at_y | ( | const SpaceOutliner * | space_outliner, |
const ListBase * | tree, | ||
float | view_co_y | ||
) |
Try to find an item under y-coordinate view_co_y (view-space).
Definition at line 62 of file outliner_utils.cc.
References BLI_listbase_is_empty(), LISTBASE_FOREACH, TreeElement::next, outliner_find_item_at_y(), tree, TREESTORE, TSELEM_OPEN, UI_UNIT_Y, and TreeElement::ys.
Referenced by ED_outliner_give_base_under_cursor(), outliner_box_select_invoke(), outliner_drop_insert_find(), outliner_find_first_desired_element_at_y(), outliner_find_item_at_y(), outliner_highlight_update(), outliner_item_do_activate_from_cursor(), outliner_item_drag_element_find(), outliner_item_openclose_invoke(), outliner_item_openclose_modal(), outliner_item_rename_find_hovered(), and outliner_operation().
struct bPoseChannel* outliner_find_parent_bone | ( | TreeElement * | te, |
TreeElement ** | r_bone_te | ||
) |
Definition at line 1134 of file outliner_select.cc.
References TreeElement::directdata, TreeElement::parent, TREESTORE, TSE_POSE_CHANNEL, and TreeStoreElem::type.
Referenced by outliner_item_drag_drop_invoke(), and outliner_set_properties_tab().
TreeElement* outliner_find_parent_element | ( | ListBase * | lb, |
TreeElement * | parent_te, | ||
const TreeElement * | child_te | ||
) |
Find parent element of te.
Definition at line 164 of file outliner_utils.cc.
References LISTBASE_FOREACH, and outliner_find_parent_element().
Referenced by collection_drop_invoke(), and outliner_find_parent_element().
TreeElement* outliner_find_posechannel | ( | ListBase * | lb, |
const struct bPoseChannel * | pchan | ||
) |
Referenced by outliner_show_active_get_element().
TreeTraversalAction outliner_find_selected_collections | ( | struct TreeElement * | te, |
void * | customdata | ||
) |
Definition at line 89 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, GS, TreeStoreElem::id, ID_GR, ID::name, outliner_is_collection_tree_element(), TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_color_tag_set_exec(), and outliner_item_drag_drop_invoke().
TreeTraversalAction outliner_find_selected_objects | ( | struct TreeElement * | te, |
void * | customdata | ||
) |
Definition at line 106 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, GS, TreeStoreElem::id, ID_OB, ID::name, outliner_is_collection_tree_element(), TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by ED_outliner_selected_objects_get(), and outliner_item_drag_drop_invoke().
TreeElement* outliner_find_tree_element | ( | ListBase * | lb, |
const TreeStoreElem * | store_elem | ||
) |
Find specific item from the trees-tore.
Definition at line 150 of file outliner_utils.cc.
References LISTBASE_FOREACH, and outliner_find_tree_element().
Referenced by datastack_drop_reorder(), namebutton_fn(), outliner_find_tree_element(), outliner_find_tse(), outliner_mode_toggle_fn(), and outliner_restore_scrolling_position().
TreeElement* outliner_find_tse | ( | struct SpaceOutliner * | space_outliner, |
const TreeStoreElem * | tse | ||
) |
tse
is not in the tree-store, we use its contents to find a match.
Definition at line 181 of file outliner_utils.cc.
References BKE_outliner_treehash_lookup_any(), TreeStoreElem::id, TreeStoreElem::nr, outliner_find_tree_element(), SpaceOutliner::runtime, SpaceOutliner::tree, SpaceOutliner_Runtime::treehash, and TreeStoreElem::type.
Definition at line 1121 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all(), TreeStoreElem::flag, and TREESTORE.
bool outliner_flag_flip | ( | const SpaceOutliner & | space_outliner, |
short | flag | ||
) |
Definition at line 1116 of file outliner_edit.cc.
References SpaceOutliner::tree.
Referenced by outliner_select_all_exec().
int outliner_flag_is_any_test | ( | ListBase * | lb, |
short | flag, | ||
int | curlevel | ||
) |
Definition at line 1073 of file outliner_edit.cc.
References TreeStoreElem::flag, LISTBASE_FOREACH, TreeElement::subtree, and TREESTORE.
Referenced by outliner_item_openclose_invoke(), outliner_one_level_exec(), outliner_select_all_exec(), and outliner_toggle_expanded_exec().
Definition at line 1094 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all(), TreeStoreElem::flag, and TREESTORE.
bool outliner_flag_set | ( | const SpaceOutliner & | space_outliner, |
short | flag, | ||
short | set | ||
) |
Set or unset flag for all outliner elements in lb and sub-trees.
Definition at line 1089 of file outliner_edit.cc.
References SpaceOutliner::tree.
Referenced by collection_drop_poll(), datastack_drop_poll(), do_outliner_range_select(), outliner_box_select_exec(), outliner_deactivate(), outliner_highlight_update(), outliner_item_do_activate_from_cursor(), outliner_item_drag_drop_invoke(), outliner_item_openclose(), outliner_item_select(), outliner_select_all_exec(), outliner_toggle_expanded_exec(), and parent_drop_poll().
Definition at line 185 of file outliner_tree.cc.
References element, LISTBASE_FOREACH_MUTABLE, outliner_free_tree_element(), and tree.
Referenced by outliner_build_tree(), outliner_cleanup_tree(), outliner_free(), and outliner_free_tree_element().
void outliner_free_tree_element | ( | TreeElement * | element, |
ListBase * | parent_subtree | ||
) |
Free element and its sub-tree and remove its link in parent_subtree.
parent_subtree | Sub-tree of the parent element, so the list containing element. |
Definition at line 198 of file outliner_tree.cc.
References BLI_assert, BLI_findindex(), BLI_remlink(), element, MEM_freeN, outliner_free_tree(), and TE_FREE_NAME.
Referenced by blender::ed::outliner::TreeDisplayOverrideLibraryHierarchies::buildTree(), outliner_extract_children_from_subtree(), outliner_filter_subtree(), and outliner_free_tree().
bool outliner_has_element_warnings | ( | const SpaceOutliner & | space_outliner | ) |
Iterate over the entire tree (including collapsed sub-elements), probing if any of the elements has a warning to be displayed.
Definition at line 29 of file outliner_query.cc.
References bool, LISTBASE_FOREACH, and SpaceOutliner::tree.
Referenced by draw_outliner().
bool outliner_is_co_within_mode_column | ( | SpaceOutliner * | space_outliner, |
const float | view_mval[2] | ||
) |
Definition at line 1561 of file outliner_select.cc.
References outliner_shows_mode_column(), and UI_UNIT_X.
Referenced by outliner_is_co_within_active_mode_column(), and outliner_item_drag_drop_invoke().
bool outliner_is_collection_tree_element | ( | const TreeElement * | te | ) |
Definition at line 45 of file outliner_collections.cc.
References ELEM, ID_GR, TreeElement::idcode, TREESTORE, TSE_LAYER_COLLECTION, TSE_SCENE_COLLECTION_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_drop_tooltip(), do_item_rename(), is_collection_element(), outliner_draw_restrictbuts(), outliner_element_is_collection_or_object(), outliner_find_objects_to_delete(), outliner_find_selected_collections(), outliner_find_selected_objects(), outliner_item_drag_drop_invoke(), test_collection_callback(), and tselem_draw_icon().
bool outliner_is_element_in_view | ( | const TreeElement * | te, |
const struct View2D * | v2d | ||
) |
Check if the element is displayed within the view bounds. Doesn't check if all parents are open/uncollapsed.
Referenced by outliner_draw_overrides_restrictbuts(), outliner_draw_overrides_rna_buts(), outliner_draw_rnabuts(), and outliner_draw_userbuts().
bool outliner_is_element_visible | ( | const TreeElement * | te | ) |
Find if element is visible in the outliner tree, i.e. if all of its parents are expanded. Doesn't check if the item is in view-bounds, for that use outliner_is_element_in_view().
Definition at line 388 of file outliner_utils.cc.
References TreeStoreElem::flag, TreeElement::parent, TREESTORE, and TSE_CLOSED.
Referenced by do_outliner_range_select(), and find_walk_select_start_element().
bool outliner_item_is_co_over_icon | ( | const TreeElement * | te, |
float | view_co_x | ||
) |
Definition at line 419 of file outliner_utils.cc.
References UI_UNIT_X, and TreeElement::xs.
Referenced by outliner_find_item_at_x_in_row().
bool outliner_item_is_co_over_name | ( | const TreeElement * | te, |
float | view_co_x | ||
) |
Find if x coordinate is over element name.
Definition at line 424 of file outliner_utils.cc.
References UI_UNIT_X, TreeElement::xend, and TreeElement::xs.
Referenced by outliner_item_rename_find_hovered().
bool outliner_item_is_co_over_name_icons | ( | const TreeElement * | te, |
float | view_co_x | ||
) |
Find if x coordinate is over an icon or name.
Definition at line 409 of file outliner_utils.cc.
References TREESTORE, TSE_VIEW_COLLECTION_BASE, UI_UNIT_X, TreeElement::xend, and TreeElement::xs.
Referenced by outliner_box_select_invoke(), and outliner_item_do_activate_from_cursor().
bool outliner_item_is_co_within_close_toggle | ( | const TreeElement * | te, |
float | view_co_x | ||
) |
Find if x coordinate is over element disclosure toggle.
Definition at line 429 of file outliner_utils.cc.
References UI_UNIT_X, and TreeElement::xs.
Referenced by outliner_item_do_activate_from_cursor(), outliner_item_drag_drop_invoke(), and outliner_item_openclose_invoke().
void outliner_item_mode_toggle | ( | struct bContext * | C, |
TreeViewContext * | tvc, | ||
TreeElement * | te, | ||
bool | do_extend | ||
) |
Toggle the item's interaction mode if supported.
Definition at line 182 of file outliner_select.cc.
References BASE_VISIBLE_DEPSGRAPH, BKE_view_layer_base_find(), C, do_outliner_item_editmode_toggle(), do_outliner_item_mode_toggle_generic(), do_outliner_item_posemode_toggle(), TreeStoreElem::id, ID_OB, TreeElement::idcode, Object::mode, OB_ARMATURE, TreeViewContext::ob_edit, TreeViewContext::ob_pose, OB_TYPE_SUPPORT_EDITMODE, TreeViewContext::obact, TreeViewContext::scene, TREESTORE, TSE_SOME_ID, Object::type, TreeStoreElem::type, and TreeViewContext::view_layer.
Referenced by outliner_mode_toggle_fn().
void outliner_item_openclose | ( | TreeElement * | te, |
bool | open, | ||
bool | toggle_all | ||
) |
Open or close a tree element, optionally toggling all children recursively.
Definition at line 147 of file outliner_edit.cc.
References BLI_listbase_is_empty(), TreeElement::flag, TreeStoreElem::flag, outliner_flag_set(), TreeElement::subtree, TE_PRETEND_HAS_CHILDREN, TREESTORE, TSE_CLOSED, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_item_openclose_invoke(), outliner_item_openclose_modal(), outliner_walk_left(), and outliner_walk_right().
void outliner_item_select | ( | struct bContext * | C, |
struct SpaceOutliner * | space_outliner, | ||
struct TreeElement * | te, | ||
short | select_flag | ||
) |
Select the item using the set flags.
Definition at line 1449 of file outliner_select.cc.
References activate(), C, do_outliner_item_activate_tree_element(), TreeStoreElem::flag, SpaceOutliner::flag, OL_ITEM_ACTIVATE, OL_ITEM_EXTEND, OL_ITEM_RECURSIVE, OL_ITEM_SELECT, OL_ITEM_SELECT_DATA, outliner_flag_set(), outliner_viewcontext_init(), SO_SYNC_SELECT, TREESTORE, TSE_ACTIVE, and TSE_SELECTED.
Referenced by do_outliner_operation_event(), do_outliner_range_select(), merged_element_search_exec_fn(), object_select_hierarchy_fn(), outliner_item_do_activate_from_cursor(), and outliner_walk_select_invoke().
void outliner_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 100 of file outliner_ops.cc.
References SPACE_OUTLINER, and WM_keymap_ensure().
Referenced by ED_spacetype_outliner().
Definition at line 18 of file outliner_ops.cc.
References OUTLINER_OT_action_set(), OUTLINER_OT_animdata_operation(), OUTLINER_OT_collection_color_tag_set(), OUTLINER_OT_collection_disable(), OUTLINER_OT_collection_disable_render(), OUTLINER_OT_collection_drop(), OUTLINER_OT_collection_duplicate(), OUTLINER_OT_collection_duplicate_linked(), OUTLINER_OT_collection_enable(), OUTLINER_OT_collection_enable_render(), OUTLINER_OT_collection_exclude_clear(), OUTLINER_OT_collection_exclude_set(), OUTLINER_OT_collection_hide(), OUTLINER_OT_collection_hide_inside(), OUTLINER_OT_collection_hierarchy_delete(), OUTLINER_OT_collection_holdout_clear(), OUTLINER_OT_collection_holdout_set(), OUTLINER_OT_collection_indirect_only_clear(), OUTLINER_OT_collection_indirect_only_set(), OUTLINER_OT_collection_instance(), OUTLINER_OT_collection_isolate(), OUTLINER_OT_collection_link(), OUTLINER_OT_collection_new(), OUTLINER_OT_collection_objects_deselect(), OUTLINER_OT_collection_objects_select(), OUTLINER_OT_collection_show(), OUTLINER_OT_collection_show_inside(), OUTLINER_OT_constraint_operation(), OUTLINER_OT_data_operation(), OUTLINER_OT_datastack_drop(), OUTLINER_OT_delete(), OUTLINER_OT_drivers_add_selected(), OUTLINER_OT_drivers_delete_selected(), OUTLINER_OT_expanded_toggle(), OUTLINER_OT_hide(), OUTLINER_OT_highlight_update(), OUTLINER_OT_id_copy(), OUTLINER_OT_id_delete(), OUTLINER_OT_id_operation(), OUTLINER_OT_id_paste(), OUTLINER_OT_id_remap(), OUTLINER_OT_item_activate(), OUTLINER_OT_item_drag_drop(), OUTLINER_OT_item_openclose(), OUTLINER_OT_item_rename(), OUTLINER_OT_keyingset_add_selected(), OUTLINER_OT_keyingset_remove_selected(), OUTLINER_OT_lib_operation(), OUTLINER_OT_lib_relocate(), OUTLINER_OT_liboverride_operation(), OUTLINER_OT_liboverride_troubleshoot_operation(), OUTLINER_OT_material_drop(), OUTLINER_OT_modifier_operation(), OUTLINER_OT_object_operation(), OUTLINER_OT_operation(), OUTLINER_OT_orphans_purge(), OUTLINER_OT_parent_clear(), OUTLINER_OT_parent_drop(), OUTLINER_OT_scene_drop(), OUTLINER_OT_scene_operation(), OUTLINER_OT_scroll_page(), OUTLINER_OT_select_all(), OUTLINER_OT_select_box(), OUTLINER_OT_select_walk(), OUTLINER_OT_show_active(), OUTLINER_OT_show_hierarchy(), OUTLINER_OT_show_one_level(), OUTLINER_OT_unhide_all(), and WM_operatortype_append().
Referenced by ED_spacetype_outliner().
void OUTLINER_OT_action_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 3027 of file outliner_tools.cc.
References wmOperatorType::description, DummyRNA_NULL_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_action_set_exec(), outliner_operation_tree_element_poll(), wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_action_itemf(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_enum_search_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_animdata_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 3149 of file outliner_tools.cc.
References ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_animdata_operation_exec(), wmOperatorType::poll, wmOperatorType::prop, prop_animdata_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_color_tag_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 1621 of file outliner_collections.cc.
References COLLECTION_COLOR_NONE, wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_color_tag_set_exec(), wmOperatorType::poll, RNA_def_enum(), rna_enum_collection_color_items, and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_disable | ( | struct wmOperatorType * | ot | ) |
Definition at line 1393 of file outliner_collections.cc.
References collection_disable_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_disable_render | ( | struct wmOperatorType * | ot | ) |
Definition at line 1423 of file outliner_collections.cc.
References collection_disable_render_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_drop | ( | struct wmOperatorType * | ot | ) |
Definition at line 1372 of file outliner_dragdrop.cc.
References collection_drop_invoke(), wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_duplicate | ( | struct wmOperatorType * | ot | ) |
Definition at line 652 of file outliner_collections.cc.
References collection_duplicate_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_duplicate_linked | ( | struct wmOperatorType * | ot | ) |
Definition at line 635 of file outliner_collections.cc.
References collection_duplicate_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_enable | ( | struct wmOperatorType * | ot | ) |
Definition at line 1378 of file outliner_collections.cc.
References collection_enable_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_enable_render | ( | struct wmOperatorType * | ot | ) |
Definition at line 1408 of file outliner_collections.cc.
References collection_enable_render_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_exclude_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 967 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_exclude_clear_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_exclude_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 952 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_exclude_set_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_hide | ( | struct wmOperatorType * | ot | ) |
Definition at line 1199 of file outliner_collections.cc.
References collection_hide_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_hide_inside | ( | struct wmOperatorType * | ot | ) |
Definition at line 1229 of file outliner_collections.cc.
References collection_inside_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_hierarchy_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 418 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_hierarchy_delete_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_holdout_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 997 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_holdout_clear_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_holdout_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 982 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_holdout_set_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_indirect_only_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 1029 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_indirect_only_clear_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_indirect_only_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 1012 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_indirect_only_set_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_instance | ( | struct wmOperatorType * | ot | ) |
Definition at line 794 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_instance_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_isolate | ( | struct wmOperatorType * | ot | ) |
Definition at line 1109 of file outliner_collections.cc.
References collection_isolate_exec(), collection_isolate_invoke(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_link | ( | struct wmOperatorType * | ot | ) |
Definition at line 720 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_link_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_new | ( | struct wmOperatorType * | ot | ) |
Definition at line 249 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_new_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_objects_deselect | ( | struct wmOperatorType * | ot | ) |
Definition at line 513 of file outliner_collections.cc.
References collection_objects_select_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_objects_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 498 of file outliner_collections.cc.
References collection_objects_select_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_show | ( | struct wmOperatorType * | ot | ) |
Definition at line 1184 of file outliner_collections.cc.
References collection_show_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_show_inside | ( | struct wmOperatorType * | ot | ) |
Definition at line 1214 of file outliner_collections.cc.
References collection_inside_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_constraint_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 3194 of file outliner_tools.cc.
References ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_constraint_operation_exec(), wmOperatorType::poll, wmOperatorType::prop, prop_constraint_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_data_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 3363 of file outliner_tools.cc.
References DummyRNA_DEFAULT_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_data_op_sets_enum_item_fn(), outliner_data_operation_exec(), outliner_operation_tree_element_poll(), wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_datastack_drop | ( | struct wmOperatorType * | ot | ) |
Definition at line 1079 of file outliner_dragdrop.cc.
References datastack_drop_invoke(), wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 2512 of file outliner_tools.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_delete_exec(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_drivers_add_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 1968 of file outliner_edit.cc.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_drivers_addsel_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_drivers_delete_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 2007 of file outliner_edit.cc.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_drivers_deletesel_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_expanded_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 1156 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, outliner_toggle_expanded_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_hide | ( | struct wmOperatorType * | ot | ) |
Definition at line 1524 of file outliner_collections.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_hide_exec(), outliner_view_layer_collections_editor_poll(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_highlight_update | ( | struct wmOperatorType * | ot | ) |
Definition at line 130 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_highlight_update(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_id_copy | ( | struct wmOperatorType * | ot | ) |
Definition at line 817 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, outliner_id_copy_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_id_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 572 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_id_delete_invoke(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_id_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 2819 of file outliner_tools.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_id_operation_exec(), outliner_id_operation_itemf(), outliner_operation_tree_element_poll(), wmOperatorType::poll, wmOperatorType::prop, prop_id_op_types, RNA_def_enum(), RNA_def_enum_funcs(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_id_paste | ( | struct wmOperatorType * | ot | ) |
Definition at line 858 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_id_paste_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_id_remap | ( | struct wmOperatorType * | ot | ) |
Definition at line 707 of file outliner_edit.cc.
References BLT_I18NCONTEXT_ID_ID, DummyRNA_NULL_items, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, ID_OB, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_id_itemf(), outliner_id_remap_exec(), outliner_id_remap_invoke(), wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_enum_funcs_runtime(), RNA_def_property_flag(), RNA_def_property_translation_context(), rna_enum_id_type_items, and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_item_activate | ( | struct wmOperatorType * | ot | ) |
Definition at line 1687 of file outliner_select.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_item_activate_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_item_drag_drop | ( | struct wmOperatorType * | ot | ) |
Definition at line 1559 of file outliner_dragdrop.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_item_drag_drop_invoke(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_item_openclose | ( | struct wmOperatorType * | ot | ) |
Definition at line 265 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, outliner_item_openclose_invoke(), outliner_item_openclose_modal(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_item_rename | ( | struct wmOperatorType * | ot | ) |
Definition at line 421 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_item_rename(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_keyingset_add_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 2156 of file outliner_edit.cc.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_keyingset_additems_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_keyingset_remove_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 2197 of file outliner_edit.cc.
References wmOperatorType::description, ed_operator_outliner_datablocks_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_keyingset_removeitems_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_lib_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 2919 of file outliner_tools.cc.
References wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_lib_op_type_items, outliner_lib_operation_exec(), outliner_operation_tree_element_poll(), wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_lib_reload | ( | struct wmOperatorType * | ot | ) |
Definition at line 1028 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_lib_reload_invoke(), and wmOperatorType::poll.
void OUTLINER_OT_lib_relocate | ( | struct wmOperatorType * | ot | ) |
Definition at line 971 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_lib_relocate_invoke(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_liboverride_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 1884 of file outliner_tools.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_liboverride_operation_exec(), outliner_liboverride_operation_poll(), wmOperatorType::poll, wmOperatorType::prop, prop_lib_op_selection_set, prop_liboverride_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_liboverride_troubleshoot_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 1907 of file outliner_tools.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_liboverride_operation_exec(), outliner_liboverride_operation_poll(), wmOperatorType::poll, wmOperatorType::prop, prop_lib_op_selection_set, prop_liboverride_troubleshoot_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_material_drop | ( | struct wmOperatorType * | ot | ) |
Definition at line 648 of file outliner_dragdrop.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, material_drop_invoke(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_modifier_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 3240 of file outliner_tools.cc.
References ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_modifier_operation_exec(), wmOperatorType::poll, wmOperatorType::prop, prop_modifier_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_object_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 2358 of file outliner_tools.cc.
References ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_object_operation_exec(), wmOperatorType::poll, wmOperatorType::prop, prop_object_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 3518 of file outliner_tools.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_operation(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_orphans_purge | ( | struct wmOperatorType * | ot | ) |
Definition at line 2318 of file outliner_edit.cc.
References wmOperatorType::description, ed_operator_outliner_id_orphans_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_orphans_purge_exec(), outliner_orphans_purge_invoke(), wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_parent_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 526 of file outliner_dragdrop.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, parent_clear_invoke(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_parent_drop | ( | struct wmOperatorType * | ot | ) |
Definition at line 438 of file outliner_dragdrop.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, parent_drop_invoke(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_scene_drop | ( | struct wmOperatorType * | ot | ) |
Definition at line 595 of file outliner_dragdrop.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and scene_drop_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_scene_operation | ( | struct wmOperatorType * | ot | ) |
Definition at line 688 of file outliner_tools.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, outliner_scene_operation_exec(), wmOperatorType::poll, wmOperatorType::prop, prop_scene_op_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by outliner_operatortypes().
void OUTLINER_OT_scroll_page | ( | struct wmOperatorType * | ot | ) |
Definition at line 1389 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, outliner_scroll_page_exec(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 1208 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, outliner_select_all_exec(), wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by outliner_operatortypes().
void OUTLINER_OT_select_box | ( | struct wmOperatorType * | ot | ) |
Definition at line 1786 of file outliner_select.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_box_select_exec(), outliner_box_select_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by outliner_operatortypes().
void OUTLINER_OT_select_walk | ( | struct wmOperatorType * | ot | ) |
Definition at line 2021 of file outliner_select.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_walk_select_invoke(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_select_walk_direction().
Referenced by outliner_operatortypes().
void OUTLINER_OT_show_active | ( | struct wmOperatorType * | ot | ) |
Definition at line 1351 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, outliner_show_active_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_show_hierarchy | ( | struct wmOperatorType * | ot | ) |
Definition at line 1678 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, outliner_show_hierarchy_exec(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_show_one_level | ( | struct wmOperatorType * | ot | ) |
Definition at line 1584 of file outliner_edit.cc.
References wmOperatorType::description, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, outliner_one_level_exec(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_unhide_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 1563 of file outliner_collections.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_unhide_all_exec(), outliner_view_layer_collections_editor_poll(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
bool outliner_requires_rebuild_on_select_or_active_change | ( | const struct SpaceOutliner * | space_outliner | ) |
Referenced by outliner_main_region_listener().
float outliner_right_columns_width | ( | const struct SpaceOutliner * | space_outliner | ) |
Referenced by draw_outliner(), outliner_draw_restrictbuts(), and outliner_is_co_within_restrict_columns().
void outliner_scroll_view | ( | struct SpaceOutliner * | space_outliner, |
struct ARegion * | region, | ||
int | delta_y | ||
) |
Scroll view vertically while keeping within total bounds.
Definition at line 434 of file outliner_utils.cc.
References View2D::cur, MIN2, offset, outliner_tree_dimensions(), UI_UNIT_Y, ARegion::v2d, rctf::ymax, and rctf::ymin.
Referenced by outliner_item_rename(), outliner_scroll_page_exec(), outliner_show_active_exec(), and outliner_walk_scroll().
struct ID* outliner_search_back | ( | TreeElement * | te, |
short | idcode | ||
) |
Definition at line 268 of file outliner_utils.cc.
References TreeStoreElem::id, outliner_search_back_te(), and TREESTORE.
Referenced by constraint_fn(), modifier_fn(), outliner_do_object_operation_ex(), parent_drop_allowed(), parent_drop_set_parents(), tree_element_active_camera_get(), tree_element_active_material_get(), tree_element_camera_activate(), tree_element_material_activate(), and tree_element_object_activate().
TreeElement* outliner_search_back_te | ( | TreeElement * | te, |
short | idcode | ||
) |
Definition at line 253 of file outliner_utils.cc.
References TreeElement::idcode, TreeElement::parent, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_search_back(), and tree_element_object_activate().
void outliner_set_coordinates | ( | const struct ARegion * | region, |
const struct SpaceOutliner * | space_outliner | ||
) |
To retrieve coordinates with redrawing the entire tree.
bool outliner_shows_mode_column | ( | const SpaceOutliner & | space_outliner | ) |
Definition at line 18 of file outliner_query.cc.
References SpaceOutliner::flag, SpaceOutliner::runtime, SO_MODE_COLUMN, blender::ed::outliner::AbstractTreeDisplay::supportsModeColumn(), and SpaceOutliner_Runtime::tree_display.
Referenced by draw_outliner(), and outliner_is_co_within_mode_column().
void outliner_sync_selection | ( | const struct bContext * | C, |
struct SpaceOutliner * | space_outliner | ||
) |
If outliner is dirty sync selection from view layer and sequencer.
Referenced by draw_outliner().
void outliner_tag_redraw_avoid_rebuild_on_open_change | ( | const struct SpaceOutliner * | space_outliner, |
struct ARegion * | region | ||
) |
The outliner should generally use ED_region_tag_redraw_no_rebuild() to avoid unnecessary tree rebuilds. If elements are open or closed, we may still have to rebuild. Upon changing the open/closed state, call this to avoid rebuilds if possible.
Referenced by outliner_item_openclose_invoke(), outliner_item_openclose_modal(), and outliner_walk_select_invoke().
void outliner_tree_dimensions | ( | struct SpaceOutliner * | space_outliner, |
int * | r_width, | ||
int * | r_height | ||
) |
Definition at line 105 of file outliner_draw.cc.
References outliner_tree_dimensions_impl(), and SpaceOutliner::tree.
Referenced by draw_outliner(), and outliner_scroll_view().
bool outliner_tree_traverse | ( | const SpaceOutliner * | space_outliner, |
ListBase * | tree, | ||
int | filter_te_flag, | ||
int | filter_tselem_flag, | ||
TreeTraversalFunc | func, | ||
void * | customdata | ||
) |
Iterate over all tree elements (pre-order traversal), executing func callback for each tree element matching the optional filters.
filter_te_flag | If not 0, only TreeElements with this flag will be visited. |
filter_tselem_flag | Same as filter_te_flag, but for the TreeStoreElem. |
func | Custom callback to execute for each visited item. |
Definition at line 281 of file outliner_utils.cc.
References TreeStoreElem::flag, outliner_tree_traverse(), TRAVERSE_BREAK, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, tree, and TREESTORE.
Referenced by collection_flag_exec(), collection_instance_exec(), collection_isolate_exec(), collection_link_exec(), collection_new_exec(), collection_view_layer_exec(), collection_visibility_exec(), collections_view_layer_poll(), ED_outliner_selected_objects_get(), outliner_active_collection(), outliner_active_layer_collection(), outliner_collection_delete(), outliner_color_tag_set_exec(), outliner_delete_exec(), outliner_hide_exec(), outliner_item_drag_drop_invoke(), and outliner_tree_traverse().
void outliner_viewcontext_init | ( | const struct bContext * | C, |
TreeViewContext * | tvc | ||
) |
void tree_element_activate | ( | struct bContext * | C, |
const TreeViewContext * | tvc, | ||
TreeElement * | te, | ||
eOLSetState | set, | ||
bool | handle_all_types | ||
) |
Generic call for ID data check or make/check active in UI.
Definition at line 753 of file outliner_select.cc.
References C, ID_CA, ID_MA, ID_OB, ID_TXT, ID_WO, TreeElement::idcode, TreeViewContext::scene, tree_element_camera_activate(), tree_element_material_activate(), tree_element_object_activate(), tree_element_text_activate(), tree_element_world_activate(), and TreeViewContext::view_layer.
Referenced by do_outliner_item_activate_tree_element(), and namebutton_fn().
eOLDrawState tree_element_active_state_get | ( | const TreeViewContext * | tvc, |
const TreeElement * | te, | ||
const TreeStoreElem * | tselem | ||
) |
Definition at line 1070 of file outliner_select.cc.
References ID_CA, ID_MA, ID_OB, ID_SCE, ID_WO, TreeElement::idcode, OL_DRAWSEL_NONE, TreeViewContext::scene, tree_element_active_camera_get(), tree_element_active_material_get(), tree_element_active_scene_get(), tree_element_active_world_get(), and TreeViewContext::view_layer.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
TreeElementIcon tree_element_get_icon | ( | TreeStoreElem * | tselem, |
TreeElement * | te | ||
) |
Definition at line 2496 of file outliner_draw.cc.
References TreeElement::abstract_element, BKE_modifier_get_info(), BLI_findlink(), COLLECTION_IS_MASTER, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_ARMATURE, CONSTRAINT_TYPE_CAMERASOLVER, CONSTRAINT_TYPE_CHILDOF, CONSTRAINT_TYPE_CLAMPTO, CONSTRAINT_TYPE_DAMPTRACK, CONSTRAINT_TYPE_DISTLIMIT, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCKTRACK, CONSTRAINT_TYPE_LOCLIKE, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_MINMAX, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_PIVOT, CONSTRAINT_TYPE_ROTLIKE, CONSTRAINT_TYPE_ROTLIMIT, CONSTRAINT_TYPE_SAMEVOL, CONSTRAINT_TYPE_SHRINKWRAP, CONSTRAINT_TYPE_SIZELIKE, CONSTRAINT_TYPE_SIZELIMIT, CONSTRAINT_TYPE_SPLINEIK, CONSTRAINT_TYPE_STRETCHTO, CONSTRAINT_TYPE_TRACKTO, CONSTRAINT_TYPE_TRANSFORM, CONSTRAINT_TYPE_TRANSFORM_CACHE, CONSTRAINT_TYPE_TRANSLIKE, data, PointerRNA::data, TreeElement::directdata, eGpencilModifierType_Armature, eGpencilModifierType_Array, eGpencilModifierType_Build, eGpencilModifierType_Color, eGpencilModifierType_Hook, eGpencilModifierType_Lattice, eGpencilModifierType_Mirror, eGpencilModifierType_Multiply, eGpencilModifierType_Noise, eGpencilModifierType_Offset, eGpencilModifierType_Opacity, eGpencilModifierType_Shrinkwrap, eGpencilModifierType_Simplify, eGpencilModifierType_Smooth, eGpencilModifierType_Subdiv, eGpencilModifierType_Texture, eGpencilModifierType_Thick, eGpencilModifierType_Time, eGpencilModifierType_Tint, eGpencilModifierType_WeightAngle, eGpencilModifierType_WeightProximity, Collection::flag, blender::ed::outliner::TreeElementRNACommon::getPointerRNA(), Object::greasepencil_modifiers, ModifierTypeInfo::icon, blender::ed::outliner::TreeElementOverridesBase::id, TreeStoreElem::id, TreeElement::idcode, if(), Object::modifiers, TreeStoreElem::nr, OB_GPENCIL, outliner_collection_from_tree_element(), TreeElement::parent, ptr, RNA_struct_is_ID(), RNA_struct_ui_icon(), SEQ_TYPE_ADD, SEQ_TYPE_ADJUSTMENT, SEQ_TYPE_ALPHAOVER, SEQ_TYPE_ALPHAUNDER, SEQ_TYPE_COLOR, SEQ_TYPE_COLORMIX, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_GAUSSIAN_BLUR, SEQ_TYPE_GLOW, SEQ_TYPE_IMAGE, SEQ_TYPE_MASK, SEQ_TYPE_META, SEQ_TYPE_MOVIE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_MUL, SEQ_TYPE_MULTICAM, SEQ_TYPE_OVERDROP, SEQ_TYPE_SCENE, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SPEED, SEQ_TYPE_SUB, SEQ_TYPE_TEXT, SEQ_TYPE_TRANSFORM, SEQ_TYPE_WIPE, tree_element_get_icon_from_id(), TREESTORE, TSE_ANIM_DATA, TSE_BONE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_DEFGROUP_BASE, TSE_DRIVER_BASE, TSE_EBONE, TSE_GP_LAYER, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_LAYER_COLLECTION, TSE_LIBRARY_OVERRIDE, TSE_LIBRARY_OVERRIDE_BASE, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_NLA, TSE_NLA_ACTION, TSE_NLA_TRACK, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_POSEGRP_BASE, TSE_R_LAYER, TSE_R_LAYER_BASE, TSE_RNA_STRUCT, TSE_SCENE_COLLECTION_BASE, TSE_SCENE_OBJECTS_BASE, TSE_SEQ_STRIP, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, bConstraint::type, GpencilModifierData::type, ModifierData::type, Object::type, TreeStoreElem::type, and PointerRNA::type.
Referenced by merged_element_search_fn_recursive(), outliner_item_drag_drop_invoke(), and tselem_draw_icon().
int tree_element_id_type_to_index | ( | TreeElement * | te | ) |
Return the index to use based on the TreeElement ID and object type
We use a continuum of indices until we get to the object data-blocks and we then make room for the object types.
Definition at line 3069 of file outliner_draw.cc.
References BKE_idtype_idcode_to_index(), TreeStoreElem::id, TreeElement::idcode, INDEX_ID_GR, INDEX_ID_OB, OB_TYPE_MAX, TREESTORE, TSE_SOME_ID, Object::type, and TreeStoreElem::type.
Referenced by merged_element_search_fn_recursive(), merged_element_search_update_fn(), and outliner_draw_iconrow().
void tree_element_type_active_set | ( | struct bContext * | C, |
const TreeViewContext * | tvc, | ||
TreeElement * | te, | ||
TreeStoreElem * | tselem, | ||
eOLSetState | set, | ||
bool | recursive | ||
) |
Generic call for non-id data to make active in UI
Definition at line 783 of file outliner_select.cc.
References BLI_assert, C, OL_SETSEL_NONE, TreeViewContext::scene, tree_element_bone_activate(), tree_element_constraint_activate(), tree_element_defgroup_activate(), tree_element_ebone_activate(), tree_element_gplayer_activate(), tree_element_layer_collection_activate(), tree_element_master_collection_activate(), tree_element_modifier_activate(), tree_element_object_activate(), tree_element_posechannel_activate(), tree_element_posegroup_activate(), tree_element_psys_activate(), tree_element_sequence_activate(), tree_element_sequence_dup_activate(), tree_element_viewlayer_activate(), TSE_BONE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_LAYER_COLLECTION, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_R_LAYER, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_VIEW_COLLECTION_BASE, TreeStoreElem::type, and TreeViewContext::view_layer.
Referenced by do_outliner_item_activate_tree_element().
eOLDrawState tree_element_type_active_state_get | ( | const struct bContext * | C, |
const struct TreeViewContext * | tvc, | ||
const TreeElement * | te, | ||
const TreeStoreElem * | tselem | ||
) |
Generic call for non-id data to check the active state in UI.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().