|
Blender V4.3
|
#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 "BLI_blenlib.h"#include "BLI_math_color.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_material.h"#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 |
Functions | |
| blender::Vector< FCurve * > | blender::interface::internal::get_property_drivers (PointerRNA *ptr, PropertyRNA *prop, bool get_all, int index, bool *r_is_array_prop) |
| int | blender::interface::internal::paste_property_drivers (blender::Span< FCurve * > src_drivers, bool is_array_prop, PointerRNA *dst_ptr, PropertyRNA *dst_prop) |
Immediate redraw helper | |
Generally handlers shouldn't do any redrawing, that includes the layout/button definitions. That violates the Model-View-Controller pattern. But there are some operators which really need to re-run the layout definitions for various reasons. For example, "Edit Source" does it to find out which exact Python code added a button. Other operators may need to access buttons that aren't currently visible. In Blender's UI code design that typically means just not adding the button in the first place, for a particular redraw. So the operator needs to change context and re-create the layout, so the button becomes available to act on. | |
| static void | ui_region_redraw_immediately (bContext *C, ARegion *region) |
Copy Data Path Operator | |
| static bool | copy_data_path_button_poll (bContext *C) |
| static int | copy_data_path_button_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_copy_data_path_button (wmOperatorType *ot) |
Copy As Driver Operator | |
| static bool | copy_as_driver_button_poll (bContext *C) |
| static int | copy_as_driver_button_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_copy_as_driver_button (wmOperatorType *ot) |
Copy Python Command Operator | |
| static bool | copy_python_command_button_poll (bContext *C) |
| static int | copy_python_command_button_exec (bContext *C, wmOperator *) |
| static void | UI_OT_copy_python_command_button (wmOperatorType *ot) |
Reset to Default Values Button Operator | |
| static int | operator_button_property_finish (bContext *C, PointerRNA *ptr, PropertyRNA *prop) |
| static int | operator_button_property_finish_with_undo (bContext *C, PointerRNA *ptr, PropertyRNA *prop) |
| static bool | reset_default_button_poll (bContext *C) |
| static int | reset_default_button_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_reset_default_button (wmOperatorType *ot) |
Assign Value as Default Button Operator | |
| static bool | assign_default_button_poll (bContext *C) |
| static int | assign_default_button_exec (bContext *C, wmOperator *) |
| static void | UI_OT_assign_default_button (wmOperatorType *ot) |
Unset Property Button Operator | |
| static int | unset_property_button_exec (bContext *C, wmOperator *) |
| static void | UI_OT_unset_property_button (wmOperatorType *ot) |
Copy Driver To Selected Operator | |
| static bool | copy_driver_to_selected_button (bContext *C, bool copy_entire_array, const bool poll) |
| static bool | copy_driver_to_selected_button_poll (bContext *C) |
| static int | copy_driver_to_selected_button_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_copy_driver_to_selected_button (wmOperatorType *ot) |
Jump to Target Operator | |
| static bool | jump_to_target_ptr (bContext *C, PointerRNA ptr, const bool poll) |
| static bool | jump_to_target_button (bContext *C, bool poll) |
| bool | ui_jump_to_target_button_poll (bContext *C) |
| static int | jump_to_target_button_exec (bContext *C, wmOperator *) |
| static void | UI_OT_jump_to_target_button (wmOperatorType *ot) |
Reload Translation Operator | |
| static int | reloadtranslation_exec (bContext *, wmOperator *) |
| static void | UI_OT_reloadtranslation (wmOperatorType *ot) |
Press Button Operator | |
| static int | ui_button_press_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | UI_OT_button_execute (wmOperatorType *ot) |
Text Button Clear Operator | |
| static int | button_string_clear_exec (bContext *C, wmOperator *) |
| static void | UI_OT_button_string_clear (wmOperatorType *ot) |
Drop Color Operator | |
| bool | UI_drop_color_poll (bContext *C, wmDrag *drag, const wmEvent *) |
| void | UI_drop_color_copy (bContext *, wmDrag *drag, wmDropBox *drop) |
| static int | drop_color_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | UI_OT_drop_color (wmOperatorType *ot) |
Drop Name Operator | |
| static bool | drop_name_poll (bContext *C) |
| static int | drop_name_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static void | UI_OT_drop_name (wmOperatorType *ot) |
UI List Search Operator | |
| static bool | ui_list_focused_poll (bContext *C) |
| static bool | ui_list_unhide_filter_options (uiList *list) |
| static int | ui_list_start_filter_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | UI_OT_list_start_filter (wmOperatorType *ot) |
UI View Start Filter Operator | |
| static AbstractView * | get_view_focused (bContext *C) |
| static bool | ui_view_focused_poll (bContext *C) |
| static int | ui_view_start_filter_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | UI_OT_view_start_filter (wmOperatorType *ot) |
UI View Drop Operator | |
| static bool | ui_view_drop_poll (bContext *C) |
| static int | ui_view_drop_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | UI_OT_view_drop (wmOperatorType *ot) |
| static bool | ui_view_scroll_poll (bContext *C) |
| static int | ui_view_scroll_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | UI_OT_view_scroll (wmOperatorType *ot) |
UI View Item Rename Operator | |
General purpose renaming operator for views. Thanks to this, to add a rename button to context menus for example, view API users don't have to implement their own renaming operators with the same logic as they already have for their #ui::AbstractViewItem::rename() override. | |
| static bool | ui_view_item_rename_poll (bContext *C) |
| static int | ui_view_item_rename_exec (bContext *C, wmOperator *) |
| static void | UI_OT_view_item_rename (wmOperatorType *ot) |
Material Drag/Drop Operator | |
| static bool | ui_drop_material_poll (bContext *C) |
| static int | ui_drop_material_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_drop_material (wmOperatorType *ot) |
Operator & Keymap Registration | |
| void | ED_operatortypes_ui () |
| void | ED_keymap_ui (wmKeyConfig *keyconf) |
| User Interface Keymap. | |
Copy To Selected Operator | |
| #define | NOT_NULL(assignment) ((assignment) != nullptr) |
| #define | NOT_RNA_NULL(assignment) ((assignment).data != nullptr) |
| 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 int | copy_to_selected_button_exec (bContext *C, wmOperator *op) |
| static void | UI_OT_copy_to_selected_button (wmOperatorType *ot) |
| #define NOT_NULL | ( | assignment | ) | ((assignment) != nullptr) |
Definition at line 1020 of file interface_ops.cc.
| #define NOT_RNA_NULL | ( | assignment | ) | ((assignment).data != nullptr) |
Definition at line 1021 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 503 of file interface_ops.cc.
|
static |
Definition at line 419 of file interface_ops.cc.
References PointerRNA::data, 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 401 of file interface_ops.cc.
References PointerRNA::data, 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 2276 of file interface_ops.cc.
References 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 209 of file interface_ops.cc.
References ANIM_copy_as_driver(), BKE_reportf(), CTX_data_main(), PointerRNA::data, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, 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 188 of file interface_ops.cc.
References PointerRNA::data, ELEM, PointerRNA::owner_id, 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 120 of file interface_ops.cc.
References CTX_data_main(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, 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 102 of file interface_ops.cc.
References PointerRNA::data, PointerRNA::owner_id, 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.
UI_context_copy_to_selected_list(), and the setup required to call that would either be duplicated or need to be split out into its own awkward difficult-to-name function with a large number of parameters. So instead we follow the same pattern as copy_to_selected_button() further above, with a bool to switch between exec and poll behavior. This isn't great, but seems like the lesser evil under the circumstances.| 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 1723 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), PointerRNA::data, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), PointerRNA::owner_id, 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 1806 of file interface_ops.cc.
References 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 1801 of file interface_ops.cc.
References copy_driver_to_selected_button().
Referenced by UI_OT_copy_driver_to_selected_button().
|
static |
Definition at line 271 of file interface_ops.cc.
References 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 260 of file interface_ops.cc.
References 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 1481 of file interface_ops.cc.
References CTX_data_main(), PointerRNA::data, 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 1537 of file interface_ops.cc.
References 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 1532 of file interface_ops.cc.
References copy_to_selected_button().
Referenced by UI_OT_copy_to_selected_button().
|
static |
Definition at line 2334 of file interface_ops.cc.
References BLI_assert, 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_array_length(), RNA_property_float_get_index(), RNA_property_float_set_array(), RNA_property_subtype(), RNA_property_ui_name(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, srgb_to_linearrgb_v3_v3(), 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 2430 of file interface_ops.cc.
References 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 2412 of file interface_ops.cc.
References 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 2852 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 2805 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 2524 of file interface_ops.cc.
References 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 1915 of file interface_ops.cc.
References uiButSearch::arg, PointerRNA::data, 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 1972 of file interface_ops.cc.
References 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 1847 of file interface_ops.cc.
References BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, 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, ID::name, OB_ARMATURE, OB_DATA_SUPPORT_ID, Base::object, PointerRNA::owner_id, ptr, RNA_pointer_is_null(), RNA_string_get(), RNA_struct_is_a(), Object::type, and PointerRNA::type.
Referenced by jump_to_target_button().
|
static |
Definition at line 310 of file interface_ops.cc.
References ID_CHECK_UNDO, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, 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 330 of file interface_ops.cc.
References OPERATOR_FINISHED, ptr, RNA_property_update(), and UI_context_active_but_prop_handle().
Referenced by reset_default_button_exec().
|
static |
Definition at line 903 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, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ELEM, GS, ID_IS_LINKED, ID_OB, ID_RECALC_BASE_FLAGS, ID_RECALC_SELECT, ID_RECALC_SYNC_TO_EVAL, ID_REMAP_SKIP_INDIRECT_USAGE, ID::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 898 of file interface_ops.cc.
References override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_clear().
|
static |
Definition at line 737 of file interface_ops.cc.
References 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 794 of file interface_ops.cc.
References 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 789 of file interface_ops.cc.
References override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_make().
|
static |
Definition at line 1002 of file interface_ops.cc.
References MenuType::draw, MenuType::idname, MenuType::label, N_, override_idtemplate_menu_draw(), override_idtemplate_menu_poll(), MenuType::poll, STRNCPY, and WM_menutype_add().
Referenced by ED_operatortypes_ui().
Definition at line 994 of file interface_ops.cc.
References IFACE_, Menu::layout, and uiItemO().
Referenced by override_idtemplate_menu().
Definition at line 978 of file interface_ops.cc.
References ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, and override_idtemplate_ids_get().
Referenced by override_idtemplate_menu().
|
static |
Definition at line 766 of file interface_ops.cc.
References 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 856 of file interface_ops.cc.
References BKE_lib_override_library_id_reset(), 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 851 of file interface_ops.cc.
References override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_reset().
|
static |
Definition at line 659 of file interface_ops.cc.
References 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(), CTX_data_main(), NC_WM, ND_LIB_OVERRIDE_CHANGED, IDOverrideLibraryPropertyOperation::operation, IDOverrideLibraryProperty::operations, operator_button_property_finish(), PointerRNA::owner_id, ptr, wmOperator::ptr, 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 645 of file interface_ops.cc.
References CTX_data_main(), PointerRNA::data, PointerRNA::owner_id, 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 549 of file interface_ops.cc.
References BKE_reportf(), BLI_assert, 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, PointerRNA::owner_id, 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 608 of file interface_ops.cc.
References 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 535 of file interface_ops.cc.
References CTX_data_main(), PointerRNA::data, 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 2193 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 354 of file interface_ops.cc.
References PointerRNA::data, operator_button_property_finish_with_undo(), OPERATOR_CANCELLED, ptr, wmOperator::ptr, 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 343 of file interface_ops.cc.
References PointerRNA::data, ptr, RNA_property_editable(), and UI_context_active_but_prop_get().
Referenced by UI_OT_reset_default_button().
|
static |
Definition at line 2219 of file interface_ops.cc.
References BKE_screen_find_region_xy(), 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 1382 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 1059 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_idtype_idcode_to_name(), BLI_assert, BLI_assert_msg, bPoseChannel::bone, 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, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), mod(), ID::name, blender::bke::node_find_node_try(), NOT_RNA_NULL, OB_DATA_SUPPORT_ID, PointerRNA::owner_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_pointer_create(), 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(), STREQ, ID::tag, bNode::type, 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 1037 of file interface_ops.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), CTX_data_collection_get(), PointerRNA::data, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LISTBASE_FOREACH, mod(), FCurve::modifiers, FModifier::name, PointerRNA::owner_id, ptr, RNA_pointer_create(), STREQ, and FModifier::type.
Referenced by UI_context_copy_to_selected_list().
|
static |
Definition at line 1023 of file interface_ops.cc.
References bPoseChannel::bone, CTX_data_collection_get(), PointerRNA::data, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), PointerRNA::owner_id, ptr, and RNA_pointer_create().
Referenced by UI_context_copy_to_selected_list().
Definition at line 2326 of file interface_ops.cc.
References uiDragColorHandle::color, uiDragColorHandle::gamma_corrected, wmDrag::poin, wmDropBox::ptr, RNA_boolean_set(), and RNA_float_set_array().
Referenced by ED_keymap_screen().
Definition at line 2304 of file interface_ops.cc.
References CTX_wm_region(), CTX_wm_space_image(), SpaceImage::image, SpaceImage::mode, 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 2753 of file interface_ops.cc.
References BKE_MAT_ASSIGN_USERPREF, BKE_object_material_assign(), BLI_assert, 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_GPENCIL_LEGACY, 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 2737 of file interface_ops.cc.
References CTX_data_pointer_get_type(), PointerRNA::data, ptr, and RNA_pointer_is_null().
Referenced by UI_OT_drop_material().
| bool ui_jump_to_target_button_poll | ( | bContext * | C | ) |
Definition at line 1967 of file interface_ops.cc.
References jump_to_target_button().
Referenced by UI_OT_jump_to_target_button(), and ui_popup_context_menu_for_button().
|
static |
Definition at line 2463 of file interface_ops.cc.
References 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 2490 of file interface_ops.cc.
References BLI_assert, 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 2479 of file interface_ops.cc.
References UILST_FLT_SHOW.
Referenced by ui_list_start_filter_invoke().
|
static |
Definition at line 438 of file interface_ops.cc.
References assign_default_button_exec(), assign_default_button_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2258 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, RNA_def_boolean(), wmOperatorType::srna, and ui_button_press_invoke().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2287 of file interface_ops.cc.
References button_string_clear_exec(), wmOperatorType::description, ED_operator_regionactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 236 of file interface_ops.cc.
References copy_as_driver_button_exec(), copy_as_driver_button_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 161 of file interface_ops.cc.
References copy_data_path_button_exec(), copy_data_path_button_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 1819 of file interface_ops.cc.
References copy_driver_to_selected_button_exec(), copy_driver_to_selected_button_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 289 of file interface_ops.cc.
References copy_python_command_button_exec(), copy_python_command_button_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 1548 of file interface_ops.cc.
References copy_to_selected_button_exec(), copy_to_selected_button_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2389 of file interface_ops.cc.
References wmOperatorType::description, drop_color_invoke(), ED_operator_regionactive(), wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_color(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2786 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, ui_drop_material_exec(), ui_drop_material_poll(), and WM_operator_properties_id_lookup().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2443 of file interface_ops.cc.
References wmOperatorType::description, drop_name_invoke(), drop_name_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 1979 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, jump_to_target_button_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and ui_jump_to_target_button_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2508 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, ui_list_focused_poll(), and ui_list_start_filter_invoke().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 961 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, override_idtemplate_clear_exec(), override_idtemplate_clear_poll(), and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 834 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, override_idtemplate_make_exec(), override_idtemplate_make_poll(), and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 883 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, override_idtemplate_reset_exec(), override_idtemplate_reset_poll(), and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 718 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, override_remove_button_exec(), override_remove_button_poll(), wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 618 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, override_type_items, override_type_set_button_exec(), override_type_set_button_invoke(), override_type_set_button_poll(), wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), wmOperatorType::srna, and UIOverride_Type_Replace.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2202 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and reloadtranslation_exec().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 374 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, reset_default_button_exec(), reset_default_button_poll(), RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 480 of file interface_ops.cc.
References wmOperatorType::description, ED_operator_regionactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, and unset_property_button_exec().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2607 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, ui_view_drop_invoke(), and ui_view_drop_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2717 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, ui_view_item_rename_exec(), and ui_view_item_rename_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2674 of file interface_ops.cc.
References wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, ui_view_scroll_invoke(), and ui_view_scroll_poll().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2556 of file interface_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, ui_view_focused_poll(), and ui_view_start_filter_invoke().
Referenced by ED_operatortypes_ui().
Definition at line 87 of file interface_ops.cc.
References ED_region_do_draw(), ED_region_do_layout(), WM_draw_region_viewport_bind(), and WM_draw_region_viewport_unbind().
Referenced by ui_list_start_filter_invoke().
|
static |
Definition at line 2587 of file interface_ops.cc.
References 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 2574 of file interface_ops.cc.
References CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, blender::ui::region_views_find_drop_target_at(), and wmEvent::xy.
Referenced by UI_OT_view_drop().
|
static |
Definition at line 2538 of file interface_ops.cc.
References get_view_focused().
Referenced by UI_OT_view_start_filter().
|
static |
Definition at line 2706 of file interface_ops.cc.
References 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 2696 of file interface_ops.cc.
References 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 2635 of file interface_ops.cc.
References BLI_assert, CTX_wm_region(), ED_region_tag_redraw(), wmEvent::flag, get_view_focused(), MOUSEPAN, OPERATOR_CANCELLED, OPERATOR_FINISHED, ui_pan_to_scroll(), WHEELDOWNMOUSE, WHEELUPMOUSE, and WM_EVENT_SCROLL_INVERT.
Referenced by UI_OT_view_scroll().
|
static |
Definition at line 2625 of file interface_ops.cc.
References get_view_focused().
Referenced by UI_OT_view_scroll().
|
static |
Definition at line 2544 of file interface_ops.cc.
References blender::ui::AbstractView::begin_filtering(), 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 459 of file interface_ops.cc.
References PointerRNA::data, 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 511 of file interface_ops.cc.
Referenced by UI_OT_override_type_set_button().