Blender V2.61 - r43446
Classes | Typedefs | Enumerations | Functions | Variables

wm_operators.c File Reference

#include <float.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stddef.h>
#include <assert.h>
#include "GHOST_C-api.h"
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_scene_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_mesh_types.h"
#include "BLF_translation.h"
#include "PIL_time.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
#include "BLO_readfile.h"
#include "BKE_blender.h"
#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_idprop.h"
#include "BKE_library.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_idcode.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "BLF_api.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "ED_screen.h"
#include "ED_util.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_interface.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_subwindow.h"
#include "wm_window.h"

Go to the source code of this file.

Classes

struct  MacroData
struct  wmOpPopUp
struct  RadialControl

Typedefs

typedef struct wmOpPopUp wmOpPopUp

Enumerations

enum  RCPropFlags { RC_PROP_ALLOW_MISSING = 1, RC_PROP_REQUIRE_FLOAT = 2, RC_PROP_REQUIRE_BOOL = 4 }

Functions

wmOperatorTypeWM_operatortype_find (const char *idname, int quiet)
GHashIteratorWM_operatortype_iter (void)
void WM_operatortype_append (void(*opfunc)(wmOperatorType *))
void WM_operatortype_append_ptr (void(*opfunc)(wmOperatorType *, void *), void *userdata)
static void wm_macro_start (wmOperator *op)
static int wm_macro_end (wmOperator *op, int retval)
static int wm_macro_exec (bContext *C, wmOperator *op)
static int wm_macro_invoke_internal (bContext *C, wmOperator *op, wmEvent *event, wmOperator *opm)
static int wm_macro_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int wm_macro_modal (bContext *C, wmOperator *op, wmEvent *event)
static int wm_macro_cancel (bContext *C, wmOperator *op)
wmOperatorTypeWM_operatortype_append_macro (const char *idname, const char *name, int flag)
void WM_operatortype_append_macro_ptr (void(*opfunc)(wmOperatorType *, void *), void *userdata)
wmOperatorTypeMacroWM_operatortype_macro_define (wmOperatorType *ot, const char *idname)
static void wm_operatortype_free_macro (wmOperatorType *ot)
int WM_operatortype_remove (const char *idname)
void WM_operator_py_idname (char *to, const char *from)
void WM_operator_bl_idname (char *to, const char *from)
char * WM_operator_pystring (bContext *C, wmOperatorType *ot, PointerRNA *opptr, int all_args)
void WM_operator_properties_create_ptr (PointerRNA *ptr, wmOperatorType *ot)
void WM_operator_properties_create (PointerRNA *ptr, const char *opstring)
void WM_operator_properties_alloc (PointerRNA **ptr, IDProperty **properties, const char *opstring)
void WM_operator_properties_sanitize (PointerRNA *ptr, const short no_context)
void WM_operator_properties_reset (wmOperator *op)
void WM_operator_properties_free (PointerRNA *ptr)
int WM_menu_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static void operator_enum_search_cb (const struct bContext *C, void *arg_ot, const char *str, uiSearchItems *items)
static void operator_enum_call_cb (struct bContext *C, void *arg1, void *arg2)
static uiBlockwm_enum_search_menu (bContext *C, ARegion *ar, void *arg_op)
int WM_enum_search_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
int WM_operator_confirm_message (bContext *C, wmOperator *op, const char *message)
int WM_operator_confirm (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
int WM_operator_filesel (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void WM_operator_properties_filesel (wmOperatorType *ot, int filter, short type, short action, short flag)
void WM_operator_properties_select_all (wmOperatorType *ot)
void WM_operator_properties_gesture_border (wmOperatorType *ot, int extend)
void WM_operator_properties_gesture_straightline (wmOperatorType *ot, int cursor)
int WM_operator_winactive (bContext *C)
int WM_operator_check_ui_enabled (const bContext *C, const char *idname)
wmOperatorWM_operator_last_redo (const bContext *C)
static uiBlockwm_block_create_redo (bContext *C, ARegion *ar, void *arg_op)
static void dialog_exec_cb (bContext *C, void *arg1, void *arg2)
static void dialog_check_cb (bContext *C, void *op_ptr, void *UNUSED(arg))
static uiBlockwm_block_dialog_create (bContext *C, ARegion *ar, void *userData)
static uiBlockwm_operator_ui_create (bContext *C, ARegion *ar, void *userData)
static void wm_operator_ui_popup_cancel (void *userData)
static void wm_operator_ui_popup_ok (struct bContext *C, void *arg, int retval)
int WM_operator_ui_popup (bContext *C, wmOperator *op, int width, int height)
int WM_operator_props_popup (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
int WM_operator_props_dialog_popup (bContext *C, wmOperator *op, int width, int height)
int WM_operator_redo_popup (bContext *C, wmOperator *op)
static int wm_debug_menu_exec (bContext *C, wmOperator *op)
static int wm_debug_menu_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static void WM_OT_debug_menu (wmOperatorType *ot)
static void wm_block_splash_close (bContext *C, void *arg_block, void *UNUSED(arg))
static uiBlockwm_block_create_splash (bContext *C, ARegion *ar, void *arg_unused)
static void wm_block_splash_refreshmenu (bContext *UNUSED(C), void *UNUSED(arg_block), void *UNUSED(arg))
static int wm_resource_check_prev (void)
static uiBlockwm_block_create_splash (bContext *C, ARegion *ar, void *UNUSED(arg))
static int wm_splash_invoke (bContext *C, wmOperator *UNUSED(op), wmEvent *UNUSED(event))
static void WM_OT_splash (wmOperatorType *ot)
static void operator_call_cb (struct bContext *C, void *UNUSED(arg1), void *arg2)
static void operator_search_cb (const struct bContext *C, void *UNUSED(arg), const char *str, uiSearchItems *items)
static uiBlockwm_block_search_menu (bContext *C, ARegion *ar, void *UNUSED(arg_op))
static int wm_search_menu_exec (bContext *UNUSED(C), wmOperator *UNUSED(op))
static int wm_search_menu_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static int wm_search_menu_poll (bContext *C)
static void WM_OT_search_menu (wmOperatorType *ot)
static int wm_call_menu_exec (bContext *C, wmOperator *op)
static void WM_OT_call_menu (wmOperatorType *ot)
static int wm_operator_winactive_normal (bContext *C)
static void WM_OT_window_duplicate (wmOperatorType *ot)
static void WM_OT_save_homefile (wmOperatorType *ot)
static void WM_OT_read_homefile (wmOperatorType *ot)
static void WM_OT_read_factory_settings (wmOperatorType *ot)
static void open_set_load_ui (wmOperator *op)
static void open_set_use_scripts (wmOperator *op)
static int wm_open_mainfile_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static int wm_open_mainfile_exec (bContext *C, wmOperator *op)
static void WM_OT_open_mainfile (wmOperatorType *ot)
int wm_link_append_poll (bContext *C)
static int wm_link_append_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static short wm_link_append_flag (wmOperator *op)
static int wm_link_append_exec (bContext *C, wmOperator *op)
static void WM_OT_link_append (wmOperatorType *ot)
static int wm_recover_last_session_exec (bContext *C, wmOperator *op)
static void WM_OT_recover_last_session (wmOperatorType *ot)
static int wm_recover_auto_save_exec (bContext *C, wmOperator *op)
static int wm_recover_auto_save_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static void WM_OT_recover_auto_save (wmOperatorType *ot)
static void untitled (char *name)
static void save_set_compress (wmOperator *op)
static int wm_save_as_mainfile_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static int wm_save_as_mainfile_exec (bContext *C, wmOperator *op)
static int blend_save_check (bContext *UNUSED(C), wmOperator *op)
static void WM_OT_save_as_mainfile (wmOperatorType *ot)
static int wm_save_mainfile_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static void WM_OT_save_mainfile (wmOperatorType *ot)
static void WM_OT_window_fullscreen_toggle (wmOperatorType *ot)
static int wm_exit_blender_op (bContext *C, wmOperator *op)
static void WM_OT_quit_blender (wmOperatorType *ot)
void * WM_paint_cursor_activate (wmWindowManager *wm, int(*poll)(bContext *C), wmPaintCursorDraw draw, void *customdata)
void WM_paint_cursor_end (wmWindowManager *wm, void *handle)
static int border_apply_rect (wmOperator *op)
static int border_apply (bContext *C, wmOperator *op, int gesture_mode)
static void wm_gesture_end (bContext *C, wmOperator *op)
int WM_border_select_invoke (bContext *C, wmOperator *op, wmEvent *event)
int WM_border_select_modal (bContext *C, wmOperator *op, wmEvent *event)
int WM_border_select_cancel (bContext *C, wmOperator *op)
int WM_gesture_circle_invoke (bContext *C, wmOperator *op, wmEvent *event)
static void gesture_circle_apply (bContext *C, wmOperator *op)
int WM_gesture_circle_modal (bContext *C, wmOperator *op, wmEvent *event)
int WM_gesture_circle_cancel (bContext *C, wmOperator *op)
static void tweak_gesture_modal (bContext *C, wmEvent *event)
void wm_tweakevent_test (bContext *C, wmEvent *event, int action)
int WM_gesture_lasso_invoke (bContext *C, wmOperator *op, wmEvent *event)
int WM_gesture_lines_invoke (bContext *C, wmOperator *op, wmEvent *event)
static void gesture_lasso_apply (bContext *C, wmOperator *op)
int WM_gesture_lasso_modal (bContext *C, wmOperator *op, wmEvent *event)
int WM_gesture_lines_modal (bContext *C, wmOperator *op, wmEvent *event)
int WM_gesture_lasso_cancel (bContext *C, wmOperator *op)
int WM_gesture_lines_cancel (bContext *C, wmOperator *op)
static int straightline_apply (bContext *C, wmOperator *op)
int WM_gesture_straightline_invoke (bContext *C, wmOperator *op, wmEvent *event)
int WM_gesture_straightline_modal (bContext *C, wmOperator *op, wmEvent *event)
int WM_gesture_straightline_cancel (bContext *C, wmOperator *op)
static void radial_control_set_initial_mouse (RadialControl *rc, wmEvent *event)
static void radial_control_set_tex (RadialControl *rc)
static void radial_control_paint_tex (RadialControl *rc, float radius, float alpha)
static void radial_control_paint_cursor (bContext *C, int x, int y, void *customdata)
static int radial_control_get_path (PointerRNA *ctx_ptr, wmOperator *op, const char *name, PointerRNA *r_ptr, PropertyRNA **r_prop, int req_length, RCPropFlags flags)
static int radial_control_get_properties (bContext *C, wmOperator *op)
static int radial_control_invoke (bContext *C, wmOperator *op, wmEvent *event)
static void radial_control_set_value (RadialControl *rc, float val)
static int radial_control_cancel (bContext *C, wmOperator *op)
static int radial_control_modal (bContext *C, wmOperator *op, wmEvent *event)
static void WM_OT_radial_control (wmOperatorType *ot)
static void redraw_timer_window_swap (bContext *C)
static int redraw_timer_exec (bContext *C, wmOperator *op)
static void WM_OT_redraw_timer (wmOperatorType *ot)
static int memory_statistics_exec (bContext *UNUSED(C), wmOperator *UNUSED(op))
static void WM_OT_memory_statistics (wmOperatorType *ot)
static int dependency_relations_exec (bContext *C, wmOperator *UNUSED(op))
static void WM_OT_dependency_relations (wmOperatorType *ot)
static int wm_ndof_sensitivity_exec (bContext *UNUSED(C), wmOperator *op)
static void WM_OT_ndof_sensitivity_change (wmOperatorType *ot)
static void operatortype_ghash_free_cb (wmOperatorType *ot)
void wm_operatortype_free (void)
void wm_operatortype_init (void)
static void gesture_circle_modal_keymap (wmKeyConfig *keyconf)
static void gesture_straightline_modal_keymap (wmKeyConfig *keyconf)
static void gesture_border_modal_keymap (wmKeyConfig *keyconf)
static void gesture_zoom_border_modal_keymap (wmKeyConfig *keyconf)
void wm_window_keymap (wmKeyConfig *keyconf)
static EnumPropertyItemrna_id_itemf (bContext *UNUSED(C), PointerRNA *UNUSED(ptr), int *do_free, ID *id, int local)
EnumPropertyItemRNA_action_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_action_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_group_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_group_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_image_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_image_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_scene_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)
EnumPropertyItemRNA_scene_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *do_free)

Variables

static GHashglobal_ops_hash = NULL
static const int WM_RADIAL_CONTROL_DISPLAY_SIZE = 200
static EnumPropertyItem redraw_timer_type_items []

Detailed Description

Definition in file wm_operators.c.


Typedef Documentation

typedef struct wmOpPopUp wmOpPopUp

Enumeration Type Documentation

Enumerator:
RC_PROP_ALLOW_MISSING 
RC_PROP_REQUIRE_FLOAT 
RC_PROP_REQUIRE_BOOL 

Definition at line 3086 of file wm_operators.c.


Function Documentation

static int blend_save_check ( bContext UNUSEDC,
wmOperator op 
) [static]
static int border_apply ( bContext C,
wmOperator op,
int  gesture_mode 
) [static]
static int border_apply_rect ( wmOperator op) [static]
static int dependency_relations_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void dialog_check_cb ( bContext C,
void *  op_ptr,
void *  UNUSEDarg 
) [static]

Definition at line 1018 of file wm_operators.c.

References wmOperatorType::check, and wmOperator::type.

Referenced by wm_block_dialog_create().

static void dialog_exec_cb ( bContext C,
void *  arg1,
void *  arg2 
) [static]

Definition at line 1001 of file wm_operators.c.

References data, MEM_freeN(), wmOpPopUp::op, uiPupBlockClose(), and WM_operator_call().

Referenced by wm_block_dialog_create().

static void gesture_border_modal_keymap ( wmKeyConfig keyconf) [static]
static void gesture_circle_apply ( bContext C,
wmOperator op 
) [static]
static void gesture_circle_modal_keymap ( wmKeyConfig keyconf) [static]
static void gesture_lasso_apply ( bContext C,
wmOperator op 
) [static]
static void gesture_straightline_modal_keymap ( wmKeyConfig keyconf) [static]
static void gesture_zoom_border_modal_keymap ( wmKeyConfig keyconf) [static]
static int memory_statistics_exec ( bContext UNUSEDC,
wmOperator UNUSEDop 
) [static]

Definition at line 3547 of file wm_operators.c.

References MEM_printmemlist_stats(), and OPERATOR_FINISHED.

Referenced by WM_OT_memory_statistics().

static void open_set_load_ui ( wmOperator op) [static]
static void open_set_use_scripts ( wmOperator op) [static]
static void operator_call_cb ( struct bContext C,
void *  UNUSEDarg1,
void *  arg2 
) [static]
static void operator_enum_call_cb ( struct bContext C,
void *  arg1,
void *  arg2 
) [static]
static void operator_enum_search_cb ( const struct bContext C,
void *  arg_ot,
const char *  str,
uiSearchItems items 
) [static]
static void operator_search_cb ( const struct bContext C,
void *  UNUSEDarg,
const char *  str,
uiSearchItems items 
) [static]
static void operatortype_ghash_free_cb ( wmOperatorType ot) [static]
static int radial_control_cancel ( bContext C,
wmOperator op 
) [static]
static int radial_control_get_path ( PointerRNA ctx_ptr,
wmOperator op,
const char *  name,
PointerRNA r_ptr,
PropertyRNA **  r_prop,
int  req_length,
RCPropFlags  flags 
) [static]
static int radial_control_get_properties ( bContext C,
wmOperator op 
) [static]
static int radial_control_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int radial_control_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static void radial_control_paint_cursor ( bContext C,
int  x,
int  y,
void *  customdata 
) [static]
static void radial_control_paint_tex ( RadialControl rc,
float  radius,
float  alpha 
) [static]
static void radial_control_set_initial_mouse ( RadialControl rc,
wmEvent event 
) [static]
static void radial_control_set_tex ( RadialControl rc) [static]
static void radial_control_set_value ( RadialControl rc,
float  val 
) [static]
static int redraw_timer_exec ( bContext C,
wmOperator op 
) [static]
static void redraw_timer_window_swap ( bContext C) [static]
EnumPropertyItem* RNA_action_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 3988 of file wm_operators.c.

References CTX_data_main(), FALSE, NULL, and rna_id_itemf().

EnumPropertyItem* RNA_action_local_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 3992 of file wm_operators.c.

References CTX_data_main(), NULL, rna_id_itemf(), and TRUE.

EnumPropertyItem* RNA_group_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 3997 of file wm_operators.c.

References CTX_data_main(), FALSE, NULL, and rna_id_itemf().

EnumPropertyItem* RNA_group_local_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 4001 of file wm_operators.c.

References CTX_data_main(), NULL, rna_id_itemf(), and TRUE.

static EnumPropertyItem* rna_id_itemf ( bContext UNUSEDC,
PointerRNA UNUSEDptr,
int *  do_free,
ID id,
int  local 
) [static]
EnumPropertyItem* RNA_image_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 4006 of file wm_operators.c.

References CTX_data_main(), FALSE, NULL, and rna_id_itemf().

EnumPropertyItem* RNA_image_local_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 4010 of file wm_operators.c.

References CTX_data_main(), NULL, rna_id_itemf(), and TRUE.

EnumPropertyItem* RNA_scene_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 4015 of file wm_operators.c.

References CTX_data_main(), FALSE, NULL, and rna_id_itemf().

EnumPropertyItem* RNA_scene_local_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA UNUSEDprop,
int *  do_free 
)

