|
Blender
V2.93
|
#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_anim_types.h"#include "DNA_collection_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_blenlib.h"#include "BLI_dynstr.h"#include "BLI_path_util.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_animsys.h"#include "BKE_appdir.h"#include "BKE_armature.h"#include "BKE_blender_copybuffer.h"#include "BKE_context.h"#include "BKE_idtype.h"#include "BKE_lib_id.h"#include "BKE_lib_query.h"#include "BKE_lib_remap.h"#include "BKE_main.h"#include "BKE_report.h"#include "BKE_workspace.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "ED_keyframing.h"#include "ED_outliner.h"#include "ED_screen.h"#include "ED_select_utils.h"#include "WM_api.h"#include "WM_types.h"#include "UI_interface.h"#include "UI_view2d.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "GPU_material.h"#include "outliner_intern.h"Go to the source code of this file.
Classes | |
| struct | OpenCloseData |
Driver Internal Utilities | |
| enum | { DRIVERS_EDITMODE_ADD = 0 , DRIVERS_EDITMODE_REMOVE } |
| static void | do_outliner_drivers_editop (SpaceOutliner *space_outliner, ListBase *tree, ReportList *reports, short mode) |
Keying-Set Internal Utilities | |
| enum | { KEYINGSET_EDITMODE_ADD = 0 , KEYINGSET_EDITMODE_REMOVE } |
| static KeyingSet * | verify_active_keyingset (Scene *scene, short add) |
| static void | do_outliner_keyingset_editop (SpaceOutliner *space_outliner, KeyingSet *ks, ListBase *tree, short mode) |
Toggle Open/Closed Operator | |
| typedef struct OpenCloseData | OpenCloseData |
| void | outliner_item_openclose (SpaceOutliner *space_outliner, TreeElement *te, bool open, bool toggle_all) |
| static int | outliner_item_openclose_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | outliner_item_openclose_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | OUTLINER_OT_item_openclose (wmOperatorType *ot) |
| typedef struct OpenCloseData OpenCloseData |
| anonymous enum |
Driver Operations
These operators are only available in data-browser mode for now, as they depend on having RNA paths and/or hierarchies available.
| Enumerator | |
|---|---|
| DRIVERS_EDITMODE_ADD | |
| DRIVERS_EDITMODE_REMOVE | |
Definition at line 1868 of file outliner_edit.c.
| anonymous enum |
Keying-Set Operations
These operators are only available in data-browser mode for now, as they depend on having RNA paths and/or hierarchies available.
| Enumerator | |
|---|---|
| KEYINGSET_EDITMODE_ADD | |
| KEYINGSET_EDITMODE_REMOVE | |
Definition at line 2037 of file outliner_edit.c.
|
static |
Definition at line 297 of file outliner_edit.c.
References BKE_report(), COLLECTION_IS_MASTER, ED_region_tag_redraw(), ELEM, Collection::flag, TreeStoreElem::flag, TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_LI, TreeElement::idcode, outliner_collection_from_tree_element(), outliner_is_collection_tree_element(), RPT_WARNING, TSE_ANIM_DATA, TSE_CONSTRAINT_BASE, TSE_DEFGROUP_BASE, TSE_DRIVER_BASE, TSE_ID_BASE, TSE_LIBRARY_OVERRIDE_BASE, TSE_MODIFIER_BASE, TSE_NLA, TSE_POSE_BASE, TSE_POSEGRP_BASE, TSE_R_LAYER_BASE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_RNA_STRUCT, TSE_SCENE_COLLECTION_BASE, TSE_SCENE_OBJECTS_BASE, TSE_SEQ_STRIP, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_TEXTBUT, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by item_rename_fn(), and outliner_item_rename().
|
static |
Definition at line 1874 of file outliner_edit.c.
References ANIM_add_driver(), ANIM_remove_driver(), CREATEDRIVER_WITH_DEFAULT_DVAR, TreeElement::directdata, DRIVER_TYPE_PYTHON, DRIVERS_EDITMODE_ADD, DRIVERS_EDITMODE_REMOVE, ELEM, TreeStoreElem::flag, KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, LISTBASE_FOREACH, MEM_freeN, NULL, RNA_property_animateable(), RNA_property_array_length(), TreeElement::rnaptr, TreeElement::subtree, tree, tree_element_to_path(), TREESTORE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_SELECTED, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_drivers_addsel_exec(), and outliner_drivers_deletesel_exec().
|
static |
Definition at line 2069 of file outliner_edit.c.
References KeyingSet::active_path, BKE_keyingset_add_path(), BKE_keyingset_find_path(), BKE_keyingset_free_path(), BLI_listbase_count(), TreeElement::directdata, ELEM, TreeStoreElem::flag, KEYINGSET_EDITMODE_ADD, KEYINGSET_EDITMODE_REMOVE, KSP_GROUP_KSNAME, LISTBASE_FOREACH, MEM_freeN, NULL, KeyingSet::paths, RNA_property_animateable(), TreeElement::rnaptr, TreeElement::subtree, tree, tree_element_to_path(), TREESTORE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_SELECTED, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().
|
static |
Specialized poll callback for these operators to work in data-blocks view only.
Definition at line 1695 of file outliner_edit.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_space_outliner(), SpaceOutliner::outlinevis, SO_DATA_API, and SPACE_OUTLINER.
Referenced by OUTLINER_OT_drivers_add_selected(), OUTLINER_OT_drivers_delete_selected(), OUTLINER_OT_keyingset_add_selected(), and OUTLINER_OT_keyingset_remove_selected().
|
static |
Definition at line 2223 of file outliner_edit.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_space_outliner(), NULL, SpaceOutliner::outlinevis, SO_ID_ORPHANS, and SPACE_OUTLINER.
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 451 of file outliner_edit.c.
References BKE_id_delete(), BKE_library_ID_is_indirectly_used(), BKE_reportf(), BKE_workspace_id_tag_all_visible(), BLI_assert, C, CTX_data_main(), id, TreeStoreElem::id, ID_LI, ID_REAL_USERS, ID_WS, TreeElement::idcode, LIB_TAG_DOIT, LIB_TAG_INDIRECT, ID::name, NC_WINDOW, NULL, RPT_WARNING, ID::tag, TSE_LAYER_COLLECTION, TSE_SOME_ID, TreeStoreElem::type, UNUSED_VARS_NDEBUG, and WM_event_add_notifier().
Referenced by id_delete_fn(), and outliner_id_delete_invoke_do().
| void id_delete_fn | ( | bContext * | C, |
| ReportList * | reports, | ||
| Scene * | UNUSEDscene, | ||
| TreeElement * | te, | ||
| TreeStoreElem * | UNUSEDtsep, | ||
| TreeStoreElem * | tselem, | ||
| void * | UNUSEDuser_data | ||
| ) |
Definition at line 490 of file outliner_edit.c.
References C, and id_delete().
Referenced by outliner_id_operation_exec(), and outliner_lib_operation_exec().
| void id_remap_fn | ( | bContext * | C, |
| ReportList * | UNUSEDreports, | ||
| Scene * | UNUSEDscene, | ||
| TreeElement * | UNUSEDte, | ||
| TreeStoreElem * | UNUSEDtsep, | ||
| TreeStoreElem * | tselem, | ||
| void * | UNUSEDuser_data | ||
| ) |
Definition at line 724 of file outliner_edit.c.
References BLI_assert, C, GS, TreeStoreElem::id, ID::name, NULL, ot, RNA_enum_set(), RNA_enum_set_identifier(), WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by outliner_id_operation_exec(), and outliner_object_operation_exec().
| void item_rename_fn | ( | bContext * | C, |
| ReportList * | reports, | ||
| Scene * | UNUSEDscene, | ||
| TreeElement * | te, | ||
| TreeStoreElem * | UNUSEDtsep, | ||
| TreeStoreElem * | tselem, | ||
| void * | UNUSEDuser_data | ||
| ) |
Definition at line 360 of file outliner_edit.c.
References C, CTX_wm_region(), and do_item_rename().
Referenced by outliner_id_operation_exec(), outliner_lib_operation_exec(), and outliner_object_operation_exec().
| void lib_reload_fn | ( | bContext * | C, |
| ReportList * | UNUSEDreports, | ||
| Scene * | UNUSEDscene, | ||
| TreeElement * | te, | ||
| TreeStoreElem * | UNUSEDtsep, | ||
| TreeStoreElem * | tselem, | ||
| void * | UNUSEDuser_data | ||
| ) |
Definition at line 1021 of file outliner_edit.c.
References C, lib_relocate(), ot, and WM_operatortype_find().
Referenced by outliner_lib_operation_exec().
|
static |
Definition at line 860 of file outliner_edit.c.
References BLI_assert, BLI_path_cmp, BLI_split_dirfile(), C, FILE_MAX, FILE_MAXDIR, TreeStoreElem::id, ID_LI, TreeElement::idcode, lib, ID::name, NULL, ot, ret, RNA_boolean_set(), RNA_string_set(), UNUSED_VARS_NDEBUG, WM_OP_EXEC_DEFAULT, WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), and WM_operator_properties_free().
Referenced by lib_reload_fn(), lib_relocate_fn(), and outliner_lib_relocate_invoke_do().
| void lib_relocate_fn | ( | bContext * | C, |
| ReportList * | UNUSEDreports, | ||
| Scene * | UNUSEDscene, | ||
| TreeElement * | te, | ||
| TreeStoreElem * | UNUSEDtsep, | ||
| TreeStoreElem * | tselem, | ||
| void * | UNUSEDuser_data | ||
| ) |
Definition at line 968 of file outliner_edit.c.
References C, lib_relocate(), ot, and WM_operatortype_find().
Referenced by outliner_lib_operation_exec().
|
static |
Definition at line 1040 of file outliner_edit.c.
References LISTBASE_FOREACH, and TreeElement::subtree.
Referenced by outliner_one_level_exec().
|
static |
Definition at line 1951 of file outliner_edit.c.
References C, CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_ADD, NC_ANIMATION, ND_FCURVES_ORDER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, SpaceOutliner::tree, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_add_selected().
|
static |
Definition at line 1991 of file outliner_edit.c.
References C, CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_REMOVE, ND_KEYS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, SpaceOutliner::tree, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_delete_selected().
| bool outliner_flag_flip | ( | ListBase * | lb, |
| short | flag | ||
| ) |
Definition at line 1096 of file outliner_edit.c.
References TreeStoreElem::flag, LISTBASE_FOREACH, TreeElement::subtree, and TREESTORE.
Referenced by outliner_select_all_exec().
| int outliner_flag_is_any_test | ( | ListBase * | lb, |
| short | flag, | ||
| const int | curlevel | ||
| ) |
Definition at line 1053 of file outliner_edit.c.
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().
| bool outliner_flag_set | ( | ListBase * | lb, |
| short | flag, | ||
| short | set | ||
| ) |
Set or unset flag for all outliner elements in lb and sub-trees.
Definition at line 1073 of file outliner_edit.c.
References TreeStoreElem::flag, LISTBASE_FOREACH, TreeElement::subtree, and TREESTORE.
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().
|
static |
Definition at line 87 of file outliner_edit.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_outliner(), wmWindowManager::drags, ED_region_tag_redraw_no_rebuild(), ED_screen_area_active(), ListBase::first, TreeStoreElem::flag, wmEvent::mval, NULL, OPERATOR_PASS_THROUGH, outliner_find_item_at_x_in_row(), outliner_find_item_at_y(), outliner_flag_set(), TreeElement::store_elem, SpaceOutliner::tree, TSE_DRAG_ANY, TSE_HIGHLIGHTED, TSE_HIGHLIGHTED_ANY, TSE_HIGHLIGHTED_ICON, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_highlight_update().
|
static |
Definition at line 776 of file outliner_edit.c.
References BKE_copybuffer_begin(), BKE_copybuffer_save(), BKE_report(), BKE_reportf(), BKE_tempdir_base(), BLI_join_dirfile(), C, CTX_data_main(), CTX_wm_space_outliner(), FILE_MAX, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_id_copy_tag(), wmOperator::reports, RPT_INFO, str, and SpaceOutliner::tree.
Referenced by OUTLINER_OT_id_copy().
|
static |
Definition at line 753 of file outliner_edit.c.
References BKE_copybuffer_tag_ID(), ELEM, TreeStoreElem::flag, id, TreeStoreElem::id, LIB_TAG_DOIT, LISTBASE_FOREACH, TreeElement::subtree, ID::tag, tree, TREESTORE, TSE_LAYER_COLLECTION, TSE_SELECTED, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_id_copy_exec().
|
static |
Definition at line 533 of file outliner_edit.c.
References BLI_assert, C, CTX_wm_region(), CTX_wm_space_outliner(), LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, outliner_id_delete_invoke_do(), wmOperator::reports, ret, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_id_delete().
|
static |
Definition at line 501 of file outliner_edit.c.
References BKE_reportf(), C, TreeStoreElem::id, id_delete(), ID_LI, TreeElement::idcode, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, ret, RPT_ERROR_INVALID_INPUT, TreeElement::subtree, TREESTORE, UI_UNIT_Y, and TreeElement::ys.
Referenced by outliner_id_delete_invoke().
|
static |
Definition at line 663 of file outliner_edit.c.
References C, CTX_data_main(), DummyRNA_NULL_items, ListBase::first, id, EnumPropertyItem::identifier, EnumPropertyItem::name, ID::next, NULL, ptr, RNA_enum_get(), RNA_enum_item_add(), RNA_enum_item_end(), EnumPropertyItem::value, and which_libbase().
Referenced by OUTLINER_OT_id_remap().
|
static |
Definition at line 819 of file outliner_edit.c.
References BKE_copybuffer_paste(), BKE_report(), BKE_reportf(), BKE_tempdir_base(), BLI_join_dirfile(), C, FILE_ACTIVE_COLLECTION, FILE_AUTOSELECT, FILE_MAX, NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_INFO, str, and WM_event_add_notifier().
Referenced by OUTLINER_OT_id_paste().
|
static |
Definition at line 573 of file outliner_edit.c.
References BKE_libblock_remap(), BKE_main_lib_objects_recalc_all(), BKE_reportf(), BLI_findlink(), C, CTX_data_main(), CTX_wm_space_outliner(), DEG_relations_tag_update(), GPU_materials_free(), GS, ID_IS_LINKED, ID_REMAP_SKIP_INDIRECT_USAGE, ID_REMAP_SKIP_NEVER_NULL_USAGE, ID::name, NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR_INVALID_INPUT, RPT_WARNING, which_libbase(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_id_remap().
|
static |
Definition at line 623 of file outliner_edit.c.
References C, GS, TreeStoreElem::id, LISTBASE_FOREACH, ID::name, wmOperator::ptr, RNA_enum_set(), RNA_enum_set_identifier(), TreeElement::subtree, tree, TREESTORE, TSE_SOME_ID, TreeStoreElem::type, UI_UNIT_Y, y, and TreeElement::ys.
Referenced by outliner_id_remap_invoke().
|
static |
Definition at line 648 of file outliner_edit.c.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmEvent::mval, outliner_id_remap_find_tree_element(), wmOperator::ptr, RNA_property_is_set(), RNA_struct_find_property(), SpaceOutliner::tree, UI_view2d_region_to_view(), ARegion::v2d, and WM_operator_props_dialog_popup().
Referenced by OUTLINER_OT_id_remap().
| void outliner_item_openclose | ( | SpaceOutliner * | space_outliner, |
| TreeElement * | te, | ||
| bool | open, | ||
| bool | toggle_all | ||
| ) |
Definition at line 158 of file outliner_edit.c.
References BLI_listbase_is_empty(), TreeStoreElem::flag, outliner_flag_set(), SpaceOutliner::outlinevis, SO_DATA_API, TreeElement::subtree, 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().
|
static |
Definition at line 234 of file outliner_edit.c.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmOperator::customdata, TreeStoreElem::flag, LEFTMOUSE, MEM_callocN, wmEvent::mval, OpenCloseData::open, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, outliner_find_item_at_y(), outliner_flag_is_any_test(), outliner_item_is_co_within_close_toggle(), outliner_item_openclose(), outliner_tag_redraw_avoid_rebuild_on_open_change(), OpenCloseData::prev_tselem, wmOperator::ptr, RNA_boolean_get(), TreeElement::subtree, SpaceOutliner::tree, TREESTORE, TSE_CLOSED, wmEvent::type, UI_view2d_region_to_view(), ARegion::v2d, WM_event_add_modal_handler(), OpenCloseData::x_location, and TreeElement::xs.
Referenced by OUTLINER_OT_item_openclose().
|
static |
Definition at line 193 of file outliner_edit.c.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmOperator::customdata, data, if(), KM_RELEASE, MEM_freeN, MOUSEMOVE, wmEvent::mval, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, outliner_find_item_at_y(), outliner_item_openclose(), outliner_tag_redraw_avoid_rebuild_on_open_change(), SpaceOutliner::tree, TREESTORE, wmEvent::type, UI_view2d_region_to_view(), ARegion::v2d, wmEvent::val, and TreeElement::xs.
Referenced by OUTLINER_OT_item_openclose().
|
static |
Definition at line 400 of file outliner_edit.c.
References BLI_rcti_size_y(), C, CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, do_item_rename(), View2D::mask, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_item_rename_find_active(), outliner_item_rename_find_hovered(), outliner_scroll_view(), outliner_show_active(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), TREESTORE, ARegion::v2d, rctf::ymax, and TreeElement::ys.
Referenced by OUTLINER_OT_item_rename().
|
static |
Definition at line 372 of file outliner_edit.c.
References BKE_report(), NULL, outliner_find_element_with_flag(), RPT_WARNING, SpaceOutliner::tree, and TSE_ACTIVE.
Referenced by outliner_item_rename().
|
static |
Definition at line 385 of file outliner_edit.c.
References wmEvent::mval, NULL, outliner_find_item_at_y(), outliner_item_is_co_over_name(), SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by outliner_item_rename().
|
static |
Definition at line 2136 of file outliner_edit.c.
References BKE_report(), C, CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_ADD, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, scene, SpaceOutliner::tree, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_add_selected().
|
static |
Definition at line 2181 of file outliner_edit.c.
References C, CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_REMOVE, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, SpaceOutliner::tree, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_remove_selected().
|
static |
Definition at line 981 of file outliner_edit.c.
References BLI_assert, C, CTX_wm_region(), CTX_wm_space_outliner(), LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, outliner_lib_relocate_invoke_do(), wmOperator::reports, ret, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_lib_reload().
|
static |
Definition at line 931 of file outliner_edit.c.
References BLI_assert, C, CTX_wm_region(), CTX_wm_space_outliner(), LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, outliner_lib_relocate_invoke_do(), wmOperator::reports, ret, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_lib_relocate().
|
static |
Definition at line 899 of file outliner_edit.c.
References BKE_reportf(), C, TreeStoreElem::id, ID_LI, TreeElement::idcode, lib_relocate(), LISTBASE_FOREACH, OPERATOR_CANCELLED, ot, ret, RPT_ERROR_INVALID_INPUT, TreeElement::subtree, TREESTORE, UI_UNIT_Y, WM_operatortype_find(), and TreeElement::ys.
Referenced by outliner_lib_reload_invoke(), and outliner_lib_relocate_invoke().
|
static |
Definition at line 1549 of file outliner_edit.c.
References add(), C, CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, outliner_count_levels(), outliner_flag_is_any_test(), outliner_openclose_level(), wmOperator::ptr, RNA_boolean_get(), SpaceOutliner::tree, and TSE_CLOSED.
Referenced by OUTLINER_OT_show_one_level().
|
static |
Definition at line 1237 of file outliner_edit.c.
References TreeStoreElem::flag, TreeElement::parent, TREESTORE, and TSE_CLOSED.
Referenced by outliner_show_active().
|
static |
Definition at line 1529 of file outliner_edit.c.
References TreeStoreElem::flag, LISTBASE_FOREACH, TreeElement::subtree, TREESTORE, and TSE_CLOSED.
Referenced by outliner_one_level_exec().
|
static |
Definition at line 2282 of file outliner_edit.c.
References blender::compositor::area(), BKE_id_multi_tagged_delete(), BKE_lib_query_unused_ids_tag(), BKE_report(), BKE_reportf(), C, CTX_data_main(), CTX_wm_area(), CTX_wm_space_outliner(), DEG_relations_tag_update(), INDEX_ID_MAX, INDEX_ID_NULL, LIB_TAG_DOIT, NA_REMOVED, NC_ID, NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_cleanup_tree(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_int_get(), RPT_INFO, SPACE_OUTLINER, WM_event_add_notifier(), and WM_main_add_notifier().
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 2235 of file outliner_edit.c.
References BKE_idtype_idcode_from_index(), BKE_idtype_idcode_to_name_plural(), BKE_lib_query_unused_ids_tag(), BKE_report(), BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), C, CTX_data_main(), INDEX_ID_MAX, INDEX_ID_NULL, LIB_TAG_DOIT, MEM_freeN, OPERATOR_CANCELLED, wmOperator::ptr, wmOperator::reports, ret, RNA_boolean_get(), RNA_int_set(), RPT_INFO, TIP_, and WM_operator_confirm_message().
Referenced by OUTLINER_OT_orphans_purge().
| void OUTLINER_OT_drivers_add_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1970 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 2010 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 1132 of file outliner_edit.c.
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_highlight_update | ( | wmOperatorType * | ot | ) |
Definition at line 140 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 798 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 554 of file outliner_edit.c.
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_paste | ( | wmOperatorType * | ot | ) |
Definition at line 839 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 691 of file outliner_edit.c.
References BLT_I18NCONTEXT_ID_ID, DummyRNA_NULL_items, ED_operator_outliner_active(), wmOperatorType::exec, wmOperatorType::flag, ID_OB, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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_openclose | ( | wmOperatorType * | ot | ) |
Definition at line 277 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 425 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 2160 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 2202 of file outliner_edit.c.
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_reload | ( | wmOperatorType * | ot | ) |
Definition at line 1008 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 952 of file outliner_edit.c.
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_orphans_purge | ( | wmOperatorType * | ot | ) |
Definition at line 2325 of file outliner_edit.c.
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_scroll_page | ( | wmOperatorType * | ot | ) |
Definition at line 1381 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 1184 of file outliner_edit.c.
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_show_active | ( | wmOperatorType * | ot | ) |
Definition at line 1343 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 1672 of file outliner_edit.c.
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 | ( | wmOperatorType * | ot | ) |
Definition at line 1576 of file outliner_edit.c.
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().
|
static |
Definition at line 1362 of file outliner_edit.c.
References BLI_rcti_size_y(), C, CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw_no_rebuild(), View2D::mask, OPERATOR_FINISHED, outliner_scroll_view(), wmOperator::ptr, RNA_boolean_get(), and ARegion::v2d.
Referenced by OUTLINER_OT_scroll_page().
|
static |
Definition at line 1152 of file outliner_edit.c.
References C, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), DEG_id_tag_update(), ED_outliner_select_sync_from_outliner(), ED_region_tag_redraw_no_rebuild(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, outliner_flag_flip(), outliner_flag_is_any_test(), outliner_flag_set(), wmOperator::ptr, RNA_enum_get(), scene, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SpaceOutliner::tree, TSE_SELECTED, and WM_event_add_notifier().
Referenced by OUTLINER_OT_select_all().
| void outliner_set_coordinates | ( | ARegion * | region, |
| SpaceOutliner * | space_outliner | ||
| ) |
Definition at line 1227 of file outliner_edit.c.
References LISTBASE_FOREACH, outliner_set_coordinates_element_recursive(), View2D::tot, SpaceOutliner::tree, UI_UNIT_Y, ARegion::v2d, and rctf::ymax.
Referenced by outliner_restore_scrolling_position(), outliner_show_active(), and outliner_store_scrolling_position().
|
static |
Definition at line 1207 of file outliner_edit.c.
References float(), LISTBASE_FOREACH, TreeElement::subtree, TREESTORE, TSELEM_OPEN, UI_UNIT_X, UI_UNIT_Y, TreeElement::xs, and TreeElement::ys.
Referenced by outliner_set_coordinates().
|
static |
Definition at line 1288 of file outliner_edit.c.
References LISTBASE_FOREACH, outliner_open_back(), outliner_set_coordinates(), TreeElement::subtree, and TREESTORE.
Referenced by outliner_item_rename(), and outliner_show_active_exec().
|
static |
Definition at line 1306 of file outliner_edit.c.
References BLI_rcti_size_y(), C, CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, ED_region_tag_redraw_no_rebuild(), LISTBASE_FOREACH, View2D::mask, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_scroll_view(), outliner_show_active(), outliner_show_active_get_element(), SpaceOutliner::tree, TREESTORE, ARegion::v2d, rctf::ymax, and TreeElement::ys.
Referenced by OUTLINER_OT_show_active().
|
static |
Definition at line 1253 of file outliner_edit.c.
References C, CTX_data_active_bone(), CTX_data_active_pose_bone(), Object::id, Object::mode, NULL, OB_ARMATURE, OB_MODE_EDIT, OB_MODE_POSE, OBACT, outliner_find_editbone(), outliner_find_id(), outliner_find_posechannel(), TreeElement::subtree, SpaceOutliner::tree, and Object::type.
Referenced by outliner_show_active_exec().
|
static |
Definition at line 1658 of file outliner_edit.c.
References C, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, scene, SpaceOutliner::tree, and tree_element_show_hierarchy().
Referenced by OUTLINER_OT_show_hierarchy().
|
static |
Definition at line 1115 of file outliner_edit.c.
References C, CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, outliner_flag_is_any_test(), outliner_flag_set(), SpaceOutliner::tree, and TSE_CLOSED.
Referenced by OUTLINER_OT_expanded_toggle().
|
static |
Definition at line 1604 of file outliner_edit.c.
References ID_OB, TreeElement::idcode, LISTBASE_FOREACH, TreeElement::subtree, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by tree_element_show_hierarchy().
|
static |
Definition at line 1619 of file outliner_edit.c.
References ELEM, TreeStoreElem::flag, TreeStoreElem::id, ID_OB, ID_SCE, TreeElement::idcode, LISTBASE_FOREACH, scene, TreeElement::subtree, subtree_has_objects(), TREESTORE, TSE_CLOSED, TSE_LAYER_COLLECTION, TSE_SCENE_OBJECTS_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, TSELEM_OPEN, and TreeStoreElem::type.
Referenced by outliner_show_hierarchy_exec().
|
static |
Definition at line 1709 of file outliner_edit.c.
References BLI_addhead(), BLI_freelistN(), LinkData::data, PointerRNA::data, TreeElement::directdata, ListBase::first, TreeElement::index, KSP_FLAG_WHOLE_ARRAY, LISTBASE_FOREACH, MEM_callocN, MEM_freeN, LinkData::next, NULL, TreeElement::parent, PROP_COLLECTION, PROP_POINTER, ptr, RNA_path_append(), RNA_property_array_check(), RNA_property_type(), RNA_struct_is_ID(), RNA_struct_name_get_alloc(), TreeElement::rnaptr, TreeElement::subtree, TREESTORE, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_RNA_STRUCT, TreeStoreElem::type, and PointerRNA::type.
Referenced by do_outliner_drivers_editop(), and do_outliner_keyingset_editop().
Definition at line 2044 of file outliner_edit.c.
References Scene::active_keyingset, add(), BKE_keyingset_add(), BLI_findlink(), BLI_listbase_count(), KEYINGSET_ABSOLUTE, Scene::keyingsets, NULL, and scene.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().