Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BKE_context.h"
#include "BKE_nla.h"
#include "BKE_screen.h"
#include "ED_anim_api.h"
#include "ED_keyframes_edit.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_view2d.h"
#include "nla_intern.h"
Go to the source code of this file.
Enumerations | |
enum | { DESELECT_STRIPS_NOTEST = 0 , DESELECT_STRIPS_TEST , DESELECT_STRIPS_CLEARACTIVE } |
enum | { NLA_BOXSEL_ALLSTRIPS = 0 , NLA_BOXSEL_FRAMERANGE , NLA_BOXSEL_CHANNELS } |
Variables | |
static const EnumPropertyItem | prop_nlaedit_leftright_select_types [] |
anonymous enum |
Enumerator | |
---|---|
DESELECT_STRIPS_NOTEST | |
DESELECT_STRIPS_TEST | |
DESELECT_STRIPS_CLEARACTIVE |
Definition at line 64 of file nla_select.c.
anonymous enum |
This operator currently works in one of three ways:
Enumerator | |
---|---|
NLA_BOXSEL_ALLSTRIPS | |
NLA_BOXSEL_FRAMERANGE | |
NLA_BOXSEL_CHANNELS |
Definition at line 205 of file nla_select.c.
|
static |
Definition at line 211 of file nla_select.c.
References ACHANNEL_SET_FLAG, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, BKE_nlastrip_within_bounds(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::next, NLA_BOXSEL_CHANNELS, NLA_BOXSEL_FRAMERANGE, NLACHANNEL_FIRST_TOP, NLACHANNEL_HEIGHT, NLACHANNEL_STEP, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NULL, bAnimContext::region, selmodes_to_flagmodes(), bAnimContext::sl, NlaTrack::strips, bAnimListElem::type, UI_view2d_region_to_view(), ARegion::v2d, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by nlaedit_box_select_exec().
|
static |
Definition at line 79 of file nla_select.c.
References ACHANNEL_SET_FLAG, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, DESELECT_STRIPS_CLEARACTIVE, DESELECT_STRIPS_TEST, filter(), ListBase::first, bAnimListElem::next, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NULL, SELECT_SUBTRACT, selmodes_to_flagmodes(), and NlaTrack::strips.
Referenced by mouse_nla_strips(), nlaedit_box_select_exec(), nlaedit_deselectall_exec(), and nlaedit_select_leftright().
|
static |
Definition at line 586 of file nla_select.c.
References ACHANNEL_SET_FLAG, ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), ANIM_set_active_channel(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, C, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, deselect_nla_strips(), DESELECT_STRIPS_CLEARACTIVE, filter(), NlaStrip::flag, NlaTrack::flag, Scene::flag, MEM_freeN, nlaedit_strip_at_region_position(), NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLATRACK_SELECTED, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, SCE_NLA_EDIT_ON, scene, bAnimContext::scene, SELECT_ADD, SELECT_REPLACE, SELECT_SUBTRACT, selmodes_to_flagmodes(), bAnimListElem::type, WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by nlaedit_clickselect_exec().
void NLA_OT_click_select | ( | wmOperatorType * | ot | ) |
Definition at line 697 of file nla_select.c.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, nlaedit_clickselect_exec(), 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 nla_operatortypes().
void NLA_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 176 of file nla_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, nlaedit_deselectall_exec(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by nla_operatortypes().
void NLA_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 388 of file nla_select.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, nlaedit_box_select_exec(), nlaedit_box_select_invoke(), nlaop_poll_tweakmode_off(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, 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 nla_operatortypes().
void NLA_OT_select_leftright | ( | wmOperatorType * | ot | ) |
Definition at line 557 of file nla_select.c.
References wmOperatorType::description, ED_operator_nla_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NLAEDIT_LRSEL_TEST, nlaedit_select_leftright_exec(), nlaedit_select_leftright_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_nlaedit_leftright_select_types, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by nla_operatortypes().
|
static |
Definition at line 339 of file nla_select.c.
References ANIM_animdata_get_context(), BLI_rcti_size_x(), BLI_rcti_size_y(), box_select_nla_strips(), C, deselect_nla_strips(), DESELECT_STRIPS_TEST, NA_SELECTED, NC_ANIMATION, ND_NLA, NLA_BOXSEL_ALLSTRIPS, NLA_BOXSEL_CHANNELS, NLA_BOXSEL_FRAMERANGE, NULL, 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 NLA_OT_select_box().
|
static |
Definition at line 325 of file nla_select.c.
References ANIM_animdata_get_context(), C, wmEvent::mval, nlaedit_mouse_is_over_strip(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), and WM_gesture_box_invoke().
Referenced by NLA_OT_select_box().
|
static |
Definition at line 669 of file nla_select.c.
References ANIM_animdata_get_context(), C, mouse_nla_strips(), NA_SELECTED, NC_ANIMATION, ND_NLA, NULL, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), RNA_int_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by NLA_OT_click_select().
|
static |
Definition at line 141 of file nla_select.c.
References ANIM_animdata_get_context(), BLI_assert, C, deselect_nla_strips(), DESELECT_STRIPS_NOTEST, DESELECT_STRIPS_TEST, NA_SELECTED, NC_ANIMATION, ND_NLA, NULL, 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 NLA_OT_select_all().
|
static |
Definition at line 311 of file nla_select.c.
References BLI_assert, MEM_freeN, nlaedit_strip_at_region_position(), and NULL.
Referenced by nlaedit_box_select_invoke().
|
static |
Definition at line 430 of file nla_select.c.
References ACHANNEL_SET_FLAG, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, BKE_nlastrip_within_bounds(), C, RenderData::cfra, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, deselect_nla_strips(), filter(), ListBase::first, Scene::flag, float(), MAXFRAMEF, MINAFRAMEF, bAnimListElem::next, NLAEDIT_LRSEL_LEFT, NLASTRIP_FLAG_SELECT, NULL, Scene::r, SCE_NLA_EDIT_ON, scene, bAnimContext::scene, SELECT_ADD, SELECT_REPLACE, SELECT_SUBTRACT, selmodes_to_flagmodes(), NlaTrack::strips, WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by nlaedit_select_leftright_exec().
|
static |
Definition at line 492 of file nla_select.c.
References ANIM_animdata_get_context(), C, NA_SELECTED, NC_ANIMATION, ND_ANIMCHAN, ND_KEYFRAME, NLAEDIT_LRSEL_TEST, nlaedit_select_leftright(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), SELECT_INVERT, SELECT_REPLACE, and WM_event_add_notifier().
Referenced by NLA_OT_select_leftright(), and nlaedit_select_leftright_invoke().
|
static |
Definition at line 526 of file nla_select.c.
References ANIM_animdata_get_context(), C, wmEvent::mval, NLAEDIT_LRSEL_LEFT, NLAEDIT_LRSEL_RIGHT, NLAEDIT_LRSEL_TEST, nlaedit_select_leftright_exec(), OPERATOR_CANCELLED, wmOperator::ptr, r, bAnimContext::region, RNA_enum_get(), RNA_enum_set(), scene, bAnimContext::scene, UI_view2d_region_to_view_x(), ARegion::v2d, and x.
Referenced by NLA_OT_select_leftright().
|
static |
Definition at line 266 of file nla_select.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, ANIMTYPE_NLATRACK, BKE_nlastrip_within_bounds(), BLI_findlink(), BLI_remlink(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), LISTBASE_FOREACH, NLACHANNEL_FIRST_TOP, NLACHANNEL_STEP, NULL, bAnimContext::region, bAnimContext::sl, NlaTrack::strips, bAnimListElem::type, UI_view2d_listview_view_to_cell(), UI_view2d_region_to_view(), UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by mouse_nla_strips(), and nlaedit_mouse_is_over_strip().
|
static |
Definition at line 41 of file nla_select.c.
References ACHANNEL_SETFLAG_ADD, ACHANNEL_SETFLAG_CLEAR, ACHANNEL_SETFLAG_INVERT, SELECT_ADD, SELECT_INVERT, and SELECT_SUBTRACT.
Referenced by box_select_nla_strips(), deselect_nla_strips(), mouse_nla_strips(), and nlaedit_select_leftright().
|
static |
Definition at line 421 of file nla_select.c.
Referenced by NLA_OT_select_leftright().