111 for (ale = anim_data.
first; ale; ale = ale->
next) {
116 for (strip = nlt->
strips.
first; strip; strip = strip->next) {
133 for (ale = anim_data.
first; ale; ale = ale->
next) {
138 for (strip = nlt->
strips.
first; strip; strip = strip->next) {
195 ot->
name =
"(De)select All";
261 for (strip = nlt->
strips.
first; strip; strip = strip->next) {
290 float view_x, view_y;
424 ot->
srna,
"tweak", 0,
"Tweak",
"Operator has been activated using a tweak event");
488 for (ale = anim_data.
first; ale; ale = ale->
next) {
493 for (strip = nlt->
strips.
first; strip; strip = strip->next) {
576 ot->
name =
"Select Left/Right";
577 ot->
idname =
"NLA_OT_select_leftright";
578 ot->
description =
"Select strips to the left or the right of the current frame";
604 const bool deselect_all,
605 bool wait_to_deselect_others)
623 wait_to_deselect_others =
false;
696 const bool wait_to_deselect_others =
RNA_boolean_get(op->
ptr,
"wait_to_deselect_others");
702 ret_value =
mouse_nla_strips(
C, &ac, mval, selectmode, deselect_all, wait_to_deselect_others);
737 "Deselect On Nothing",
738 "Deselect all when nothing under the cursor");
typedef float(TangentPoint)[2]
bool BKE_nlastrip_within_bounds(struct NlaStrip *strip, float min, float max)
#define LISTBASE_FOREACH(type, var, list)
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
@ ACHANNEL_SETFLAG_INVERT
#define NLACHANNEL_STEP(snla)
#define NLACHANNEL_FIRST_TOP(ac)
#define ACHANNEL_SET_FLAG(channel, smode, sflag)
#define NLACHANNEL_HEIGHT(snla)
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_LIST_VISIBLE
@ ANIMFILTER_LIST_CHANNELS
bool ED_operator_nla_active(struct bContext *C)
#define SEL_OP_USE_PRE_DESELECT(sel_op)
Read Guarded memory(de)allocation.
void UI_view2d_listview_view_to_cell(float columnwidth, float rowheight, float startx, float starty, float viewx, float viewy, int *column, int *row)
void UI_view2d_region_to_view(const struct View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
float UI_view2d_region_to_view_x(const struct View2D *v2d, float x)
void ANIM_anim_channels_select_set(bAnimContext *ac, eAnimChannels_SetFlag sel)
void ANIM_set_active_channel(bAnimContext *ac, void *data, eAnimCont_Types datatype, eAnimFilter_Flags filter, void *channel_data, eAnim_ChannelType channel_type)
void ANIM_animdata_freelist(ListBase *anim_data)
bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBase *anim_data, eAnimFilter_Flags filter_mode, void *data, eAnimCont_Types datatype)
DO_INLINE void filter(lfVector *V, fmatrix3x3 *S)
void(* MEM_freeN)(void *vmemh)
bool nlaop_poll_tweakmode_off(bContext *C)
static int nlaedit_clickselect_exec(bContext *C, wmOperator *op)
static void deselect_nla_strips(bAnimContext *ac, short test, short sel)
static void box_select_nla_strips(bAnimContext *ac, rcti rect, short mode, short selectmode)
@ DESELECT_STRIPS_CLEARACTIVE
static bool nlaedit_mouse_is_over_strip(bAnimContext *ac, const int mval[2])
void NLA_OT_select_box(wmOperatorType *ot)
static short selmodes_to_flagmodes(short sel)
void NLA_OT_click_select(wmOperatorType *ot)
static int nlaedit_box_select_exec(bContext *C, wmOperator *op)
static int nlaedit_deselectall_exec(bContext *C, wmOperator *op)
void NLA_OT_select_leftright(wmOperatorType *ot)
static int nlaedit_select_leftright_exec(bContext *C, wmOperator *op)
static int nlaedit_box_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static void nlaedit_select_leftright(bContext *C, bAnimContext *ac, short leftright, short select_mode)
static void nlaedit_strip_at_region_position(bAnimContext *ac, float region_x, float region_y, bAnimListElem **r_ale, NlaStrip **r_strip)
static int mouse_nla_strips(bContext *C, bAnimContext *ac, const int mval[2], short select_mode, const bool deselect_all, bool wait_to_deselect_others)
static const EnumPropertyItem prop_nlaedit_leftright_select_types[]
static int nlaedit_select_leftright_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void NLA_OT_select_all(wmOperatorType *ot)
int RNA_int_get(PointerRNA *ptr, const char *name)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
int RNA_enum_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
struct bAnimListElem * next
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
int(* modal)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
void(* cancel)(struct bContext *, struct wmOperator *)
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
int WM_operator_name_call(bContext *C, const char *opstring, short context, PointerRNA *properties)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
int WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
int WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void WM_operator_properties_border_to_rcti(struct wmOperator *op, rcti *rect)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
void WM_operator_properties_generic_select(wmOperatorType *ot)
void WM_operator_properties_select_all(wmOperatorType *ot)
int WM_generic_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
int WM_generic_select_modal(bContext *C, wmOperator *op, const wmEvent *event)