|
Blender V4.5
|
#include <cstring>#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "DNA_armature_types.h"#include "DNA_material_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "DNA_screen_types.h"#include "ANIM_keyframing.hh"#include "BLI_listbase.h"#include "BLI_math_color.h"#include "BLI_rect.h"#include "BLI_string.h"#include "BLF_api.hh"#include "BLT_lang.hh"#include "BLT_translation.hh"#include "BKE_anim_data.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_idtype.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_lib_override.hh"#include "BKE_lib_remap.hh"#include "BKE_library.hh"#include "BKE_material.hh"#include "BKE_node.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "IMB_colormanagement.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "UI_abstract_view.hh"#include "UI_interface.hh"#include "interface_intern.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_object.hh"#include "ED_paint.hh"#include "ED_undo.hh"#include "ED_keyframing.hh"#include "BLI_ghash.h"#include "ED_screen.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::interface |
| namespace | blender::interface::internal |
Copy To Selected Operator | |
| #define | NOT_RNA_NULL(assignment) |
| static PointerRNA | rnapointer_pchan_to_bone (const PointerRNA &pchan_ptr) |
| static void | ui_context_selected_bones_via_pose (bContext *C, blender::Vector< PointerRNA > *r_lb) |
| static void | ui_context_fcurve_modifiers_via_fcurve (bContext *C, blender::Vector< PointerRNA > *r_lb, FModifier *source) |
| bool | UI_context_copy_to_selected_list (bContext *C, PointerRNA *ptr, PropertyRNA *prop, blender::Vector< PointerRNA > *r_lb, bool *r_use_path_from_id, std::optional< std::string > *r_path) |
| bool | UI_context_copy_to_selected_check (PointerRNA *ptr, PointerRNA *ptr_link, PropertyRNA *prop, const char *path, bool use_path_from_id, PointerRNA *r_ptr, PropertyRNA **r_prop) |
| static bool | copy_to_selected_button (bContext *C, bool all, bool poll) |
| static bool | copy_to_selected_button_poll (bContext *C) |
| static wmOperatorStatus | copy_to_selected_button_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_copy_to_selected_button (wmOperatorType *ot) |
| #define NOT_RNA_NULL | ( | assignment | ) |
Definition at line 1037 of file interface_ops.cc.
Referenced by UI_context_copy_to_selected_list().
| anonymous enum |
| Enumerator | |
|---|---|
| UIOverride_Type_NOOP | |
| UIOverride_Type_Replace | |
| UIOverride_Type_Difference | |
| UIOverride_Type_Factor | |
Definition at line 518 of file interface_ops.cc.
|
static |
Definition at line 434 of file interface_ops.cc.
References C, operator_button_property_finish(), OPERATOR_CANCELLED, ptr, RNA_property_assign_default(), RNA_property_editable(), and UI_context_active_but_prop_get().
Referenced by UI_OT_assign_default_button().
|
static |
Definition at line 416 of file interface_ops.cc.
References C, ELEM, PROP_FLOAT, PROP_INT, ptr, RNA_property_array_check(), RNA_property_editable(), RNA_property_is_idprop(), RNA_property_type(), and UI_context_active_but_prop_get().
Referenced by UI_OT_assign_default_button().
|
static |
Definition at line 2341 of file interface_ops.cc.
References C, OPERATOR_FINISHED, ui_but_active_string_clear_and_exit(), and UI_context_active_but_get_respect_popup().
Referenced by UI_OT_button_string_clear().
|
static |
Definition at line 214 of file interface_ops.cc.
References ANIM_copy_as_driver(), BKE_reportf(), C, CTX_data_main(), OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::reports, RNA_path_from_real_ID_to_property_index(), RNA_property_array_dimension(), RNA_property_identifier(), RPT_ERROR, and UI_context_active_but_prop_get().
Referenced by UI_OT_copy_as_driver_button().
|
static |
Definition at line 193 of file interface_ops.cc.
References C, ELEM, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, ptr, RNA_path_from_ID_to_property(), RNA_property_array_check(), RNA_property_type(), UI_context_active_but_prop_get(), and UNUSED_VARS.
Referenced by UI_OT_copy_as_driver_button().
|
static |
Definition at line 125 of file interface_ops.cc.
References C, CTX_data_main(), OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::ptr, RNA_boolean_get(), RNA_path_from_ID_to_property_index(), RNA_path_from_real_ID_to_property_index(), RNA_path_full_property_py_ex(), RNA_path_full_struct_py(), RNA_property_array_check(), UI_context_active_but_prop_get(), and WM_clipboard_text_set().
Referenced by UI_OT_copy_data_path_button().
|
static |
Definition at line 107 of file interface_ops.cc.
References C, ptr, RNA_path_from_ID_to_property(), UI_context_active_but_prop_get(), and UNUSED_VARS.
Referenced by UI_OT_copy_data_path_button().
|
static |
Called from both exec & poll.
| copy_entire_array | If true, copies drivers of all elements of an array property. Otherwise only copies one specific element. |
| poll | If true, only checks if the driver(s) could be copied rather than actually performing the copy. |
Definition at line 1766 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), C, blender::interface::internal::get_property_drivers(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::interface::internal::paste_property_drivers(), ptr, RNA_property_driver_editable(), RNA_property_update(), UI_context_active_but_prop_get(), UI_context_copy_to_selected_check(), and UI_context_copy_to_selected_list().
Referenced by copy_driver_to_selected_button_exec(), and copy_driver_to_selected_button_poll().
|
static |
Definition at line 1849 of file interface_ops.cc.
References all(), C, copy_driver_to_selected_button(), CTX_data_main(), DEG_relations_tag_update(), NC_ANIMATION, ND_KEYFRAME_PROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by UI_OT_copy_driver_to_selected_button().
|
static |
Definition at line 1844 of file interface_ops.cc.
References C, and copy_driver_to_selected_button().
Referenced by UI_OT_copy_driver_to_selected_button().
|
static |
Definition at line 276 of file interface_ops.cc.
References C, OPERATOR_CANCELLED, OPERATOR_FINISHED, uiBut::optype, str, UI_but_operator_ptr_ensure(), UI_context_active_but_get(), WM_clipboard_text_set(), and WM_operator_pystring_ex().
Referenced by UI_OT_copy_python_command_button().
|
static |
Definition at line 265 of file interface_ops.cc.
References C, uiBut::optype, and UI_context_active_but_get().
Referenced by UI_OT_copy_python_command_button().
|
static |
Called from both exec & poll.
Definition at line 1524 of file interface_ops.cc.
References all(), C, CTX_data_main(), ptr, RNA_property_copy(), RNA_property_update(), UI_context_active_but_prop_get(), UI_context_copy_to_selected_check(), and UI_context_copy_to_selected_list().
Referenced by copy_to_selected_button_exec(), and copy_to_selected_button_poll().
|
static |
Definition at line 1580 of file interface_ops.cc.
References all(), C, copy_to_selected_button(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by UI_OT_copy_to_selected_button().
|
static |
Definition at line 1575 of file interface_ops.cc.
References C, and copy_to_selected_button().
Referenced by UI_OT_copy_to_selected_button().
|
static |
Definition at line 2400 of file interface_ops.cc.
References ARRAY_SIZE, C, CTX_wm_region(), ED_imapaint_bucket_fill(), ED_region_tag_redraw(), ED_undo_push(), IMB_colormanagement_scene_linear_to_srgb_v3(), IMB_colormanagement_srgb_to_scene_linear_v3(), linearrgb_to_srgb_v3_v3(), wmEvent::mval, OPERATOR_FINISHED, PROP_COLOR, PROP_COLOR_GAMMA, wmOperator::ptr, RNA_boolean_get(), RNA_float_get_array(), RNA_property_float_set_array_at_most(), RNA_property_subtype(), RNA_property_ui_name(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, UI_BTYPE_COLOR, UI_but_flag_is_set(), UI_BUT_UNDO, and ui_region_find_active_but().
Referenced by UI_OT_drop_color().
|
static |
Definition at line 2495 of file interface_ops.cc.
References C, MEM_freeN(), OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get_alloc(), str, UI_but_active_drop_name_button(), and ui_but_set_string_interactive().
Referenced by UI_OT_drop_name().
|
static |
Definition at line 2477 of file interface_ops.cc.
References C, ED_operator_regionactive(), uiBut::flag, UI_but_active_drop_name_button(), and UI_BUT_DISABLED.
Referenced by UI_OT_drop_name().
| void ED_keymap_ui | ( | wmKeyConfig * | keyconf | ) |
User Interface Keymap.
Definition at line 2928 of file interface_ops.cc.
References eyedropper_colorband_modal_keymap(), eyedropper_modal_keymap(), RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
| void ED_operatortypes_ui | ( | ) |
Definition at line 2881 of file interface_ops.cc.
References override_idtemplate_menu(), UI_OT_assign_default_button(), UI_OT_button_execute(), UI_OT_button_string_clear(), UI_OT_copy_as_driver_button(), UI_OT_copy_data_path_button(), UI_OT_copy_driver_to_selected_button(), UI_OT_copy_python_command_button(), UI_OT_copy_to_selected_button(), UI_OT_drop_color(), UI_OT_drop_material(), UI_OT_drop_name(), blender::ui::UI_OT_eyedropper_bone(), UI_OT_eyedropper_color(), blender::ui::UI_OT_eyedropper_colorramp(), blender::ui::UI_OT_eyedropper_colorramp_point(), UI_OT_eyedropper_depth(), UI_OT_eyedropper_driver(), UI_OT_eyedropper_grease_pencil_color(), UI_OT_eyedropper_id(), UI_OT_jump_to_target_button(), UI_OT_list_start_filter(), UI_OT_override_idtemplate_clear(), UI_OT_override_idtemplate_make(), UI_OT_override_idtemplate_reset(), UI_OT_override_remove_button(), UI_OT_override_type_set_button(), UI_OT_reloadtranslation(), UI_OT_reset_default_button(), UI_OT_unset_property_button(), UI_OT_view_drop(), UI_OT_view_item_rename(), UI_OT_view_scroll(), UI_OT_view_start_filter(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
|
static |
Definition at line 2591 of file interface_ops.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, UI_region_view_find_at(), and wmEvent::xy.
Referenced by ui_view_focused_poll(), ui_view_scroll_invoke(), and ui_view_scroll_poll().
|
static |
Jump to the object or bone referred to by the current UI field value.
Definition at line 1958 of file interface_ops.cc.
References uiButSearch::arg, C, uiButSearch::items_update_fn, jump_to_target_ptr(), MAXBONENAME, MEM_freeN(), PROP_POINTER, PROP_STRING, ptr, RNA_property_collection_lookup_string(), RNA_property_pointer_get(), RNA_property_string_get_alloc(), RNA_property_type(), uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_context_active_but_prop_get(), and ui_rna_collection_search_update_fn().
Referenced by jump_to_target_button_exec(), and ui_jump_to_target_button_poll().
|
static |
Definition at line 2015 of file interface_ops.cc.
References C, jump_to_target_button(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by UI_OT_jump_to_target_button().
|
static |
Jump to the object or bone referenced by the pointer, or check if it is possible.
Definition at line 1890 of file interface_ops.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, C, CTX_data_scene(), CTX_data_view_layer(), ELEM, blender::ed::object::find_first_by_data_id(), GS, ID_OB, blender::ed::object::jump_to_bone(), blender::ed::object::jump_to_object(), MAXBONENAME, OB_ARMATURE, OB_DATA_SUPPORT_ID, Base::object, ptr, RNA_pointer_is_null(), RNA_string_get(), RNA_struct_is_a(), and Object::type.
Referenced by jump_to_target_button().
|
static |
Definition at line 315 of file interface_ops.cc.
References C, ID_CHECK_UNDO, OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, RNA_property_update(), and UI_context_active_but_prop_handle().
Referenced by assign_default_button_exec(), override_remove_button_exec(), override_type_set_button_exec(), and unset_property_button_exec().
|
static |
Definition at line 338 of file interface_ops.cc.
References C, OPERATOR_FINISHED, ptr, RNA_property_update(), and UI_context_active_but_prop_handle().
Referenced by reset_default_button_exec().
|
static |
Definition at line 920 of file interface_ops.cc.
References ViewLayer::basact, BKE_id_delete(), BKE_lib_override_library_id_reset(), BKE_lib_override_library_is_hierarchy_leaf(), BKE_libblock_remap(), BKE_view_layer_active_object_get(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ELEM, GS, Scene::id, ID_IS_LINKED, ID_OB, ID_RECALC_BASE_FLAGS, ID_RECALC_SELECT, ID_RECALC_SYNC_TO_EVAL, ID_REMAP_SKIP_INDIRECT_USAGE, ID::name, Node::name, NC_SPACE, NC_WINDOW, NC_WM, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_VIEW3D, OPERATOR_CANCELLED, OPERATOR_FINISHED, override_idtemplate_ids_get(), ID::override_library, IDOverrideLibrary::reference, RNA_property_update(), and WM_event_add_notifier().
Referenced by UI_OT_override_idtemplate_clear().
|
static |
Definition at line 915 of file interface_ops.cc.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_clear().
|
static |
Definition at line 754 of file interface_ops.cc.
References C, PointerRNA::data, PointerRNA::owner_id, PointerRNA_NULL, RNA_property_pointer_get(), and UI_context_active_but_prop_get_templateID().
Referenced by override_idtemplate_clear_exec(), override_idtemplate_make_exec(), override_idtemplate_menu_poll(), override_idtemplate_poll(), and override_idtemplate_reset_exec().
|
static |
Definition at line 811 of file interface_ops.cc.
References C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ELEM, ID_IS_LINKED, ID_RECALC_BASE_FLAGS, ID_RECALC_SYNC_TO_EVAL, NC_SPACE, NC_WINDOW, NC_WM, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_VIEW3D, OPERATOR_CANCELLED, OPERATOR_FINISHED, override_idtemplate_ids_get(), RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), ui_template_id_liboverride_hierarchy_make(), and WM_event_add_notifier().
Referenced by UI_OT_override_idtemplate_make().
|
static |
Definition at line 806 of file interface_ops.cc.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_make().
|
static |
Definition at line 1019 of file interface_ops.cc.
References MenuType::draw, MenuType::idname, MenuType::label, MEM_callocN(), N_, override_idtemplate_menu_draw(), override_idtemplate_menu_poll(), MenuType::poll, STRNCPY(), and WM_menutype_add().
Referenced by ED_operatortypes_ui().
Definition at line 1011 of file interface_ops.cc.
References IFACE_, Menu::layout, and uiLayout::op().
Referenced by override_idtemplate_menu().
Definition at line 995 of file interface_ops.cc.
References C, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, and override_idtemplate_ids_get().
Referenced by override_idtemplate_menu().
|
static |
Definition at line 783 of file interface_ops.cc.
References C, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, and override_idtemplate_ids_get().
Referenced by override_idtemplate_clear_poll(), override_idtemplate_make_poll(), and override_idtemplate_reset_poll().
|
static |
Definition at line 873 of file interface_ops.cc.
References BKE_lib_override_library_id_reset(), C, CTX_data_main(), ELEM, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, OPERATOR_CANCELLED, OPERATOR_FINISHED, override_idtemplate_ids_get(), RNA_id_pointer_create(), RNA_property_pointer_set(), and RNA_property_update().
Referenced by UI_OT_override_idtemplate_reset().
|
static |
Definition at line 868 of file interface_ops.cc.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_reset().
|
static |
Definition at line 676 of file interface_ops.cc.
References all(), BKE_lib_override_library_property_delete(), BKE_lib_override_library_property_operation_delete(), BKE_lib_override_library_property_operation_find(), BKE_lib_override_library_property_operation_get(), BLI_assert, BLI_assert_msg, BLI_listbase_is_empty(), C, CTX_data_main(), NC_WM, ND_LIB_OVERRIDE_CHANGED, IDOverrideLibraryPropertyOperation::operation, IDOverrideLibraryProperty::operations, operator_button_property_finish(), ID::override_library, ptr, wmOperator::ptr, IDOverrideLibrary::reference, RNA_boolean_get(), RNA_id_pointer_create(), IDOverrideLibraryProperty::rna_path, RNA_path_resolve_property(), RNA_property_array_length(), RNA_property_copy(), RNA_property_override_property_find(), UI_context_active_but_prop_get(), and WM_main_add_notifier().
Referenced by UI_OT_override_remove_button().
|
static |
Definition at line 662 of file interface_ops.cc.
References C, CTX_data_main(), ptr, RNA_OVERRIDE_STATUS_OVERRIDDEN, RNA_property_override_library_status(), and UI_context_active_but_prop_get().
Referenced by UI_OT_override_remove_button().
|
static |
Definition at line 564 of file interface_ops.cc.
References all(), BKE_reportf(), BLI_assert, C, CTX_data_main(), LIBOVERRIDE_OP_ADD, LIBOVERRIDE_OP_MULTIPLY, LIBOVERRIDE_OP_NOOP, LIBOVERRIDE_OP_REPLACE, NC_WM, ND_LIB_OVERRIDE_CHANGED, IDOverrideLibraryPropertyOperation::operation, operator_button_property_finish(), OPERATOR_CANCELLED, ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RNA_property_override_property_operation_get(), RPT_WARNING, UI_context_active_but_prop_get(), UIOverride_Type_Difference, UIOverride_Type_Factor, UIOverride_Type_NOOP, UIOverride_Type_Replace, and WM_main_add_notifier().
Referenced by override_type_set_button_invoke(), and UI_OT_override_type_set_button().
|
static |
Definition at line 623 of file interface_ops.cc.
References C, LIBOVERRIDE_OP_REPLACE, override_type_set_button_exec(), wmOperator::ptr, RNA_enum_set(), WM_menu_invoke_ex(), and WM_OP_INVOKE_DEFAULT.
Referenced by UI_OT_override_type_set_button().
|
static |
Definition at line 550 of file interface_ops.cc.
References C, CTX_data_main(), ptr, RNA_OVERRIDE_STATUS_OVERRIDABLE, RNA_property_override_library_status(), and UI_context_active_but_prop_get().
Referenced by UI_OT_override_type_set_button().
|
static |
Definition at line 2258 of file interface_ops.cc.
References BLF_cache_clear(), BLT_lang_init(), BLT_lang_set(), OPERATOR_FINISHED, and UI_reinit_font().
Referenced by UI_OT_reloadtranslation().
|
static |
Definition at line 362 of file interface_ops.cc.
References all(), blender::animrig::autokeyframe_property(), C, RenderData::cfra, CTX_data_scene(), operator_button_property_finish_with_undo(), OPERATOR_CANCELLED, ptr, wmOperator::ptr, Scene::r, RNA_boolean_get(), RNA_property_editable(), RNA_property_reset(), and UI_context_active_but_prop_get().
Referenced by UI_OT_reset_default_button().
|
static |
Definition at line 351 of file interface_ops.cc.
References C, ptr, RNA_property_editable(), and UI_context_active_but_prop_get().
Referenced by UI_OT_reset_default_button().
|
static |
Construct a PointerRNA that points to pchan->bone.
Pose bones are owned by an Object, whereas pchan->bone is owned by the Armature, so this doesn't just remap the pointer's data field, but also its owner_id.
Definition at line 1045 of file interface_ops.cc.
References BLI_assert, bPoseChannel::bone, Object::data, PointerRNA::data, GS, bArmature::id, ID_AR, ID_OB, ID::name, PointerRNA::owner_id, and RNA_pointer_create_discrete().
Referenced by UI_context_copy_to_selected_list(), and ui_context_selected_bones_via_pose().
|
static |
Definition at line 2284 of file interface_ops.cc.
References BKE_screen_find_region_xy(), C, CTX_wm_region(), CTX_wm_region_set(), CTX_wm_screen(), CTX_wm_window(), uiBut::flag, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, uiBut::optype, wmOperator::ptr, RGN_TYPE_ANY, RNA_boolean_get(), UI_but_execute(), UI_context_active_but_get(), UI_SELECT, UI_SELECT_DRAW, WM_event_add_mousemove(), and wmEvent::xy.
Referenced by UI_OT_button_execute().
| bool UI_context_copy_to_selected_check | ( | PointerRNA * | ptr, |
| PointerRNA * | ptr_link, | ||
| PropertyRNA * | prop, | ||
| const char * | path, | ||
| bool | use_path_from_id, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop ) |
Definition at line 1425 of file interface_ops.cc.
References BLI_assert, PointerRNA::data, NodesModifierData::node_group, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_path_resolve_property(), RNA_property_editable(), RNA_property_is_idprop(), RNA_property_type(), RNA_struct_is_a(), and PointerRNA::type.
Referenced by copy_driver_to_selected_button(), copy_to_selected_button(), and ui_selectcontext_begin().
| bool UI_context_copy_to_selected_list | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| blender::Vector< PointerRNA > * | r_lb, | ||
| bool * | r_use_path_from_id, | ||
| std::optional< std::string > * | r_path ) |
Definition at line 1091 of file interface_ops.cc.
References BKE_idtype_idcode_to_name(), BLI_assert, BLI_assert_msg, C, CTX_data_collection_get(), CTX_data_collection_remap_property(), CTX_data_pointer_get_type(), CTX_data_pointer_get_type_silent(), Object::data, PointerRNA::data, bArmature::edbo, GS, ID_AR, ID_IS_EDITABLE, ID_OB, ID_SCE, ID_TAG_DOIT, bNode::idname, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), mod, ID::name, new_lb, blender::bke::node_find_node(), NOT_RNA_NULL, OB_DATA_SUPPORT_ID, printf, ptr, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_path_from_ptr_to_property_index(), RNA_path_from_struct_to_idproperty(), RNA_path_resolve_from_type_to_property(), RNA_path_resolve_property(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_identifier(), RNA_property_is_idprop(), RNA_property_type(), RNA_PropertyGroup, RNA_struct_is_a(), RNA_struct_type_find_property(), rnapointer_pchan_to_bone(), STREQ, ID::tag, PointerRNA::type, ui_context_fcurve_modifiers_via_fcurve(), and ui_context_selected_bones_via_pose().
Referenced by copy_driver_to_selected_button(), copy_to_selected_button(), ui_selectcontext_begin(), and view_curve_in_graph_editor_exec().
|
static |
Definition at line 1069 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), C, blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), CTX_data_collection_get(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LISTBASE_FOREACH, mod, FCurve::modifiers, FModifier::name, ptr, RNA_pointer_create_discrete(), STREQ, and FModifier::type.
Referenced by UI_context_copy_to_selected_list().
|
static |
Definition at line 1058 of file interface_ops.cc.
References C, CTX_data_collection_get(), ptr, and rnapointer_pchan_to_bone().
Referenced by UI_context_copy_to_selected_list().
Definition at line 2391 of file interface_ops.cc.
References uiDragColorHandle::color, uiDragColorHandle::gamma_corrected, uiDragColorHandle::has_alpha, wmDrag::poin, wmDropBox::ptr, RNA_boolean_set(), and RNA_float_set_array().
Referenced by ED_keymap_screen(), and blender::ed::space_node::node_dropboxes().
Definition at line 2369 of file interface_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::image, SpaceImage::mode, ARegion::regiontype, RGN_TYPE_WINDOW, SI_MODE_PAINT, wmDrag::type, UI_but_active_drop_color(), and WM_DRAG_COLOR.
Referenced by ED_keymap_screen().
|
static |
Definition at line 2829 of file interface_ops.cc.
References BKE_MAT_ASSIGN_USERPREF, BKE_object_material_assign(), BLI_assert, C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), Material::gp_style, Object::id, ID_MA, ID_RECALC_TRANSFORM, NC_MATERIAL, NC_OBJECT, NC_SPACE, ND_OB_SHADING, ND_SHADING_LINKS, ND_SPACE_VIEW3D, OB_GREASE_PENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::ptr, RNA_int_get(), Object::type, WM_event_add_notifier(), and WM_operator_properties_id_lookup_from_name_or_session_uid().
Referenced by UI_OT_drop_material().
|
static |
Definition at line 2813 of file interface_ops.cc.
References C, CTX_data_pointer_get_type(), ptr, and RNA_pointer_is_null().
| bool ui_jump_to_target_button_poll | ( | bContext * | C | ) |
Definition at line 2010 of file interface_ops.cc.
References C, and jump_to_target_button().
Referenced by UI_OT_jump_to_target_button(), and ui_popup_context_menu_for_button().
|
static |
Definition at line 2528 of file interface_ops.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, and UI_list_find_mouse_over().
Referenced by UI_OT_list_start_filter().
|
static |
Definition at line 2555 of file interface_ops.cc.
References BLI_assert, C, CTX_wm_region(), OPERATOR_CANCELLED, OPERATOR_FINISHED, UI_list_find_mouse_over(), ui_list_unhide_filter_options(), ui_region_redraw_immediately(), and UI_textbutton_activate_rna().
Referenced by UI_OT_list_start_filter().
|
static |
Ensure the filter options are set to be visible in the UI list.
Definition at line 2544 of file interface_ops.cc.
References uiList::filter_flag, and UILST_FLT_SHOW.
Referenced by ui_list_start_filter_invoke().
|
static |
Definition at line 453 of file interface_ops.cc.
References assign_default_button_exec(), assign_default_button_poll(), OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2323 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, RNA_def_boolean(), and ui_button_press_invoke().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2352 of file interface_ops.cc.
References button_string_clear_exec(), ED_operator_regionactive(), OPTYPE_INTERNAL, and ot.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 241 of file interface_ops.cc.
References copy_as_driver_button_exec(), copy_as_driver_button_poll(), OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 166 of file interface_ops.cc.
References copy_data_path_button_exec(), copy_data_path_button_poll(), OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, RNA_def_boolean(), and RNA_def_property_flag().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 1862 of file interface_ops.cc.
References copy_driver_to_selected_button_exec(), copy_driver_to_selected_button_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 294 of file interface_ops.cc.
References copy_python_command_button_exec(), copy_python_command_button_poll(), OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 1591 of file interface_ops.cc.
References copy_to_selected_button_exec(), copy_to_selected_button_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2452 of file interface_ops.cc.
References drop_color_invoke(), ED_operator_regionactive(), FLT_MAX, OPTYPE_INTERNAL, ot, RNA_def_boolean(), and RNA_def_float_color().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2862 of file interface_ops.cc.
References OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, ui_drop_material_exec(), ui_drop_material_poll(), and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2508 of file interface_ops.cc.
References drop_name_invoke(), drop_name_poll(), OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and RNA_def_string().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2022 of file interface_ops.cc.
References jump_to_target_button_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and ui_jump_to_target_button_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2575 of file interface_ops.cc.
References ot, ui_list_focused_poll(), and ui_list_start_filter_invoke().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 978 of file interface_ops.cc.
References OPTYPE_UNDO, ot, override_idtemplate_clear_exec(), and override_idtemplate_clear_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 851 of file interface_ops.cc.
References OPTYPE_UNDO, ot, override_idtemplate_make_exec(), and override_idtemplate_make_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 900 of file interface_ops.cc.
References OPTYPE_UNDO, ot, override_idtemplate_reset_exec(), and override_idtemplate_reset_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 735 of file interface_ops.cc.
References OPTYPE_UNDO, ot, override_remove_button_exec(), override_remove_button_poll(), and RNA_def_boolean().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 635 of file interface_ops.cc.
References OPTYPE_UNDO, ot, override_type_items, override_type_set_button_exec(), override_type_set_button_invoke(), override_type_set_button_poll(), RNA_def_boolean(), RNA_def_enum(), and UIOverride_Type_Replace.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2267 of file interface_ops.cc.
References ot, and reloadtranslation_exec().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 389 of file interface_ops.cc.
References OPTYPE_REGISTER, ot, reset_default_button_exec(), reset_default_button_poll(), and RNA_def_boolean().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 495 of file interface_ops.cc.
References ED_operator_regionactive(), OPTYPE_UNDO, ot, and unset_property_button_exec().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2676 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, ui_view_drop_invoke(), and ui_view_drop_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2793 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, ui_view_item_rename_exec(), and ui_view_item_rename_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2750 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, ui_view_scroll_invoke(), and ui_view_scroll_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2625 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, ui_view_focused_poll(), and ui_view_start_filter_invoke().
Referenced by ED_operatortypes_ui().
Definition at line 92 of file interface_ops.cc.
References C, ED_region_do_draw(), ED_region_do_layout(), ARegion::runtime, WM_draw_region_viewport_bind(), and WM_draw_region_viewport_unbind().
Referenced by ui_list_start_filter_invoke().
|
static |
Definition at line 2656 of file interface_ops.cc.
References C, CTX_wm_region(), wmEvent::custom, wmEvent::customdata, blender::ui::drop_target_apply_drop(), ED_region_tag_redraw(), EVT_DATA_DRAGDROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, blender::ui::region_views_find_drop_target_at(), and wmEvent::xy.
Referenced by UI_OT_view_drop().
|
static |
Definition at line 2643 of file interface_ops.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, blender::ui::region_views_find_drop_target_at(), and wmEvent::xy.
|
static |
Definition at line 2605 of file interface_ops.cc.
References C, get_view_focused(), and view.
Referenced by UI_OT_view_start_filter().
|
static |
Definition at line 2782 of file interface_ops.cc.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, UI_region_views_find_active_item(), and UI_view_item_begin_rename().
Referenced by UI_OT_view_item_rename().
|
static |
Definition at line 2772 of file interface_ops.cc.
References C, CTX_wm_region(), UI_region_views_find_active_item(), and UI_view_item_can_rename().
Referenced by UI_OT_view_item_rename().
|
static |
Definition at line 2704 of file interface_ops.cc.
References BLI_assert, C, CTX_wm_region(), blender::ui::DOWN, ED_region_tag_redraw(), wmEvent::flag, get_view_focused(), MOUSEPAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, ui_pan_to_scroll(), blender::ui::UP, view, WHEELDOWNMOUSE, WHEELUPMOUSE, and WM_EVENT_SCROLL_INVERT.
Referenced by UI_OT_view_scroll().
|
static |
Definition at line 2694 of file interface_ops.cc.
References C, get_view_focused(), and view.
Referenced by UI_OT_view_scroll().
|
static |
Definition at line 2611 of file interface_ops.cc.
References blender::ui::AbstractView::begin_filtering(), C, CTX_wm_region(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, UI_region_view_find_at(), and wmEvent::xy.
Referenced by UI_OT_view_start_filter().
|
static |
Definition at line 474 of file interface_ops.cc.
References C, operator_button_property_finish(), OPERATOR_CANCELLED, ptr, RNA_property_editable(), RNA_property_is_set(), RNA_property_unset(), and UI_context_active_but_prop_get().
Referenced by UI_OT_unset_property_button().
|
static |
Definition at line 526 of file interface_ops.cc.
Referenced by UI_OT_override_type_set_button().