|
Blender V4.3
|
#include <algorithm>#include <cctype>#include <cerrno>#include <cfloat>#include <cstddef>#include <cstdio>#include <cstring>#include <iostream>#include <sstream>#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "CLG_log.h"#include "DNA_ID.h"#include "DNA_armature_types.h"#include "DNA_brush_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_userdef_types.h"#include "DNA_windowmanager_types.h"#include "BLT_translation.hh"#include "BLI_blenlib.h"#include "BLI_dial_2d.h"#include "BLI_math_matrix.hh"#include "BLI_math_rotation.h"#include "BLI_math_vector_types.hh"#include "BLI_string_utils.hh"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BKE_anim_data.hh"#include "BKE_brush.hh"#include "BKE_colortools.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_image.hh"#include "BKE_image_format.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_main.hh"#include "BKE_material.h"#include "BKE_preview_image.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_unit.hh"#include "BKE_idtype.hh"#include "BLF_api.hh"#include "GPU_immediate.hh"#include "GPU_immediate_util.hh"#include "GPU_matrix.hh"#include "GPU_state.hh"#include "IMB_imbuf_types.hh"#include "ED_fileselect.hh"#include "ED_gpencil_legacy.hh"#include "ED_grease_pencil.hh"#include "ED_numinput.hh"#include "ED_screen.hh"#include "ED_undo.hh"#include "ED_view3d.hh"#include "DEG_depsgraph_query.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "UI_resources.hh"#include "WM_api.hh"#include "WM_types.hh"#include "wm.hh"#include "wm_draw.hh"#include "wm_event_system.hh"#include "wm_event_types.hh"#include "wm_files.hh"#include "wm_window.hh"Go to the source code of this file.
Classes | |
| struct | EnumSearchMenu |
| struct | wmOpPopUp |
| struct | SearchPopupInit_Data |
| struct | RadialControl |
| struct | PreviewsIDEnsureData |
Macros | |
| #define | UNDOCUMENTED_OPERATOR_TIP N_("(undocumented operator)") |
| #define | CTX_TEST_PTR_ID(C, member, idptr) |
| #define | CTX_TEST_PTR_ID_CAST(C, member, member_full, cast, idptr) |
| #define | TEST_PTR_DATA_TYPE(member, rna_type, rna_ptr, dataptr_cmp) |
| #define | TEST_PTR_DATA_TYPE_FROM_CONTEXT(member, rna_type, rna_ptr) |
| #define | ID_CAST_OBDATA(id_pt) (((Object *)(id_pt))->data) |
| #define | ID_CAST_OBMATACT(id_pt) BKE_object_material_get(((Object *)id_pt), ((Object *)id_pt)->actcol) |
| #define | ID_CAST_SCENEWORLD(id_pt) (((Scene *)(id_pt))->world) |
Redraw Timer Operator | |
Use for simple benchmarks. | |
| enum | { eRTDrawRegion = 0 , eRTDrawRegionSwap = 1 , eRTDrawWindow = 2 , eRTDrawWindowSwap = 3 , eRTAnimationStep = 4 , eRTAnimationPlay = 5 , eRTUndo = 6 } |
| static const EnumPropertyItem | redraw_timer_type_items [] |
| static void | redraw_timer_window_swap (bContext *C) |
| static void | redraw_timer_step (bContext *C, Scene *scene, Depsgraph *depsgraph, wmWindow *win, ScrArea *area, ARegion *region, const int type, const int cfra) |
| static bool | redraw_timer_poll (bContext *C) |
| static int | redraw_timer_exec (bContext *C, wmOperator *op) |
| static void | WM_OT_redraw_timer (wmOperatorType *ot) |
Data-Block Preview Clear Operator | |
| enum | PreviewFilterID { PREVIEW_FILTER_ALL , PREVIEW_FILTER_GEOMETRY , PREVIEW_FILTER_SHADING , PREVIEW_FILTER_SCENE , PREVIEW_FILTER_COLLECTION , PREVIEW_FILTER_OBJECT , PREVIEW_FILTER_MATERIAL , PREVIEW_FILTER_LIGHT , PREVIEW_FILTER_WORLD , PREVIEW_FILTER_TEXTURE , PREVIEW_FILTER_IMAGE } |
| static const EnumPropertyItem | preview_id_type_items [] |
| static uint | preview_filter_to_idfilter (enum PreviewFilterID filter) |
| static int | previews_clear_exec (bContext *C, wmOperator *op) |
| static void | WM_OT_previews_clear (wmOperatorType *ot) |
Functions for dealing with wmOperator, adding, removing, calling as well as some generic operators and shared operator properties.
Definition in file wm_operators.cc.
Referenced by wm_context_member_from_ptr().
Referenced by wm_context_member_from_ptr().
Referenced by wm_context_member_from_ptr().
| #define ID_CAST_OBMATACT | ( | id_pt | ) | BKE_object_material_get(((Object *)id_pt), ((Object *)id_pt)->actcol) |
Referenced by wm_context_member_from_ptr().
Referenced by wm_context_member_from_ptr().
| #define OP_BL_SEP_LEN 4 |
Definition at line 121 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), WM_operator_bl_idname_is_valid(), and WM_operator_py_idname().
| #define OP_BL_SEP_STRING "_OT_" |
Definition at line 120 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), WM_operator_bl_idname_is_valid(), and WM_operator_py_idname().
| #define OP_MAX_PY_IDNAME (OP_MAX_TYPENAME - OP_BL_SEP_LEN + OP_PY_SEP_LEN - 1) |
Definition at line 128 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), and WM_operator_py_idname_ok_or_report().
| #define OP_PY_SEP_CHAR '.' |
Definition at line 123 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), and WM_operator_py_idname().
| #define OP_PY_SEP_LEN 1 |
Definition at line 124 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), and WM_operator_py_idname().
| #define TEST_PTR_DATA_TYPE | ( | member, | |
| rna_type, | |||
| rna_ptr, | |||
| dataptr_cmp ) |
Referenced by wm_context_member_from_ptr().
| #define TEST_PTR_DATA_TYPE_FROM_CONTEXT | ( | member, | |
| rna_type, | |||
| rna_ptr ) |
Referenced by wm_context_member_from_ptr().
Definition at line 114 of file wm_operators.cc.
| #define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE (35 * UI_SCALE_FAC) |
Definition at line 2510 of file wm_operators.cc.
Referenced by radial_control_modal(), radial_control_paint_cursor(), and radial_control_set_initial_mouse().
| #define WM_RADIAL_CONTROL_DISPLAY_SIZE (200 * UI_SCALE_FAC) |
Definition at line 2509 of file wm_operators.cc.
Referenced by radial_control_modal(), radial_control_paint_cursor(), and radial_control_set_initial_mouse().
| #define WM_RADIAL_CONTROL_DISPLAY_WIDTH (WM_RADIAL_CONTROL_DISPLAY_SIZE - WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE) |
Definition at line 2511 of file wm_operators.cc.
Referenced by radial_control_modal(), radial_control_paint_cursor(), and radial_control_set_initial_mouse().
| #define WM_RADIAL_MAX_STR 10 |
Definition at line 2513 of file wm_operators.cc.
Referenced by radial_control_paint_cursor().
| anonymous enum |
| Enumerator | |
|---|---|
| eRTDrawRegion | |
| eRTDrawRegionSwap | |
| eRTDrawWindow | |
| eRTDrawWindowSwap | |
| eRTAnimationStep | |
| eRTAnimationPlay | |
| eRTUndo | |
Definition at line 3565 of file wm_operators.cc.
| enum PreviewFilterID |
Definition at line 3872 of file wm_operators.cc.
| enum RCPropFlags |
| Enumerator | |
|---|---|
| RC_PROP_ALLOW_MISSING | |
| RC_PROP_REQUIRE_FLOAT | |
| RC_PROP_REQUIRE_BOOL | |
Definition at line 2891 of file wm_operators.cc.
| enum SearchType |
| Enumerator | |
|---|---|
| SEARCH_TYPE_OPERATOR | |
| SEARCH_TYPE_MENU | |
| SEARCH_TYPE_SINGLE_MENU | |
Definition at line 1967 of file wm_operators.cc.
|
static |
Definition at line 2269 of file wm_operators.cc.
References blender::ui::asset_shelf_popover_invoke(), BLI_SCOPED_DEFER, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, and RNA_string_get_alloc().
Referenced by WM_OT_call_asset_shelf_popover().
|
static |
Definition at line 1504 of file wm_operators.cc.
References CTX_wm_window(), UI_popup_block_close(), UI_popup_menu_retval_set(), UI_RETURN_CANCEL, and wm_operator_ui_popup_cancel().
Referenced by wm_block_dialog_create().
|
static |
Definition at line 1476 of file wm_operators.cc.
References CTX_wm_window(), UI_popup_block_close(), UI_popup_menu_retval_set(), UI_RETURN_OK, and WM_operator_call_ex().
Referenced by wm_block_dialog_create().
|
static |
Definition at line 4014 of file wm_operators.cc.
References OPERATOR_CANCELLED, RNA_string_set(), UI_but_online_manual_id_from_active(), WM_OP_EXEC_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by WM_OT_doc_view_manual_ui_context().
|
static |
Definition at line 4238 of file wm_operators.cc.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_DESELECT, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4168 of file wm_operators.cc.
References GESTURE_MODAL_CANCEL, GESTURE_MODAL_CIRCLE_ADD, GESTURE_MODAL_CIRCLE_SIZE, GESTURE_MODAL_CIRCLE_SUB, GESTURE_MODAL_CONFIRM, GESTURE_MODAL_DESELECT, GESTURE_MODAL_NOP, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4294 of file wm_operators.cc.
References GESTURE_MODAL_MOVE, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4325 of file wm_operators.cc.
References GESTURE_MODAL_CANCEL, GESTURE_MODAL_CONFIRM, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4205 of file wm_operators.cc.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_FLIP, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, GESTURE_MODAL_SNAP, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4352 of file wm_operators.cc.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_IN, GESTURE_MODAL_OUT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3755 of file wm_operators.cc.
References MEM_printmemlist_stats, and OPERATOR_FINISHED.
Referenced by WM_OT_memory_statistics().
|
static |
Definition at line 869 of file wm_operators.cc.
References CLOG_INFO, blender::bke::idprop::create_group(), IDProperty::flag, wmOperatorType::idname, IDP_AddToGroup(), IDP_CopyProperty(), IDP_FLAG_GHOST, IDP_FreeProperty(), IDP_GetPropertyFromGroup(), IDP_MergeGroup(), PROP_SKIP_SAVE, wmOperator::properties, wmOperator::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_property_is_set(), RNA_struct_iterator_property(), wmOperatorType::srna, wmOperator::type, and WM_LOG_OPERATORS.
Referenced by WM_operator_last_properties_init().
|
static |
Definition at line 3913 of file wm_operators.cc.
References FILTER_ID_GR, FILTER_ID_IM, FILTER_ID_LA, FILTER_ID_MA, FILTER_ID_OB, FILTER_ID_SCE, FILTER_ID_TE, FILTER_ID_WO, PREVIEW_FILTER_ALL, PREVIEW_FILTER_COLLECTION, PREVIEW_FILTER_GEOMETRY, PREVIEW_FILTER_IMAGE, PREVIEW_FILTER_LIGHT, PREVIEW_FILTER_MATERIAL, PREVIEW_FILTER_OBJECT, PREVIEW_FILTER_SCENE, PREVIEW_FILTER_SHADING, PREVIEW_FILTER_TEXTURE, and PREVIEW_FILTER_WORLD.
Referenced by previews_clear_exec().
|
static |
Definition at line 3944 of file wm_operators.cc.
References BKE_idtype_idcode_to_idfilter(), BKE_previewimg_clear(), BKE_previewimg_id_ensure(), Main::collections, CTX_data_main(), ListBase::first, GS, Main::images, Main::lights, Main::materials, Main::objects, OPERATOR_FINISHED, preview_filter_to_idfilter(), printf, wmOperator::ptr, RNA_enum_get(), Main::textures, and Main::worlds.
Referenced by WM_OT_previews_clear().
|
static |
Definition at line 3815 of file wm_operators.cc.
References BKE_library_foreach_ID_link(), BKE_main_id_tag_all(), BKE_main_id_tag_listbase(), C, PreviewsIDEnsureData::C, CTX_data_main(), ID_TAG_DOIT, IDWALK_RECURSE, Main::images, Main::lights, LISTBASE_FOREACH, Main::materials, OPERATOR_FINISHED, previews_id_ensure(), previews_id_ensure_callback(), PreviewsIDEnsureData::scene, scene, Main::scenes, Main::textures, and Main::worlds.
Referenced by WM_OT_previews_ensure().
Definition at line 3783 of file wm_operators.cc.
References BLI_assert, ELEM, GS, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ID_IM, ID_IS_EDITABLE, ID_LA, ID_MA, ID_TE, ID_WO, and UI_icon_render_id().
Referenced by previews_ensure_exec(), and previews_id_ensure_callback().
|
static |
Definition at line 3795 of file wm_operators.cc.
References BLI_assert, LibraryIDLinkCallbackData::cb_flag, ELEM, GS, ID_IM, ID_LA, ID_MA, LibraryIDLinkCallbackData::id_pointer, ID_TAG_DOIT, ID_TE, ID_WO, IDWALK_CB_EMBEDDED, IDWALK_CB_EMBEDDED_NOT_OWNING, IDWALK_RET_NOP, previews_id_ensure(), and LibraryIDLinkCallbackData::user_data.
Referenced by previews_ensure_exec().
|
static |
Definition at line 3194 of file wm_operators.cc.
References CTX_wm_area(), CTX_wm_manager(), RadialControl::cursor, wmOperator::customdata, RadialControl::dial, ED_area_status_text(), GPU_texture_free(), MEM_freeN(), MEM_SAFE_FREE, NC_WINDOW, RadialControl::orig_paintcursors, wmWindowManager::paintcursors, RadialControl::texture, WM_event_add_notifier(), and WM_paint_cursor_end().
Referenced by radial_control_modal(), and WM_OT_radial_control().
|
static |
Attempt to retrieve the rna pointer/property from an rna path.
Definition at line 2902 of file wm_operators.cc.
References BKE_report(), BKE_reportf(), len, MEM_freeN(), PROP_BOOLEAN, PROP_FLOAT, wmOperator::ptr, RC_PROP_ALLOW_MISSING, RC_PROP_REQUIRE_BOOL, RC_PROP_REQUIRE_FLOAT, wmOperator::reports, RNA_path_resolve(), RNA_property_array_length(), RNA_property_type(), RNA_string_get_alloc(), RPT_ERROR, and str.
Referenced by radial_control_get_properties().
|
static |
Definition at line 2978 of file wm_operators.cc.
References BKE_report(), RadialControl::col_prop, RadialControl::col_ptr, wmOperator::customdata, PointerRNA::data, RadialControl::fill_col_override_prop, RadialControl::fill_col_override_ptr, RadialControl::fill_col_override_test_prop, RadialControl::fill_col_override_test_ptr, RadialControl::fill_col_prop, RadialControl::fill_col_ptr, RadialControl::image_id_ptr, RadialControl::prop, RadialControl::ptr, wmOperator::ptr, radial_control_get_path(), RC_PROP_ALLOW_MISSING, RC_PROP_REQUIRE_BOOL, RC_PROP_REQUIRE_FLOAT, wmOperator::reports, RNA_boolean_get(), RNA_pointer_create(), RNA_property_boolean_get(), RNA_struct_is_ID(), RadialControl::rot_prop, RadialControl::rot_ptr, RPT_ERROR, PointerRNA::type, RadialControl::use_secondary_tex, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
|
static |
Definition at line 3090 of file wm_operators.cc.
References BKE_report(), BLI_listbase_clear(), CTX_wm_manager(), RadialControl::current_value, RadialControl::cursor, wmOperator::customdata, ELEM, NumInput::idx_max, RadialControl::init_event, RadialControl::initial_value, initNumInput(), max, max_ff(), max_ii(), RadialControl::max_value, MEM_callocN, MEM_freeN(), min, min_ff(), min_ii(), RadialControl::min_value, RadialControl::num_input, NUM_NO_NEGATIVE, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, RadialControl::orig_paintcursors, wmWindowManager::paintcursors, wmOperatorType::poll, RadialControl::prop, PROP_ANGLE, PROP_DISTANCE, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, RadialControl::ptr, radial_control_get_properties(), radial_control_paint_cursor(), radial_control_set_initial_mouse(), radial_control_set_tex(), wmOperator::reports, RGN_TYPE_ANY, RNA_property_float_get(), RNA_property_float_ui_range(), RNA_property_int_get(), RNA_property_int_ui_range(), RNA_property_subtype(), RNA_property_type(), RNA_property_unit(), RNA_SUBTYPE_UNIT_VALUE, RPT_ERROR, SPACE_TYPE_ANY, RadialControl::subtype, RadialControl::type, wmEvent::type, wmOperator::type, NumInput::unit_sys, NumInput::unit_type, USER_UNIT_NONE, NumInput::val_flag, WM_event_add_modal_handler(), WM_paint_cursor_activate(), and WM_userdef_event_type_from_keymap_type().
Referenced by WM_OT_radial_control().
|
static |
Definition at line 3221 of file wm_operators.cc.
References applyNumInput(), atan2f, BLI_dial_angle(), BLI_dial_init(), ceil(), CLAMP, clamp_f(), CTX_wm_manager(), CTX_wm_region(), RadialControl::current_value, wmOperator::customdata, DEG2RADF, RadialControl::dial, ED_region_tag_redraw(), ED_undo_is_legacy_compatible_for_property(), ED_undo_push(), EVT_ESCKEY, EVT_LEFTSHIFTKEY, EVT_PADENTER, EVT_RETKEY, EVT_RIGHTSHIFTKEY, float, FLT_MAX, fmod(), handleNumInput(), hasNumInput(), RadialControl::init_event, RadialControl::initial_mouse, RadialControl::initial_value, int, KM_CTRL, KM_PRESS, KM_RELEASE, LEFTMOUSE, len_v2(), M_PI, RadialControl::max_value, MEM_SAFE_FREE, RadialControl::min_value, MOUSEMOVE, wmOperatorType::name, RadialControl::num_input, wmWindowManager::op_undo_depth, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, RadialControl::prop, PROP_ANGLE, PROP_DISTANCE, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, RadialControl::ptr, wmOperator::ptr, RAD2DEGF, radial_control_cancel(), radial_control_set_value(), radial_control_update_header(), ret, RIGHTMOUSE, RNA_boolean_get(), RNA_property_float_get_array(), RNA_property_update(), RadialControl::slow_mode, RadialControl::slow_mouse, snap(), RadialControl::subtype, wmEvent::type, wmOperator::type, wmEvent::val, WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, WM_RADIAL_CONTROL_DISPLAY_SIZE, WM_RADIAL_CONTROL_DISPLAY_WIDTH, wmEvent::xy, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by WM_OT_radial_control().
Definition at line 2740 of file wm_operators.cc.
References BLF_color4fv(), BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), BLI_strlen_utf8(), col, RadialControl::col_prop, RadialControl::col_ptr, RadialControl::current_value, PointerRNA::data, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_rotate_3f(), GPU_matrix_scale_2fv(), GPU_matrix_translate_2f(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), ID_BR, RadialControl::image_id_ptr, imm_draw_circle_fill_2d(), imm_draw_circle_wire_2d(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3fvAlpha(), immVertex2f(), immVertexFormat(), RadialControl::initial_co, RadialControl::initial_mouse, RadialControl::initial_value, uiFontStyle::points, pos, PROP_ANGLE, PROP_DISTANCE, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, RAD2DEGF, radial_control_paint_curve(), radial_control_paint_tex(), RNA_property_float_get_array(), RNA_type_to_ID_code(), SNPRINTF, str, RadialControl::subtype, TH_TEXT_HI, PointerRNA::type, UI_GetThemeColor4fv(), UI_SCALE_FAC, UI_style_get(), uiFontStyle::uifont_id, uiStyle::widget, WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, WM_RADIAL_CONTROL_DISPLAY_SIZE, WM_RADIAL_CONTROL_DISPLAY_WIDTH, WM_RADIAL_MAX_STR, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
|
static |
Definition at line 2724 of file wm_operators.cc.
References BKE_brush_curve_strength_clamped(), BKE_curvemapping_init(), Brush::curve, fabsf, GPU_line_width(), GPU_PRIM_LINES, immBegin(), immEnd(), immUniformColor4f(), immVertex2f(), and pos.
Referenced by radial_control_paint_cursor().
|
static |
Definition at line 2649 of file wm_operators.cc.
References col, RadialControl::fill_col_override_prop, RadialControl::fill_col_override_ptr, RadialControl::fill_col_override_test_prop, RadialControl::fill_col_override_test_ptr, RadialControl::fill_col_prop, RadialControl::fill_col_ptr, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_rotate_2d(), GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_texture_unbind(), GPU_vertformat_attr_add(), imm_draw_circle_fill_2d(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immBindTexture(), immEnd(), immUnbindProgram(), immUniformColor3fvAlpha(), immVertex2f(), immVertexFormat(), pos, RAD2DEGF, RNA_property_boolean_get(), RNA_property_float_get(), RNA_property_float_get_array(), rot, RadialControl::rot_prop, RadialControl::rot_ptr, and RadialControl::texture.
Referenced by radial_control_paint_cursor().
|
static |
Definition at line 2577 of file wm_operators.cc.
References copy_v2_v2_int(), cosf, RadialControl::initial_co, RadialControl::initial_mouse, RadialControl::initial_value, PROP_ANGLE, PROP_DISTANCE, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, RNA_property_float_get_array(), sinf, RadialControl::subtype, WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, WM_RADIAL_CONTROL_DISPLAY_SIZE, WM_RADIAL_CONTROL_DISPLAY_WIDTH, wmEvent::xy, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
|
static |
Definition at line 2617 of file wm_operators.cc.
References BKE_brush_gen_radial_control_imbuf(), ImBufFloatBuffer::data, PointerRNA::data, ELEM, ImBuf::float_buffer, GPU_R8, GPU_texture_create_2d(), GPU_texture_filter_mode(), GPU_texture_swizzle_set(), GPU_TEXTURE_USAGE_SHADER_READ, ID_BR, RadialControl::image_id_ptr, MEM_freeN(), PROP_DISTANCE, PROP_NONE, PROP_PIXEL, RNA_type_to_ID_code(), RadialControl::subtype, RadialControl::texture, PointerRNA::type, RadialControl::use_secondary_tex, ImBuf::x, and ImBuf::y.
Referenced by radial_control_invoke().
|
static |
Definition at line 3180 of file wm_operators.cc.
References RadialControl::prop, PROP_FLOAT, PROP_INT, RadialControl::ptr, RNA_property_float_set(), RNA_property_int_set(), and RadialControl::type.
Referenced by radial_control_modal().
|
static |
Definition at line 2537 of file wm_operators.cc.
References CTX_data_scene(), CTX_wm_area(), RadialControl::current_value, wmOperator::customdata, ED_area_status_text(), hasNumInput(), RadialControl::num_input, NUM_STR_REP_LEN, outputNumInput(), RadialControl::prop, PROP_ANGLE, PROP_DISTANCE, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, RAD2DEGF, RNA_property_ui_name(), SNPRINTF, RadialControl::subtype, and UI_MAX_DRAW_STR.
Referenced by radial_control_modal().
|
static |
Definition at line 3669 of file wm_operators.cc.
References BKE_reportf(), BLI_time_now_seconds(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_window(), depsgraph, double(), OPERATOR_FINISHED, wmOperator::ptr, redraw_timer_step(), redraw_timer_type_items, wmOperator::reports, RNA_enum_description(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), RPT_WARNING, WM_cursor_wait(), and wm_window_make_drawable().
Referenced by WM_OT_redraw_timer().
|
static |
Definition at line 3661 of file wm_operators.cc.
References G, and WM_operator_winactive().
Referenced by WM_OT_redraw_timer().
|
static |
Definition at line 3586 of file wm_operators.cc.
References BKE_scene_graph_update_for_newframe(), CTX_wm_area_set(), CTX_wm_region_popup_set(), CTX_wm_region_set(), CTX_wm_window_set(), depsgraph, ED_region_tag_redraw(), ED_undo_pop(), ED_undo_redo(), eRTAnimationPlay, eRTAnimationStep, eRTDrawRegion, eRTDrawRegionSwap, eRTDrawWindow, eRTDrawWindowSwap, LISTBASE_FOREACH, redraw_timer_window_swap(), wm_draw_region_test(), wm_draw_update(), wm_event_do_refresh_wm_and_depsgraph(), and WM_window_get_active_screen().
Referenced by redraw_timer_exec().
|
static |
Definition at line 3550 of file wm_operators.cc.
References CTX_wm_region_popup_set(), CTX_wm_screen(), CTX_wm_window(), CTX_wm_window_set(), ED_area_tag_redraw(), LISTBASE_FOREACH, and wm_draw_update().
Referenced by redraw_timer_step().
| const EnumPropertyItem * RNA_action_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Generic functions, return an enum from library data, index is the position in the linked list can add more for different types as needed.
Definition at line 4447 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by NLA_OT_actionclip_add(), and blender::ed::outliner::OUTLINER_OT_action_set().
| const EnumPropertyItem * RNA_collection_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4466 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::object::OBJECT_OT_collection_external_asset_drop(), and blender::ed::object::OBJECT_OT_collection_instance_add().
| const EnumPropertyItem * RNA_collection_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4474 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::object::OBJECT_OT_collection_link().
|
static |
Definition at line 4402 of file wm_operators.cc.
Referenced by RNA_scene_without_active_itemf().
|
static |
Definition at line 4408 of file wm_operators.cc.
References GS, EnumPropertyItem::icon, ID_GR, ID_IS_LINKED, EnumPropertyItem::identifier, EnumPropertyItem::name, RNA_enum_item_add(), RNA_enum_item_end(), UI_icon_color_from_collection(), and EnumPropertyItem::value.
Referenced by RNA_action_itemf(), RNA_collection_itemf(), RNA_collection_local_itemf(), RNA_image_itemf(), RNA_image_local_itemf(), RNA_mask_itemf(), RNA_mask_local_itemf(), RNA_movieclip_itemf(), RNA_movieclip_local_itemf(), RNA_scene_itemf(), RNA_scene_local_itemf(), and RNA_scene_without_active_itemf().
| const EnumPropertyItem * RNA_image_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4483 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by PAINT_OT_project_image().
| const EnumPropertyItem * RNA_image_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4491 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
| const EnumPropertyItem * RNA_mask_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4545 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by SEQUENCER_OT_mask_strip_add().
| const EnumPropertyItem * RNA_mask_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4553 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
| const EnumPropertyItem * RNA_movieclip_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4528 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by SEQUENCER_OT_movieclip_strip_add().
| const EnumPropertyItem * RNA_movieclip_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4536 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
| const EnumPropertyItem * RNA_scene_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4500 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by MARKER_OT_make_links_scene().
| const EnumPropertyItem * RNA_scene_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4508 of file wm_operators.cc.
References CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::object::OBJECT_OT_make_links_scene().
| const EnumPropertyItem * RNA_scene_without_active_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4516 of file wm_operators.cc.
References CTX_data_main(), CTX_data_scene(), rna_id_enum_filter_single(), and rna_id_itemf().
Referenced by SEQUENCER_OT_change_scene(), and SEQUENCER_OT_scene_strip_add().
Definition at line 1420 of file wm_operators.cc.
References BLI_assert, col, wmOperatorType::flag, Line, wmOperatorType::name, OPTYPE_REGISTER, wmOperator::ptr, wmOperator::type, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_disable(), UI_block_flag_enable(), UI_block_func_handle_set(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_NUMSELECT, UI_BLOCK_THEME_STYLE_REGULAR, UI_block_theme_style_set(), UI_BUT_LABEL_ALIGN_NONE, UI_EMBOSS, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_popup_dummy_panel_set(), UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiItemL_ex(), uiItemS_ex(), uiLayoutColumn(), uiLayoutSetEnabled(), uiTemplateOperatorPropertyButs(), wm_block_redo_cb(), WM_operator_check_ui_enabled(), WM_operator_last_redo(), and WM_operatortype_name().
Referenced by wm_operator_props_popup_ex(), and WM_operator_redo_popup().
Dialogs are popups that require user verification (click OK) before exec.
Definition at line 1516 of file wm_operators.cc.
References ALERT_ICON_MAX, ALERT_ICON_NONE, ALERT_ICON_QUESTION, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLF_DRAW_STR_DUMMY_MAX, BLF_width(), col, uiStyle::columnspace, dialog_cancel_cb(), dialog_exec_cb(), IFACE_, int, Line, padding(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::StringRefBase::trim(), UI_block_begin(), UI_block_bounds_set_centered(), UI_block_bounds_set_popup(), UI_block_flag_disable(), UI_block_flag_enable(), UI_block_func_set(), UI_block_has_active_default_button(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_NUMSELECT, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_BUT, UI_BUT_ACTIVE_DEFAULT, UI_but_flag_enable(), UI_but_func_set(), UI_BUT_LABEL_ALIGN_SPLIT_COLUMN, UI_EMBOSS, UI_fontstyle_set(), UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_popup_dummy_panel_set(), UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiFontStyle::uifont_id, uiItemL(), uiItemL_ex(), uiItemS_ex(), uiItemsAlertBox(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutGetWidth(), uiLayoutSetScaleY(), uiLayoutSplit(), uiTemplateOperatorPropertyButs(), uiStyle::widget, WM_POPUP_POSITION_CENTER, WM_POPUP_POSITION_MOUSE, and WM_POPUP_SIZE_SMALL.
Referenced by WM_operator_confirm_ex(), and WM_operator_props_dialog_popup().
|
static |
Definition at line 1410 of file wm_operators.cc.
References WM_operator_free(), and WM_operator_last_redo().
Referenced by wm_operator_props_popup_ex().
Definition at line 1393 of file wm_operators.cc.
References ED_undo_operator_repeat(), ED_undo_push_op(), WM_operator_last_redo(), wm_operator_register(), and WM_operator_repeat().
Referenced by wm_block_create_redo(), and wm_operator_props_popup_ex().
Definition at line 1981 of file wm_operators.cc.
References BLI_assert_unreachable, g_search_text, init_data(), SEARCH_TYPE_MENU, SEARCH_TYPE_OPERATOR, SEARCH_TYPE_SINGLE_MENU, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_SEARCH_MENU, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_LABEL, UI_BUT2_ACTIVATE_ON_INIT_NO_SELECT, UI_BUT_ACTIVATE_ON_INIT, UI_but_flag2_enable(), UI_but_flag_enable(), UI_but_func_menu_search(), UI_but_func_operator_search(), UI_EMBOSS, UI_UNIT_Y, uiDefBut(), and uiDefSearchBut().
Referenced by wm_search_menu_invoke().
|
static |
Definition at line 2148 of file wm_operators.cc.
References BKE_ST_MAXNAME, wmOperator::ptr, wmOperator::reports, RNA_string_get(), and UI_popup_menu_invoke().
Referenced by WM_OT_call_menu().
|
static |
Definition at line 2156 of file wm_operators.cc.
References BKE_ST_MAXNAME, CTX_IFACE_, MenuType::label, wmOperatorType::name, ot, ptr, RNA_string_get(), MenuType::translation_context, wmOperatorType::translation_context, and WM_menutype_find().
Referenced by WM_OT_call_menu(), and WM_OT_call_menu_pie().
|
static |
Definition at line 2226 of file wm_operators.cc.
References BKE_ST_MAXNAME, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_string_get(), and UI_popover_panel_invoke().
Referenced by WM_OT_call_panel().
|
static |
Definition at line 2235 of file wm_operators.cc.
References BKE_ST_MAXNAME, CTX_IFACE_, PanelType::label, wmOperatorType::name, ot, ptr, RNA_string_get(), PanelType::translation_context, wmOperatorType::translation_context, and WM_paneltype_find().
Referenced by WM_OT_call_panel().
|
static |
Definition at line 2195 of file wm_operators.cc.
References BKE_ST_MAXNAME, CTX_wm_window(), wmOperator::ptr, RNA_string_get(), and UI_pie_menu_invoke().
Referenced by WM_OT_call_menu_pie().
|
static |
Definition at line 2187 of file wm_operators.cc.
References BKE_ST_MAXNAME, wmOperator::ptr, RNA_string_get(), and UI_pie_menu_invoke().
Referenced by WM_OT_call_menu_pie().
|
static |
r_is_id:
|
object.data.bones["Bones"].use_deform such paths are not useful for key-shortcuts, so this function supports returning data-paths directly to context members that aren't ID types. Definition at line 441 of file wm_operators.cc.
References bArmature::act_bone, bArmature::act_edbone, SpaceAction::ads, SpaceGraph::ads, SpaceNla::ads, CTX_TEST_PTR_ID, CTX_TEST_PTR_ID_CAST, CTX_wm_area(), CTX_wm_region(), CTX_wm_space_data(), ED_fileselect_get_active_params(), bArmature::edbo, GS, ID_AR, ID_CAST_OBDATA, ID_CAST_OBMATACT, ID_CAST_SCENEWORLD, ID_MA, ID_OB, ID_SCE, ID_SCR, id_type_can_have_animdata(), ID_WO, ID::name, OB_DATA_SUPPORT_ID_CASE, PointerRNA::owner_id, params, ptr, View3D::shading, SPACE_ACTION, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, SpaceLink::spacetype, TEST_PTR_DATA_TYPE, and TEST_PTR_DATA_TYPE_FROM_CONTEXT.
Referenced by WM_context_path_resolve_property_full().
| std::optional< std::string > WM_context_path_resolve_full | ( | bContext * | C, |
| const PointerRNA * | ptr ) |
Definition at line 687 of file wm_operators.cc.
References ptr, and WM_context_path_resolve_property_full().
Referenced by ui_but_is_user_menu_compatible(), ui_but_user_menu_add(), and ui_but_user_menu_find().
| std::optional< std::string > WM_context_path_resolve_property_full | ( | const bContext * | C, |
| const PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index ) |
Calculate the path to ptr from context C, or return NULL if it can't be calculated.
Definition at line 641 of file wm_operators.cc.
References ptr, RNA_path_from_ID_to_struct(), RNA_path_property_py(), RNA_struct_is_ID(), PointerRNA::type, and wm_context_member_from_ptr().
Referenced by shortcut_property_from_rna(), ui_but_event_property_operator_string(), WM_context_path_resolve_full(), and wm_prop_pystring_from_context().
|
static |
Definition at line 1901 of file wm_operators.cc.
References CTX_wm_manager(), CTX_wm_window(), ED_screen_refresh(), G, NC_WINDOW, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by WM_OT_debug_menu().
|
static |
Definition at line 1910 of file wm_operators.cc.
References G, IFACE_, wmOperator::ptr, RNA_int_set(), and WM_operator_props_dialog_popup().
Referenced by WM_OT_debug_menu().
| int WM_enum_search_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1193 of file wm_operators.cc.
References EnumSearchMenu::op, OPERATOR_INTERFACE, UI_popup_block_invoke_ex(), and wm_enum_search_menu().
Referenced by nlaedit_add_actionclip_invoke(), blender::ed::object::object_instance_add_invoke(), blender::ed::object::OBJECT_OT_collection_link(), blender::ed::object::OBJECT_OT_make_links_scene(), blender::ed::outliner::OUTLINER_OT_action_set(), PAINT_OT_project_image(), sequencer_add_mask_strip_invoke(), sequencer_add_movieclip_strip_invoke(), sequencer_add_scene_strip_invoke(), and sequencer_change_scene_invoke().
Generic enum search invoke popup.
Definition at line 1128 of file wm_operators.cc.
References CTX_wm_window(), PointerRNA::data, EnumSearchMenu::op, wmOperator::ptr, wmOperator::type, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_SEARCH_MENU, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_LABEL, UI_but_focus_on_enter_event(), UI_EMBOSS, UI_searchbox_size_x(), UI_searchbox_size_y(), UI_UNIT_Y, uiDefBut(), uiDefSearchButO_ptr(), and WM_operatortype_name().
Referenced by WM_enum_search_invoke().
|
static |
Definition at line 2389 of file wm_operators.cc.
References OPERATOR_FINISHED, and wm_exit_schedule_delayed().
Referenced by WM_OT_quit_blender().
|
static |
Definition at line 2395 of file wm_operators.cc.
References CTX_wm_window(), OPERATOR_FINISHED, USER_SAVE_PROMPT, wm_exit_schedule_delayed(), and wm_quit_with_optional_confirmation_prompt().
Referenced by WM_OT_quit_blender().
| int WM_generic_select_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Helper to get select and tweak-transform to work conflict free and as desired. See WM_operator_properties_generic_select() for details.
To be used together with WM_generic_select_modal() and WM_operator_properties_generic_select().
Definition at line 1032 of file wm_operators.cc.
References CTX_wm_region(), wmOperator::customdata, wmOperatorType::modal, POINTER_FROM_INT, wmOperator::ptr, RNA_int_set(), wmOperator::type, and WM_event_drag_start_mval().
Referenced by ACTION_OT_clickselect(), FILE_OT_select(), GRAPH_OT_clickselect(), MARKER_OT_select(), NLA_OT_click_select(), and sequencer_select_invoke().
| int WM_generic_select_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Helper to get select and tweak-transform to work conflict free and as desired. See WM_operator_properties_generic_select() for details.
To be used together with WM_generic_select_invoke() and WM_operator_properties_generic_select().
Definition at line 973 of file wm_operators.cc.
References wmOperator::customdata, wmOperatorType::exec, ISMOUSE_MOTION, KM_PRESS, KM_RELEASE, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, POINTER_AS_INT, POINTER_FROM_INT, wmOperator::ptr, RNA_int_get(), RNA_property_boolean_set(), RNA_struct_find_property(), wmEvent::type, wmOperator::type, wmEvent::val, WM_event_add_modal_handler(), and WM_event_drag_test_with_delta().
Referenced by ACTION_OT_clickselect(), FILE_OT_select(), GRAPH_OT_clickselect(), MARKER_OT_select(), NLA_OT_click_select(), and SEQUENCER_OT_select().
| int WM_menu_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1118 of file wm_operators.cc.
References WM_menu_invoke_ex(), and WM_OP_INVOKE_REGION_WIN.
Referenced by ACTION_OT_easing_type(), ACTION_OT_extrapolation_type(), ACTION_OT_handle_type(), ACTION_OT_interpolation_type(), ACTION_OT_keyframe_insert(), ACTION_OT_keyframe_type(), ACTION_OT_mirror(), ACTION_OT_snap(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), ANIM_OT_channels_setting_toggle(), ARMATURE_OT_autoside_names(), ARMATURE_OT_calculate_roll(), ARMATURE_OT_select_similar(), BOID_OT_rule_add(), blender::ed::object::COLLECTION_OT_objects_add_active(), blender::ed::object::COLLECTION_OT_objects_remove(), blender::ed::object::COLLECTION_OT_objects_remove_active(), CURVE_OT_delete(), CURVE_OT_handle_type_set(), CURVE_OT_select_similar(), CURVE_OT_spline_type_set(), blender::ed::curves::CURVES_OT_handle_type_set(), blender::ed::object::datalayout_transfer_invoke(), GRAPH_OT_easing_type(), GRAPH_OT_extrapolation_type(), GRAPH_OT_fmodifier_add(), GRAPH_OT_handle_type(), GRAPH_OT_interpolation_type(), GRAPH_OT_keyframe_insert(), GRAPH_OT_mirror(), graphkeys_selected_control_points_invoke(), blender::ed::greasepencil::GREASE_PENCIL_OT_caps_set(), blender::ed::greasepencil::GREASE_PENCIL_OT_cyclical_set(), blender::ed::greasepencil::GREASE_PENCIL_OT_delete_frame(), blender::ed::greasepencil::GREASE_PENCIL_OT_dissolve(), blender::ed::greasepencil::GREASE_PENCIL_OT_reproject(), blender::ed::greasepencil::GREASE_PENCIL_OT_select_similar(), blender::ed::greasepencil::GREASE_PENCIL_OT_separate(), blender::ed::greasepencil::GREASE_PENCIL_OT_set_curve_type(), blender::ed::greasepencil::GREASE_PENCIL_OT_set_handle_type(), LATTICE_OT_flip(), MARKER_OT_make_links_scene(), MASK_OT_handle_type_set(), MBALL_OT_select_similar(), MESH_OT_delete(), MESH_OT_merge(), MESH_OT_select_similar(), MESH_OT_separate(), MESH_OT_sort_elements(), blender::ed::object::modifier_add_invoke(), NLA_OT_fmodifier_add(), NLA_OT_snap(), blender::ed::space_node::NODE_OT_select_grouped(), blender::ed::object::OBJECT_OT_constraint_add(), blender::ed::object::OBJECT_OT_constraint_add_with_targets(), blender::ed::object::OBJECT_OT_convert(), blender::ed::object::OBJECT_OT_data_transfer(), blender::ed::object::OBJECT_OT_empty_add(), blender::ed::object::OBJECT_OT_hook_remove(), blender::ed::object::OBJECT_OT_light_add(), blender::ed::object::OBJECT_OT_make_local(), blender::ed::object::OBJECT_OT_metaball_add(), blender::ed::object::OBJECT_OT_origin_set(), blender::ed::object::OBJECT_OT_parent_clear(), blender::ed::object::OBJECT_OT_select_by_type(), blender::ed::object::OBJECT_OT_select_grouped(), blender::ed::object::OBJECT_OT_select_linked(), blender::ed::object::OBJECT_OT_shaderfx_add(), blender::ed::object::OBJECT_OT_track_clear(), blender::ed::object::OBJECT_OT_track_set(), blender::ed::object::OBJECT_OT_vertex_group_set_active(), blender::ed::outliner::OUTLINER_OT_animdata_operation(), blender::ed::outliner::OUTLINER_OT_constraint_operation(), blender::ed::outliner::OUTLINER_OT_data_operation(), blender::ed::outliner::OUTLINER_OT_id_operation(), blender::ed::outliner::OUTLINER_OT_lib_operation(), blender::ed::outliner::OUTLINER_OT_liboverride_operation(), blender::ed::outliner::OUTLINER_OT_liboverride_troubleshoot_operation(), blender::ed::outliner::OUTLINER_OT_modifier_operation(), blender::ed::outliner::OUTLINER_OT_object_operation(), blender::ed::outliner::OUTLINER_OT_scene_operation(), PAINT_OT_weight_from_bones(), PARTICLE_OT_delete(), POSE_OT_autoside_names(), blender::ed::object::POSE_OT_constraint_add(), blender::ed::object::POSE_OT_constraint_add_with_targets(), POSE_OT_rotation_mode_set(), POSE_OT_select_grouped(), RIGIDBODY_OT_mass_calculate(), RIGIDBODY_OT_shape_change(), SCENE_OT_new(), SCENE_OT_new_sequencer(), SCENE_OT_view_layer_add(), SEQUENCER_OT_select_grouped(), SEQUENCER_OT_strip_modifier_copy(), UV_OT_select_similar(), VIEW3D_OT_bone_select_menu(), VIEW3D_OT_select_menu(), WM_OT_previews_clear(), and WM_OT_redraw_timer().
| int WM_menu_invoke_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmOperatorCallContext | opcontext ) |
Invoke callback, uses enum property named "type".
Definition at line 1081 of file wm_operators.cc.
References CLOG_ERROR, PointerRNA::data, wmOperatorType::exec, wmOperatorType::idname, OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_RETVAL_CHECK, wmOperatorType::prop, PROP_ENUM, wmOperator::ptr, RNA_property_identifier(), RNA_property_is_set(), RNA_property_type(), wmOperator::type, UI_ITEM_NONE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemsFullEnumO(), uiLayoutSetOperatorContext(), WM_LOG_OPERATORS, and WM_operatortype_name().
Referenced by add_driver_button_menu_invoke(), override_type_set_button_invoke(), and WM_menu_invoke().
| size_t WM_operator_bl_idname | ( | char * | dst, |
| const char * | src ) |
Definition at line 151 of file wm_operators.cc.
References BLI_str_toupper_ascii(), BLI_strncpy(), BLI_strncpy_rlen(), OP_BL_SEP_LEN, OP_BL_SEP_STRING, OP_MAX_PY_IDNAME, OP_MAX_TYPENAME, OP_PY_SEP_CHAR, and OP_PY_SEP_LEN.
Referenced by PYOP_wrap_macro_define(), and WM_operatortype_find().
| bool WM_operator_bl_idname_is_valid | ( | const char * | idname | ) |
Return true when an operators name follows the SOME_OT_op naming convention.
Definition at line 171 of file wm_operators.cc.
References OP_BL_SEP_LEN, and OP_BL_SEP_STRING.
Referenced by PYOP_wrap_macro_define(), wm_operatortype_append__end(), WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
| bool WM_operator_check_ui_enabled | ( | const bContext * | C, |
| const char * | idname ) |
Return false, if the UI should be disabled.
Definition at line 1285 of file wm_operators.cc.
References CTX_data_scene(), CTX_wm_manager(), ED_undo_is_valid(), WM_JOB_TYPE_ANY, and WM_jobs_test().
Referenced by ed_undo_redo_poll(), hud_panel_operator_redo_draw(), and wm_block_create_redo().
| int WM_operator_confirm | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Invoke callback, confirm menu + exec.
Definition at line 1237 of file wm_operators.cc.
References ALERT_ICON_NONE, IFACE_, wmOperatorType::name, wmOperator::type, and WM_operator_confirm_ex().
Referenced by WM_OT_read_history(), WM_OT_read_userpref(), and WM_OT_save_userpref().
| int WM_operator_confirm_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | title = nullptr, | ||
| const char * | message = nullptr, | ||
| const char * | confirm_text = nullptr, | ||
| int | icon = 0, | ||
| bool | cancel_default = false ) |
Like WM_operator_confirm, but with more options and can't be used as an invoke directly.
Definition at line 1728 of file wm_operators.cc.
References IFACE_, int, OPERATOR_RUNNING_MODAL, wmOperator::ptr, wmOperator::type, UI_DEFAULT_TEXT_POINTS, UI_popup_block_ex(), UI_SCALE_FAC, UI_style_get(), wm_block_dialog_create(), wm_operator_ui_popup_cancel(), wm_operator_ui_popup_ok(), WM_operatortype_name(), WM_POPUP_POSITION_CENTER, WM_POPUP_POSITION_MOUSE, WM_POPUP_SIZE_LARGE, and WM_POPUP_SIZE_SMALL.
Referenced by actkeys_delete_invoke(), armature_delete_selected_invoke(), blender::ed::object::bake_simulation::bake_simulation_invoke(), blender::ed::sculpt_paint::brush_asset_delete_invoke(), clear_anim_v3d_invoke(), blender::ed::object::collection_exporter_remove_invoke(), delete_curve_invoke(), delete_invoke(), delete_key_v3d_invoke(), delete_marker_invoke(), delete_metaelems_invoke(), delete_track_invoke(), ed_marker_delete_invoke(), file_delete_invoke(), file_directory_new_invoke(), graphkeys_delete_invoke(), blender::ed::object::modifier_apply_invoke(), nlaedit_make_single_user_invoke(), blender::ed::object::object_delete_invoke(), blender::ed::object::object_transform_apply_invoke(), pack_all_invoke(), preferences_extension_repo_remove_invoke(), text_reload_invoke(), text_unlink_invoke(), unpack_libraries_invoke(), wm_homefile_write_invoke(), WM_operator_confirm(), WM_operator_confirm_message(), WM_operator_confirm_message_ex(), WM_operator_confirm_or_exec(), wm_read_factory_settings_invoke(), wm_revert_mainfile_invoke(), and wm_userpref_read_invoke().
| int WM_operator_confirm_message | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | message ) |
Definition at line 1231 of file wm_operators.cc.
References ALERT_ICON_NONE, IFACE_, and WM_operator_confirm_ex().
| int WM_operator_confirm_message_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | title, | ||
| int | icon, | ||
| const char * | message, | ||
| wmOperatorCallContext | opcontext ) |
Can't be used as an invoke directly, needs message arg (can be NULL).
Definition at line 1203 of file wm_operators.cc.
References ALERT_ICON_ERROR, ALERT_ICON_INFO, ALERT_ICON_NONE, ALERT_ICON_QUESTION, ALERT_ICON_WARNING, IFACE_, and WM_operator_confirm_ex().
| int WM_operator_confirm_or_exec | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1243 of file wm_operators.cc.
References ALERT_ICON_NONE, wmOperatorType::exec, IFACE_, wmOperatorType::name, wmOperator::ptr, RNA_boolean_get(), wmOperator::type, and WM_operator_confirm_ex().
|
static |
Definition at line 1936 of file wm_operators.cc.
References BKE_report(), CTX_data_pointer_get_type(), PointerRNA::data, OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::reports, RPT_ERROR, and WM_operator_properties_reset().
Referenced by WM_OT_operator_defaults().
| ID * WM_operator_drop_load_path | ( | bContext * | C, |
| wmOperator * | op, | ||
| short | idcode ) |
Use for drag & drop a path or name with operators invoke() function. Returns null if no operator property is set to identify the file or ID to use.
Definition at line 1321 of file wm_operators.cc.
References BKE_idtype_idcode_to_name(), BKE_image_load_exists(), BKE_main_blendfile_path(), BKE_reportf(), BLI_assert_unreachable, BLI_path_rel(), CTX_data_main(), FILE_MAX, ID_IM, id_us_plus(), MAX_ID_NAME, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_string_get(), RNA_struct_property_is_set(), RPT_, RPT_ERROR, WM_operator_properties_id_lookup_from_name_or_session_uid(), and WM_operator_properties_id_lookup_is_set().
Referenced by camera_background_image_add_exec(), blender::ed::space_node::node_add_file_exec(), blender::ed::object::object_image_add_exec(), and blender::ed::object::object_image_add_invoke().
| int WM_operator_filesel | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Invoke callback, file selector "filepath" unset + exec.
wmOperatorType.invoke, opens file-select if path property not set, otherwise executes.
Definition at line 1253 of file wm_operators.cc.
References OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_struct_property_is_set(), WM_event_add_fileselect(), and WM_operator_call_notest().
Referenced by blender::ed::sculpt_paint::brush_asset_load_preview_invoke(), graphkeys_sound_to_samples_invoke(), lib_id_load_custom_preview_invoke(), blender::ed::space_node::node_add_file_invoke(), sound_mixdown_invoke(), and sound_open_invoke().
| bool WM_operator_filesel_ensure_ext_imtype | ( | wmOperator * | op, |
| const ImageFormatData * | im_format ) |
Definition at line 1262 of file wm_operators.cc.
References BKE_image_path_ext_from_imformat_ensure(), FILE_MAX, wmOperator::ptr, RNA_property_string_get(), RNA_property_string_set(), and RNA_struct_find_property().
Referenced by image_save_as_check(), and screenshot_check().
| void WM_operator_last_properties_ensure | ( | wmOperatorType * | ot, |
| PointerRNA * | ptr ) |
Definition at line 1315 of file wm_operators.cc.
References G_MAIN, ot, ptr, RNA_pointer_create(), wmOperatorType::srna, and WM_operator_last_properties_ensure_idprops().
| IDProperty * WM_operator_last_properties_ensure_idprops | ( | wmOperatorType * | ot | ) |
Definition at line 1307 of file wm_operators.cc.
References blender::bke::idprop::create_group(), wmOperatorType::last_properties, and ot.
Referenced by WM_operator_last_properties_ensure().
| bool WM_operator_last_properties_init | ( | wmOperator * | op | ) |
Definition at line 907 of file wm_operators.cc.
References IDP_GetPropertyFromGroup(), wmOperatorType::last_properties, LISTBASE_FOREACH, wmOperator::macro, operator_last_properties_init_impl(), and wmOperator::type.
Referenced by wm_operator_invoke().
| bool WM_operator_last_properties_store | ( | wmOperator * | op | ) |
Definition at line 922 of file wm_operators.cc.
References BLI_listbase_is_empty(), CLOG_INFO, blender::bke::idprop::create_group(), IDProperty::data, ListBase::first, IDPropertyData::group, wmOperatorType::idname, IDP_CopyProperty(), IDP_FreeProperty(), IDP_ReplaceInGroup(), wmOperatorType::last_properties, LISTBASE_FOREACH, wmOperator::macro, IDProperty::name, wmOperator::properties, STRNCPY, wmOperator::type, and WM_LOG_OPERATORS.
Referenced by wm_handler_fileselect_do(), and wm_operator_finished().
| wmOperator * WM_operator_last_redo | ( | const bContext * | C | ) |
Definition at line 1293 of file wm_operators.cc.
References CTX_wm_manager(), LISTBASE_FOREACH_BACKWARD, wmWindowManager::operators, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_gizmo_poll_or_unlink_delayed_from_operator(), ed_undo_redo_exec(), ed_undo_redo_poll(), file_browse_exec(), gizmo_bisect_exec(), gizmo_mesh_bisect_draw_prepare(), gizmo_mesh_bisect_setup(), gizmo_mesh_placement_draw_prepare(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_setup(), gizmo_placement_exec(), gizmo_spin_exec(), gizmo_tweak_start_and_finish(), hud_panel_operator_redo_draw(), hud_panel_operator_redo_draw_header(), last_redo_poll(), redo_last_invoke(), screen_ctx_active_operator(), uiTemplateOperatorRedoProperties(), wm_block_create_redo(), wm_block_redo_cancel_cb(), wm_block_redo_cb(), and wm_operator_finished().
| void WM_operator_properties_alloc | ( | PointerRNA ** | ptr, |
| IDProperty ** | properties, | ||
| const char * | opstring ) |
Similar to the function above except its uses ID properties used for key-maps and macros.
Definition at line 749 of file wm_operators.cc.
References blender::bke::idprop::create_group(), ptr, and WM_operator_properties_create().
Referenced by save_file_overwrite_confirm(), UI_list_custom_activate_operator_set(), UI_list_custom_drag_operator_set(), uiItemMenuEnumFullO_ptr(), WM_dropbox_add(), wm_dropbox_item_update_ot(), wm_keymap_item_properties_set(), WM_operatortype_macro_define(), and wm_xr_actionmap_item_properties_set().
| void WM_operator_properties_clear | ( | PointerRNA * | ptr | ) |
Definition at line 842 of file wm_operators.cc.
References PointerRNA::data, IDP_ClearProperty(), and ptr.
Referenced by wm_macro_modal().
| void WM_operator_properties_create | ( | PointerRNA * | ptr, |
| const char * | opstring ) |
Definition at line 735 of file wm_operators.cc.
References G_MAIN, ot, ptr, RNA_pointer_create(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by doc_view_manual_ui_context_exec(), file_smoothscroll_invoke(), blender::ed::space_node::node_render_changed_exec(), wm_keymap_item_copy(), WM_operator_properties_alloc(), and wm_xr_actionmap_item_copy().
| void WM_operator_properties_create_ptr | ( | PointerRNA * | ptr, |
| wmOperatorType * | ot ) |
Definition at line 729 of file wm_operators.cc.
References G_MAIN, ot, ptr, RNA_pointer_create(), and wmOperatorType::srna.
Referenced by bone_mouse_select_menu(), constraint_reorder(), blender::ed::asset::shelf::create_activate_operator_params(), file_browse_invoke(), file_directory_enter_handle(), file_external_operation_exec(), file_handler_import_operator_create_ptr(), ghost_event_proc(), blender::ed::outliner::id_remap_fn(), image_file_browse_invoke(), blender::ed::outliner::lib_relocate(), blender::ed::space_node::link_drag_search_exec_fn(), menu_item_enum_opname_menu_active(), modifier_reorder(), blender::ed::object::move_to_collection_menu_create(), blender::ed::space_node::node_add_group_asset_invoke(), object_mouse_select_menu(), blender::ed::outliner::outliner_item_drag_drop_invoke(), preferences_extension_url_drop_invoke(), pyop_call(), shaderfx_reorder(), blender::ed::transform::special_aftertrans_update__node(), toolsystem_ref_set_by_brush_type(), transform_from_gizmo_invoke(), ui_but_anim_decorate_cb(), ui_but_extra_operator_icon_add_ptr(), UI_but_operator_ptr_ensure(), ui_handle_menu_letter_press_search(), ui_pie_menu_level_invoke(), ui_tooltip_data_from_tool(), uiItemBooleanO(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemFloatO(), uiItemIntO(), uiItemMenuEnumFullO_ptr(), uiItemsFullEnumO(), uiItemsFullEnumO_items(), uiItemStringO(), view3d_interactive_add_modal(), wm_dropbox_item_update_ot(), WM_gizmo_operator_set(), wm_keymap_item_properties_update_ot(), WM_menu_name_call(), WM_operator_properties_create(), WM_operator_pystring_ex(), WM_operator_type_set(), WM_operator_ui_poll(), WM_operatortype_props_advanced_end(), wm_recover_auto_save_exec(), wm_recover_last_session_exec(), wm_test_autorun_revert_action_exec(), WM_toolsystem_ref_set_by_id_ex(), and WM_xr_actionmap_item_properties_update_ot().
| bool WM_operator_properties_default | ( | PointerRNA * | ptr, |
| bool | do_update ) |
Set all props to their default.
| do_update | Only update un-initialized props. |
Definition at line 798 of file wm_operators.cc.
References PROP_POINTER, ptr, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_reset(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and WM_operator_properties_default().
Referenced by wm_keymap_item_find(), wm_keymap_item_find_in_keymap(), WM_operator_properties_default(), and WM_operator_type_set().
| void WM_operator_properties_free | ( | PointerRNA * | ptr | ) |
Definition at line 851 of file wm_operators.cc.
References PointerRNA::data, IDP_FreeProperty(), and ptr.
Referenced by bone_mouse_select_menu(), constraint_reorder(), doc_view_manual_ui_context_exec(), file_browse_invoke(), file_directory_enter_handle(), file_external_operation_exec(), file_smoothscroll_invoke(), ghost_event_proc(), blender::ed::outliner::id_remap_fn(), image_file_browse_invoke(), blender::ed::outliner::lib_relocate(), blender::ed::space_node::link_drag_search_exec_fn(), menu_search_arg_free_fn(), modifier_reorder(), blender::ed::space_node::node_add_group_asset_invoke(), blender::ed::space_node::node_render_changed_exec(), object_mouse_select_menu(), blender::ed::asset::shelf::AssetViewItem::on_activate(), blender::ed::outliner::outliner_item_drag_drop_invoke(), preferences_extension_url_drop_invoke(), pyop_as_string(), pyop_call(), shaderfx_reorder(), blender::ed::transform::special_aftertrans_update__node(), toolsystem_ref_set_by_brush_type(), transform_from_gizmo_invoke(), ui_apply_but_funcs_after(), ui_but_anim_decorate_cb(), ui_but_extra_operator_icon_free(), ui_but_free(), ui_tooltip_data_from_tool(), uilist_free_dyn_data(), view3d_interactive_add_modal(), wm_drop_import_file_exec(), wm_drop_item_free_data(), WM_gizmo_free(), WM_gizmo_operator_set(), wm_handler_operator_call(), wm_keymap_item_free_data(), WM_keymap_item_properties_reset(), WM_keymap_remove_item(), WM_menu_name_call(), WM_operator_pystring_ex(), WM_operator_type_set(), wm_operatortype_free_macro(), wm_test_autorun_revert_action_set(), WM_toolsystem_ref_set_by_id_ex(), and wm_xr_actionmap_item_properties_free().
| void WM_operator_properties_reset | ( | wmOperator * | op | ) |
Remove all props without PROP_SKIP_SAVE or PROP_SKIP_PRESET.
Definition at line 825 of file wm_operators.cc.
References PointerRNA::data, PROP_SKIP_PRESET, PROP_SKIP_SAVE, wmOperator::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_struct_idprops_unset(), RNA_struct_iterator_property(), wmOperatorType::srna, and wmOperator::type.
Referenced by wm_operator_defaults_exec().
| void WM_operator_properties_sanitize | ( | PointerRNA * | ptr, |
| bool | no_context ) |
Make props context sensitive or not.
Definition at line 769 of file wm_operators.cc.
References PROP_ENUM, PROP_ENUM_NO_CONTEXT, PROP_POINTER, ptr, RNA_def_property_clear_flag(), RNA_def_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, RNA_struct_is_a(), and WM_operator_properties_sanitize().
Referenced by menu_item_enum_opname_menu_active(), pyop_call(), UI_but_rna_enum_item_get(), ui_pie_menu_level_invoke(), ui_tooltip_data_from_button_or_extra_icon(), uiItemsFullEnumO(), uiTemplateKeymapItemProperties(), WM_dropbox_add(), wm_dropbox_item_update_ot(), wm_keymap_item_properties_set(), wm_keymap_item_properties_update_ot(), wm_operator_create(), WM_operator_properties_sanitize(), WM_operatortype_macro_define(), wm_xr_actionmap_item_properties_set(), and WM_xr_actionmap_item_properties_update_ot().
| int WM_operator_props_dialog_popup | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | width, | ||
| std::optional< std::string > | title, | ||
| std::optional< std::string > | confirm_text, | ||
| const bool | cancel_default ) |
Definition at line 1842 of file wm_operators.cc.
References ALERT_ICON_NONE, IFACE_, int, OPERATOR_RUNNING_MODAL, wmOperator::ptr, wmOperator::type, UI_DEFAULT_TEXT_POINTS, UI_popup_block_ex(), UI_SCALE_FAC, UI_style_get(), wm_block_dialog_create(), wm_operator_ui_popup_cancel(), wm_operator_ui_popup_ok(), WM_operatortype_name(), WM_POPUP_POSITION_MOUSE, and WM_POPUP_SIZE_SMALL.
Referenced by blender::ed::greasepencil::bake_grease_pencil_animation_invoke(), blender::ed::sculpt_paint::brush_asset_edit_metadata_invoke(), blender::ed::sculpt_paint::brush_asset_save_as_invoke(), blender::ed::io::filesel_drop_import_invoke(), blender::ed::geometry::geometry_attribute_convert_invoke(), blender::ed::geometry::geometry_color_attribute_convert_invoke(), image_new_invoke(), image_scale_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_new_collection_invoke(), blender::ed::object::object_calculate_paths_invoke(), blender::ed::outliner::outliner_id_remap_invoke(), blender::ed::outliner::outliner_orphans_purge_invoke(), pose_calculate_paths_invoke(), sequencer_enable_proxies_invoke(), text_jump_invoke(), texture_paint_add_texture_paint_slot_invoke(), tile_add_invoke(), tile_fill_invoke(), wm_debug_menu_invoke(), wm_operator_props_popup_ex(), and wm_stereo3d_set_invoke().
| int WM_operator_props_popup | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1837 of file wm_operators.cc.
References wm_operator_props_popup_ex().
Referenced by ANIM_OT_channels_group(), CURVE_OT_radius_set(), CURVE_OT_spline_weight_set(), blender::ed::geometry::geometry_randomization_invoke(), blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), PARTICLE_OT_rekey(), sequencer_retiming_segment_speed_set_invoke(), and blender::ed::curves::set_attribute_invoke().
| int WM_operator_props_popup_call | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Same as WM_operator_props_popup but call the operator first, This way - the button values correspond to the result of the operator. Without this, first access to a button will make the result jump, see #32452.
Definition at line 1832 of file wm_operators.cc.
References wm_operator_props_popup_ex().
Referenced by UV_OT_pack_islands().
| int WM_operator_props_popup_confirm | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Invoke callback, exec + redo popup.
Same as WM_operator_props_popup but don't use operator redo. just wraps WM_operator_props_dialog_popup.
Definition at line 1827 of file wm_operators.cc.
References wm_operator_props_popup_ex().
| int WM_operator_props_popup_confirm_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event, | ||
| std::optional< std::string > | title, | ||
| std::optional< std::string > | confirm_text, | ||
| const bool | cancel_default ) |
Definition at line 1817 of file wm_operators.cc.
References wm_operator_props_popup_ex().
Referenced by ed_marker_rename_invoke(), blender::ed::geometry::geometry_attribute_add_invoke(), blender::ed::geometry::geometry_color_attribute_add_invoke(), blender::ed::greasepencil::grease_pencil_clean_loose_invoke(), blender::ed::greasepencil::grease_pencil_layer_add_invoke(), blender::ed::greasepencil::grease_pencil_move_to_layer_invoke(), blender::ed::object::make_single_user_invoke(), paint_mask_extract_invoke(), preferences_extension_repo_add_invoke(), blender::ed::object::quadriflow_remesh_invoke(), sequencer_separate_images_invoke(), smart_project_invoke(), uv_pack_islands_invoke(), and wm_clear_recent_files_invoke().
|
static |
For use by WM_operator_props_popup_call, WM_operator_props_popup only.
Definition at line 1776 of file wm_operators.cc.
References BKE_reportf(), wmOperatorType::flag, wmOperatorType::idname, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperator::reports, RPT_ERROR, wmOperator::type, UI_popup_block_ex(), USER_GLOBALUNDO, wm_block_create_redo(), wm_block_redo_cancel_cb(), wm_block_redo_cb(), and WM_operator_props_dialog_popup().
Referenced by WM_operator_props_popup(), WM_operator_props_popup_call(), WM_operator_props_popup_confirm(), and WM_operator_props_popup_confirm_ex().
| size_t WM_operator_py_idname | ( | char * | dst, |
| const char * | src ) |
Definition at line 130 of file wm_operators.cc.
References BLI_str_tolower_ascii(), BLI_strncpy_rlen(), OP_BL_SEP_LEN, OP_BL_SEP_STRING, OP_MAX_TYPENAME, OP_PY_SEP_CHAR, and OP_PY_SEP_LEN.
Referenced by menu_items_from_all_operators(), UI_but_online_manual_id(), WM_operator_pystring_ex(), and WM_operatortype_idname_visit_for_search().
| bool WM_operator_py_idname_ok_or_report | ( | ReportList * | reports, |
| const char * | classname, | ||
| const char * | idname ) |
Sanity check to ensure WM_operator_bl_idname won't fail.
Definition at line 195 of file wm_operators.cc.
References BKE_reportf(), OP_MAX_PY_IDNAME, and RPT_ERROR.
| std::string WM_operator_pystring | ( | bContext * | C, |
| wmOperator * | op, | ||
| const bool | all_args, | ||
| const bool | macro_args ) |
Definition at line 322 of file wm_operators.cc.
References wmOperator::ptr, wmOperator::type, and WM_operator_pystring_ex().
Referenced by wm_operator_finished(), and wm_operator_reports().
| std::string WM_operator_pystring_abbreviate | ( | std::string | str, |
| int | str_len_max ) |
Definition at line 330 of file wm_operators.cc.
References str.
Referenced by ui_tooltip_text_python_from_op().
| std::string WM_operator_pystring_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| bool | all_args, | ||
| bool | macro_args, | ||
| wmOperatorType * | ot, | ||
| PointerRNA * | opptr ) |
Operator as a Python command.
Return a string representation of the operator, with the arguments that it runs so Python can run it again.
When calling from an existing wmOperator, better to use simple version: WM_operator_pystring(C, op);
NULL (op is only used for macro operators). Definition at line 252 of file wm_operators.cc.
References ListBase::first, wmOperatorType::idname, wmOperator::macro, wmOperatorType::macro, wmOperator::next, OP_MAX_TYPENAME, ot, wmOperator::ptr, RNA_pointer_as_string_id(), RNA_pointer_as_string_keywords(), wmOperator::type, WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operator_py_idname().
Referenced by copy_python_command_button_exec(), pyop_as_string(), ui_but_copy_operator(), ui_layout_introspect_button(), ui_tooltip_text_python_from_op(), and WM_operator_pystring().
| int WM_operator_redo_popup | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1870 of file wm_operators.cc.
References BKE_reportf(), CTX_wm_reports(), wmOperatorType::flag, wmOperatorType::idname, OPERATOR_CANCELLED, OPTYPE_REGISTER, wmOperatorType::poll, RPT_ERROR, wmOperator::type, UI_popup_block_invoke(), and wm_block_create_redo().
Referenced by redo_last_invoke().
| int WM_operator_smooth_viewtx_get | ( | const wmOperator * | op | ) |
Definition at line 1076 of file wm_operators.cc.
References wmOperator::flag, and OP_IS_INVOKE.
Referenced by actkeys_view_frame_exec(), graphkeys_channel_view_pick_invoke(), graphkeys_view_frame_exec(), graphkeys_view_selected_channels_exec(), graphkeys_view_selected_exec(), graphkeys_viewall_exec(), localview_exec(), localview_remove_from_exec(), nlaedit_viewframe_exec(), blender::ed::space_node::node_select_same_type_step_exec(), blender::ed::space_node::node_view_all_exec(), blender::ed::space_node::node_view_selected_exec(), sequencer_view_all_exec(), sequencer_view_frame_exec(), sequencer_view_selected_exec(), view3d_all_exec(), view3d_setobjectascamera_exec(), view3d_zoom_border_exec(), view_axis_exec(), view_borderzoom_exec(), view_camera_exec(), view_curve_in_graph_editor_exec(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), vieworbit_exec(), viewroll_exec(), and viewselected_exec().
Definition at line 1672 of file wm_operators.cc.
References UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_disable(), UI_block_flag_enable(), UI_block_func_set(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_THEME_STYLE_REGULAR, UI_block_theme_style_set(), UI_BUT_LABEL_ALIGN_COLUMN, UI_EMBOSS, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_popup_dummy_panel_set(), UI_SCALE_FAC, UI_style_get_dpi(), and uiTemplateOperatorPropertyButs().
Referenced by WM_operator_ui_popup().
| int WM_operator_ui_popup | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | width ) |
Definition at line 1761 of file wm_operators.cc.
References OPERATOR_RUNNING_MODAL, UI_popup_block_ex(), UI_SCALE_FAC, wm_operator_ui_create(), and wm_operator_ui_popup_cancel().
|
static |
Definition at line 1698 of file wm_operators.cc.
References wmOperatorType::cancel, wmOperator::type, and WM_operator_free().
Referenced by dialog_cancel_cb(), WM_operator_confirm_ex(), WM_operator_props_dialog_popup(), and WM_operator_ui_popup().
Definition at line 1716 of file wm_operators.cc.
References WM_operator_call_ex().
Referenced by WM_operator_confirm_ex(), and WM_operator_props_dialog_popup().
| void WM_operator_view3d_unit_defaults | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1047 of file wm_operators.cc.
References BLI_assert, CTX_data_scene(), CTX_wm_view3d(), ED_scene_grid_scale(), ED_view3d_grid_scale(), wmOperator::flag, OP_IS_INVOKE, PROP_DISTANCE, PROP_FLOAT, wmOperator::ptr, RNA_property_array_check(), RNA_property_float_get_default(), RNA_property_float_set(), RNA_property_is_set_ex(), RNA_property_subtype(), RNA_property_type(), RNA_STRUCT_BEGIN, and RNA_STRUCT_END.
Referenced by add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), add_primitive_uvsphere_exec(), curvesurf_prim_add(), blender::ed::object::effector_add_exec(), blender::ed::object::lightprobe_add_exec(), blender::ed::object::object_add_exec(), blender::ed::object::object_add_text_exec(), blender::ed::object::object_armature_add_exec(), blender::ed::object::object_empty_add_exec(), blender::ed::object::object_grease_pencil_add_exec(), blender::ed::object::object_light_add_exec(), and blender::ed::object::object_metaball_add_exec().
| bool WM_operator_winactive | ( | bContext * | C | ) |
Callback for wmOperatorType.poll.
Definition at line 1277 of file wm_operators.cc.
References CTX_wm_window().
Referenced by redraw_timer_poll(), SCREEN_OT_new(), SCREEN_OT_spacedata_cleanup(), screenshot_poll(), wm_link_append_poll(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), WM_OT_debug_menu(), WM_OT_search_menu(), WM_OT_search_operator(), WM_OT_search_single_menu(), WM_OT_splash(), WM_OT_splash_about(), WM_OT_stereo3d_set(), WM_OT_window_close(), and WM_OT_window_fullscreen_toggle().
|
static |
This poll functions is needed in place of WM_operator_winactive while it crashes on full screen.
Definition at line 2312 of file wm_operators.cc.
References CTX_wm_window(), G, SCREENNORMAL, and WM_window_get_active_screen().
Referenced by WM_OT_window_new_main().
|
static |
Definition at line 2330 of file wm_operators.cc.
References CTX_wm_window(), G, SCREENFULL, and WM_window_get_active_screen().
Referenced by WM_OT_window_new().
| void wm_operatortypes_register | ( | ) |
Definition at line 4111 of file wm_operators.cc.
References GIZMOGROUP_OT_gizmo_select(), GIZMOGROUP_OT_gizmo_tweak(), WM_operatortype_append(), WM_OT_append(), WM_OT_call_asset_shelf_popover(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), WM_OT_clear_recent_files(), WM_OT_debug_menu(), WM_OT_doc_view_manual_ui_context(), WM_OT_lib_reload(), WM_OT_lib_relocate(), WM_OT_link(), WM_OT_memory_statistics(), WM_OT_open_mainfile(), WM_OT_operator_defaults(), WM_OT_previews_clear(), WM_OT_previews_ensure(), WM_OT_quit_blender(), WM_OT_radial_control(), WM_OT_read_factory_settings(), WM_OT_read_factory_userpref(), WM_OT_read_history(), WM_OT_read_homefile(), WM_OT_read_userpref(), WM_OT_recover_auto_save(), WM_OT_recover_last_session(), WM_OT_redraw_timer(), WM_OT_revert_mainfile(), WM_OT_save_as_mainfile(), WM_OT_save_homefile(), WM_OT_save_mainfile(), WM_OT_save_userpref(), WM_OT_search_menu(), WM_OT_search_operator(), WM_OT_search_single_menu(), WM_OT_splash(), WM_OT_splash_about(), WM_OT_stereo3d_set(), WM_OT_window_close(), WM_OT_window_fullscreen_toggle(), WM_OT_window_new(), WM_OT_window_new_main(), and wm_xr_operatortypes_register().
Referenced by WM_init().
|
static |
Definition at line 2282 of file wm_operators.cc.
References asset_shelf_popover_invoke(), wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, RNA_def_string(), and wmOperatorType::srna.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2165 of file wm_operators.cc.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_string_search_func_runtime(), RNA_def_string(), wmOperatorType::srna, wm_call_menu_exec(), wm_call_menu_get_name(), WM_menutype_idname_visit_for_search(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2203 of file wm_operators.cc.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_string_search_func_runtime(), RNA_def_string(), wmOperatorType::srna, wm_call_menu_get_name(), wm_call_pie_menu_exec(), wm_call_pie_menu_invoke(), WM_menutype_idname_visit_for_search(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2244 of file wm_operators.cc.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, PROP_SKIP_SAVE, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUGGESTION, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_property_string_search_func_runtime(), RNA_def_string(), wmOperatorType::srna, wm_call_panel_exec(), wm_call_panel_get_name(), WM_operator_winactive(), and WM_paneltype_idname_visit_for_search().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 1916 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_int(), wmOperatorType::srna, wm_debug_menu_exec(), wm_debug_menu_invoke(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 4035 of file wm_operators.cc.
References wmOperatorType::description, doc_view_manual_ui_context_exec(), ED_operator_regionactive(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3761 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, memory_statistics_exec(), wmOperatorType::name, and ot.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 1950 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, ot, and wm_operator_defaults_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3990 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, PREVIEW_FILTER_ALL, preview_id_type_items, previews_clear_exec(), wmOperatorType::prop, RNA_def_enum_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3855 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and previews_ensure_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2406 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wm_exit_blender_exec(), and wm_exit_blender_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3446 of file wm_operators.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, radial_control_cancel(), radial_control_invoke(), radial_control_modal(), RNA_def_boolean(), RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3723 of file wm_operators.cc.
References wmOperatorType::description, eRTDrawRegion, wmOperatorType::exec, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, redraw_timer_exec(), redraw_timer_poll(), redraw_timer_type_items, RNA_def_enum(), RNA_def_float(), RNA_def_int(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2107 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), wm_search_menu_exec(), and wm_search_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2118 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), wm_search_menu_exec(), and wm_search_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2129 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_string(), wmOperatorType::srna, WM_operator_winactive(), wm_search_menu_exec(), and wm_search_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 4055 of file wm_operators.cc.
References wmOperatorType::cancel, wmOperatorType::check, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), rna_enum_stereo3d_anaglyph_type_items, rna_enum_stereo3d_display_items, rna_enum_stereo3d_interlace_type_items, S3D_ANAGLYPH_REDCYAN, S3D_DISPLAY_ANAGLYPH, S3D_INTERLACE_ROW, wmOperatorType::srna, wmOperatorType::ui, WM_operator_winactive(), wm_stereo3d_set_cancel(), wm_stereo3d_set_check(), wm_stereo3d_set_draw(), wm_stereo3d_set_exec(), and wm_stereo3d_set_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2349 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), and wm_window_close_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2379 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), and wm_window_fullscreen_toggle_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2359 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wm_operator_winactive_not_full(), and wm_window_new_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2369 of file wm_operators.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wm_operator_winactive_normal(), and wm_window_new_main_exec().
Referenced by wm_operatortypes_register().
| wmPaintCursor * WM_paint_cursor_activate | ( | short | space_type, |
| short | region_type, | ||
| bool(* | poll )(bContext *C), | ||
| wmPaintCursorDraw | draw, | ||
| void * | customdata ) |
Definition at line 2454 of file wm_operators.cc.
References BLI_addtail(), wmPaintCursor::customdata, wmPaintCursor::draw, G_MAIN, MEM_callocN, wmWindowManager::paintcursors, wmPaintCursor::poll, wmPaintCursor::region_type, and wmPaintCursor::space_type.
Referenced by annotation_draw_toggle_eraser_cursor(), annotation_draw_toggle_stabilizer_cursor(), ED_paint_cursor_start(), initTransform(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), blender::ed::sculpt_paint::paint_stroke_modal(), pyrna_callback_classmethod_add(), radial_control_invoke(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), toggle_particle_cursor(), and v3d_cursor_snap_activate().
| bool WM_paint_cursor_end | ( | wmPaintCursor * | handle | ) |
Definition at line 2477 of file wm_operators.cc.
References BLI_remlink(), G_MAIN, LISTBASE_FOREACH, MEM_freeN(), and wmWindowManager::paintcursors.
Referenced by annotation_draw_toggle_eraser_cursor(), annotation_draw_toggle_stabilizer_cursor(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), blender::ed::sculpt_paint::paint_stroke_free(), postTrans(), pyrna_callback_classmethod_remove(), radial_control_cancel(), toggle_paint_cursor(), toggle_particle_cursor(), v3d_cursor_snap_free(), and blender::ed::sculpt_paint::image::ops::paint::PaintOperation::~PaintOperation().
| void WM_paint_cursor_remove_by_type | ( | wmWindowManager * | wm, |
| void * | draw_fn, | ||
| void(* | free )(void *) ) |
Definition at line 2490 of file wm_operators.cc.
References BLI_remlink(), free(), LISTBASE_FOREACH_MUTABLE, MEM_freeN(), and wmWindowManager::paintcursors.
Referenced by BPY_callback_wm_free().
| std::optional< std::string > WM_prop_pystring_assign | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index ) |
Definition at line 705 of file wm_operators.cc.
References ptr, ret, rhs, RNA_path_full_property_py(), RNA_property_as_string(), and wm_prop_pystring_from_context().
Referenced by ui_apply_but_autokey().
|
static |
Definition at line 692 of file wm_operators.cc.
References ptr, and WM_context_path_resolve_property_full().
Referenced by WM_prop_pystring_assign().
|
static |
Definition at line 2036 of file wm_operators.cc.
References OPERATOR_FINISHED.
Referenced by WM_OT_search_menu(), WM_OT_search_operator(), and WM_OT_search_single_menu().
|
static |
Definition at line 2041 of file wm_operators.cc.
References CTX_data_edit_object(), CTX_wm_area(), EVT_SPACEKEY, g_search_text, wmOperatorType::idname, MEM_SAFE_FREE, OB_FONT, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_string_get_alloc(), SEARCH_TYPE_MENU, SEARCH_TYPE_OPERATOR, SEARCH_TYPE_SINGLE_MENU, SPACE_CONSOLE, SPACE_TEXT, STREQ, STRNCPY, Object::type, wmEvent::type, wmOperator::type, UI_popup_block_invoke_ex(), UI_searchbox_size_x(), UI_searchbox_size_y(), and wm_block_search_menu().
Referenced by WM_OT_search_menu(), WM_OT_search_operator(), and WM_OT_search_single_menu().
| void wm_window_keymap | ( | wmKeyConfig * | keyconf | ) |
Default key-map for windows and screens, only call once per WM.
Definition at line 4377 of file wm_operators.cc.
References gesture_box_modal_keymap(), gesture_circle_modal_keymap(), gesture_lasso_modal_keymap(), gesture_polyline_modal_keymap(), gesture_straightline_modal_keymap(), gesture_zoom_border_modal_keymap(), RGN_TYPE_WINDOW, SPACE_EMPTY, wm_gizmos_keymap(), WM_keymap_ensure(), and WM_keymap_fix_linking().
Referenced by WM_keyconfig_init().
|
static |
Definition at line 1979 of file wm_operators.cc.
Referenced by wm_block_search_menu(), and wm_search_menu_invoke().
|
static |
Definition at line 3887 of file wm_operators.cc.
Referenced by WM_OT_previews_clear().
|
static |
Definition at line 3575 of file wm_operators.cc.
Referenced by redraw_timer_exec(), and WM_OT_redraw_timer().