Blender
V3.3
|
#include <cstring>
#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_action.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_override.h"
#include "BKE_lib_query.h"
#include "BKE_lib_remap.h"
#include "BKE_main.h"
#include "BKE_object.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 "RNA_path.h"
#include "GPU_material.h"
#include "outliner_intern.hh"
#include "tree/tree_element_rna.hh"
#include "tree/tree_iterator.hh"
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, 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, const short mode) |
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.cc.
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 2034 of file outliner_edit.cc.
|
static |
Definition at line 285 of file outliner_edit.cc.
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(), Library::parent, 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.cc.
References blender::ed::outliner::tree_iterator::all_open(), ANIM_add_driver(), ANIM_remove_driver(), CREATEDRIVER_WITH_DEFAULT_DVAR, DRIVER_TYPE_PYTHON, DRIVERS_EDITMODE_ADD, DRIVERS_EDITMODE_REMOVE, TreeStoreElem::flag, blender::ed::outliner::TreeElementRNACommon::getPointerRNA(), blender::ed::outliner::TreeElementRNACommon::getPropertyRNA(), KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, MEM_freeN, PointerRNA_NULL, ptr, RNA_property_animateable(), RNA_property_array_length(), tree_element_to_path(), TREESTORE, and TSE_SELECTED.
Referenced by outliner_drivers_addsel_exec(), and outliner_drivers_deletesel_exec().
|
static |
Definition at line 2067 of file outliner_edit.cc.
References KeyingSet::active_path, blender::ed::outliner::tree_iterator::all_open(), BKE_keyingset_add_path(), BKE_keyingset_find_path(), BKE_keyingset_free_path(), BLI_listbase_count(), TreeStoreElem::flag, blender::ed::outliner::TreeElementRNACommon::getPointerRNA(), blender::ed::outliner::TreeElementRNACommon::getPropertyRNA(), KEYINGSET_EDITMODE_ADD, KEYINGSET_EDITMODE_REMOVE, KSP_GROUP_KSNAME, MEM_freeN, KeyingSet::paths, ptr, RNA_property_animateable(), tree_element_to_path(), TREESTORE, and TSE_SELECTED.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().
Specialized poll callback for these operators to work in data-blocks view only.
Definition at line 1701 of file outliner_edit.cc.
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().
Definition at line 2218 of file outliner_edit.cc.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_space_outliner(), SpaceOutliner::outlinevis, SO_ID_ORPHANS, and SPACE_OUTLINER.
Referenced by OUTLINER_OT_orphans_purge().
|
static |
Definition at line 447 of file outliner_edit.cc.
References BKE_library_ID_is_indirectly_used(), BKE_main_id_tag_idcode(), BKE_reportf(), BKE_workspace_id_tag_all_visible(), BLI_assert, C, CTX_data_main(), IDOverrideLibrary::flag, id, TreeStoreElem::id, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_LI, ID_REAL_USERS, ID_WS, TreeElement::idcode, IDOVERRIDE_LIBRARY_FLAG_NO_HIERARCHY, LIB_TAG_DOIT, LIB_TAG_INDIRECT, LIB_TAG_PRE_EXISTING, ID::name, NC_WINDOW, ID::override_library, RPT_WARNING, ID::tag, TSE_LAYER_COLLECTION, TSE_SOME_ID, TreeStoreElem::type, UNUSED_VARS_NDEBUG, and WM_event_add_notifier().
Referenced by id_delete_tag_fn(), and outliner_id_delete_tag().
void id_delete_tag_fn | ( | bContext * | C, |
ReportList * | reports, | ||
Scene * | UNUSEDscene, | ||
TreeElement * | te, | ||
TreeStoreElem * | UNUSEDtsep, | ||
TreeStoreElem * | tselem, | ||
void * | UNUSEDuser_data | ||
) |
Definition at line 499 of file outliner_edit.cc.
References C, and id_delete_tag().
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 743 of file outliner_edit.cc.
References BLI_assert, C, GS, TreeStoreElem::id, ID::name, 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 356 of file outliner_edit.cc.
References C, CTX_wm_region(), and do_item_rename().
Referenced by outliner_id_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 1041 of file outliner_edit.cc.
References C, lib_relocate(), ot, and WM_operatortype_find().
Referenced by outliner_lib_operation_exec().
|
static |
Definition at line 879 of file outliner_edit.cc.
References BLI_assert, BLI_path_cmp, BLI_split_dirfile(), C, FILE_MAX, FILE_MAXDIR, TreeStoreElem::id, ID_LI, TreeElement::idcode, lib, ID::name, 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 984 of file outliner_edit.cc.
References C, lib_relocate(), ot, and WM_operatortype_find().
Referenced by outliner_lib_operation_exec().
|
static |
Definition at line 1060 of file outliner_edit.cc.
References LISTBASE_FOREACH, and TreeElement::subtree.
Referenced by outliner_one_level_exec().
|
static |
Definition at line 1950 of file outliner_edit.cc.
References C, CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_ADD, NC_ANIMATION, ND_FCURVES_ORDER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_add_selected().
|
static |
Definition at line 1989 of file outliner_edit.cc.
References C, CTX_wm_space_outliner(), do_outliner_drivers_editop(), DRIVERS_EDITMODE_REMOVE, ND_KEYS, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_event_add_notifier().
Referenced by OUTLINER_OT_drivers_delete_selected().
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, |
const 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, | ||
const 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().
|
static |
Definition at line 77 of file outliner_edit.cc.
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, 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 795 of file outliner_edit.cc.
References BKE_copybuffer_copy_begin(), BKE_copybuffer_copy_end(), 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 772 of file outliner_edit.cc.
References BKE_copybuffer_copy_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 544 of file outliner_edit.cc.
References BKE_id_multi_tagged_delete(), BKE_main_id_tag_all(), BLI_assert, C, CTX_data_main(), CTX_wm_region(), CTX_wm_space_outliner(), LIB_TAG_DOIT, LISTBASE_FOREACH, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_id_delete_tag(), wmOperator::reports, SpaceOutliner::tree, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by OUTLINER_OT_id_delete().
|
static |
Definition at line 510 of file outliner_edit.cc.
References BKE_reportf(), C, TreeStoreElem::id, id_delete_tag(), ID_LI, TreeElement::idcode, LISTBASE_FOREACH, RPT_ERROR_INVALID_INPUT, TreeElement::subtree, TREESTORE, UI_UNIT_Y, and TreeElement::ys.
Referenced by outliner_id_delete_invoke().
|
static |
Definition at line 679 of file outliner_edit.cc.
References C, CTX_data_main(), DummyRNA_NULL_items, ListBase::first, id, EnumPropertyItem::identifier, EnumPropertyItem::name, 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 838 of file outliner_edit.cc.
References BKE_copybuffer_paste(), BKE_report(), BKE_reportf(), BKE_tempdir_base(), BLI_join_dirfile(), C, FILE_ACTIVE_COLLECTION, FILE_AUTOSELECT, FILE_MAX, NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_INFO, str, and WM_event_add_notifier().
Referenced by OUTLINER_OT_id_paste().
|
static |
Definition at line 591 of file outliner_edit.cc.
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, 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 641 of file outliner_edit.cc.
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 664 of file outliner_edit.cc.
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 | ( | 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().
|
static |
Definition at line 219 of file outliner_edit.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmOperator::customdata, TreeStoreElem::flag, KM_CLICK_DRAG, LEFTMOUSE, 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, wmEvent::val, WM_event_add_modal_handler(), WM_event_drag_start_mval(), OpenCloseData::x_location, and TreeElement::xs.
Referenced by OUTLINER_OT_item_openclose().
|
static |
Definition at line 178 of file outliner_edit.cc.
References C, CTX_wm_region(), CTX_wm_space_outliner(), wmOperator::customdata, data, if(), KM_RELEASE, MEM_freeN, MOUSEMOVE, wmEvent::mval, 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 396 of file outliner_edit.cc.
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 368 of file outliner_edit.cc.
References BKE_report(), outliner_find_element_with_flag(), RPT_WARNING, SpaceOutliner::tree, and TSE_ACTIVE.
Referenced by outliner_item_rename().
|
static |
Definition at line 381 of file outliner_edit.cc.
References wmEvent::mval, 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 2132 of file outliner_edit.cc.
References BKE_report(), C, CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_ADD, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, scene, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_add_selected().
|
static |
Definition at line 2177 of file outliner_edit.cc.
References C, CTX_data_scene(), CTX_wm_space_outliner(), do_outliner_keyingset_editop(), KEYINGSET_EDITMODE_REMOVE, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, verify_active_keyingset(), and WM_event_add_notifier().
Referenced by OUTLINER_OT_keyingset_remove_selected().
|
static |
Definition at line 1001 of file outliner_edit.cc.
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 950 of file outliner_edit.cc.
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 918 of file outliner_edit.cc.
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 1557 of file outliner_edit.cc.
References blender::bke::attribute_accessor_functions::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 1244 of file outliner_edit.cc.
References TreeStoreElem::flag, TreeElement::parent, TREESTORE, and TSE_CLOSED.
Referenced by outliner_show_active().
Definition at line 1537 of file outliner_edit.cc.
References TreeStoreElem::flag, LISTBASE_FOREACH, TreeElement::subtree, TREESTORE, and TSE_CLOSED.
Referenced by outliner_one_level_exec().
|
static |
Definition at line 2275 of file outliner_edit.cc.
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, 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 2228 of file outliner_edit.cc.
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 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 | ( | 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 | ( | 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_highlight_update | ( | 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 | ( | 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 | ( | 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_paste | ( | 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 | ( | 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_openclose | ( | 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 | ( | 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 | ( | 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 | ( | 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_reload | ( | 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 | ( | 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_orphans_purge | ( | 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_scroll_page | ( | 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 | ( | 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_show_active | ( | 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 | ( | 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 | ( | 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().
|
static |
Definition at line 1370 of file outliner_edit.cc.
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 1176 of file outliner_edit.cc.
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 | ( | const ARegion * | region, |
const SpaceOutliner * | space_outliner | ||
) |
Definition at line 1231 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all_open(), float(), View2D::tot, UI_UNIT_Y, ARegion::v2d, TreeElement::xs, rctf::ymax, and TreeElement::ys.
Referenced by outliner_restore_scrolling_position(), outliner_show_active(), and outliner_store_scrolling_position().
|
static |
Definition at line 1296 of file outliner_edit.cc.
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 1314 of file outliner_edit.cc.
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 1260 of file outliner_edit.cc.
References BKE_object_pose_armature_get(), BKE_pose_channel_active(), C, CTX_data_active_bone(), Object::id, Object::mode, 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 1664 of file outliner_edit.cc.
References C, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_outliner(), ED_region_tag_redraw(), OPERATOR_FINISHED, scene, and tree_element_show_hierarchy().
Referenced by OUTLINER_OT_show_hierarchy().
|
static |
Definition at line 1139 of file outliner_edit.cc.
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 |
Helper function for #tree_element_shwo_hierarchy() - recursively checks whether subtrees have any objects.
Definition at line 1614 of file outliner_edit.cc.
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 1629 of file outliner_edit.cc.
References blender::ed::outliner::tree_iterator::all_open(), ELEM, TreeStoreElem::flag, TreeStoreElem::id, ID_OB, ID_SCE, TreeElement::idcode, scene, TreeElement::subtree, subtree_has_objects(), TREESTORE, TSE_CLOSED, TSE_LAYER_COLLECTION, TSE_SCENE_OBJECTS_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_show_hierarchy_exec().
|
static |
Definition at line 1715 of file outliner_edit.cc.
References BLI_addhead(), BLI_freelistN(), LinkData::data, PointerRNA::data, TreeElement::index, KSP_FLAG_WHOLE_ARRAY, LISTBASE_FOREACH, MEM_freeN, 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::subtree, TSE_RNA_ARRAY_ELEM, TSE_RNA_STRUCT, TreeStoreElem::type, and PointerRNA::type.
Referenced by do_outliner_drivers_editop(), and do_outliner_keyingset_editop().
Definition at line 2041 of file outliner_edit.cc.
References Scene::active_keyingset, blender::bke::attribute_accessor_functions::add(), BKE_keyingset_add(), BLI_findlink(), BLI_listbase_count(), KEYINGSET_ABSOLUTE, Scene::keyingsets, and scene.
Referenced by outliner_keyingset_additems_exec(), and outliner_keyingset_removeitems_exec().