Blender
V3.3
|
#include <string.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 "DNA_text_types.h"
#include "BLI_blenlib.h"
#include "BLI_math_color.h"
#include "BLF_api.h"
#include "BLT_lang.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_idprop.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_lib_override.h"
#include "BKE_lib_remap.h"
#include "BKE_material.h"
#include "BKE_node.h"
#include "BKE_report.h"
#include "BKE_screen.h"
#include "BKE_text.h"
#include "IMB_colormanagement.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_path.h"
#include "RNA_prototypes.h"
#include "RNA_types.h"
#include "UI_interface.h"
#include "interface_intern.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_object.h"
#include "ED_paint.h"
#include "ED_keyframing.h"
#include "BKE_main.h"
#include "BLI_ghash.h"
#include "ED_screen.h"
#include "ED_text.h"
Go to the source code of this file.
Functions | |
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 *UNUSED(op)) |
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 *UNUSED(op)) |
static void | UI_OT_assign_default_button (wmOperatorType *ot) |
Unset Property Button Operator | |
static int | unset_property_button_exec (bContext *C, wmOperator *UNUSED(op)) |
static void | UI_OT_unset_property_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 *UNUSED(op)) |
static void | UI_OT_jump_to_target_button (wmOperatorType *ot) |
Reload Translation Operator | |
static int | reloadtranslation_exec (bContext *UNUSED(C), wmOperator *UNUSED(op)) |
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 *UNUSED(op)) |
static void | UI_OT_button_string_clear (wmOperatorType *ot) |
Drop Color Operator | |
bool | UI_drop_color_poll (struct bContext *C, wmDrag *drag, const wmEvent *UNUSED(event)) |
void | UI_drop_color_copy (bContext *UNUSED(C), 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 *UNUSED(event)) |
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 *UNUSED(op), const wmEvent *event) |
static void | UI_OT_list_start_filter (wmOperatorType *ot) |
UI Tree-View Drop Operator | |
static bool | ui_view_drop_poll (bContext *C) |
static int | ui_view_drop_invoke (bContext *C, wmOperator *UNUSED(op), const wmEvent *event) |
static void | UI_OT_view_drop (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 *UNUSED(op)) |
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) |
void | ED_keymap_ui (wmKeyConfig *keyconf) |
User Interface Keymap. More... | |
Copy To Selected Operator | |
#define | NOT_NULL(assignment) ((assignment) != NULL) |
#define | NOT_RNA_NULL(assignment) ((assignment).data != NULL) |
static void | ui_context_selected_bones_via_pose (bContext *C, ListBase *r_lb) |
bool | UI_context_copy_to_selected_list (bContext *C, PointerRNA *ptr, PropertyRNA *prop, ListBase *r_lb, bool *r_use_path_from_id, char **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) |
Definition at line 1033 of file interface_ops.c.
Definition at line 1034 of file interface_ops.c.
anonymous enum |
Enumerator | |
---|---|
UIOverride_Type_NOOP | |
UIOverride_Type_Replace | |
UIOverride_Type_Difference | |
UIOverride_Type_Factor |
Definition at line 506 of file interface_ops.c.
|
static |
Definition at line 423 of file interface_ops.c.
References C, 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().
Definition at line 405 of file interface_ops.c.
References C, PointerRNA::data, ELEM, PROP_FLOAT, PROP_INT, ptr, RNA_property_array_check(), RNA_property_editable(), RNA_property_is_idprop(), RNA_property_type(), type, and UI_context_active_but_prop_get().
Referenced by UI_OT_assign_default_button().
|
static |
Definition at line 2104 of file interface_ops.c.
References C, OPERATOR_FINISHED, ui_but_active_string_clear_and_exit(), and UI_context_active_but_get_respect_menu().
Referenced by UI_OT_button_string_clear().
|
static |
Definition at line 210 of file interface_ops.c.
References ANIM_copy_as_driver(), BKE_reportf(), C, CTX_data_main(), PointerRNA::data, id, MEM_freeN, NULL, 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().
Definition at line 187 of file interface_ops.c.
References C, PointerRNA::data, ELEM, MEM_freeN, 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(), and UI_context_active_but_prop_get().
Referenced by UI_OT_copy_as_driver_button().
|
static |
Definition at line 119 of file interface_ops.c.
References C, CTX_data_main(), id, MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, wmOperator::ptr, ptr, RNA_boolean_get(), RNA_path_from_ID_to_property(), RNA_path_from_real_ID_to_property_index(), RNA_path_full_property_py_ex(), RNA_path_full_struct_py(), UI_context_active_but_prop_get(), and WM_clipboard_text_set().
Referenced by UI_OT_copy_data_path_button().
Definition at line 98 of file interface_ops.c.
References C, PointerRNA::data, MEM_freeN, PointerRNA::owner_id, ptr, RNA_path_from_ID_to_property(), and UI_context_active_but_prop_get().
Referenced by UI_OT_copy_data_path_button().
|
static |
Definition at line 273 of file interface_ops.c.
References C, MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, uiBut::optype, str, UI_but_operator_ptr_get(), UI_context_active_but_get(), WM_clipboard_text_set(), and WM_operator_pystring_ex().
Referenced by UI_OT_copy_python_command_button().
Definition at line 262 of file interface_ops.c.
References C, NULL, uiBut::optype, and UI_context_active_but_get().
Referenced by UI_OT_copy_python_command_button().
Called from both exec & poll.
Definition at line 1376 of file interface_ops.c.
References all(), BLI_freelistN(), BLI_listbase_is_empty(), C, CTX_data_main(), PointerRNA::data, LISTBASE_FOREACH, MEM_SAFE_FREE, NULL, 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 1435 of file interface_ops.c.
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().
Definition at line 1430 of file interface_ops.c.
References C, and copy_to_selected_button().
Referenced by UI_OT_copy_to_selected_button().
|
static |
Definition at line 2161 of file interface_ops.c.
References BLI_assert, C, color, CTX_wm_region(), ED_imapaint_bucket_fill(), ED_region_tag_redraw(), IMB_colormanagement_scene_linear_to_srgb_v3(), IMB_colormanagement_srgb_to_scene_linear_v3(), wmEvent::mval, NULL, 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_update(), uiBut::rnapoin, uiBut::rnaprop, srgb_to_linearrgb_v3_v3(), uiBut::type, UI_BTYPE_COLOR, and ui_region_find_active_but().
Referenced by UI_OT_drop_color().
|
static |
Definition at line 2249 of file interface_ops.c.
References C, MEM_freeN, NULL, 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().
Definition at line 2231 of file interface_ops.c.
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 2546 of file interface_ops.c.
References eyedropper_colorband_modal_keymap(), eyedropper_modal_keymap(), and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Definition at line 2503 of file interface_ops.c.
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_python_command_button(), UI_OT_copy_to_selected_button(), UI_OT_drop_color(), UI_OT_drop_material(), UI_OT_drop_name(), UI_OT_eyedropper_color(), UI_OT_eyedropper_colorramp(), UI_OT_eyedropper_colorramp_point(), UI_OT_eyedropper_depth(), UI_OT_eyedropper_driver(), UI_OT_eyedropper_gpencil_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(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Jump to the object or bone referred to by the current UI field value.
Definition at line 1539 of file interface_ops.c.
References uiButSearch::arg, C, PointerRNA::data, uiButSearch::items_update_fn, jump_to_target_ptr(), MAXBONENAME, MEM_freeN, NULL, 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, type, UI_BTYPE_SEARCH_MENU, UI_context_active_but_get(), 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 1596 of file interface_ops.c.
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 1473 of file interface_ops.c.
References BKE_view_layer_base_find(), BLI_assert, C, CTX_data_view_layer(), ED_object_find_first_by_data_id(), ED_object_jump_to_bone(), ED_object_jump_to_object(), ELEM, GS, ID_OB, MAXBONENAME, ID::name, NULL, 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 315 of file interface_ops.c.
References C, 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 335 of file interface_ops.c.
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 917 of file interface_ops.c.
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_base_find(), BLI_assert, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ELEM, GS, id, Scene::id, ID_IS_LINKED, ID_OB, ID_RECALC_BASE_FLAGS, ID_RECALC_COPY_ON_WRITE, ID_RECALC_SELECT, ID_REMAP_SKIP_INDIRECT_USAGE, ID::name, NC_SPACE, NC_WINDOW, NC_WM, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_VIEW3D, NULL, OBACT, OPERATOR_CANCELLED, OPERATOR_FINISHED, override_idtemplate_ids_get(), ID::override_library, IDOverrideLibrary::reference, RNA_property_update(), scene, and WM_event_add_notifier().
Referenced by UI_OT_override_idtemplate_clear().
Definition at line 912 of file interface_ops.c.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_clear().
|
static |
Definition at line 749 of file interface_ops.c.
References C, PointerRNA::data, NULL, 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 806 of file interface_ops.c.
References C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ELEM, id, ID_IS_LINKED, ID_RECALC_BASE_FLAGS, ID_RECALC_COPY_ON_WRITE, NC_SPACE, NC_WINDOW, NC_WM, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_VIEW3D, NULL, 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().
Definition at line 801 of file interface_ops.c.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_make().
Definition at line 1015 of file interface_ops.c.
References MenuType::draw, MenuType::idname, MenuType::label, MEM_callocN, N_, override_idtemplate_menu_draw(), override_idtemplate_menu_poll(), MenuType::poll, and WM_menutype_add().
Referenced by ED_operatortypes_ui().
Definition at line 1007 of file interface_ops.c.
References IFACE_, Menu::layout, and uiItemO().
Referenced by override_idtemplate_menu().
Definition at line 991 of file interface_ops.c.
References C, id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, NULL, and override_idtemplate_ids_get().
Referenced by override_idtemplate_menu().
Definition at line 778 of file interface_ops.c.
References C, id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, NULL, and override_idtemplate_ids_get().
Referenced by override_idtemplate_clear_poll(), override_idtemplate_make_poll(), and override_idtemplate_reset_poll().
|
static |
Definition at line 869 of file interface_ops.c.
References BKE_lib_override_library_id_reset(), C, CTX_data_main(), ELEM, id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, NULL, 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().
Definition at line 864 of file interface_ops.c.
References C, and override_idtemplate_poll().
Referenced by UI_OT_override_idtemplate_reset().
|
static |
Definition at line 663 of file interface_ops.c.
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(), id, ID_IS_OVERRIDE_LIBRARY_TEMPLATE, NC_WM, ND_LIB_OVERRIDE_CHANGED, NULL, IDOverrideLibraryPropertyOperation::operation, IDOverrideLibraryProperty::operations, operator_button_property_finish(), ID::override_library, PointerRNA::owner_id, wmOperator::ptr, 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(), src, UI_context_active_but_prop_get(), and WM_main_add_notifier().
Referenced by UI_OT_override_remove_button().
Definition at line 649 of file interface_ops.c.
References C, 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 552 of file interface_ops.c.
References all(), BKE_reportf(), BLI_assert, C, CTX_data_main(), IDOVERRIDE_LIBRARY_OP_ADD, IDOVERRIDE_LIBRARY_OP_MULTIPLY, IDOVERRIDE_LIBRARY_OP_NOOP, IDOVERRIDE_LIBRARY_OP_REPLACE, NC_WM, ND_LIB_OVERRIDE_CHANGED, NULL, IDOverrideLibraryPropertyOperation::operation, operator_button_property_finish(), OPERATOR_CANCELLED, PointerRNA::owner_id, wmOperator::ptr, 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 611 of file interface_ops.c.
References C, IDOVERRIDE_LIBRARY_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().
Definition at line 538 of file interface_ops.c.
References C, 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 2021 of file interface_ops.c.
References BLF_cache_clear(), BLT_lang_init(), BLT_lang_set(), NULL, OPERATOR_FINISHED, and UI_reinit_font().
Referenced by UI_OT_reloadtranslation().
|
static |
Definition at line 359 of file interface_ops.c.
References all(), C, PointerRNA::data, operator_button_property_finish_with_undo(), OPERATOR_CANCELLED, wmOperator::ptr, ptr, RNA_boolean_get(), RNA_property_editable(), RNA_property_reset(), and UI_context_active_but_prop_get().
Referenced by UI_OT_reset_default_button().
Definition at line 348 of file interface_ops.c.
References C, PointerRNA::data, ptr, RNA_property_editable(), and UI_context_active_but_prop_get().
Referenced by UI_OT_reset_default_button().
|
static |
Definition at line 2047 of file interface_ops.c.
References BKE_screen_find_region_xy(), C, CTX_wm_region(), CTX_wm_region_set(), CTX_wm_screen(), CTX_wm_window(), uiBut::flag, NULL, 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 1278 of file interface_ops.c.
References PointerRNA::data, NodesModifierData::node_group, NULL, 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_to_selected_button(), and ui_selectcontext_begin().
bool UI_context_copy_to_selected_list | ( | bContext * | C, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
ListBase * | r_lb, | ||
bool * | r_use_path_from_id, | ||
char ** | r_path | ||
) |
Definition at line 1051 of file interface_ops.c.
References BLI_listbase_is_empty(), BLI_remlink(), BLI_sprintfN(), bPoseChannel::bone, C, CTX_data_collection_get(), CTX_data_pointer_get_type(), CTX_data_pointer_get_type_silent(), Object::data, PointerRNA::data, GS, id, ID_IS_LINKED, ID_OB, ID_SCE, if(), LIB_TAG_DOIT, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_freeN, ID::name, node, nodeFindNode(), NOT_NULL, NOT_RNA_NULL, ntree, NULL, OB_DATA_SUPPORT_ID, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_path_from_struct_to_idproperty(), RNA_path_resolve_from_type_to_property(), RNA_pointer_create(), RNA_property_identifier(), RNA_property_is_idprop(), RNA_PropertyGroup, RNA_struct_is_a(), RNA_struct_type_find_property(), STREQ, ID::tag, bNode::type, PointerRNA::type, and ui_context_selected_bones_via_pose().
Referenced by copy_to_selected_button(), and ui_selectcontext_begin().
Definition at line 1036 of file interface_ops.c.
References BLI_listbase_is_empty(), bPoseChannel::bone, C, CTX_data_collection_get(), LISTBASE_FOREACH, and RNA_pointer_create().
Referenced by UI_context_copy_to_selected_list().
Definition at line 2153 of file interface_ops.c.
References uiDragColorHandle::color, uiDragColorHandle::gamma_corrected, wmDrag::poin, wmDropBox::ptr, RNA_boolean_set(), and RNA_float_set_array().
Definition at line 2132 of file interface_ops.c.
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.
|
static |
Definition at line 2451 of file interface_ops.c.
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, NULL, OB_GPENCIL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ptr, RNA_int_get(), Object::type, WM_event_add_notifier(), and WM_operator_properties_id_lookup_from_name_or_session_uuid().
Referenced by UI_OT_drop_material().
Definition at line 2435 of file interface_ops.c.
References C, CTX_data_pointer_get_type(), PointerRNA::data, NULL, ptr, and RNA_pointer_is_null().
Referenced by UI_OT_drop_material().
Definition at line 1591 of file interface_ops.c.
References C, and jump_to_target_button().
Referenced by UI_OT_jump_to_target_button(), and ui_popup_context_menu_for_button().
Definition at line 2282 of file interface_ops.c.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, NULL, and UI_list_find_mouse_over().
Referenced by UI_OT_list_start_filter().
|
static |
Definition at line 2309 of file interface_ops.c.
References BLI_assert, C, CTX_wm_region(), NULL, 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().
Ensure the filter options are set to be visible in the UI list.
Definition at line 2298 of file interface_ops.c.
References uiList::filter_flag, and UILST_FLT_SHOW.
Referenced by ui_list_start_filter_invoke().
|
static |
Definition at line 442 of file interface_ops.c.
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 2086 of file interface_ops.c.
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 2115 of file interface_ops.c.
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 238 of file interface_ops.c.
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 160 of file interface_ops.c.
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 294 of file interface_ops.c.
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 1446 of file interface_ops.c.
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 2212 of file interface_ops.c.
References wmOperatorType::description, drop_color_invoke(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_INTERNAL, ot, RNA_def_boolean(), RNA_def_float_color(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 2484 of file interface_ops.c.
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 2262 of file interface_ops.c.
References wmOperatorType::description, drop_name_invoke(), drop_name_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 1603 of file interface_ops.c.
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 2327 of file interface_ops.c.
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 974 of file interface_ops.c.
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 847 of file interface_ops.c.
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 897 of file interface_ops.c.
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 731 of file interface_ops.c.
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 623 of file interface_ops.c.
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 2030 of file interface_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and reloadtranslation_exec().
Referenced by ED_operatortypes_ui().
|
static |
Definition at line 379 of file interface_ops.c.
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 483 of file interface_ops.c.
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 2371 of file interface_ops.c.
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 2415 of file interface_ops.c.
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().
Definition at line 83 of file interface_ops.c.
References C, ARegion::do_draw, 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 2355 of file interface_ops.c.
References C, CTX_wm_region(), wmEvent::custom, wmEvent::customdata, EVT_DATA_DRAGDROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, UI_region_views_find_item_at(), UI_view_item_drop_handle(), and wmEvent::xy.
Referenced by UI_OT_view_drop().
Definition at line 2343 of file interface_ops.c.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, NULL, UI_region_views_find_item_at(), and wmEvent::xy.
Referenced by UI_OT_view_drop().
|
static |
Definition at line 2404 of file interface_ops.c.
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().
Definition at line 2394 of file interface_ops.c.
References C, CTX_wm_region(), NULL, UI_region_views_find_active_item(), and UI_view_item_can_rename().
Referenced by UI_OT_view_item_rename().
|
static |
Definition at line 463 of file interface_ops.c.
References C, 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 514 of file interface_ops.c.
Referenced by UI_OT_override_type_set_button().