Definition at line 4019 of file wm_operators.c.

References CTX_data_main(), NULL, rna_id_itemf(), and TRUE.

static void save_set_compress ( wmOperator op) [static]
static int straightline_apply ( bContext C,
wmOperator op 
) [static]
static void tweak_gesture_modal ( bContext C,
wmEvent event 
) [static]
static void untitled ( char *  name) [static]
static uiBlock* wm_block_create_redo ( bContext C,
ARegion ar,
void *  arg_op 
) [static]
static uiBlock* wm_block_create_splash ( bContext C,
ARegion ar,
void *  UNUSEDarg 
) [static]
static uiBlock* wm_block_create_splash ( bContext C,
ARegion ar,
void *  arg_unused 
) [static]

Referenced by wm_splash_invoke().

static uiBlock* wm_block_dialog_create ( bContext C,
ARegion ar,
void *  userData 
) [static]
static uiBlock* wm_block_search_menu ( bContext C,
ARegion ar,
void *  UNUSEDarg_op 
) [static]
static void wm_block_splash_close ( bContext C,
void *  arg_block,
void *  UNUSEDarg 
) [static]

Definition at line 1206 of file wm_operators.c.

References uiPupBlockClose().

Referenced by wm_block_create_splash().

static void wm_block_splash_refreshmenu ( bContext UNUSEDC,
void *  UNUSEDarg_block,
void *  UNUSEDarg 
) [static]

