|
Blender V4.3
|
#include <cfloat>#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_dlrbTree.h"#include "BLI_lasso_2d.hh"#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_gpencil_legacy.h"#include "BKE_grease_pencil.hh"#include "BKE_nla.hh"#include "UI_interface.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 int | 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 int | actkeys_lassoselect_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_lasso (wmOperatorType *ot) |
| static int | action_circle_select_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_select_circle (wmOperatorType *ot) |
Select Linked Operator | |
| static int | 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 int | actkeys_select_more_exec (bContext *C, wmOperator *) |
| void | ACTION_OT_select_more (wmOperatorType *ot) |
| static int | 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 int | 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 int | 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 int | actkeys_box_select_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | 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 int | 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 int | actkeys_select_leftright_exec (bContext *C, wmOperator *op) |
| static int | 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 437 of file action_select.cc.
|
static |
Definition at line 986 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), BEZT_OK_CHANNEL_CIRCLE, wmOperator::customdata, 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 2125 of file action_select.cc.
References actkeys_clickselect_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, 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 405 of file action_select.cc.
References actkeys_deselectall_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by action_operatortypes().
| void ACTION_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 681 of file action_select.cc.
References actkeys_box_select_exec(), actkeys_box_select_invoke(), wmOperatorType::cancel, wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, 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 1031 of file action_select.cc.
References action_circle_select_exec(), wmOperatorType::cancel, wmOperatorType::description, ED_operator_action_active(), ED_select_circle_get_name(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, 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 1298 of file action_select.cc.
References actkeys_columnselect_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_column_select_types, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by action_operatortypes().
| void ACTION_OT_select_lasso | ( | wmOperatorType * | ot | ) |
Definition at line 962 of file action_select.cc.
References actkeys_lassoselect_exec(), wmOperatorType::cancel, wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, wmOperatorType::poll, 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 1693 of file action_select.cc.
References ACTKEYS_LRSEL_TEST, actkeys_select_leftright_exec(), actkeys_select_leftright_invoke(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_actkeys_leftright_select_types, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by action_operatortypes().
| void ACTION_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1490 of file action_select.cc.
References actkeys_select_less_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 1364 of file action_select.cc.
References actkeys_select_linked_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1453 of file action_select.cc.
References actkeys_select_more_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
|
static |
Definition at line 630 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(), 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 611 of file action_select.cc.
References actkeys_is_key_at_position(), ANIM_animdata_get_context(), 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 2086 of file action_select.cc.
References ANIM_animdata_get_context(), 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 1270 of file action_select.cc.
References ACTKEYS_COLUMNSEL_MARKERS_BETWEEN, ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), 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 368 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), BLI_assert, 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 232 of file action_select.cc.
References actkeys_find_key_in_list_element(), and actkeys_find_list_element_at_position().
Referenced by actkeys_is_key_at_position(), and mouse_action_keys().
|
static |
Definition at line 188 of file action_select.cc.
References actkeys_list_element_to_keylist(), ANIM_nla_mapping_get(), ANIM_UI_get_channel_height(), BKE_nla_tweakedit_remap(), ActKeyColumn::cfra, ED_keylist_create(), ED_keylist_find_any_between(), ED_keylist_free(), ED_keylist_prepare_for_direct_access(), NLATIME_CONVERT_UNMAP, bAnimContext::region, ActKeyColumn::sel, SELECT, UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by actkeys_find_key_at_position().
|
static |
Definition at line 60 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, 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 252 of file action_select.cc.
References actkeys_find_key_at_position(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, and MEM_freeN().
Referenced by actkeys_box_select_invoke().
|
static |
Definition at line 922 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(), 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 92 of file action_select.cc.
References action_group_to_keylist(), action_slot_to_keylist(), action_to_keylist(), 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_get(), 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::key_data, mask_to_keylist(), ob_to_keylist(), bAnimContext::region, scene_to_keylist(), summary_to_keylist(), bAnimListElem::type, ARegion::v2d, rctf::xmax, and rctf::xmin.
Referenced by actkeys_find_key_in_list_element().
|
static |
Definition at line 1885 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 1829 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_get(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BEZT_OK_FRAME, BKE_nla_tweakedit_remap(), 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 1735 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 1523 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_fcurve(), ANIM_nla_mapping_get(), 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, deselect_action_keys(), ED_animcontext_get_markers(), ED_gpencil_layer_frames_select_box(), ED_masklayer_frames_select_box(), KeyframeEditData::f1, KeyframeEditData::f2, filter(), SpaceAction::flag, float, LISTBASE_FOREACH, markers, MAXFRAMEF, MINAFRAMEF, 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 1628 of file action_select.cc.
References ACTKEYS_LRSEL_TEST, actkeys_select_leftright(), ANIM_animdata_get_context(), 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 1662 of file action_select.cc.
References ACTKEYS_LRSEL_LEFT, ACTKEYS_LRSEL_RIGHT, ACTKEYS_LRSEL_TEST, actkeys_select_leftright_exec(), ANIM_animdata_get_context(), wmEvent::mval, OPERATOR_CANCELLED, wmOperator::ptr, bAnimContext::region, RNA_enum_get(), RNA_enum_set(), bAnimContext::scene, UI_view2d_region_to_view_x(), and x.
Referenced by ACTION_OT_select_leftright().
|
static |
Definition at line 1470 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), 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 1323 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, 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 1433 of file action_select.cc.
References ANIM_animdata_can_have_greasepencil(), ANIM_animdata_get_context(), 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 533 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_get(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, BEZT_OK_FRAMERANGE, BKE_nla_tweakedit_remap(), box_select_elem(), bAnimContext::data, bAnimContext::datatype, ELEM, filter(), ListBase::first, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, bAnimListElem::next, NLATIME_CONVERT_UNMAP, bAnimContext::region, 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 451 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_GPDATABLOCK, 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, ListBase::first, BoxSelectData::ked, bGPdata::layers, LISTBASE_FOREACH, bGPDlayer::next, 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 1150 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_mapping_get(), 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(), BKE_nla_tweakedit_remap(), BLI_addtail(), BLI_assert_unreachable, BLI_freelistN(), CfraElem::cfra, bAnimContext::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, NLATIME_CONVERT_UNMAP, bAnimContext::scene, SELECT_ADD, and blender::ed::greasepencil::select_frame_at().
Referenced by actkeys_columnselect_exec().
|
static |
Definition at line 287 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 1082 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_fcurve(), ANIM_nla_mapping_get(), 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 1937 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, 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 823 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_get(), 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, BKE_nla_tweakedit_remap(), bAnimContext::data, data, bAnimContext::datatype, filter(), ListBase::first, KED_F1_NLA_UNMAP, KED_F2_NLA_UNMAP, bAnimListElem::next, NLATIME_CONVERT_UNMAP, KeyframeEdit_CircleData::rectf_scaled, KeyframeEdit_LassoData::rectf_scaled, bAnimContext::region, region_select_elem(), 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 730 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_GPDATABLOCK, 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, ListBase::first, RegionSelectData::ked, bGPdata::layers, LISTBASE_FOREACH, RegionSelectData::mode, bGPDlayer::next, 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 1386 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 1514 of file action_select.cc.
Referenced by ACTION_OT_select_leftright().
|
static |
Definition at line 1065 of file action_select.cc.
Referenced by ACTION_OT_select_column().