|
Blender V5.0
|
#include <cstring>#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "DNA_armature_types.h"#include "DNA_key_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 "BLI_string_utf8.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 "UI_interface_layout.hh"#include "interface_intern.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_object.hh"#include "ED_outliner.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 |
| #define NOT_RNA_NULL | ( | assignment | ) |
Definition at line 969 of file interface_ops.cc.
Referenced by UI_context_copy_to_selected_list().
|
static |
Definition at line 438 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 420 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 2311 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 218 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 197 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 129 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 111 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 1736 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 1819 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 1814 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 280 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 269 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 1494 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 1550 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 1545 of file interface_ops.cc.
References C, and copy_to_selected_button().
Referenced by UI_OT_copy_to_selected_button().
|
static |
Definition at line 2370 of file interface_ops.cc.
References ARRAY_SIZE, C, Color, 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(), 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, srgb_to_linearrgb_v3_v3(), uiBut::type, UI_but_flag_is_set(), UI_BUT_UNDO, and ui_region_find_active_but().
Referenced by UI_OT_drop_color().
|
static |
Definition at line 2465 of file interface_ops.cc.
References C, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), str, UI_but_active_drop_name_button(), and ui_but_set_string_interactive().
Referenced by UI_OT_drop_name().
|
static |
Definition at line 2447 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 3052 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 3003 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_add_button(), UI_OT_override_idtemplate_clear(), UI_OT_override_idtemplate_make(), UI_OT_override_idtemplate_reset(), UI_OT_override_remove_button(), UI_OT_reloadtranslation(), UI_OT_reset_default_button(), UI_OT_unset_property_button(), UI_OT_view_drop(), UI_OT_view_item_delete(), UI_OT_view_item_rename(), UI_OT_view_item_select(), UI_OT_view_scroll(), UI_OT_view_start_filter(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
|
static |
Definition at line 2558 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_item_delete_invoke(), 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 1928 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, SearchMenu, uiBut::type, 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 1985 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 1860 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 319 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_add_button_exec(), override_remove_button_exec(), and unset_property_button_exec().
|
static |
Definition at line 342 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 534 of file interface_ops.cc.
References all(), BKE_reportf(), BLI_assert, C, CTX_data_main(), 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_property_override_property_operation_get(), RPT_WARNING, UI_context_active_but_prop_get(), and WM_main_add_notifier().
Referenced by UI_OT_override_add_button().
|
static |
Definition at line 520 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_add_button().
|
static |
Definition at line 852 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 847 of file interface_ops.cc.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_clear().
|
static |
Definition at line 682 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 743 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 738 of file interface_ops.cc.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_make().
|
static |
Definition at line 951 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_UTF8, and WM_menutype_add().
Referenced by ED_operatortypes_ui().
Definition at line 943 of file interface_ops.cc.
References IFACE_, Menu::layout, and uiLayout::op().
Referenced by override_idtemplate_menu().
Definition at line 927 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 711 of file interface_ops.cc.
References C, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, ID_IS_PACKED, and override_idtemplate_ids_get().
Referenced by override_idtemplate_clear_poll(), override_idtemplate_make_poll(), and override_idtemplate_reset_poll().
|
static |
Definition at line 805 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 800 of file interface_ops.cc.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_reset().
|
static |
Definition at line 604 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 590 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 2228 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 366 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 355 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 977 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 2821 of file interface_ops.cc.
References BLI_assert, blender::ui::AbstractViewItem::get_view(), wmOperator::ptr, RNA_int_get(), ui_region_to_window(), UI_region_view_find_at(), UI_region_views_find_item_at(), and view.
Referenced by ui_view_item_select_exec().
|
static |
Definition at line 2254 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 1395 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 1039 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), 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(), CTX_wm_space_outliner(), Object::data, PointerRNA::data, ED_outliner_selected_objects_get(), bArmature::edbo, GS, Object::id, ID_AR, ID_IS_EDITABLE, ID_OB, ID_SCE, ID_TAG_DOIT, bNode::idname, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LISTBASE_FOREACH, mod, ID::name, 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(), ui_context_selected_bones_via_pose(), and ui_context_selected_key_blocks().
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 1001 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 990 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().
|
static |
Definition at line 1023 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Key::block, KEYBLOCK_SEL, LISTBASE_FOREACH, and RNA_pointer_create_discrete().
Referenced by UI_context_copy_to_selected_list().
Definition at line 2361 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 2339 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 2951 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 2935 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 1980 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 2495 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 2522 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 2511 of file interface_ops.cc.
References uiList::filter_flag, and UILST_FLT_SHOW.
Referenced by ui_list_start_filter_invoke().
|
static |
Definition at line 457 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 2293 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 2322 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 245 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 170 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 1832 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 298 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 1561 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 2422 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 2984 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 2475 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 1992 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 2542 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 572 of file interface_ops.cc.
References OPTYPE_UNDO, ot, override_add_button_exec(), override_add_button_poll(), and RNA_def_boolean().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 910 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 783 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 832 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 663 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 2237 of file interface_ops.cc.
References ot, and reloadtranslation_exec().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 393 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 499 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 2643 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 2917 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, ui_view_focused_poll(), and ui_view_item_delete_invoke().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2760 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 2878 of file interface_ops.cc.
References OPTYPE_INTERNAL, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), ui_view_focused_poll(), ui_view_item_select_exec(), ui_view_item_select_invoke(), WM_generic_select_modal(), and WM_operator_properties_generic_select().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2717 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 2592 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 96 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 2623 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 2610 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 2572 of file interface_ops.cc.
References C, get_view_focused(), and view.
Referenced by UI_OT_view_item_delete(), UI_OT_view_item_select(), and UI_OT_view_start_filter().
|
static |
Definition at line 2902 of file interface_ops.cc.
References C, blender::ui::AbstractViewItem::delete_item(), get_view_focused(), blender::ui::AbstractViewItem::is_active(), blender::ui::AbstractViewItem::is_selected(), OPERATOR_FINISHED, and view.
Referenced by UI_OT_view_item_delete().
|
static |
Definition at line 2749 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 2739 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 2841 of file interface_ops.cc.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_CANCELLED, wmOperator::ptr, RNA_boolean_get(), select_operator_view_and_item_find_xy(), status, view, and view_item_click_select().
Referenced by UI_OT_view_item_select().
|
static |
Definition at line 2863 of file interface_ops.cc.
References C, CTX_wm_region(), blender::ui::AbstractViewItem::is_select_on_click(), wmOperator::ptr, RNA_boolean_set(), UI_region_views_find_item_at(), WM_generic_select_invoke(), and wmEvent::xy.
Referenced by UI_OT_view_item_select().
|
static |
Definition at line 2671 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 2661 of file interface_ops.cc.
References C, get_view_focused(), and view.
Referenced by UI_OT_view_scroll().
|
static |
Definition at line 2578 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 478 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 2774 of file interface_ops.cc.
References blender::ui::AbstractViewItem::activate(), C, blender::ui::AbstractViewItem::is_active(), blender::ui::AbstractViewItem::is_selected(), OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, blender::ui::AbstractViewItem::set_selected(), and view.
Referenced by ui_view_item_select_exec().