Definition at line 1215 of file wm_operators.c.

Referenced by wm_block_create_splash().

int WM_border_select_cancel ( bContext C,
wmOperator op 
)
int WM_border_select_invoke ( bContext C,
wmOperator op,
wmEvent event 
)
int WM_border_select_modal ( bContext C,
wmOperator op,
wmEvent event 
)
static int wm_call_menu_exec ( bContext C,
wmOperator op 
) [static]
static int wm_debug_menu_exec ( bContext C,
wmOperator op 
) [static]
static int wm_debug_menu_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
int WM_enum_search_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
)
static uiBlock* wm_enum_search_menu ( bContext C,
ARegion ar,
void *  arg_op 
) [static]
static int wm_exit_blender_op ( bContext C,
wmOperator op 
) [static]

Definition at line 2209 of file wm_operators.c.

References OPERATOR_FINISHED, WM_exit(), and WM_operator_free().

Referenced by WM_OT_quit_blender().

int WM_gesture_circle_cancel ( bContext C,
wmOperator op 
)

Definition at line 2515 of file wm_operators.c.

References OPERATOR_CANCELLED, and wm_gesture_end().

Referenced by UV_OT_circle_select(), and VIEW3D_OT_select_circle().

int WM_gesture_circle_invoke ( bContext C,
wmOperator op,
wmEvent event 
)
int WM_gesture_circle_modal ( bContext C,
wmOperator op,
wmEvent event 
)
static void wm_gesture_end ( bContext C,
wmOperator op 
) [static]
int WM_gesture_lasso_cancel ( bContext C,
wmOperator op 
)

