|
Blender V5.0
|
#include <cfloat>#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_lasso_2d.hh"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "DNA_anim_types.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_mask_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_grease_pencil.hh"#include "BKE_nla.hh"#include "UI_view2d.hh"#include "ED_anim_api.hh"#include "ED_gpencil_legacy.hh"#include "ED_grease_pencil.hh"#include "ED_keyframes_edit.hh"#include "ED_keyframes_keylist.hh"#include "ED_markers.hh"#include "ED_mask.hh"#include "ED_screen.hh"#include "ED_select_utils.hh"#include "WM_api.hh"#include "WM_types.hh"#include "action_intern.hh"Go to the source code of this file.
Classes | |
| struct | BoxSelectData |
| struct | RegionSelectData |
Functions | |
Keyframes Stuff | |
| static bAnimListElem * | actkeys_find_list_element_at_position (bAnimContext *ac, eAnimFilter_Flags filter, float region_x, float region_y) |
| static void | actkeys_list_element_to_keylist (bAnimContext *ac, AnimKeylist *keylist, bAnimListElem *ale) |
| static void | actkeys_find_key_in_list_element (bAnimContext *ac, bAnimListElem *ale, float region_x, float *r_selx, float *r_frame, bool *r_found, bool *r_is_selected) |
| static void | actkeys_find_key_at_position (bAnimContext *ac, eAnimFilter_Flags filter, float region_x, float region_y, bAnimListElem **r_ale, float *r_selx, float *r_frame, bool *r_found, bool *r_is_selected) |
| static bool | actkeys_is_key_at_position (bAnimContext *ac, float region_x, float region_y) |
Deselect All Operator | |
This operator works in one of three ways: 1) (de)select all (AKEY) - test if select all or deselect all. 2) invert all (CTRL-IKEY) - invert selection of all keyframes. 3) (de)select all - no testing is done; only for use internal tools as normal function. | |
| static void | deselect_action_keys (bAnimContext *ac, short test, eEditKeyframes_Select sel) |
| static wmOperatorStatus | actkeys_deselectall_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_all (wmOperatorType *ot) |
Region Select Operators | |
"Region Select" operators include the Lasso and Circle Select operators. These two ended up being lumped together, as it was easier in the original Graph Editor implementation of these to do it this way. | |
| static void | region_select_elem (RegionSelectData *sel_data, bAnimListElem *ale, bool summary) |
| static void | region_select_action_keys (bAnimContext *ac, const rctf *rectf_view, short mode, eEditKeyframes_Select selectmode, void *data) |
| static wmOperatorStatus | actkeys_lassoselect_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_lasso (wmOperatorType *ot) |
| static wmOperatorStatus | action_circle_select_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_circle (wmOperatorType *ot) |
Select Linked Operator | |
| static wmOperatorStatus | actkeys_select_linked_exec (bContext *C, wmOperator *) |
| void | ACTION_OT_select_linked (wmOperatorType *ot) |
Select More/Less Operators | |
| static void | select_moreless_action_keys (bAnimContext *ac, short mode) |
| static wmOperatorStatus | actkeys_select_more_exec (bContext *C, wmOperator *) |
| void | ACTION_OT_select_more (wmOperatorType *ot) |
| static wmOperatorStatus | actkeys_select_less_exec (bContext *C, wmOperator *) |
| void | ACTION_OT_select_less (wmOperatorType *ot) |
Mouse-Click Select Operator | |
This operator works in one of three ways:
In addition to these basic options, the SHIFT modifier can be used to toggle the selection mode between replacing the selection (without) and inverting the selection (with). | |
| static void | actkeys_mselect_single (bAnimContext *ac, bAnimListElem *ale, const eEditKeyframes_Select select_mode, float selx) |
| static void | actkeys_mselect_column (bAnimContext *ac, eEditKeyframes_Select select_mode, float selx) |
| static void | actkeys_mselect_channel_only (bAnimContext *ac, bAnimListElem *ale, eEditKeyframes_Select select_mode) |
| static wmOperatorStatus | mouse_action_keys (bAnimContext *ac, const int mval[2], eEditKeyframes_Select select_mode, const bool deselect_all, const bool column, const bool same_channel, bool wait_to_deselect_others) |
| static wmOperatorStatus | actkeys_clickselect_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_clickselect (wmOperatorType *ot) |
Box Select Operator | |
This operator currently works in one of three ways:
| |
| enum | { ACTKEYS_BORDERSEL_ALLKEYS = 0 , ACTKEYS_BORDERSEL_FRAMERANGE , ACTKEYS_BORDERSEL_CHANNELS } |
| static void | box_select_elem (BoxSelectData *sel_data, bAnimListElem *ale, float xmin, float xmax, bool summary) |
| static void | box_select_action (bAnimContext *ac, const rcti rect, short mode, const eEditKeyframes_Select selectmode) |
| static wmOperatorStatus | actkeys_box_select_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | actkeys_box_select_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_box (wmOperatorType *ot) |
Column Select Operator | |
This operator works in one of four ways:
| |
| static const EnumPropertyItem | prop_column_select_types [] |
| static void | markers_selectkeys_between (bAnimContext *ac) |
| static void | columnselect_action_keys (bAnimContext *ac, short mode) |
| static wmOperatorStatus | actkeys_columnselect_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_column (wmOperatorType *ot) |
Select Left/Right Operator | |
Select keyframes left/right of the current frame indicator. | |
| static const EnumPropertyItem | prop_actkeys_leftright_select_types [] |
| static void | actkeys_select_leftright (bAnimContext *ac, short leftright, eEditKeyframes_Select select_mode) |
| static wmOperatorStatus | actkeys_select_leftright_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | actkeys_select_leftright_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | ACTION_OT_select_leftright (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| ACTKEYS_BORDERSEL_ALLKEYS | |
| ACTKEYS_BORDERSEL_FRAMERANGE | |
| ACTKEYS_BORDERSEL_CHANNELS | |
Definition at line 442 of file action_select.cc.
|
static |
Definition at line 967 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), BEZT_OK_CHANNEL_CIRCLE, C, wmOperator::customdata, data, bAnimContext::datatype, deselect_action_keys(), ED_select_op_modal(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, region_select_action_keys(), RNA_enum_get(), RNA_int_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT_ADD, SELECT_SUBTRACT, WM_event_add_notifier(), WM_gesture_is_modal_first(), x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by ACTION_OT_select_circle().
| void ACTION_OT_clickselect | ( | wmOperatorType * | ot | ) |
Definition at line 2086 of file action_select.cc.
References actkeys_clickselect_exec(), ED_operator_action_active(), OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), WM_generic_select_invoke(), WM_generic_select_modal(), and WM_operator_properties_generic_select().
Referenced by action_operatortypes().
| void ACTION_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 410 of file action_select.cc.
References actkeys_deselectall_exec(), ED_operator_action_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_select_all().
Referenced by action_operatortypes().
| void ACTION_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 675 of file action_select.cc.
References actkeys_box_select_exec(), actkeys_box_select_invoke(), ED_operator_action_active(), OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by action_operatortypes().
| void ACTION_OT_select_circle | ( | wmOperatorType * | ot | ) |
Definition at line 1012 of file action_select.cc.
References action_circle_select_exec(), ED_operator_action_active(), ED_select_circle_get_name(), OPTYPE_UNDO, ot, WM_gesture_circle_cancel(), WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_operator_properties_gesture_circle(), and WM_operator_properties_select_operation_simple().
Referenced by action_operatortypes().
| void ACTION_OT_select_column | ( | wmOperatorType * | ot | ) |
Definition at line 1267 of file action_select.cc.
References actkeys_columnselect_exec(), ED_operator_action_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, prop_column_select_types, PROP_HIDDEN, RNA_def_enum(), and RNA_def_property_flag().
Referenced by action_operatortypes().
| void ACTION_OT_select_lasso | ( | wmOperatorType * | ot | ) |
Definition at line 943 of file action_select.cc.
References actkeys_lassoselect_exec(), ED_operator_action_active(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_operator_properties_gesture_lasso(), and WM_operator_properties_select_operation_simple().
Referenced by action_operatortypes().
| void ACTION_OT_select_leftright | ( | wmOperatorType * | ot | ) |
Definition at line 1657 of file action_select.cc.
References ACTKEYS_LRSEL_TEST, actkeys_select_leftright_exec(), actkeys_select_leftright_invoke(), ED_operator_action_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, prop_actkeys_leftright_select_types, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), and RNA_def_property_flag().
Referenced by action_operatortypes().
| void ACTION_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1459 of file action_select.cc.
References actkeys_select_less_exec(), ED_operator_action_active(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by action_operatortypes().
| void ACTION_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 1333 of file action_select.cc.
References actkeys_select_linked_exec(), ED_operator_action_active(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by action_operatortypes().
| void ACTION_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1422 of file action_select.cc.
References actkeys_select_more_exec(), ED_operator_action_active(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by action_operatortypes().
|
static |
Definition at line 624 of file action_select.cc.
References ACTKEYS_BORDERSEL_ALLKEYS, ACTKEYS_BORDERSEL_CHANNELS, ACTKEYS_BORDERSEL_FRAMERANGE, ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), BLI_rcti_size_x(), BLI_rcti_size_y(), box_select_action(), C, bAnimContext::datatype, deselect_action_keys(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT_ADD, SELECT_SUBTRACT, WM_event_add_notifier(), and WM_operator_properties_border_to_rcti().
Referenced by ACTION_OT_select_box().
|
static |
Definition at line 603 of file action_select.cc.
References actkeys_is_key_at_position(), ANIM_animdata_get_context(), C, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, bAnimContext::region, RNA_boolean_get(), WM_event_drag_start_mval(), and WM_gesture_box_invoke().
Referenced by ACTION_OT_select_box().
|
static |
Definition at line 2047 of file action_select.cc.
References ANIM_animdata_get_context(), C, mouse_action_keys(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), RNA_int_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by ACTION_OT_clickselect().
|
static |
Definition at line 1239 of file action_select.cc.
References ACTKEYS_COLUMNSEL_MARKERS_BETWEEN, ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), C, columnselect_action_keys(), bAnimContext::datatype, markers_selectkeys_between(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by ACTION_OT_select_column().
|
static |
Definition at line 373 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), BLI_assert, C, bAnimContext::datatype, deselect_action_keys(), NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT_ADD, SELECT_INVERT, SELECT_SUBTRACT, and WM_event_add_notifier().
Referenced by ACTION_OT_select_all().
|
static |
Definition at line 237 of file action_select.cc.
References actkeys_find_key_in_list_element(), actkeys_find_list_element_at_position(), and filter.
Referenced by actkeys_is_key_at_position(), and mouse_action_keys().
|
static |
Definition at line 195 of file action_select.cc.
References actkeys_list_element_to_keylist(), ANIM_nla_tweakedit_remap(), ANIM_UI_get_channel_height(), ActKeyColumn::cfra, ED_keylist_create(), ED_keylist_find_any_between(), ED_keylist_free(), ED_keylist_prepare_for_direct_access(), NLATIME_CONVERT_UNMAP, bAnimContext::region, roundf, ActKeyColumn::sel, SELECT, UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by actkeys_find_key_at_position().
|
static |
Definition at line 57 of file action_select.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), BLI_findlink(), BLI_remlink(), bAnimContext::data, bAnimContext::datatype, filter, bAnimListElem::next, bAnimListElem::prev, bAnimContext::region, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by actkeys_find_key_at_position().
|
static |
Definition at line 257 of file action_select.cc.
References actkeys_find_key_at_position(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, filter, and MEM_freeN().
Referenced by actkeys_box_select_invoke().
|
static |
Definition at line 903 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), BEZT_OK_CHANNEL_LASSO, BLI_lasso_boundbox(), BLI_rctf_rcti_copy(), C, bAnimContext::datatype, deselect_action_keys(), KeyframeEdit_LassoData::mcoords, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, KeyframeEdit_LassoData::rectf_view, region_select_action_keys(), RNA_enum_get(), SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT_ADD, SELECT_SUBTRACT, WM_event_add_notifier(), and WM_gesture_lasso_path_to_array().
Referenced by ACTION_OT_select_lasso().
|
static |
Definition at line 89 of file action_select.cc.
References action_group_to_keylist(), action_slot_summary_to_keylist(), action_to_keylist(), bAnimListElem::adt, ALE_ACT, ALE_ACTION_LAYERED, ALE_ACTION_SLOT, ALE_ALL, ALE_FCURVE, ALE_GPFRAME, ALE_GREASE_PENCIL_CEL, ALE_GREASE_PENCIL_DATA, ALE_GREASE_PENCIL_GROUP, ALE_GROUP, ALE_MASKLAY, ALE_NLASTRIP, ALE_NONE, ALE_OB, ALE_SCE, ANIM_nla_mapping_allowed(), ANIMCONT_DOPESHEET, ANIMCONT_TIMELINE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_GROUP, ANIMTYPE_MASKLAYER, ANIMTYPE_SUMMARY, BLI_assert, View2D::cur, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, bAnimListElem::datatype, ELEM, fcurve_to_keylist(), gpl_to_keylist(), grease_pencil_cels_to_keylist(), grease_pencil_data_block_to_keylist(), grease_pencil_layer_group_to_keylist(), ActionSlot::handle, bAnimListElem::id, bAnimListElem::key_data, mask_to_keylist(), ob_to_keylist(), bAnimContext::region, scene_to_keylist(), AnimData::slot_handle, summary_to_keylist(), bAnimListElem::type, ARegion::v2d, rctf::xmax, and rctf::xmin.
Referenced by actkeys_find_key_in_list_element().
|
static |
Definition at line 1842 of file action_select.cc.
References bAnimContext::ads, ALE_ALL, ANIM_animchannel_keyframes_loop(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_select(), ANIM_UPDATE_DEPS, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, ANIMTYPE_SUMMARY, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, bAnimListElem::datatype, ED_gpencil_select_frames(), ED_mask_select_frames(), ELEM, filter, LISTBASE_FOREACH, blender::ed::greasepencil::select_all_frames(), bAnimListElem::type, and bAnimListElem::update.
Referenced by mouse_action_keys().
|
static |
Definition at line 1793 of file action_select.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_tweakedit_remap(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BEZT_OK_FRAME, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, ED_gpencil_select_frame(), ED_mask_select_frame(), KeyframeEditData::f1, filter, KeyframeEditData::list, LISTBASE_FOREACH, NLATIME_CONVERT_UNMAP, and blender::ed::greasepencil::select_frame_at().
Referenced by mouse_action_keys().
|
static |
Definition at line 1699 of file action_select.cc.
References bAnimContext::ads, ALE_ALL, ANIM_animchannel_keyframes_loop(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_UPDATE_DEPS, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_MASKLAYER, ANIMTYPE_SUMMARY, BEZT_OK_FRAME, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, bAnimListElem::datatype, ED_gpencil_select_frame(), ED_mask_select_frame(), ELEM, KeyframeEditData::f1, filter, KeyframeEditData::iterflags, KED_F1_NLA_UNMAP, LISTBASE_FOREACH, blender::ed::greasepencil::select_frame_at(), blender::ed::greasepencil::select_frames_at(), bAnimListElem::type, and bAnimListElem::update.
Referenced by mouse_action_keys().
|
static |
Definition at line 1492 of file action_select.cc.
References ACTKEYS_LRSEL_LEFT, ACTKEYS_LRSEL_RIGHT, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_if_needed_fcurve(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BEZT_OK_FRAMERANGE, BLI_assert_msg, RenderData::cfra, bAnimContext::data, bAnimContext::datatype, deselect_action_keys(), ED_gpencil_layer_frames_select_box(), ED_masklayer_frames_select_box(), KeyframeEditData::f1, KeyframeEditData::f2, filter, SpaceAction::flag, float, LISTBASE_FOREACH, bAnimContext::markers, MAXFRAMEF, MINAFRAMEF, Scene::r, SACTION_MARKERS_MOVE, bAnimContext::scene, SELECT, SELECT_ADD, blender::ed::greasepencil::select_frames_range(), SELECT_REPLACE, SELECT_SUBTRACT, and bAnimContext::sl.
Referenced by actkeys_select_leftright_exec().
|
static |
Definition at line 1590 of file action_select.cc.
References ACTKEYS_LRSEL_TEST, actkeys_select_leftright(), ANIM_animdata_get_context(), C, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by ACTION_OT_select_leftright(), and actkeys_select_leftright_invoke().
|
static |
Definition at line 1624 of file action_select.cc.
References ACTKEYS_LRSEL_LEFT, ACTKEYS_LRSEL_RIGHT, ACTKEYS_LRSEL_TEST, actkeys_select_leftright_exec(), ANIM_animdata_get_context(), C, wmEvent::mval, OPERATOR_CANCELLED, wmOperator::ptr, bAnimContext::region, RNA_enum_get(), RNA_enum_set(), bAnimContext::scene, UI_view2d_region_to_view_x(), ARegion::v2d, and x.
Referenced by ACTION_OT_select_leftright().
|
static |
Definition at line 1439 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), C, bAnimContext::datatype, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, select_moreless_action_keys(), SELMAP_LESS, and WM_event_add_notifier().
Referenced by ACTION_OT_select_less().
|
static |
Definition at line 1292 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, BEZT_OK_SELECTED, C, bAnimContext::data, bAnimContext::datatype, filter, LISTBASE_FOREACH, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, SELECT_ADD, and WM_event_add_notifier().
Referenced by ACTION_OT_select_linked().
|
static |
Definition at line 1402 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), C, bAnimContext::datatype, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, select_moreless_action_keys(), SELMAP_MORE, and WM_event_add_notifier().
Referenced by ACTION_OT_select_more().
|
static |
Definition at line 527 of file action_select.cc.
References BoxSelectData::ac, ACTKEYS_BORDERSEL_ALLKEYS, ACTKEYS_BORDERSEL_FRAMERANGE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_nla_mapping_allowed(), ANIM_nla_tweakedit_remap(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, BEZT_OK_FRAMERANGE, box_select_elem(), bAnimContext::data, bAnimContext::datatype, ELEM, KeyframeEditData::f1, KeyframeEditData::f2, filter, ListBase::first, KeyframeEditData::iterflags, BoxSelectData::ked, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, bAnimListElem::next, NLATIME_CONVERT_UNMAP, BoxSelectData::ok_cb, bAnimContext::region, BoxSelectData::select_cb, BoxSelectData::selectmode, UI_view2d_region_to_view(), ARegion::v2d, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by actkeys_box_select_exec().
|
static |
Definition at line 456 of file action_select.cc.
References BoxSelectData::ac, bAnimContext::ads, ANIM_animchannel_keyframes_loop(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_DATA_VISIBLE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_SUMMARY, box_select_elem(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_gpencil_layer_frames_select_box(), ED_masklayer_frames_select_box(), ELEM, BoxSelectData::ked, LISTBASE_FOREACH, mask(), MaskLayer::next, BoxSelectData::ok_cb, BoxSelectData::select_cb, blender::ed::greasepencil::select_frames_range(), BoxSelectData::selectmode, bAnimListElem::type, and bAnimListElem::update.
Referenced by box_select_action(), and box_select_elem().
|
static |
Definition at line 1125 of file action_select.cc.
References ACTKEYS_COLUMNSEL_CFRA, ACTKEYS_COLUMNSEL_KEYS, ACTKEYS_COLUMNSEL_MARKERS_COLUMN, ALE_GPFRAME, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_tweakedit_remap(), ANIM_UPDATE_DEPS, ANIMCONT_GPENCIL, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BEZT_OK_FRAME, bezt_to_cfraelem(), BLI_addtail(), BLI_assert_unreachable, BLI_freelistN(), CfraElem::cfra, RenderData::cfra, bAnimContext::data, KeyframeEditData::data, bAnimContext::datatype, ED_gpencil_layer_make_cfra_list(), ED_gpencil_select_frame(), ED_markers_make_cfra_list(), ED_mask_select_frame(), KeyframeEditData::f1, filter, float, KeyframeEditData::list, LISTBASE_FOREACH, bAnimContext::markers, MEM_callocN(), NLATIME_CONVERT_UNMAP, Scene::r, bAnimContext::scene, SELECT_ADD, and blender::ed::greasepencil::select_frame_at().
Referenced by actkeys_columnselect_exec().
|
static |
Definition at line 292 of file action_select.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BEZT_OK_SELECTED, bAnimContext::data, bAnimContext::datatype, ED_gpencil_layer_frame_select_check(), ED_gpencil_layer_frame_select_set(), ED_masklayer_frame_select_check(), ED_masklayer_frame_select_set(), filter, blender::ed::greasepencil::has_any_frame_selected(), LISTBASE_FOREACH, blender::ed::greasepencil::select_all_frames(), and SELECT_SUBTRACT.
Referenced by action_circle_select_exec(), actkeys_box_select_exec(), actkeys_deselectall_exec(), actkeys_lassoselect_exec(), actkeys_select_leftright(), and mouse_action_keys().
|
static |
Definition at line 1063 of file action_select.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_if_needed_fcurve(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BEZT_OK_FRAMERANGE, BLI_assert_msg, bAnimContext::data, bAnimContext::datatype, ED_gpencil_layer_frames_select_box(), ED_markers_get_minmax(), ED_masklayer_frames_select_box(), KeyframeEditData::f1, KeyframeEditData::f2, filter, LISTBASE_FOREACH, bAnimContext::markers, max, min, SELECT_ADD, and blender::ed::greasepencil::select_frames_range().
Referenced by actkeys_columnselect_exec().
|
static |
Definition at line 1894 of file action_select.cc.
References ACHANNEL_SETFLAG_CLEAR, actkeys_find_key_at_position(), actkeys_mselect_channel_only(), actkeys_mselect_column(), actkeys_mselect_single(), AGRP_SELECTED, ANIM_anim_channels_select_set(), ANIM_animdata_update(), ANIM_set_active_channel(), ANIMCONT_ACTION, ANIMCONT_DOPESHEET, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMCONT_TIMELINE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_ACTION_SLOT, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GROUP, ANIMTYPE_MASKLAYER, ANIMTYPE_NLACURVE, BLI_assert_msg, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, deselect_action_keys(), ED_gpencil_set_active_channel(), ELEM, bAnimListElem::fcurve_owner_id, FCURVE_SELECTED, filter, bActionGroup::flag, FCurve::flag, MaskLayer::flag, GS, ActionSlot::handle, bAnimListElem::id, ID_AC, MASK_LAYERFLAG_SELECT, MEM_freeN(), ID::name, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, SELECT_ADD, blender::ed::greasepencil::select_layer_channel(), SELECT_REPLACE, SELECT_SUBTRACT, blender::animrig::Slot::set_selected(), blender::animrig::Action::slot_active_set(), and bAnimListElem::type.
Referenced by actkeys_clickselect_exec().
|
static |
Definition at line 806 of file action_select.cc.
References RegionSelectData::ac, ACTKEYS_BORDERSEL_FRAMERANGE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_ok(), ANIM_editkeyframes_select(), ANIM_nla_mapping_allowed(), ANIM_nla_tweakedit_remap(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, BEZT_OK_CHANNEL_CIRCLE, BEZT_OK_CHANNEL_LASSO, KeyframeEditData::channel_y, bAnimContext::data, data, KeyframeEditData::data, bAnimContext::datatype, KeyframeEditData::f1, KeyframeEditData::f2, filter, ListBase::first, KeyframeEditData::iterflags, RegionSelectData::ked, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, RegionSelectData::mode, bAnimListElem::next, NLATIME_CONVERT_UNMAP, RegionSelectData::ok_cb, KeyframeEdit_CircleData::rectf_scaled, KeyframeEdit_LassoData::rectf_scaled, bAnimContext::region, region_select_elem(), RegionSelectData::select_cb, RegionSelectData::selectmode, UI_view2d_region_to_view_rctf(), ARegion::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by action_circle_select_exec(), and actkeys_lassoselect_exec().
|
static |
Definition at line 724 of file action_select.cc.
References RegionSelectData::ac, bAnimContext::ads, ANIM_animchannel_keyframes_loop(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_DATA_VISIBLE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_DATABLOCK, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, ANIMTYPE_MASKDATABLOCK, ANIMTYPE_MASKLAYER, ANIMTYPE_SUMMARY, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_gpencil_layer_frames_select_region(), ED_masklayer_frames_select_region(), ELEM, RegionSelectData::ked, LISTBASE_FOREACH, mask(), RegionSelectData::mode, MaskLayer::next, RegionSelectData::ok_cb, region_select_elem(), RegionSelectData::select_cb, blender::ed::greasepencil::select_frames_region(), RegionSelectData::selectmode, bAnimListElem::type, and bAnimListElem::update.
Referenced by region_select_action_keys(), and region_select_elem().
|
static |
Definition at line 1355 of file action_select.cc.
References ALE_FCURVE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_editkeyframes_buildselmap(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, FCurve::bezt, bezt_selmap_flush(), bAnimContext::data, KeyframeEditData::data, bAnimContext::datatype, filter, LISTBASE_FOREACH, MEM_callocN(), MEM_freeN(), and FCurve::totvert.
Referenced by actkeys_select_less_exec(), and actkeys_select_more_exec().
|
static |
Definition at line 1483 of file action_select.cc.
Referenced by ACTION_OT_select_leftright().
|
static |
Definition at line 1046 of file action_select.cc.
Referenced by ACTION_OT_select_column(), and GRAPH_OT_select_column().