Blender
V3.3
|
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <stddef.h>
#include <stdio.h>
#include <string.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.h"
#include "PIL_time.h"
#include "BLI_blenlib.h"
#include "BLI_dial_2d.h"
#include "BLI_dynstr.h"
#include "BLI_math.h"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "BKE_anim_data.h"
#include "BKE_brush.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_idprop.h"
#include "BKE_image.h"
#include "BKE_image_format.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_unit.h"
#include "BKE_idtype.h"
#include "BLF_api.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
#include "GPU_matrix.h"
#include "GPU_state.h"
#include "IMB_imbuf_types.h"
#include "ED_fileselect.h"
#include "ED_numinput.h"
#include "ED_screen.h"
#include "ED_undo.h"
#include "ED_view3d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_path.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_draw.h"
#include "wm_event_system.h"
#include "wm_event_types.h"
#include "wm_files.h"
#include "wm_window.h"
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 | |
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, struct 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 } |
typedef enum PreviewFilterID | PreviewFilterID |
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) |
Data-Block Preview Generation Operator | |
typedef struct PreviewsIDEnsureData | PreviewsIDEnsureData |
static void | previews_id_ensure (bContext *C, Scene *scene, ID *id) |
static int | previews_id_ensure_callback (LibraryIDLinkCallbackData *cb_data) |
static int | previews_ensure_exec (bContext *C, wmOperator *UNUSED(op)) |
static void | WM_OT_previews_ensure (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.c.
#define ID_CAST_OBMATACT | ( | id_pt | ) | (BKE_object_material_get(((Object *)id_pt), ((Object *)id_pt)->actcol)) |
#define TEST_PTR_DATA_TYPE | ( | member, | |
rna_type, | |||
rna_ptr, | |||
dataptr_cmp | |||
) |
#define TEST_PTR_DATA_TYPE_FROM_CONTEXT | ( | member, | |
rna_type, | |||
rna_ptr | |||
) |
Definition at line 104 of file wm_operators.c.
#define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE (35 * UI_DPI_FAC) |
Definition at line 2159 of file wm_operators.c.
#define WM_RADIAL_CONTROL_DISPLAY_SIZE (200 * UI_DPI_FAC) |
Definition at line 2158 of file wm_operators.c.
#define WM_RADIAL_CONTROL_DISPLAY_WIDTH (WM_RADIAL_CONTROL_DISPLAY_SIZE - WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE) |
Definition at line 2160 of file wm_operators.c.
#define WM_RADIAL_MAX_STR 10 |
Definition at line 2162 of file wm_operators.c.
typedef enum PreviewFilterID PreviewFilterID |
typedef struct PreviewsIDEnsureData PreviewsIDEnsureData |
anonymous enum |
Enumerator | |
---|---|
eRTDrawRegion | |
eRTDrawRegionSwap | |
eRTDrawWindow | |
eRTDrawWindowSwap | |
eRTAnimationStep | |
eRTAnimationPlay | |
eRTUndo |
Definition at line 3194 of file wm_operators.c.
enum PreviewFilterID |
Definition at line 3496 of file wm_operators.c.
enum RCPropFlags |
Enumerator | |
---|---|
RC_PROP_ALLOW_MISSING | |
RC_PROP_REQUIRE_FLOAT | |
RC_PROP_REQUIRE_BOOL |
Definition at line 2537 of file wm_operators.c.
Definition at line 1409 of file wm_operators.c.
References C, CTX_wm_window(), data, MEM_freeN, 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 3637 of file wm_operators.c.
References C, NULL, 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 3857 of file wm_operators.c.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_DESELECT, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3789 of file wm_operators.c.
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, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3914 of file wm_operators.c.
References GESTURE_MODAL_MOVE, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3827 of file wm_operators.c.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_FLIP, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, GESTURE_MODAL_SNAP, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3946 of file wm_operators.c.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_IN, GESTURE_MODAL_OUT, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3383 of file wm_operators.c.
References MEM_printmemlist_stats, and OPERATOR_FINISHED.
Referenced by WM_OT_memory_statistics().
|
static |
Definition at line 801 of file wm_operators.c.
References CLOG_INFO, IDProperty::flag, wmOperatorType::idname, IDP_AddToGroup(), IDP_CopyProperty(), IDP_FLAG_GHOST, IDP_FreeProperty(), IDP_GetPropertyFromGroup(), IDP_GROUP, IDP_MergeGroup(), IDP_New(), 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 3537 of file wm_operators.c.
References filter(), 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 3568 of file wm_operators.c.
References BKE_idtype_idcode_to_idfilter(), BKE_previewimg_clear(), BKE_previewimg_id_ensure(), C, Main::collections, CTX_data_main(), ListBase::first, GS, id, Main::images, Main::lights, Main::materials, ID::name, ID::next, NULL, Main::objects, OPERATOR_FINISHED, preview_filter_to_idfilter(), wmOperator::ptr, RNA_enum_get(), Main::textures, and Main::worlds.
Referenced by WM_OT_previews_clear().
|
static |
Definition at line 3443 of file wm_operators.c.
References BKE_library_foreach_ID_link(), BKE_main_id_tag_all(), BKE_main_id_tag_listbase(), C, PreviewsIDEnsureData::C, CTX_data_main(), id, IDWALK_RECURSE, Main::images, LIB_TAG_DOIT, Main::lights, LISTBASE_FOREACH, Main::materials, NULL, OPERATOR_FINISHED, previews_id_ensure(), previews_id_ensure_callback(), scene, PreviewsIDEnsureData::scene, Main::scenes, ID::tag, Main::textures, and Main::worlds.
Referenced by WM_OT_previews_ensure().
Definition at line 3411 of file wm_operators.c.
References BLI_assert, C, ELEM, GS, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, id, ID_IM, ID_IS_LINKED, ID_LA, ID_MA, ID_TE, ID_WO, ID::name, scene, UI_icon_render_id(), and ID::us.
Referenced by previews_ensure_exec(), and previews_id_ensure_callback().
|
static |
Definition at line 3423 of file wm_operators.c.
References BLI_assert, LibraryIDLinkCallbackData::cb_flag, data, ELEM, GS, id, ID_IM, ID_LA, ID_MA, LibraryIDLinkCallbackData::id_pointer, ID_TE, ID_WO, IDWALK_CB_EMBEDDED, IDWALK_RET_NOP, LIB_TAG_DOIT, ID::name, previews_id_ensure(), ID::tag, and LibraryIDLinkCallbackData::user_data.
Referenced by previews_ensure_exec().
|
static |
Definition at line 2829 of file wm_operators.c.
References blender::compositor::area(), C, 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, NULL, 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 2548 of file wm_operators.c.
References BKE_report(), BKE_reportf(), len, MEM_freeN, NULL, 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 2623 of file wm_operators.c.
References BKE_report(), C, 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, NULL, RadialControl::prop, wmOperator::ptr, RadialControl::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 2728 of file wm_operators.c.
References BKE_report(), BLI_listbase_clear(), C, 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, wmOperator::type, RadialControl::type, wmEvent::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 2856 of file wm_operators.c.
References applyNumInput(), atan2f, BLI_dial_angle(), BLI_dial_init(), C, 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(), handleNumInput(), hasNumInput(), RadialControl::init_event, RadialControl::initial_mouse, RadialControl::initial_value, 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, wmOperator::ptr, RadialControl::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, wmOperator::type, wmEvent::type, UNPACK2, 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().
|
static |
Definition at line 2386 of file wm_operators.c.
References BLF_color4fv(), BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), BLI_snprintf(), 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_2D_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(), str, RadialControl::subtype, TH_TEXT_HI, PointerRNA::type, UI_GetThemeColor4fv(), 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, x, y, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
|
static |
Definition at line 2370 of file wm_operators.c.
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 2296 of file wm_operators.c.
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_2D_IMAGE_COLOR, GPU_SHADER_2D_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 2230 of file wm_operators.c.
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 2270 of file wm_operators.c.
References BKE_brush_gen_radial_control_imbuf(), PointerRNA::data, ELEM, GPU_R8, GPU_texture_create_2d(), GPU_texture_filter_mode(), GPU_texture_swizzle_set(), ID_BR, RadialControl::image_id_ptr, MEM_freeN, PROP_DISTANCE, PROP_NONE, PROP_PIXEL, ImBuf::rect_float, 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 2815 of file wm_operators.c.
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 2186 of file wm_operators.c.
References blender::compositor::area(), BLI_snprintf(), C, 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(), scene, RadialControl::subtype, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by radial_control_modal().
|
static |
Definition at line 3298 of file wm_operators.c.
References Freestyle::a, blender::compositor::area(), BKE_reportf(), C, RenderData::cfra, CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_window(), depsgraph, double(), OPERATOR_FINISHED, PIL_check_seconds_timer(), wmOperator::ptr, Scene::r, redraw_timer_step(), redraw_timer_type_items, wmOperator::reports, RNA_enum_description(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), RPT_WARNING, scene, type, WM_cursor_wait(), and wm_window_make_drawable().
Referenced by WM_OT_redraw_timer().
Definition at line 3290 of file wm_operators.c.
References C, G, and WM_operator_winactive().
Referenced by WM_OT_redraw_timer().
|
static |
Definition at line 3215 of file wm_operators.c.
References blender::compositor::area(), bScreen::areabase, BKE_scene_graph_update_for_newframe(), C, RenderData::cfra, CTX_wm_area_set(), CTX_wm_menu_set(), CTX_wm_region_set(), CTX_wm_window_set(), depsgraph, ED_region_tag_redraw(), ED_undo_pop(), ED_undo_redo(), RenderData::efra, eRTAnimationPlay, eRTAnimationStep, eRTDrawRegion, eRTDrawRegionSwap, eRTDrawWindow, eRTDrawWindowSwap, LISTBASE_FOREACH, NULL, Scene::r, redraw_timer_window_swap(), scene, RenderData::sfra, type, 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().
Definition at line 3179 of file wm_operators.c.
References blender::compositor::area(), bScreen::areabase, C, CTX_wm_menu_set(), CTX_wm_screen(), CTX_wm_window(), CTX_wm_window_set(), ED_area_tag_redraw(), LISTBASE_FOREACH, NULL, and wm_draw_update().
Referenced by redraw_timer_step().
const EnumPropertyItem* RNA_action_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4040 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_collection_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4058 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_collection_local_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4066 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
Definition at line 3995 of file wm_operators.c.
References user_data.
Referenced by RNA_scene_without_active_itemf().
|
static |
Definition at line 4001 of file wm_operators.c.
References GS, EnumPropertyItem::icon, id, ID_GR, ID_IS_LINKED, EnumPropertyItem::identifier, ID::name, EnumPropertyItem::name, ID::next, NULL, RNA_enum_item_add(), RNA_enum_item_end(), UI_icon_color_from_collection(), user_data, 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 * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4075 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_image_local_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4082 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_mask_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4133 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_mask_local_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4140 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_movieclip_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4116 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_movieclip_local_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4124 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_scene_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4090 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_scene_local_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4097 of file wm_operators.c.
References C, CTX_data_main(), NULL, and rna_id_itemf().
const EnumPropertyItem* RNA_scene_without_active_itemf | ( | bContext * | C, |
PointerRNA * | UNUSEDptr, | ||
PropertyRNA * | UNUSEDprop, | ||
bool * | r_free | ||
) |
Definition at line 4104 of file wm_operators.c.
References C, CTX_data_main(), CTX_data_scene(), NULL, rna_id_enum_filter_single(), and rna_id_itemf().
Definition at line 1365 of file wm_operators.c.
References BLI_assert, C, col, wmOperatorType::flag, wmOperatorType::name, NULL, EnumSearchMenu::op, OPTYPE_REGISTER, 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_style_get_dpi(), UI_TEMPLATE_OP_PROPS_SHOW_TITLE, UI_UNIT_X, UI_UNIT_Y, uiLayoutColumn(), uiLayoutSetEnabled(), uiTemplateOperatorPropertyButs(), width, wm_block_redo_cb(), WM_operator_check_ui_enabled(), and WM_operator_last_redo().
Referenced by wm_operator_props_popup_ex(), and WM_operator_redo_popup().
Definition at line 1435 of file wm_operators.c.
References C, col, data, dialog_exec_cb(), IFACE_, NULL, 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_NUMSELECT, UI_BLOCK_THEME_STYLE_REGULAR, 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_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_style_get_dpi(), UI_TEMPLATE_OP_PROPS_SHOW_TITLE, UI_UNIT_Y, uiDefBut(), uiLayoutColumn(), uiLayoutGetBlock(), and uiTemplateOperatorPropertyButs().
Referenced by WM_operator_props_dialog_popup().
Definition at line 1355 of file wm_operators.c.
References C, EnumSearchMenu::op, WM_operator_free(), and WM_operator_last_redo().
Referenced by wm_operator_props_popup_ex().
Definition at line 1338 of file wm_operators.c.
References C, ED_undo_operator_repeat(), ED_undo_push_op(), EnumSearchMenu::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 1719 of file wm_operators.c.
References BLI_assert_unreachable, C, init_data(), NULL, SearchPopupInit_Data::SEARCH_TYPE_MENU, SearchPopupInit_Data::SEARCH_TYPE_OPERATOR, 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_ACTIVATE_ON_INIT, 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 1849 of file wm_operators.c.
References BKE_ST_MAXNAME, C, wmOperator::ptr, wmOperator::reports, RNA_string_get(), and UI_popup_menu_invoke().
Referenced by WM_OT_call_menu().
|
static |
Definition at line 1857 of file wm_operators.c.
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 1927 of file wm_operators.c.
References BKE_ST_MAXNAME, C, 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 1936 of file wm_operators.c.
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 1896 of file wm_operators.c.
References BKE_ST_MAXNAME, C, CTX_wm_window(), wmOperator::ptr, RNA_string_get(), and UI_pie_menu_invoke().
Referenced by WM_OT_call_menu_pie().
|
static |
Definition at line 1888 of file wm_operators.c.
References BKE_ST_MAXNAME, C, 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 384 of file wm_operators.c.
References bArmature::act_bone, bArmature::act_edbone, SpaceAction::ads, SpaceGraph::ads, SpaceNla::ads, C, 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, if(), ID::name, NULL, OB_DATA_SUPPORT_ID_CASE, PointerRNA::owner_id, params, ptr, View3D::shading, SPACE_ACTION, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_VIEW3D, SpaceLink::spacetype, TEST_PTR_DATA_TYPE, and TEST_PTR_DATA_TYPE_FROM_CONTEXT.
Referenced by WM_context_path_resolve_property_full().
char* WM_context_path_resolve_full | ( | bContext * | C, |
const PointerRNA * | ptr | ||
) |
Definition at line 617 of file wm_operators.c.
References C, NULL, 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().
char* WM_context_path_resolve_property_full | ( | const bContext * | C, |
const PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
int | index | ||
) |
Definition at line 569 of file wm_operators.c.
References BLI_strdup(), BLI_string_join_by_sep_charN, BLI_string_joinN, C, MEM_freeN, NULL, 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 1645 of file wm_operators.c.
References C, CTX_wm_manager(), CTX_wm_window(), ED_screen_refresh(), G, NC_WINDOW, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by WM_OT_debug_menu().
|
static |
Definition at line 1654 of file wm_operators.c.
References C, G, 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 * | UNUSEDevent | ||
) |
Definition at line 1145 of file wm_operators.c.
References C, NULL, EnumSearchMenu::op, OPERATOR_INTERFACE, UI_popup_block_invoke(), and wm_enum_search_menu().
Referenced by NLA_OT_actionclip_add(), object_instance_add_invoke(), OBJECT_OT_collection_link(), OBJECT_OT_make_links_scene(), 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().
int WM_enum_search_invoke_previews | ( | struct bContext * | C, |
struct wmOperator * | op, | ||
short | prv_cols, | ||
short | prv_rows | ||
) |
Similar to WM_enum_search_invoke, but draws previews. Also, this can't be used as invoke callback directly since it needs additional info.
Definition at line 1131 of file wm_operators.c.
References C, NULL, EnumSearchMenu::op, OPERATOR_INTERFACE, EnumSearchMenu::prv_cols, EnumSearchMenu::prv_rows, UI_popup_block_invoke(), EnumSearchMenu::use_previews, and wm_enum_search_menu().
Generic enum search invoke popup.
Definition at line 1056 of file wm_operators.c.
References BLI_assert, C, CTX_wm_window(), PointerRNA::data, height, NULL, EnumSearchMenu::op, EnumSearchMenu::prv_cols, EnumSearchMenu::prv_rows, 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(), EnumSearchMenu::use_previews, width, and WM_operatortype_name().
Referenced by WM_enum_search_invoke(), and WM_enum_search_invoke_previews().
|
static |
Definition at line 2037 of file wm_operators.c.
References C, OPERATOR_FINISHED, and wm_exit_schedule_delayed().
Referenced by WM_OT_quit_blender().
|
static |
Definition at line 2043 of file wm_operators.c.
References C, 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 | ||
) |
Definition at line 962 of file wm_operators.c.
References C, 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 | ||
) |
Definition at line 903 of file wm_operators.c.
References C, 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(), wmOperator::type, wmEvent::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 * | UNUSEDevent | ||
) |
Definition at line 1043 of file wm_operators.c.
References C, 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(), COLLECTION_OT_objects_add_active(), COLLECTION_OT_objects_remove(), COLLECTION_OT_objects_remove_active(), CURVE_OT_delete(), CURVE_OT_handle_type_set(), CURVE_OT_select_similar(), CURVE_OT_spline_type_set(), datalayout_transfer_invoke(), GPENCIL_OT_convert(), GPENCIL_OT_delete(), GPENCIL_OT_dissolve(), GPENCIL_OT_reproject(), GPENCIL_OT_select_grouped(), GPENCIL_OT_stroke_editcurve_set_handle_type(), GPENCIL_OT_stroke_separate(), GRAPH_OT_easing_type(), GRAPH_OT_equalize_handles(), GRAPH_OT_extrapolation_type(), GRAPH_OT_fmodifier_add(), GRAPH_OT_handle_type(), GRAPH_OT_interpolation_type(), GRAPH_OT_keyframe_insert(), GRAPH_OT_mirror(), GRAPH_OT_snap(), 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(), NLA_OT_fmodifier_add(), NLA_OT_snap(), blender::ed::space_node::NODE_OT_select_grouped(), blender::ed::space_node::NODE_OT_tree_socket_change_type(), OBJECT_OT_constraint_add(), OBJECT_OT_constraint_add_with_targets(), OBJECT_OT_convert(), OBJECT_OT_data_transfer(), OBJECT_OT_empty_add(), OBJECT_OT_gpencil_add(), OBJECT_OT_gpencil_modifier_add(), OBJECT_OT_hook_remove(), OBJECT_OT_light_add(), OBJECT_OT_make_local(), OBJECT_OT_metaball_add(), OBJECT_OT_modifier_add(), OBJECT_OT_origin_set(), OBJECT_OT_parent_clear(), OBJECT_OT_select_by_type(), OBJECT_OT_select_grouped(), OBJECT_OT_select_linked(), OBJECT_OT_shaderfx_add(), OBJECT_OT_track_clear(), OBJECT_OT_track_set(), OBJECT_OT_vertex_group_set_active(), OUTLINER_OT_animdata_operation(), OUTLINER_OT_constraint_operation(), OUTLINER_OT_data_operation(), OUTLINER_OT_id_operation(), OUTLINER_OT_lib_operation(), OUTLINER_OT_liboverride_operation(), OUTLINER_OT_liboverride_troubleshoot_operation(), OUTLINER_OT_modifier_operation(), OUTLINER_OT_object_operation(), OUTLINER_OT_scene_operation(), PAINT_OT_weight_from_bones(), PAINT_OT_weight_sample_group(), PARTICLE_OT_delete(), POSE_OT_autoside_names(), POSE_OT_constraint_add(), POSE_OT_constraint_add_with_targets(), POSE_OT_rotation_mode_set(), POSE_OT_select_grouped(), POSELIB_OT_pose_move(), POSELIB_OT_pose_remove(), 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 | ( | struct bContext * | C, |
struct wmOperator * | op, | ||
wmOperatorCallContext | opcontext | ||
) |
Invoke callback, uses enum property named "type".
Definition at line 1011 of file wm_operators.c.
References C, CLOG_ERROR, PointerRNA::data, wmOperatorType::exec, wmOperatorType::idname, NULL, 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_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 128 of file wm_operators.c.
References BLI_str_toupper_ascii(), BLI_strncpy_rlen(), OP_MAX_TYPENAME, and src.
Referenced by WM_operatortype_find().
Definition at line 1229 of file wm_operators.c.
References C, CTX_data_scene(), CTX_wm_manager(), ED_undo_is_valid(), scene, 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 * | UNUSEDevent | ||
) |
Definition at line 1183 of file wm_operators.c.
References C, NULL, EnumSearchMenu::op, and WM_operator_confirm_message().
Referenced by ANIM_OT_keyframe_clear_v3d(), ANIM_OT_keyframe_delete_v3d(), ARMATURE_OT_delete(), ARMATURE_OT_separate(), CLIP_OT_delete_marker(), CLIP_OT_delete_track(), CLIP_OT_graph_delete_curve(), CURVE_OT_separate(), FILE_OT_delete(), GRAPH_OT_bake(), MASK_OT_delete(), MBALL_OT_delete_metaelems(), NLA_OT_make_single_user(), OBJECT_OT_parent_no_inverse_set(), OBJECT_OT_vertex_parent_set(), TEXT_OT_reload(), TEXT_OT_unlink(), WM_OT_read_factory_settings(), WM_OT_read_factory_userpref(), WM_OT_read_history(), WM_OT_read_userpref(), WM_OT_revert_mainfile(), WM_OT_save_homefile(), and WM_OT_save_userpref().
int WM_operator_confirm_message | ( | bContext * | C, |
wmOperator * | op, | ||
const char * | message | ||
) |
Definition at line 1177 of file wm_operators.c.
References C, IFACE_, EnumSearchMenu::op, WM_OP_EXEC_REGION_WIN, and WM_operator_confirm_message_ex().
Referenced by modifier_apply_invoke(), object_transform_apply_invoke(), outliner_orphans_purge_invoke(), pack_all_invoke(), unpack_libraries_invoke(), WM_operator_confirm(), and WM_operator_confirm_or_exec().
int WM_operator_confirm_message_ex | ( | struct bContext * | C, |
struct 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 1153 of file wm_operators.c.
References C, PointerRNA::data, IDP_CopyProperty(), IDProperty::len, NULL, EnumSearchMenu::op, OPERATOR_INTERFACE, wmOperator::ptr, wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), and uiItemFullO_ptr().
Referenced by WM_operator_confirm_message().
int WM_operator_confirm_or_exec | ( | bContext * | C, |
wmOperator * | op, | ||
const wmEvent * | UNUSEDevent | ||
) |
Definition at line 1188 of file wm_operators.c.
References C, wmOperatorType::exec, NULL, EnumSearchMenu::op, wmOperator::ptr, RNA_boolean_get(), wmOperator::type, and WM_operator_confirm_message().
Referenced by ACTION_OT_delete(), FILE_OT_directory_new(), GRAPH_OT_delete(), MARKER_OT_delete(), and OBJECT_OT_delete().
|
static |
Definition at line 1679 of file wm_operators.c.
References BKE_report(), C, 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 | ( | struct bContext * | C, |
struct 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 1266 of file wm_operators.c.
References BKE_idtype_idcode_to_name(), BKE_image_load_exists_ex(), BKE_main_blendfile_path(), BKE_reportf(), BLI_assert_unreachable, BLI_path_rel(), C, CTX_data_main(), FILE_MAX, id, ID_IM, id_us_plus(), MAX_ID_NAME, NULL, EnumSearchMenu::op, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_string_get(), RNA_struct_property_is_set(), RPT_ERROR, TIP_, WM_operator_properties_id_lookup_from_name_or_session_uuid(), and WM_operator_properties_id_lookup_is_set().
Referenced by background_image_add_invoke(), empty_drop_named_image_invoke(), and blender::ed::space_node::node_add_file_exec().
int WM_operator_filesel | ( | bContext * | C, |
wmOperator * | op, | ||
const wmEvent * | UNUSEDevent | ||
) |
Definition at line 1197 of file wm_operators.c.
References C, EnumSearchMenu::op, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_struct_property_is_set(), WM_event_add_fileselect(), and WM_operator_call_notest().
Referenced by ED_OT_lib_id_load_custom_preview(), graphkeys_sound_bake_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 struct ImageFormatData * | im_format | ||
) |
Definition at line 1206 of file wm_operators.c.
References BKE_image_path_ensure_ext_from_imformat(), FILE_MAX, EnumSearchMenu::op, 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 1260 of file wm_operators.c.
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 1251 of file wm_operators.c.
References IDP_GROUP, IDP_New(), wmOperatorType::last_properties, NULL, and ot.
Referenced by WM_operator_last_properties_ensure().
bool WM_operator_last_properties_init | ( | wmOperator * | op | ) |
Definition at line 839 of file wm_operators.c.
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 854 of file wm_operators.c.
References CLOG_INFO, ListBase::first, wmOperatorType::idname, IDP_CopyProperty(), IDP_FreeProperty(), IDP_GROUP, IDP_New(), IDP_ReplaceInGroup(), wmOperatorType::last_properties, LISTBASE_FOREACH, wmOperator::macro, IDProperty::name, NULL, 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 1237 of file wm_operators.c.
References C, CTX_wm_manager(), wmOperatorType::flag, LISTBASE_FOREACH_BACKWARD, NULL, EnumSearchMenu::op, wmWindowManager::operators, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperator::type.
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 | ( | struct PointerRNA ** | ptr, |
struct IDProperty ** | properties, | ||
const char * | opstring | ||
) |
Similar to the function above except its uses ID properties used for key-maps and macros.
Definition at line 680 of file wm_operators.c.
References IDP_GROUP, IDP_New(), MEM_callocN, NULL, ptr, and WM_operator_properties_create().
Referenced by save_file_forwardcompat_overwrite(), UI_list_custom_activate_operator_set(), UI_list_custom_drag_operator_set(), uiItemMenuEnumFullO_ptr(), WM_dropbox_add(), 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 774 of file wm_operators.c.
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 667 of file wm_operators.c.
References G_MAIN, NULL, 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 661 of file wm_operators.c.
References G_MAIN, NULL, ot, ptr, RNA_pointer_create(), and wmOperatorType::srna.
Referenced by bone_mouse_select_menu(), constraint_reorder(), file_browse_invoke(), file_directory_enter_handle(), ghost_event_proc(), gpencil_modifier_reorder(), id_remap_fn(), image_file_browse_invoke(), lib_relocate(), blender::ed::space_node::link_drag_search_exec_fn(), modifier_reorder(), move_to_collection_menu_create(), object_mouse_select_menu(), outliner_item_drag_drop_invoke(), pyop_call(), sculpt_detail_size_set_radial_control(), shaderfx_reorder(), transform_from_gizmo_invoke(), ui_but_anim_decorate_cb(), ui_but_extra_operator_icon_add_ptr(), UI_but_operator_ptr_get(), 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(), view3d_lightcache_update(), WM_gizmo_operator_set(), wm_keymap_item_properties_update_ot(), WM_menu_name_call(), WM_operator_check_ui_empty(), WM_operator_properties_create(), WM_operator_pystring_ex(), WM_operator_type_set(), 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 | ( | struct PointerRNA * | ptr, |
bool | do_update | ||
) |
Set all props to their default.
do_update | Only update un-initialized props. |
Definition at line 730 of file wm_operators.c.
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, and RNA_STRUCT_END.
Referenced by wm_keymap_item_find(), wm_keymap_item_find_in_keymap(), and WM_operator_type_set().
void WM_operator_properties_free | ( | PointerRNA * | ptr | ) |
Definition at line 783 of file wm_operators.c.
References PointerRNA::data, IDP_FreeProperty(), NULL, and ptr.
Referenced by bone_mouse_select_menu(), constraint_reorder(), doc_view_manual_ui_context_exec(), file_browse_invoke(), file_directory_enter_handle(), file_smoothscroll_invoke(), ghost_event_proc(), gpencil_modifier_reorder(), id_remap_fn(), image_file_browse_invoke(), lib_relocate(), blender::ed::space_node::link_drag_search_exec_fn(), menu_search_arg_free_fn(), modifier_reorder(), blender::ed::space_node::node_render_changed_exec(), object_mouse_select_menu(), outliner_item_drag_drop_invoke(), pyop_as_string(), pyop_call(), sculpt_detail_size_set_radial_control(), shaderfx_reorder(), 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(), view3d_lightcache_update(), wm_dropbox_free(), WM_gizmo_free(), WM_gizmo_operator_set(), wm_handler_operator_call(), wm_keymap_item_free(), 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 | ( | struct wmOperator * | op | ) |
Remove all props without PROP_SKIP_SAVE.
Definition at line 757 of file wm_operators.c.
References PointerRNA::data, 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 | ( | struct PointerRNA * | ptr, |
bool | no_context | ||
) |
Make props context sensitive or not.
Definition at line 701 of file wm_operators.c.
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, and RNA_struct_is_a().
Referenced by pyop_call(), UI_but_string_info_get(), ui_pie_menu_level_invoke(), ui_tooltip_data_from_button_or_extra_icon(), uiItemsFullEnumO(), uiTemplateKeymapItemProperties(), wm_keymap_item_properties_set(), wm_keymap_item_properties_update_ot(), wm_operator_create(), 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 | ||
) |
Definition at line 1599 of file wm_operators.c.
References C, data, MEM_callocN, OPERATOR_RUNNING_MODAL, UI_popup_block_ex(), width, wm_block_dialog_create(), wm_operator_ui_popup_cancel(), and wm_operator_ui_popup_ok().
Referenced by blender::ed::geometry::geometry_attribute_convert_invoke(), gpencil_bake_grease_pencil_animation_invoke(), gpencil_bake_mesh_animation_invoke(), gpencil_move_to_layer_invoke(), gpencil_trace_image_invoke(), image_new_invoke(), image_scale_invoke(), move_to_collection_invoke(), object_calculate_paths_invoke(), outliner_id_remap_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 * | UNUSEDevent | ||
) |
Definition at line 1594 of file wm_operators.c.
References C, and wm_operator_props_popup_ex().
Referenced by ANIM_OT_channels_group(), armature_bone_layers_invoke(), armature_layers_invoke(), CURVE_OT_radius_set(), CURVE_OT_spline_weight_set(), PARTICLE_OT_rekey(), and pose_bone_layers_invoke().
int WM_operator_props_popup_call | ( | bContext * | C, |
wmOperator * | op, | ||
const wmEvent * | UNUSEDevent | ||
) |
Definition at line 1589 of file wm_operators.c.
References C, and wm_operator_props_popup_ex().
int WM_operator_props_popup_confirm | ( | bContext * | C, |
wmOperator * | op, | ||
const wmEvent * | UNUSEDevent | ||
) |
Definition at line 1584 of file wm_operators.c.
References C, and wm_operator_props_popup_ex().
Referenced by ed_marker_rename_invoke(), blender::ed::geometry::GEOMETRY_OT_attribute_add(), blender::ed::geometry::GEOMETRY_OT_color_attribute_add(), OBJECT_OT_make_single_user(), OBJECT_OT_quadriflow_remesh(), paint_mask_extract_invoke(), poselib_rename_invoke(), SEQUENCER_OT_images_separate(), and UV_OT_smart_project().
|
static |
For use by WM_operator_props_popup_call, WM_operator_props_popup only.
Definition at line 1546 of file wm_operators.c.
References BKE_reportf(), C, wmOperatorType::flag, wmOperatorType::idname, NULL, 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(), and WM_operator_props_popup_confirm().
size_t WM_operator_py_idname | ( | char * | dst, |
const char * | src | ||
) |
Definition at line 110 of file wm_operators.c.
References BLI_str_tolower_ascii(), BLI_strncpy_rlen(), OP_MAX_TYPENAME, and src.
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 | ( | struct ReportList * | reports, |
const char * | classname, | ||
const char * | idname | ||
) |
Sanity check to ensure WM_operator_bl_idname won't fail.
Definition at line 144 of file wm_operators.c.
References BKE_reportf(), MAX_NAME, and RPT_ERROR.
char* WM_operator_pystring | ( | bContext * | C, |
wmOperator * | op, | ||
const bool | all_args, | ||
const bool | macro_args | ||
) |
Definition at line 267 of file wm_operators.c.
References C, wmOperator::ptr, wmOperator::type, and WM_operator_pystring_ex().
Referenced by wm_operator_finished(), and wm_operator_reports().
bool WM_operator_pystring_abbreviate | ( | char * | str, |
int | str_len_max | ||
) |
Definition at line 272 of file wm_operators.c.
References str.
Referenced by ui_tooltip_text_python_from_op().
char* WM_operator_pystring_ex | ( | struct bContext * | C, |
struct wmOperator * | op, | ||
bool | all_args, | ||
bool | macro_args, | ||
struct wmOperatorType * | ot, | ||
struct PointerRNA * | opptr | ||
) |
Operator as a Python command (resulting string must be freed).
Print 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 192 of file wm_operators.c.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), C, ListBase::first, wmOperatorType::idname, wmOperator::macro, wmOperatorType::macro, MEM_freeN, wmOperator::next, NULL, 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 1616 of file wm_operators.c.
References BKE_reportf(), C, CTX_wm_reports(), wmOperatorType::flag, wmOperatorType::idname, NULL, 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 1006 of file wm_operators.c.
References wmOperator::flag, and OP_IS_INVOKE.
Referenced by actkeys_view_frame_exec(), graphkeys_view_frame_exec(), graphkeys_view_selected_exec(), graphkeys_viewall_exec(), localview_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(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), vieworbit_exec(), viewroll_exec(), and viewselected_exec().
Definition at line 1476 of file wm_operators.c.
References C, data, NULL, 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_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 1530 of file wm_operators.c.
References C, data, MEM_callocN, NULL, OPERATOR_RUNNING_MODAL, UI_popup_block_ex(), width, wm_operator_ui_create(), and wm_operator_ui_popup_cancel().
Definition at line 1500 of file wm_operators.c.
References C, wmOperatorType::cancel, data, MEM_freeN, wmOperator::type, and WM_operator_free().
Referenced by WM_operator_props_dialog_popup(), and WM_operator_ui_popup().
Definition at line 1518 of file wm_operators.c.
References C, data, MEM_freeN, and WM_operator_call_ex().
Referenced by WM_operator_props_dialog_popup().
void WM_operator_view3d_unit_defaults | ( | struct bContext * | C, |
struct wmOperator * | op | ||
) |
Definition at line 977 of file wm_operators.c.
References BLI_assert, C, CTX_data_scene(), CTX_wm_view3d(), ED_scene_grid_scale(), ED_view3d_grid_scale(), wmOperator::flag, NULL, 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, RNA_STRUCT_END, and scene.
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(), effector_add_exec(), lightprobe_add_exec(), object_add_exec(), object_add_text_exec(), object_armature_add_exec(), object_empty_add_exec(), object_gpencil_add_exec(), object_light_add_exec(), and object_metaball_add_exec().
Callback for wmOperatorType.poll
Definition at line 1221 of file wm_operators.c.
References C, CTX_wm_window(), and NULL.
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_splash(), WM_OT_splash_about(), WM_OT_stereo3d_set(), WM_OT_window_close(), and WM_OT_window_fullscreen_toggle().
Definition at line 1978 of file wm_operators.c.
References C, CTX_wm_window(), G, NULL, SCREENNORMAL, bScreen::state, and WM_window_get_active_screen().
Referenced by WM_OT_window_new(), and WM_OT_window_new_main().
Definition at line 3735 of file wm_operators.c.
References GIZMOGROUP_OT_gizmo_select(), GIZMOGROUP_OT_gizmo_tweak(), WM_operatortype_append(), WM_OT_append(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), 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_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 1866 of file wm_operators.c.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::name, NULL, 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 1904 of file wm_operators.c.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 1945 of file wm_operators.c.
References BKE_ST_MAXNAME, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::name, NULL, 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 1660 of file wm_operators.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, 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 3659 of file wm_operators.c.
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 3389 of file wm_operators.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, memory_statistics_exec(), wmOperatorType::name, and ot.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 1693 of file wm_operators.c.
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 3613 of file wm_operators.c.
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 3479 of file wm_operators.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and previews_ensure_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2056 of file wm_operators.c.
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 3075 of file wm_operators.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, 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 3351 of file wm_operators.c.
References wmOperatorType::description, eRTDrawRegion, wmOperatorType::exec, 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 1827 of file wm_operators.c.
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 1838 of file wm_operators.c.
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 3679 of file wm_operators.c.
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 1997 of file wm_operators.c.
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 2027 of file wm_operators.c.
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 2007 of file wm_operators.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wm_operator_winactive_normal(), and wm_window_new_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2017 of file wm_operators.c.
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(*)(bContext *C) | poll, | ||
wmPaintCursorDraw | draw, | ||
void * | customdata | ||
) |
Definition at line 2104 of file wm_operators.c.
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_gpencil_toggle_brush_cursor(), ED_paint_cursor_start(), gpencil_draw_toggle_eraser_cursor(), initTransform(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), 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 2126 of file wm_operators.c.
References BLI_remlink(), G_MAIN, LISTBASE_FOREACH, MEM_freeN, and wmWindowManager::paintcursors.
Referenced by annotation_draw_toggle_eraser_cursor(), annotation_draw_toggle_stabilizer_cursor(), ED_gpencil_toggle_brush_cursor(), gpencil_draw_toggle_eraser_cursor(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), 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(*)(void *) | free | ||
) |
Definition at line 2139 of file wm_operators.c.
References BLI_remlink(), free(), LISTBASE_FOREACH_MUTABLE, MEM_freeN, and wmWindowManager::paintcursors.
Referenced by BPY_callback_wm_free().
char* WM_prop_pystring_assign | ( | bContext * | C, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
int | index | ||
) |
Definition at line 636 of file wm_operators.c.
References BLI_sprintfN(), C, CTX_data_main(), MEM_freeN, NULL, ptr, ret, 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 622 of file wm_operators.c.
References BLI_sprintfN(), C, MEM_freeN, NULL, ptr, ret, and WM_context_path_resolve_property_full().
Referenced by WM_prop_pystring_assign().
|
static |
Definition at line 1775 of file wm_operators.c.
References OPERATOR_FINISHED.
Referenced by WM_OT_search_menu(), and WM_OT_search_operator().
|
static |
Definition at line 1780 of file wm_operators.c.
References blender::compositor::area(), C, CTX_data_edit_object(), CTX_wm_area(), data, EVT_SPACEKEY, wmOperatorType::idname, NULL, OB_FONT, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, SearchPopupInit_Data::search_type, SearchPopupInit_Data::SEARCH_TYPE_MENU, SearchPopupInit_Data::SEARCH_TYPE_OPERATOR, SPACE_CONSOLE, SPACE_TEXT, STREQ, Object::type, wmOperator::type, wmEvent::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(), and WM_OT_search_operator().
void wm_window_keymap | ( | wmKeyConfig * | keyconf | ) |
Default key-map for windows and screens, only call once per WM.
Definition at line 3971 of file wm_operators.c.
References gesture_box_modal_keymap(), gesture_circle_modal_keymap(), gesture_lasso_modal_keymap(), gesture_straightline_modal_keymap(), gesture_zoom_border_modal_keymap(), wm_gizmos_keymap(), WM_keymap_ensure(), and WM_keymap_fix_linking().
Referenced by WM_keyconfig_init().
|
static |
Definition at line 3511 of file wm_operators.c.
Referenced by WM_OT_previews_clear().
|
static |
Definition at line 3204 of file wm_operators.c.
Referenced by redraw_timer_exec(), and WM_OT_redraw_timer().