Definition at line 2737 of file wm_operators.c.

References OPERATOR_CANCELLED, and wm_gesture_end().

Referenced by VIEW3D_OT_select_lasso().

int WM_gesture_lasso_invoke ( bContext C,
wmOperator op,
wmEvent event 
)
int WM_gesture_lasso_modal ( bContext C,
wmOperator op,
wmEvent event 
)
int WM_gesture_lines_cancel ( bContext C,
wmOperator op 
)

Definition at line 2744 of file wm_operators.c.

References OPERATOR_CANCELLED, and wm_gesture_end().

Referenced by LOGIC_OT_links_cut(), MESH_OT_knife_cut(), and NODE_OT_links_cut().

int WM_gesture_lines_invoke ( bContext C,
wmOperator op,
wmEvent event 
)
int WM_gesture_lines_modal ( bContext C,
wmOperator op,
wmEvent event 
)

Definition at line 2732 of file wm_operators.c.

References WM_gesture_lasso_modal().

Referenced by LOGIC_OT_links_cut(), MESH_OT_knife_cut(), and NODE_OT_links_cut().

int WM_gesture_straightline_cancel ( bContext C,
wmOperator op 
)

Definition at line 2872 of file wm_operators.c.

References OPERATOR_CANCELLED, and wm_gesture_end().

Referenced by IMAGE_OT_sample_line().

int WM_gesture_straightline_invoke ( bContext C,
wmOperator op,
wmEvent event 
)
int WM_gesture_straightline_modal ( bContext C,
wmOperator op,
wmEvent event 
)
static int wm_link_append_exec ( bContext C,
wmOperator op 
) [static]
static short wm_link_append_flag ( wmOperator op) [static]
static int wm_link_append_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
int wm_link_append_poll ( bContext C)

Definition at line 1661 of file wm_operators.c.

References CTX_data_edit_object(), and WM_operator_winactive().

Referenced by WM_OT_link_append().

static int wm_macro_cancel ( bContext C,
wmOperator op 
) [static]
static int wm_macro_end ( wmOperator op,
int  retval 
) [static]
static int wm_macro_exec ( bContext C,
wmOperator op 
) [static]
static int wm_macro_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int wm_macro_invoke_internal ( bContext C,
wmOperator op,
wmEvent event,
wmOperator opm 
) [static]
static int wm_macro_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static void wm_macro_start ( wmOperator op) [static]

Definition at line 181 of file wm_operators.c.

References wmOperator::customdata, MEM_callocN(), and NULL.

Referenced by wm_macro_exec(), and wm_macro_invoke().

int WM_menu_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
)

Definition at line 674 of file wm_operators.c.

References PointerRNA::data, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, NULL, OPERATOR_CANCELLED, OPERATOR_RETVAL_CHECK, wmOperatorType::prop, PROP_ENUM, wmOperator::ptr, RNA_property_identifier(), RNA_property_is_set(), RNA_property_type(), wmOperator::type, uiItemsFullEnumO(), uiPupMenuBegin(), uiPupMenuEnd(), uiPupMenuLayout(), and WM_OP_EXEC_REGION_WIN.

Referenced by 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_invert(), ANIM_OT_channels_setting_toggle(), ARMATURE_OT_autoside_names(), ARMATURE_OT_calculate_roll(), ARMATURE_OT_merge(), ARMATURE_OT_parent_clear(), BOID_OT_rule_add(), CURVE_OT_handle_type_set(), CURVE_OT_spline_type_set(), GPENCIL_OT_convert(), GRAPH_OT_extrapolation_type(), GRAPH_OT_handle_type(), GRAPH_OT_interpolation_type(), GRAPH_OT_keyframe_insert(), GRAPH_OT_mirror(), GRAPH_OT_snap(), LOGIC_OT_actuator_add(), LOGIC_OT_controller_add(), LOGIC_OT_sensor_add(), MESH_OT_delete(), MESH_OT_merge(), MESH_OT_select_by_number_vertices(), MESH_OT_select_similar(), MESH_OT_separate(), MESH_OT_sort_faces(), NLA_OT_snap(), OBJECT_OT_constraint_add(), OBJECT_OT_constraint_add_with_targets(), OBJECT_OT_convert(), OBJECT_OT_effector_add(), OBJECT_OT_hook_remove(), OBJECT_OT_lamp_add(), OBJECT_OT_make_local(), OBJECT_OT_make_single_user(), 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_track_clear(), OBJECT_OT_track_set(), OBJECT_OT_vertex_group_set_active(), OUTLINER_OT_animdata_operation(), OUTLINER_OT_data_operation(), OUTLINER_OT_group_operation(), OUTLINER_OT_id_operation(), OUTLINER_OT_object_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_remove(), SCENE_OT_new(), SEQUENCER_OT_select_grouped(), TRANSFORM_OT_snap_type(), VIEW3D_OT_select_menu(), and WM_OT_redraw_timer().

