102 int mouse_channel = int(mouse_co[1]);
103 for (
Strip *strip : visible) {
104 if (strip->channel != mouse_channel) {
179 for (
Strip &strip : *seqbase) {
180 if (channel == strip.channel) {
183 if (frame > strip.left_handle()) {
189 if (frame < strip.left_handle()) {
209 const int frame_ignore)
211 for (
Strip &strip : *seqbase) {
213 const int frame = frame_ranges[strip.channel];
214 if (frame == frame_ignore) {
219 if (frame > strip.left_handle()) {
225 if (frame < strip.left_handle()) {
243 const Strip *strip_source,
247 int source_left = strip_source->left_handle();
248 int source_right = strip_source->right_handle(scene);
250 for (
Strip &strip_dest : *seqbase) {
251 if (strip_source->channel != strip_dest.channel) {
252 const bool left_match = (strip_dest.left_handle() == source_left);
253 const bool right_match = (strip_dest.right_handle(scene) == source_right);
255 if (left_match && right_match) {
286 bounds.xmin = strip->left_handle();
287 bounds.xmax = strip->right_handle(scene);
305 for (
Strip &strip : *
ed->current_strips()) {
306 if ((&strip != test) && (test->channel == strip.channel) &&
307 ((sel == -1) || (sel && (strip.flag &
SEQ_SELECT)) ||
308 (sel == 0 && (strip.flag &
SEQ_SELECT) == 0)))
312 if (test->left_handle() == strip.right_handle(scene)) {
317 if (test->right_handle(scene) == strip.left_handle()) {
336 strip_image_quad[3]);
368 for (
Strip *strip : strips) {
377 for (
Strip *strip : strips) {
379 strips.remove(strip);
385 for (
Strip *strip : strips) {
407 ot->
name =
"(De)select All";
408 ot->
idname =
"SEQUENCER_OT_select_all";
441 if (((
x < scene->r.cfra) && (strip_iter.right_handle(scene) <= scene->
r.
cfra)) ||
442 ((
x >= scene->
r.
cfra) && (strip_iter.left_handle() >= scene->
r.
cfra)))
547 if (slink_a->
strip->channel < slink_b->
strip->channel) {
550 if (slink_a->
strip->channel > slink_b->
strip->channel) {
577 const bContext *
C,
const int mval[2],
const bool toggle,
const bool extend,
const bool center)
586 float mouseco_view[2];
595 const float center_dist_sq_max =
square_f(75.0f *
U.pixelsize);
596 const float center_scale_px[2] = {
606 ListBaseT<SeqSelect_Link> strips_ordered = {
nullptr};
607 for (
Strip *strip : strips) {
609 float center_dist_sq_test = 0.0f;
616 isect = center_dist_sq_test <= center_dist_sq_max;
619 if (use_cycle && (strip == strip_active) && (strip_active->flag &
SEQ_SELECT)) {
620 center_dist_sq_test =
square_f(
sqrtf(center_dist_sq_test) + (3.0f *
U.pixelsize));
630 slink->
strip = strip;
634 if (strip == strip_active) {
635 slink_active = slink;
644 Strip *strip_select =
nullptr;
645 if (slink_select !=
nullptr) {
647 if ((center ==
false) && slink_active && (strip_active->flag &
SEQ_SELECT)) {
649 if (slink_active->
next) {
650 slink_select = slink_active->
next;
656 slink_select = slink_active;
659 strip_select = slink_select->
strip;
662 strips_ordered.free_no_destruct();
680 if (selection.
strip1 ==
nullptr) {
684 const bool strip1_already_selected = ((selection.
strip1->flag &
SEQ_SELECT) != 0);
685 if (selection.
strip2 ==
nullptr) {
693 const bool strip2_already_selected = ((selection.
strip2->flag &
SEQ_SELECT) != 0);
697 const bool both_handles_selected = strip1_handle == selection.
handle && strip2_handle != 0 &&
698 strip1_handle != strip2_handle;
699 return strip1_already_selected && strip2_already_selected && both_handles_selected;
710 for (
Strip *source : sources) {
712 for (
Strip *connection : connections) {
735 for (
Strip *test_strip : test) {
741 if (test_strip == source) {
744 copy_to.
remove(test_strip);
752 if (test_strip == source) {
755 copy_to.
remove(test_strip);
759 for (
Strip *strip : copy_to) {
773 const bool is_active = (
ed->act_strip == strip);
796 if (!((strip->flag &
SEQ_SELECT) && is_active)) {
813 else if (action == 0) {
829 if (selection.
strip2 !=
nullptr) {
834 ed, selection.
strip2, strip2_handle_clicked, extend, deselect, toggle);
850 const float strip_len = strip->right_handle(scene) - strip->left_handle();
851 return min_ff(15.0f * pixelx *
U.pixelsize, strip_len / 4);
856 if (strip->is_effect_with_inputs()) {
874 rctf *r_right_handle)
877 *r_left_handle = *r_body;
878 *r_right_handle = *r_body;
881 r_left_handle->
xmax = r_body->
xmin + handsize;
882 r_right_handle->
xmin = r_body->
xmax - handsize;
890 rctf body, left, right;
900 float timeline_frame)
902 rctf body, left, right;
923 for (
Strip &strip : *
ed->current_strips()) {
924 if (strip.channel !=
int(mouse_co[1])) {
927 if (strip.left_handle() > v2d->
cur.
xmax) {
930 if (strip.right_handle(scene) < v2d->
cur.
xmin) {
940 std::ranges::sort(strips, [&](
const Strip *strip1,
const Strip *strip2) {
950 const int s1_left = strip1->left_handle();
951 const int s1_right = strip1->right_handle(scene);
952 const int s2_left = strip2->left_handle();
953 const int s2_right = strip2->right_handle(scene);
955 return s1_right == s2_left || s1_left == s2_right;
967 rctf body, left, right;
985 scene, strips[0], v2d, mouse_co);
994 scene, strips[1], v2d, mouse_co);
1010 if (mouse_co[1] > time_scrub_y) {
1016 if (strips.
size() == 0) {
1020 selection.
strip1 = strips[0];
1023 if (strips.
size() == 2 &&
1026 selection.
strip2 = strips[1];
1039 if (
ed ==
nullptr) {
1059 Strip *strip_key_owner =
nullptr;
1067 if (key ==
nullptr) {
1078 if (key !=
nullptr) {
1079 if (!was_retiming) {
1087 for (
Strip *connection : connections) {
1122 if (!extend && !toggle) {
1133 if (!extend && !toggle) {
1143 if (!extend && !toggle) {
1152 const bool wait_to_deselect_others =
RNA_boolean_get(op->
ptr,
"wait_to_deselect_others");
1166 if (already_selected && wait_to_deselect_others && !toggle && !ignore_connections) {
1178 copy_handles_to_sel &= (selection.
strip2 ==
nullptr);
1180 if (copy_handles_to_sel) {
1183 copy_to.
remove_if([](
Strip *strip) {
return strip->is_effect_with_inputs(); });
1186 bool changed =
false;
1191 (selection.
strip1 && (extend ==
false && deselect ==
false && toggle ==
false)))
1206 if (selection.
strip2 !=
nullptr) {
1212 ed, selection.
strip2, strip2_handle_clicked, extend, deselect, toggle);
1215 if (!ignore_connections) {
1216 if (copy_handles_to_sel) {
1261 ot->
name =
"Select";
1262 ot->
idname =
"SEQUENCER_OT_select";
1263 ot->
description =
"Select a strip (last selected becomes the \"active strip\")";
1285 "Use the object center when selecting, in edit mode used to extend object selection");
1292 "Select handles next to the active strip");
1299 "Select other strips or handles at the same time, or all retiming keys "
1300 "after the current in retiming mode");
1308 "Select all strips on same side of the current frame as the mouse cursor");
1312 "ignore_connections",
1314 "Ignore Connections",
1315 "Select strips individually whether or not they are connected");
1332 if (
ed ==
nullptr) {
1344 Strip *strip_key_test =
nullptr;
1346 if (key !=
nullptr) {
1360 if (selection.
strip2 !=
nullptr) {
1369 if (!ignore_connections) {
1399 ot->
name =
"Select Handle";
1400 ot->
idname =
"SEQUENCER_OT_select_handle";
1415 "ignore_connections",
1417 "Ignore Connections",
1418 "Select strips individually whether or not they are connected");
1433 if (
ed ==
nullptr) {
1437 bool changed =
false;
1464 if (
ed ==
nullptr) {
1469 const int neighbor_selection_filter = select_more ? 0 : 1;
1473 if ((strip.flag &
SEQ_SELECT) != selection_filter) {
1479 neighbors.
add(neighbor);
1483 neighbors.
add(neighbor);
1487 bool changed =
false;
1488 for (
Strip *neighbor : neighbors) {
1518 ot->
name =
"Select More";
1519 ot->
idname =
"SEQUENCER_OT_select_more";
1520 ot->
description =
"Select more strips adjacent to the current selection";
1554 ot->
name =
"Select Less";
1555 ot->
idname =
"SEQUENCER_OT_select_less";
1556 ot->
description =
"Shrink the current selection of adjacent selected strips";
1586 if (!mouse_selection.
strip1) {
1596 bool selected =
true;
1611 ot->
name =
"Select Pick Linked";
1612 ot->
idname =
"SEQUENCER_OT_select_linked_pick";
1613 ot->
description =
"Select a chain of linked strips nearest to the mouse pointer";
1654 ot->
name =
"Select Linked";
1655 ot->
idname =
"SEQUENCER_OT_select_linked";
1656 ot->
description =
"Select all strips adjacent to the current selection";
1688 {0,
nullptr, 0,
nullptr,
nullptr},
1696 for (
Strip &strip : *
ed->current_strips()) {
1743 for (
Strip &strip : *
ed->current_strips()) {
1761 ot->
name =
"Select Handles";
1762 ot->
idname =
"SEQUENCER_OT_select_handles";
1763 ot->
description =
"Select gizmo handles on the sides of the selected strip";
1778 "The side of the handle that is selected");
1794 if (
ed ==
nullptr) {
1797 if (extend ==
false) {
1800 const int timeline_frame = scene->
r.
cfra;
1805 test = (timeline_frame >= strip.right_handle(scene));
1808 test = (timeline_frame <= strip.left_handle());
1811 test = strip.intersects_frame(scene, timeline_frame);
1830 {-1,
"LEFT", 0,
"Left",
"Select to the left of the current frame"},
1831 {1,
"RIGHT", 0,
"Right",
"Select to the right of the current frame"},
1832 {2,
"CURRENT", 0,
"Current Frame",
"Select intersecting with the current frame"},
1833 {0,
nullptr, 0,
nullptr,
nullptr},
1837 ot->
name =
"Select Side of Frame";
1838 ot->
idname =
"SEQUENCER_OT_select_side_of_frame";
1839 ot->
description =
"Select strips relative to the current frame";
1854 sequencer_select_left_right_types,
1857 "Whether to select all strips to the left or right of the current "
1858 "frame, or just those intersecting with it");
1875 bool selected =
false;
1877 std::fill_n(frame_ranges,
ARRAY_SIZE(frame_ranges), frame_init);
1879 for (
Strip &strip : *
ed->current_strips()) {
1883 int *frame_limit_p = &frame_ranges[strip.channel];
1887 *frame_limit_p =
max_ii(*frame_limit_p, strip.left_handle());
1890 *frame_limit_p =
min_ii(*frame_limit_p, strip.left_handle());
1895 if (selected ==
false) {
1911 ot->
name =
"Select Side";
1912 ot->
idname =
"SEQUENCER_OT_select_side";
1913 ot->
description =
"Select strips on the nominated side of the selected strips";
1928 "The side to which the selection is applied");
1942 float rect_quad[4][2] = {{rect->
xmax, rect->
ymax},
1952 strip_image_quad[0], rect_quad[0], rect_quad[1], rect_quad[2], rect_quad[3]) ||
1954 strip_image_quad[1], rect_quad[0], rect_quad[1], rect_quad[2], rect_quad[3]) ||
1956 strip_image_quad[2], rect_quad[0], rect_quad[1], rect_quad[2], rect_quad[3]) ||
1958 strip_image_quad[3], rect_quad[0], rect_quad[1], rect_quad[2], rect_quad[3]);
1973 for (
Strip *strip : strips) {
1994 if (
ed ==
nullptr) {
2006 bool changed =
false;
2026 for (
Strip &strip : *
ed->current_strips()) {
2034 if (rectf.
xmax > (strip.right_handle(scene) - handsize)) {
2049 if (rectf.
xmin < (strip.left_handle() + handsize)) {
2073 if (!ignore_connections) {
2076 selection.
strip1 = &strip;
2113 if (selection.
strip1 !=
nullptr) {
2126 gesture->edge_pan_data->limit.ymin = view_bounds.
ymin;
2127 gesture->edge_pan_data->limit.ymax = view_bounds.
ymax;
2138 ot->
name =
"Box Select";
2139 ot->
idname =
"SEQUENCER_OT_select_box";
2140 ot->
description =
"Select strips using box selection";
2162 "Make box select pass through to sequence slide when the cursor is hovering on a strip");
2166 ot->
srna,
"include_handles",
false,
"Select Handles",
"Select the strips and their handles");
2170 "ignore_connections",
2172 "Ignore Connections",
2173 "Select strips individually whether or not they are connected");
2182 const rcti *clip_rect,
2184 const float co_test[2])
2188 ®ion->
v2d, co_test[0], co_test[1], &co_screen[0], &co_screen[1]) &&
2229 bool changed =
false;
2232 for (
Strip &strip :
ed->seqbase) {
2256 bool changed =
false;
2266 for (
Strip *strip : strips) {
2290 if (
ed ==
nullptr) {
2300 bool changed =
false;
2302 if (use_pre_deselect) {
2323 ot->
name =
"Lasso Select";
2324 ot->
description =
"Select strips using lasso selection";
2325 ot->
idname =
"SEQUENCER_OT_select_lasso";
2352 float dx = origin.x -
float(mval[0]);
2353 float dy = origin.y -
float(mval[1]);
2354 float dist_sq =
sqrt(dx * dx + dy * dy);
2356 return dist_sq <= *radius;
2372 for (
Strip *strip : strips) {
2389 const float x_radius,
2390 const float y_radius)
2394 if (xy[0] >= rect->
xmin && xy[0] <= rect->
xmax) {
2398 dx = (xy[0] < rect->
xmin) ? (rect->
xmin - xy[0]) : (xy[0] - rect->
xmax);
2401 if (xy[1] >= rect->
ymin && xy[1] <= rect->
ymax) {
2405 dy = (xy[1] < rect->
ymin) ? (rect->
ymin - xy[1]) : (xy[1] - rect->
ymax);
2408 return ((dx * dx) / (x_radius * x_radius) + (dy * dy) / (y_radius * y_radius) <= 1.0f);
2429 if (
ed ==
nullptr) {
2445 bool changed =
false;
2446 for (
Strip &strip : *
ed->current_strips()) {
2460 if (!ignore_connections) {
2463 selection.
strip1 = &strip;
2478 ot->
name =
"Circle Select";
2479 ot->
description =
"Select strips using circle selection";
2480 ot->
idname =
"SEQUENCER_OT_select_circle";
2498 "ignore_connections",
2500 "Ignore Connections",
2501 "Select strips individually whether or not they are connected");
2524 "Select all strips of the same specific type as the active strip"},
2529 "Select strips referencing the same source data as the active strip, with matching file "
2530 "directory, scene, clip, or mask"},
2532 "STRIPS_UNDER_EFFECT",
2534 "Strips Under Effect",
2535 "Select strips that are inputs to the same effect type as the active strip"},
2540 "Select strips on any channel whose time range overlaps the active strip"},
2545 "Select strips on channels below the active strip's channel whose time range overlaps, plus "
2546 "their full effect chains"},
2547 {0,
nullptr, 0,
nullptr,
nullptr},
2561 scene, channels, seqbase, scene->
r.
cfra, 0) :
2574 std::optional<int> channel)
2576 bool changed =
false;
2578 for (
Strip *strip : strips) {
2579 if ((!channel || strip->channel == *channel) && strip->type == act_strip->
type) {
2590 std::optional<int> channel)
2592 bool changed =
false;
2593 const char *dirpath = act_strip->
data ? act_strip->
data->dirpath :
nullptr;
2599 auto select_matching = [&](
auto condition) {
2600 for (
Strip *strip : strips) {
2601 if ((!channel || strip->channel == *channel) &&
condition(strip)) {
2609 select_matching([&](
Strip *strip) {
2614 Scene *scene = act_strip->scene;
2634 std::optional<int> channel)
2636 bool changed =
false;
2639 for (
const Strip *strip : strips) {
2640 if ((!channel || strip->channel == *channel) && strip->is_effect() &&
2643 effects.
add(strip->type);
2647 for (
Strip *strip : strips) {
2648 if ((!channel || strip->channel == *channel) && effects.
contains(strip->type)) {
2649 if (strip->input1) {
2652 if (strip->input2) {
2666 bool changed =
false;
2668 for (
Strip *strip : strips) {
2669 if (strip->left_handle() < act_strip->right_handle(scene) &&
2670 strip->right_handle(scene) > act_strip->left_handle())
2687 for (
Strip *strip : strips) {
2688 if (strip->channel > act_strip->channel) {
2691 if (act_strip->right_handle(scene) <= strip->left_handle() ||
2692 act_strip->left_handle() >= strip->right_handle(scene))
2696 strips_to_select.
add(strip);
2701 const bool changed = !strips_to_select.
is_empty();
2703 for (
Strip *strip : strips_to_select) {
2720 if (act_strip ==
nullptr || (is_preview && !strips.
contains(act_strip))) {
2726 bool changed =
false;
2733 const std::optional<int> active_channel = (!is_preview &&
2735 act_strip !=
nullptr) ?
2736 std::optional<int>(act_strip->channel) :
2772 ot->
name =
"Select Grouped";
2773 ot->
idname =
"SEQUENCER_OT_select_grouped";
2774 ot->
description =
"Select all strips grouped by various properties";
2790 "Extend selection instead of deselecting everything first");
2792 "use_active_channel",
2795 "If selecting from the timeline, only consider strips on the same channel as "
2796 "the active strip");
2831 "All strips that can produce an image in the preview, which includes everything but sound "
2833 {0,
nullptr, 0,
nullptr,
nullptr},
2845 bool changed =
false;
2853 const std::optional<int> active_channel = (!is_preview &&
2855 act_strip !=
nullptr) ?
2856 std::optional<int>(act_strip->channel) :
2859 for (
Strip *strip : strips) {
2860 if (active_channel && strip->channel != *active_channel) {
2872 match = strip->type == type;
2890 ot->
name =
"Select by Type";
2891 ot->
description =
"Select all strips that are of a type";
2892 ot->
idname =
"SEQUENCER_OT_select_by_type";
2908 "Extend selection instead of deselecting everything first");
2910 "use_active_channel",
2913 "If selecting from the timeline, only consider strips on the same channel as "
2914 "the active strip");
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define STRIP_HAS_PATH(_strip)
#define SEL_OP_USE_PRE_DESELECT(sel_op)
Read Blender memory allocation and freeing.
#define RNA_ENUM_ITEM_SEPR
#define UI_TIME_SCRUB_MARGIN_Y
#define SET_FLAG_FROM_TEST(value, test, flag)
bool contains(const Key &key) const
bool remove(const Key &key)
bool contains(const Key &key) const
int64_t remove_if(Predicate &&predicate)
void append(const T &value)
const T & data(const Action &owning_action) const
MouseCoords(const View2D *v2d, int x, int y)
VectorSet< Strip * > selected_strips_from_context(bContext *C)
Strip * find_neighboring_strip(const Scene *scene, const Strip *test, const seq::Side lr, int sel)
bool sequencer_edit_poll(bContext *C)
static wmOperatorStatus sequencer_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool select_grouped_strips_under_effect(VectorSet< Strip * > strips, Strip *act_strip, std::optional< int > channel)
void SEQUENCER_OT_select_by_type(wmOperatorType *ot)
static void sequencer_copy_handles_to_selected_strips(const Scene *scene, const StripSelection &selection, VectorSet< Strip * > copy_to)
static void sequencer_select_linked_handle(const bContext *C, Strip *strip, const eStripHandle handle_clicked)
static Strip * strip_select_from_preview(const bContext *C, const int mval[2], const bool toggle, const bool extend, const bool center)
static bool do_lasso_select_is_origin_inside(const ARegion *region, const rcti *clip_rect, const Span< int2 > mcoords, const float co_test[2])
static void sequencer_select_side_of_frame(const bContext *C, const View2D *v2d, const int mval[2], Scene *scene)
bool retiming_overlay_enabled(const SpaceSeq *sseq)
static bool element_already_selected(const StripSelection &selection)
static wmOperatorStatus sequencer_select_side_of_frame_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_select_linked_pick(wmOperatorType *ot)
static std::string sequencer_select_get_name(wmOperatorType *ot, PointerRNA *ptr)
static wmOperatorStatus sequencer_select_more_exec(bContext *C, wmOperator *)
static float inner_clickable_handle_size_get(const Scene *scene, const Strip *strip, const View2D *v2d)
static bool select_more_less_impl(Scene *scene, bool select_more)
rctf strip_bounds_get(const Scene *scene, const Strip *strip)
void SEQUENCER_OT_select_all(wmOperatorType *ot)
static bool check_circle_intersection_in_timeline(const rctf *rect, const float xy[2], const float x_radius, const float y_radius)
StripSelection pick_strip_and_handle(const struct Scene *scene, const View2D *v2d, float mouse_co[2])
static void sequencer_select_connected_strips(const StripSelection &selection)
void SEQUENCER_OT_select_box(wmOperatorType *ot)
static void select_surrounding_handles(Scene *scene, Strip *test)
void SEQUENCER_OT_select_circle(wmOperatorType *ot)
static bool strips_are_adjacent(const Scene *scene, const Strip *strip1, const Strip *strip2)
static void seq_circle_select_strip_from_preview(bContext *C, int radius, const float2 mval, const eSelectOp mode)
bool handle_is_selected(const Strip *strip, eStripHandle handle)
void SEQUENCER_OT_select_side_of_frame(wmOperatorType *ot)
void select_strip_single(Scene *scene, Strip *strip, bool deselect_all)
void SEQUENCER_OT_select_grouped(wmOperatorType *ot)
static void seq_box_select_strip_from_preview(const bContext *C, const rctf *rect, const eSelectOp mode)
SeqRetimingKey * try_to_realize_fake_keys(const Scene *scene, const View2D *v2d, Strip *strip, const int mval[2])
static int strip_sort_for_depth_select(const void *a, const void *b)
static wmOperatorStatus sequencer_select_by_type_exec(bContext *C, wmOperator *op)
static bool is_mouse_over_both_handles_of_adjacent_strips(const Scene *scene, Vector< Strip * > strips, const View2D *v2d, float mouse_co[2])
wmOperatorStatus sequencer_select_exec(bContext *C, wmOperator *op)
static bool do_lasso_select_timeline(bContext *C, const Span< int2 > mcoords, ARegion *region, const eSelectOp sel_op)
void SEQUENCER_OT_select(wmOperatorType *ot)
static bool strip_uses_data(const Strip *strip)
void SEQUENCER_OT_select_side(wmOperatorType *ot)
static wmOperatorStatus sequencer_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void SEQUENCER_OT_select_less(wmOperatorType *ot)
static void select_active_side(ListBaseT< Strip > *seqbase, seq::Side sel_side, int channel, int frame)
static void select_linked_time_strip(const Scene *scene, const Strip *strip_source, const eStripHandle handle_clicked)
void SEQUENCER_OT_select_more(wmOperatorType *ot)
static bool select_grouped_data(VectorSet< Strip * > strips, Strip *act_strip, std::optional< int > channel)
static void strip_clickable_areas_get(const Scene *scene, const Strip *strip, const View2D *v2d, rctf *r_body, rctf *r_left_handle, rctf *r_right_handle)
static wmOperatorStatus sequencer_select_linked_exec(bContext *C, wmOperator *)
wmOperatorStatus sequencer_retiming_box_select_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_select_handles(wmOperatorType *ot)
static bool strip_circle_select_radius_image_isect(const Scene *scene, const Strip *strip, const int *radius, const float2 mval)
rctf sequencer_clamped_view_bounds_get(const bContext *C, ARegion *region)
static wmOperatorStatus vse_lasso_select_exec(bContext *C, wmOperator *op)
static VectorSet< Strip * > strips_from_context(const Scene *scene, bool is_preview)
void SEQUENCER_OT_select_lasso(wmOperatorType *ot)
static wmOperatorStatus sequencer_select_handle_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static float strip_to_frame_distance(const Scene *scene, const View2D *v2d, const Strip *strip, float timeline_frame)
static Vector< Strip * > padded_strips_under_mouse_get(const Scene *scene, const View2D *v2d, float mouse_co[2])
static int strip_sort_for_center_select(const void *a, const void *b)
static const EnumPropertyItem prop_select_handles_side_types[]
static wmOperatorStatus vse_circle_select_exec(bContext *C, wmOperator *op)
Strip * strip_under_mouse_get(const Scene *scene, const View2D *v2d, const int mval[2])
void sequencer_select_do_updates(const bContext *C, Scene *scene)
static eStripHandle strip_handle_under_cursor_get(const Scene *scene, const Strip *strip, const View2D *v2d, float mouse_co[2])
bool sequencer_view_preview_only_poll(const bContext *C)
void SEQUENCER_OT_select_handle(wmOperatorType *ot)
static bool rcti_in_lasso(const rcti rect, const Span< int2 > mcoords)
static const EnumPropertyItem sequencer_prop_select_grouped_types[]
static void select_active_side_range(ListBaseT< Strip > *seqbase, const seq::Side sel_side, const int frame_ranges[seq::MAX_CHANNELS], const int frame_ignore)
bool deselect_all_strips(const Scene *scene)
static void select_linked_time(const Scene *scene, const StripSelection &selection, const bool extend, const bool deselect, const bool toggle)
bool sequencer_view_has_preview_poll(bContext *C)
wmOperatorStatus sequencer_retiming_select_all_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_select_side_exec(bContext *C, wmOperator *op)
SeqRetimingKey * retiming_mouseover_key_get(const Scene *scene, const View2D *v2d, const int mval[2], Strip **r_strip)
@ SEQ_SELECT_HANDLES_SIDE_RIGHT
@ SEQ_SELECT_HANDLES_SIDE_LEFT_NEIGHBOR
@ SEQ_SELECT_HANDLES_SIDE_BOTH_NEIGHBORS
@ SEQ_SELECT_HANDLES_SIDE_RIGHT_NEIGHBOR
@ SEQ_SELECT_HANDLES_SIDE_BOTH
@ SEQ_SELECT_HANDLES_SIDE_LEFT
static const EnumPropertyItem sequencer_prop_select_by_type_items[]
@ SEQ_SELECT_GROUP_STRIPS_UNDER_EFFECT
@ SEQ_SELECT_GROUP_VISUAL_OVERLAP
@ SEQ_SELECT_GROUP_TIME_OVERLAP
static wmOperatorStatus sequencer_select_handles_exec(bContext *C, wmOperator *op)
static rctf strip_clickable_area_get(const Scene *scene, const View2D *v2d, const Strip *strip)
static bool select_grouped_time_overlap(const Scene *scene, VectorSet< Strip * > strips, Strip *act_strip)
static wmOperatorStatus sequencer_select_handle_exec(bContext *C, wmOperator *op)
static bool select_grouped_visual_overlap(const Scene *scene, VectorSet< Strip * > strips, Strip *act_strip)
void SEQUENCER_OT_select_linked(wmOperatorType *ot)
bool can_select_handle(const Scene *scene, const Strip *strip)
static wmOperatorStatus sequencer_select_grouped_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_de_select_all_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_select_less_exec(bContext *C, wmOperator *)
bool strip_point_image_isect(const Scene *scene, const Strip *strip, float point_view[2])
static bool select_grouped_type(VectorSet< Strip * > strips, Strip *act_strip, std::optional< int > channel)
const EnumPropertyItem prop_split_side_types[]
static bool select_linked_internal(Scene *scene)
static wmOperatorStatus sequencer_box_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static void sequencer_select_set_active(Scene *scene, Strip *strip)
static void sequencer_select_strip_impl(const Editing *ed, Strip *strip, const eStripHandle handle_clicked, const bool extend, const bool deselect, const bool toggle)
VectorSet< Strip * > all_strips_from_context(bContext *C)
Vector< Strip * > sequencer_visible_strips_get(const bContext *C)
static wmOperatorStatus sequencer_box_select_exec(bContext *C, wmOperator *op)
static bool strip_box_select_rect_image_isect(const Scene *scene, const Strip *strip, const rctf *rect)
wmOperatorStatus sequencer_retiming_key_select_exec(bContext *C, wmOperator *op, SeqRetimingKey *key, const Strip *key_owner)
static bool do_lasso_select_preview(bContext *C, Editing *ed, const Span< int2 > mcoords, const eSelectOp sel_op)
void realize_fake_keys(const Scene *scene, Strip *strip)
VectorSet< Strip * > query_selected_strips(ListBaseT< Strip > *seqbase)
ListBaseT< Strip > * active_seqbase_get(const Editing *ed)
Array< float2 > image_transform_quad_get(const Scene *scene, const Strip *strip)
Editing * editing_get(const Scene *scene)
int retiming_key_frame_get(const Scene *scene, const Strip *strip, const SeqRetimingKey *key)
void expand_strips(Editing *ed, VectorSet< Strip * > &strips, const StripRelation include)
VectorSet< Strip * > query_all_strips(ListBaseT< Strip > *seqbase)
Strip * select_active_get(const Scene *scene)
constexpr int MAX_CHANNELS
int right_fake_key_frame_get(const Scene *scene, const Strip *strip)
bool is_strip_connected(const Strip *strip)
float2 image_transform_origin_preview_offset_get(const Scene *scene, const Strip *strip)
bool retiming_selection_clear(const Editing *ed)
void select_active_set(Scene *scene, Strip *strip)
bool retiming_show_keys(const Strip *strip)
int left_fake_key_frame_get(const Scene *scene, const Strip *strip)
SeqRetimingKey * retiming_key_get_by_frame(const Scene *scene, const Strip *strip, const int frame)
VectorSet< Strip * > connected_strips_get(const Strip *strip)
bool relation_is_effect_of_strip(const Strip *effect, const Strip *input)
bool transform_is_locked(const ListBaseT< SeqTimelineChannel > *channels, const Strip *strip)
bool retiming_keys_are_selected(const Scene *scene)
ListBaseT< SeqTimelineChannel > * channels_displayed_get(const Editing *ed)
VectorSet< Strip * > query_rendered_strips(const Scene *scene, ListBaseT< SeqTimelineChannel > *channels, ListBaseT< Strip > *seqbase, const int timeline_frame, const int displayed_channel)
float view2d_scale_get_y(const View2D *v2d)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
bool view2d_view_to_region_clip(const View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL()
float view2d_region_to_view_x(const View2D *v2d, float x)
float view2d_pixel_size_get_x(const View2D *v2d)
float view2d_scale_get_x(const View2D *v2d)
void view2d_region_to_view_rctf(const View2D *v2d, const rctf *rect_src, rctf *rect_dst) ATTR_NONNULL()
View2D * view2d_fromcontext(const bContext *C)
MINLINE float min_ff(float a, float b)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
std::string ED_select_circle_get_name(wmOperatorType *ot, PointerRNA *ptr)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
void WM_operator_properties_gesture_circle(wmOperatorType *ot)
int RNA_enum_get(PointerRNA *ptr, const char *name)
Scene * CTX_data_sequencer_scene(const bContext *C)
bool BLI_rctf_isect_pt_v(const struct rctf *rect, const float xy[2])
void ED_outliner_select_sync_from_sequence_tag(const bContext *C)
wmOperatorStatus WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus WM_operator_flag_only_pass_through_on_press(wmOperatorStatus retval, const wmEvent *event)
void WM_gesture_lasso_cancel(bContext *C, wmOperator *op)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
int RNA_int_get(PointerRNA *ptr, const char *name)
MINLINE int max_ii(int a, int b)
wmOperatorStatus WM_gesture_lasso_modal(bContext *C, wmOperator *op, const wmEvent *event)
bool BLI_lasso_is_point_inside(Span< int2 > mcoords, int sx, int sy, int error_value)
wmOperatorStatus WM_generic_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void WM_operator_properties_select_all(wmOperatorType *ot)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
MINLINE void mul_v2_v2(float r[2], const float a[2])
void WM_operator_properties_border_to_rctf(wmOperator *op, rctf *r_rect)
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void BKE_report(ReportList *reports, eReportType type, const char *message)
wmOperatorStatus WM_gesture_circle_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void WM_operator_properties_mouse_select(wmOperatorType *ot)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
void WM_operator_properties_gesture_box(wmOperatorType *ot)
int isect_point_quad_v2(const float p[2], const float v1[2], const float v2[2], const float v3[2], const float v4[2])
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_generic_select_modal(bContext *C, wmOperator *op, const wmEvent *event)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_event_drag_start_mval(const wmEvent *event, const ARegion *region, int r_mval[2])
void BLI_rctf_union(struct rctf *rct_a, const struct rctf *rct_b)
void void BLI_listbase_sort(ListBase *listbase, int(*cmp)(const void *, const void *)) ATTR_NONNULL(1
MINLINE float len_squared_v2(const float v[2]) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
float BLI_rctf_length_x(const rctf *rect, float x)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
wmOperatorStatus WM_gesture_lasso_invoke(bContext *C, wmOperator *op, const wmEvent *event)
bool BLI_rctf_isect(const struct rctf *src1, const struct rctf *src2, struct rctf *dest)
Array< int2 > WM_gesture_lasso_path_to_array(bContext *, wmOperator *op)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
MINLINE float square_f(float a)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
bool BLI_rcti_isect_pt_v(const struct rcti *rect, const int xy[2])
bool WM_cursor_test_motion_and_update(const int mval[2])
MINLINE void sub_v2_v2(float r[2], const float a[2])
@ OPTYPE_DEPENDS_ON_CURSOR
bool ED_operator_sequencer_active(bContext *C)
bool WM_gesture_is_modal_first(const wmGesture *gesture)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
bool BLI_rcti_inside_rcti(const rcti *rct_a, const rcti *rct_b)
bool BLI_lasso_is_edge_inside(Span< int2 > mcoords, int x0, int y0, int x1, int y1, int error_value)
wmOperatorStatus WM_gesture_circle_modal(bContext *C, wmOperator *op, const wmEvent *event)
MINLINE int min_ii(int a, int b)
std::string ED_select_pick_get_name(wmOperatorType *ot, PointerRNA *ptr)
ARegion * CTX_wm_region(const bContext *C)
void WM_operator_properties_generic_select(wmOperatorType *ot)
void BLI_lasso_boundbox(rcti *rect, Span< int2 > mcoords)
void BLI_rctf_pad(struct rctf *rect, float pad_x, float pad_y)
@ SPACE_SEQ_DESELECT_STRIP_HANDLE
void WM_operator_properties_gesture_lasso(wmOperatorType *ot)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< TimeMarker > markers
eSpaceSeq_RegionType mainb
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_name(wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports