Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_path.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_keyframing.h"
#include "eyedropper_intern.h"
#include "interface_intern.h"
Go to the source code of this file.
Classes | |
struct | DriverDropper |
Typedefs | |
typedef struct DriverDropper | DriverDropper |
Functions | |
static bool | driverdropper_init (bContext *C, wmOperator *op) |
static void | driverdropper_exit (bContext *C, wmOperator *op) |
static void | driverdropper_sample (bContext *C, wmOperator *op, const wmEvent *event) |
static void | driverdropper_cancel (bContext *C, wmOperator *op) |
static int | driverdropper_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static int | driverdropper_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
static int | driverdropper_exec (bContext *C, wmOperator *op) |
static bool | driverdropper_poll (bContext *C) |
void | UI_OT_eyedropper_driver (wmOperatorType *ot) |
typedef struct DriverDropper DriverDropper |
|
static |
Definition at line 128 of file eyedropper_driver.c.
References C, and driverdropper_exit().
Referenced by driverdropper_modal(), and UI_OT_eyedropper_driver().
|
static |
Definition at line 177 of file eyedropper_driver.c.
References C, driverdropper_exit(), driverdropper_init(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by UI_OT_eyedropper_driver().
|
static |
Definition at line 68 of file eyedropper_driver.c.
References C, CTX_wm_window(), wmOperator::customdata, MEM_SAFE_FREE, and WM_cursor_modal_restore().
Referenced by driverdropper_cancel(), driverdropper_exec(), and driverdropper_modal().
|
static |
Definition at line 49 of file eyedropper_driver.c.
References C, wmOperator::customdata, PointerRNA::data, uiBut::flag, DriverDropper::index, DriverDropper::is_undo, MEM_callocN, MEM_freeN, NULL, DriverDropper::prop, DriverDropper::ptr, RNA_property_animateable(), RNA_property_editable(), UI_BUT_DRIVEN, UI_but_flag_is_set(), UI_BUT_UNDO, and UI_context_active_but_prop_get().
Referenced by driverdropper_exec(), and driverdropper_invoke().
|
static |
Definition at line 159 of file eyedropper_driver.c.
References C, CTX_wm_region(), CTX_wm_window(), driverdropper_init(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, UI_context_active_but_clear(), WM_CURSOR_EYEDROPPER, WM_cursor_modal_set(), and WM_event_add_modal_handler().
Referenced by UI_OT_eyedropper_driver().
|
static |
Definition at line 134 of file eyedropper_driver.c.
References C, wmOperator::customdata, driverdropper_cancel(), driverdropper_exit(), driverdropper_sample(), EVT_MODAL_MAP, EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_CONFIRM, DriverDropper::is_undo, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::type, and wmEvent::val.
Referenced by UI_OT_eyedropper_driver().
Definition at line 189 of file eyedropper_driver.c.
References C, and CTX_wm_window().
Referenced by UI_OT_eyedropper_driver().
|
static |
Definition at line 75 of file eyedropper_driver.c.
References ANIM_add_driver_with_target(), C, CTX_data_main(), wmOperator::customdata, DEG_id_tag_update(), DEG_relations_tag_update(), DRIVER_TYPE_PYTHON, eyedropper_get_property_button_under_mouse(), ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, DriverDropper::index, MEM_freeN, NC_ANIMATION, ND_FCURVES_ORDER, NULL, PointerRNA::owner_id, DriverDropper::prop, DriverDropper::ptr, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_path_from_ID_to_property(), UI_context_update_anim_flag(), and WM_event_add_notifier().
Referenced by driverdropper_modal().
void UI_OT_eyedropper_driver | ( | wmOperatorType * | ot | ) |
Definition at line 197 of file eyedropper_driver.c.
References wmOperatorType::cancel, wmOperatorType::description, driverdropper_cancel(), driverdropper_exec(), driverdropper_invoke(), driverdropper_modal(), driverdropper_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_driver_create_mapping_types, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().