static int wm_ndof_sensitivity_exec ( bContext UNUSEDC,
wmOperator op 
) [static]
static int wm_open_mainfile_exec ( bContext C,
wmOperator op 
) [static]
static int wm_open_mainfile_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
void WM_operator_bl_idname ( char *  to,
const char *  from 
)

Definition at line 476 of file wm_operators.c.

References BLI_ascii_strtoupper(), BLI_strncpy(), and OP_MAX_TYPENAME.

Referenced by WM_operatortype_find().

int WM_operator_check_ui_enabled ( const bContext C,
const char *  idname 
)
int WM_operator_confirm ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
)
int WM_operator_confirm_message ( bContext C,
wmOperator op,
const char *  message 
)
int WM_operator_filesel ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
)
wmOperator* WM_operator_last_redo ( const bContext C)
void WM_operator_properties_alloc ( PointerRNA **  ptr,
IDProperty **  properties,
const char *  opstring 
)
void WM_operator_properties_create ( PointerRNA ptr,
const char *  opstring 
)
void WM_operator_properties_create_ptr ( PointerRNA ptr,
wmOperatorType ot 
)
void WM_operator_properties_filesel ( wmOperatorType ot,
int  filter,
short  type,
short  action,
short  flag 
)
void WM_operator_properties_free ( PointerRNA ptr)
void WM_operator_properties_gesture_border ( wmOperatorType ot,
int  extend 
)
void WM_operator_properties_gesture_straightline ( wmOperatorType ot,
int  cursor 
)

Definition at line 911 of file wm_operators.c.

References RNA_def_int(), and wmOperatorType::srna.

Referenced by IMAGE_OT_sample_line().

void WM_operator_properties_reset ( wmOperator op)
void WM_operator_properties_sanitize ( PointerRNA ptr,
const short  no_context 
)
void WM_operator_properties_select_all ( wmOperatorType ot)
int WM_operator_props_dialog_popup ( bContext C,
wmOperator op,
int  width,
int  height 
)
int WM_operator_props_popup ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
)
void WM_operator_py_idname ( char *  to,
const char *  from 
)
char* WM_operator_pystring ( bContext C,
wmOperatorType ot,
PointerRNA opptr,
int  all_args 
)
int WM_operator_redo_popup ( bContext C,
wmOperator op 
)
static uiBlock* wm_operator_ui_create ( bContext C,
ARegion ar,
void *  userData 
) [static]
int WM_operator_ui_popup ( bContext C,
wmOperator op,
int  width,
int  height 
)
static void wm_operator_ui_popup_cancel ( void *  userData) [static]
static void wm_operator_ui_popup_ok ( struct bContext C,
void *  arg,
int  retval 
) [static]

Definition at line 1104 of file wm_operators.c.

References data, wmOpPopUp::op, and WM_operator_call().

Referenced by WM_operator_props_dialog_popup().

int WM_operator_winactive ( bContext C)
static int wm_operator_winactive_normal ( bContext C) [static]

Definition at line 1518 of file wm_operators.c.

References CTX_wm_window(), bScreen::full, NULL, wmWindow::screen, and SCREENNORMAL.

Referenced by WM_OT_window_duplicate().

void WM_operatortype_append ( void(*)(wmOperatorType *)  opfunc)
wmOperatorType* WM_operatortype_append_macro ( const char *  idname,
const char *  name,
int  flag 
) [read]
void WM_operatortype_append_macro_ptr ( void(*)(wmOperatorType *, void *)  opfunc,
void *  userdata 
)
void WM_operatortype_append_ptr ( void(*)(wmOperatorType *, void *)  opfunc,
void *  userdata 
)
wmOperatorType* WM_operatortype_find ( const char *  idname,
int  quiet 
) [read]
void wm_operatortype_free ( void  )

Definition at line 3641 of file wm_operators.c.

References BLI_ghash_free(), NULL, and operatortype_ghash_free_cb().

Referenced by WM_exit_ext().

static void wm_operatortype_free_macro ( wmOperatorType ot) [static]
void wm_operatortype_init ( void  )
GHashIterator* WM_operatortype_iter ( void  ) [read]

Definition at line 137 of file wm_operators.c.

References BLI_ghashIterator_new().

Referenced by operator_search_cb(), and pyop_dir().

wmOperatorTypeMacro* WM_operatortype_macro_define ( wmOperatorType ot,
const char *  idname 
) [read]
int WM_operatortype_remove ( const char *  idname)
static void WM_OT_call_menu ( wmOperatorType ot) [static]
static void WM_OT_debug_menu ( wmOperatorType ot) [static]
static void WM_OT_dependency_relations ( wmOperatorType ot) [static]
static void WM_OT_link_append ( wmOperatorType ot) [static]
static void WM_OT_memory_statistics ( wmOperatorType ot) [static]
static void WM_OT_ndof_sensitivity_change ( wmOperatorType ot) [static]
static void WM_OT_open_mainfile ( wmOperatorType ot) [static]
static void WM_OT_quit_blender ( wmOperatorType ot) [static]
static void WM_OT_radial_control ( wmOperatorType ot) [static]
static void WM_OT_read_factory_settings ( wmOperatorType ot) [static]
static void WM_OT_read_homefile ( wmOperatorType ot) [static]
static void WM_OT_recover_auto_save ( wmOperatorType ot) [static]
static void WM_OT_recover_last_session ( wmOperatorType ot) [static]
static void WM_OT_redraw_timer ( wmOperatorType ot) [static]
static void WM_OT_save_as_mainfile ( wmOperatorType ot) [static]
static void WM_OT_save_homefile ( wmOperatorType ot) [static]
static void WM_OT_save_mainfile ( wmOperatorType ot) [static]
static void WM_OT_search_menu ( wmOperatorType ot) [static]
static void WM_OT_splash ( wmOperatorType ot) [static]
static void WM_OT_window_duplicate ( wmOperatorType ot) [static]
static void WM_OT_window_fullscreen_toggle ( wmOperatorType ot) [static]
void* WM_paint_cursor_activate ( wmWindowManager wm,
int(*)(bContext *C)  poll,
wmPaintCursorDraw  draw,
void *  customdata 
)
void WM_paint_cursor_end ( wmWindowManager wm,
void *  handle 
)
static int wm_recover_auto_save_exec ( bContext C,
wmOperator op 
) [static]
static int wm_recover_auto_save_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int wm_recover_last_session_exec ( bContext C,
wmOperator op 
) [static]
static int wm_resource_check_prev ( void  ) [static]
static int wm_save_as_mainfile_exec ( bContext C,
wmOperator op 
) [static]
static int wm_save_as_mainfile_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int wm_save_mainfile_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int wm_search_menu_exec ( bContext UNUSEDC,
wmOperator UNUSEDop 
) [static]

Definition at line 1449 of file wm_operators.c.

References OPERATOR_FINISHED.

Referenced by WM_OT_search_menu().

static int wm_search_menu_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]

Definition at line 1454 of file wm_operators.c.

References OPERATOR_CANCELLED, uiPupBlock(), and wm_block_search_menu().

Referenced by WM_OT_search_menu().

static int wm_search_menu_poll ( bContext C) [static]
static int wm_splash_invoke ( bContext C,
wmOperator UNUSEDop,
wmEvent UNUSEDevent 
) [static]

Definition at line 1357 of file wm_operators.c.

References NULL, OPERATOR_FINISHED, uiPupBlock(), and wm_block_create_splash().

Referenced by WM_OT_splash().

void wm_tweakevent_test ( bContext C,
wmEvent event,
int  action 
)
void wm_window_keymap ( wmKeyConfig keyconf)

Variable Documentation

GHash* global_ops_hash = NULL [static]

Definition at line 104 of file wm_operators.c.

Initial value:
 {
    {0, "DRAW", 0, "Draw Region", "Draw Region"},
    {1, "DRAW_SWAP", 0, "Draw Region + Swap", "Draw Region and Swap"},
    {2, "DRAW_WIN", 0, "Draw Window", "Draw Window"},
    {3, "DRAW_WIN_SWAP", 0, "Draw Window + Swap", "Draw Window and Swap"},
    {4, "ANIM_STEP", 0, "Anim Step", "Animation Steps"},
    {5, "ANIM_PLAY", 0, "Anim Play", "Animation Playback"},
    {6, "UNDO", 0, "Undo/Redo", "Undo/Redo"},
    {0, NULL, 0, NULL, NULL}}

Definition at line 3426 of file wm_operators.c.

const int WM_RADIAL_CONTROL_DISPLAY_SIZE = 200 [static]

Definition at line 2901 of file wm_operators.c.

Referenced by radial_control_modal(), and radial_control_paint_cursor().