Blender
V3.3
|
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_report.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_define.h"
#include "SEQ_channels.h"
#include "SEQ_iterator.h"
#include "SEQ_relations.h"
#include "SEQ_select.h"
#include "SEQ_sequencer.h"
#include "SEQ_time.h"
#include "SEQ_transform.h"
#include "SEQ_utils.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "ED_sequencer.h"
#include "UI_view2d.h"
#include "sequencer_intern.h"
Go to the source code of this file.
Classes | |
struct | SeqSelect_Link |
Select Handles Operator | |
enum | { SEQ_SELECT_HANDLES_SIDE_LEFT , SEQ_SELECT_HANDLES_SIDE_RIGHT , SEQ_SELECT_HANDLES_SIDE_BOTH , SEQ_SELECT_HANDLES_SIDE_LEFT_NEIGHBOR , SEQ_SELECT_HANDLES_SIDE_RIGHT_NEIGHBOR , SEQ_SELECT_HANDLES_SIDE_BOTH_NEIGHBORS } |
static const EnumPropertyItem | prop_select_handles_side_types [] |
static int | sequencer_select_handles_exec (bContext *C, wmOperator *op) |
void | SEQUENCER_OT_select_handles (wmOperatorType *ot) |
Definition at line 1818 of file sequencer_select.c.
#define SEQ_IS_EFFECT | ( | _seq | ) | ((_seq->type & SEQ_TYPE_EFFECT) != 0) |
Definition at line 1813 of file sequencer_select.c.
#define SEQ_IS_SOUND | ( | _seq | ) | ((_seq->type & SEQ_TYPE_SOUND_RAM) && !(_seq->type & SEQ_TYPE_EFFECT)) |
Definition at line 1811 of file sequencer_select.c.
#define SEQ_USE_DATA | ( | _seq | ) | (ELEM(_seq->type, SEQ_TYPE_SCENE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_MASK) || SEQ_HAS_PATH(_seq)) |
Definition at line 1815 of file sequencer_select.c.
anonymous enum |
Definition at line 1317 of file sequencer_select.c.
anonymous enum |
Enumerator | |
---|---|
SEQ_SELECT_GROUP_TYPE | |
SEQ_SELECT_GROUP_TYPE_BASIC | |
SEQ_SELECT_GROUP_TYPE_EFFECT | |
SEQ_SELECT_GROUP_DATA | |
SEQ_SELECT_GROUP_EFFECT | |
SEQ_SELECT_GROUP_EFFECT_LINK | |
SEQ_SELECT_GROUP_OVERLAP |
Definition at line 1776 of file sequencer_select.c.
SeqCollection* all_strips_from_context | ( | struct bContext * | C | ) |
Returns collection with all strips presented to user. If operation is done in preview, collection is limited to all presented strips that can produce image output.
C | context |
Sequence
) Definition at line 53 of file sequencer_select.c.
References C, RenderData::cfra, channels(), CTX_data_scene(), Scene::r, scene, SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_editing_get(), SEQ_query_all_strips(), SEQ_query_rendered_strips(), and sequencer_view_has_preview_poll().
Referenced by sequencer_de_select_all_exec(), sequencer_select_grouped_exec(), and sequencer_select_inverse_exec().
Definition at line 226 of file sequencer_select.c.
References Editing::act_imagedir, Editing::act_sounddir, BLI_strncpy(), Strip::dir, ED_sequencer_deselect_all(), ELEM, FILE_MAXDIR, Sequence::flag, recurs_sel_seq(), scene, SELECT, SEQ_editing_get(), SEQ_select_active_set(), SEQ_TYPE_IMAGE, SEQ_TYPE_MOVIE, SEQ_TYPE_SOUND_RAM, Sequence::strip, and Sequence::type.
Referenced by sequence_fn().
Definition at line 828 of file sequencer_select.c.
References Sequence::flag, SELECT, SeqSelect_Link::seq, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SIDE_LEFT, SEQ_SIDE_NONE, and SEQ_SIDE_RIGHT.
Referenced by sequencer_select_exec().
Definition at line 295 of file sequencer_select.c.
References blender::math::abs(), BLI_rctf_size_x(), BLI_rcti_size_x(), CLAMP, View2D::cur, ListBase::first, float(), Sequence::machine, View2D::mask, Sequence::next, NULL, scene, SEQ_editing_get(), SEQ_SIDE_LEFT, SEQ_SIDE_NONE, SEQ_SIDE_RIGHT, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_transform_sequence_can_be_translated(), Editing::seqbasep, sequence_handle_size_get_clamped(), UI_view2d_region_to_view(), x, and y.
Referenced by ED_sequencer_special_preview_set(), sequencer_box_select_invoke(), sequencer_select_exec(), sequencer_select_linked_pick_invoke(), and update_overlay_strip_position_data().
Definition at line 258 of file sequencer_select.c.
References ListBase::first, Sequence::flag, Sequence::machine, Sequence::next, NULL, scene, SELECT, SEQ_editing_get(), SEQ_SIDE_LEFT, SEQ_SIDE_RIGHT, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), and Editing::seqbasep.
Referenced by select_linked_internal(), select_more_less_seq__internal(), select_surrounding_handles(), sequencer_select_handles_exec(), and sequencer_select_linked_handle().
|
static |
Definition at line 1992 of file sequencer_select.c.
References LISTBASE_FOREACH, Sequence::machine, scene, SEQ_collection_append_strip(), SEQ_time_left_handle_frame_get(), and SEQ_time_right_handle_frame_get().
Referenced by select_grouped_effect_link().
Definition at line 395 of file sequencer_select.c.
References ListBase::first, Sequence::flag, Sequence::next, recurs_sel_seq(), SELECT, SEQ_ALLSEL, SEQ_LEFTSEL, SEQ_RIGHTSEL, and Sequence::seqbase.
Referenced by ED_sequencer_select_sequence_single(), recurs_sel_seq(), select_linked_internal(), select_linked_time(), select_more_less_seq__internal(), select_surrounding_handles(), sequencer_select_handles_exec(), sequencer_select_linked_handle(), sequencer_select_linked_pick_invoke(), sequencer_select_set_active(), sequencer_select_side_of_frame(), and sequencer_select_side_of_frame_exec().
|
static |
Definition at line 111 of file sequencer_select.c.
References ListBase::first, Sequence::flag, Sequence::machine, Sequence::next, scene, SELECT, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SIDE_BOTH, SEQ_SIDE_LEFT, SEQ_SIDE_RIGHT, and SEQ_time_left_handle_frame_get().
Referenced by sequencer_select_linked_handle().
|
static |
Definition at line 141 of file sequencer_select.c.
References ListBase::first, Sequence::flag, Sequence::machine, MAXSEQ, Sequence::next, scene, SELECT, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SIDE_BOTH, SEQ_SIDE_LEFT, SEQ_SIDE_RIGHT, and SEQ_time_left_handle_frame_get().
Referenced by sequencer_select_side_exec().
|
static |
Definition at line 1877 of file sequencer_select.c.
References Sequence::clip, Strip::dir, Sequence::flag, mask(), Sequence::mask, NULL, Sequence::scene, SELECT, SeqSelect_Link::seq, SEQ_CHANNEL_CHECK, SEQ_HAS_PATH, SEQ_ITERATOR_FOREACH, SEQ_TYPE_MASK, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_SCENE, SEQ_USE_DATA, STREQ, Sequence::strip, and Sequence::type.
Referenced by sequencer_select_grouped_exec().
|
static |
Definition at line 1932 of file sequencer_select.c.
References Sequence::flag, SELECT, Sequence::seq1, Sequence::seq2, Sequence::seq3, SEQ_CHANNEL_CHECK, SEQ_ITERATOR_FOREACH, SEQ_relation_is_effect_of_strip(), SEQ_TYPE_EFFECT, SEQ_TYPE_MAX, and Sequence::type.
Referenced by sequencer_select_grouped_exec().
|
static |
Definition at line 2013 of file sequencer_select.c.
References Sequence::flag, query_lower_channel_strips(), scene, SELECT, SEQ_collection_expand(), SEQ_collection_len(), SEQ_filter_selected_strips(), SEQ_ITERATOR_FOREACH, and SEQ_query_strip_effect_chain().
Referenced by sequencer_select_grouped_exec().
|
static |
Definition at line 1970 of file sequencer_select.c.
References Sequence::flag, scene, SELECT, SEQ_ITERATOR_FOREACH, SEQ_time_left_handle_frame_get(), and SEQ_time_right_handle_frame_get().
Referenced by sequencer_select_grouped_exec().
|
static |
Definition at line 1820 of file sequencer_select.c.
References Sequence::flag, SELECT, SeqSelect_Link::seq, SEQ_CHANNEL_CHECK, SEQ_ITERATOR_FOREACH, and Sequence::type.
Referenced by sequencer_select_grouped_exec().
|
static |
Definition at line 1838 of file sequencer_select.c.
References Sequence::flag, is_sound(), SELECT, SeqSelect_Link::seq, SEQ_CHANNEL_CHECK, SEQ_IS_SOUND, and SEQ_ITERATOR_FOREACH.
Referenced by sequencer_select_grouped_exec().
|
static |
Definition at line 1857 of file sequencer_select.c.
References Sequence::flag, SELECT, SeqSelect_Link::seq, SEQ_CHANNEL_CHECK, SEQ_IS_EFFECT, and SEQ_ITERATOR_FOREACH.
Referenced by sequencer_select_grouped_exec().
Definition at line 1066 of file sequencer_select.c.
References find_neighboring_sequence(), Sequence::flag, LISTBASE_FOREACH, NULL, recurs_sel_seq(), scene, SELECT, SeqSelect_Link::seq, SEQ_active_seqbase_get(), SEQ_editing_get(), SEQ_SIDE_LEFT, and SEQ_SIDE_RIGHT.
Referenced by sequencer_select_linked_exec(), and sequencer_select_linked_pick_invoke().
|
static |
Definition at line 178 of file sequencer_select.c.
References Sequence::enddisp, ListBase::first, Sequence::flag, Sequence::machine, Sequence::next, recurs_sel_seq(), scene, SELECT, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), and Sequence::startdisp.
Referenced by sequencer_select_exec().
Definition at line 1099 of file sequencer_select.c.
References BLI_ghashutil_ptrcmp(), BLI_ghashutil_ptrhash(), BLI_gset_add(), BLI_gset_free(), BLI_gset_new(), BLI_gsetIterator_done(), BLI_gsetIterator_getKey(), BLI_gsetIterator_init(), BLI_gsetIterator_step(), find_neighboring_sequence(), Sequence::flag, LISTBASE_FOREACH, NULL, recurs_sel_seq(), scene, SELECT, SeqSelect_Link::seq, SEQ_active_seqbase_get(), SEQ_editing_get(), SEQ_SIDE_LEFT, and SEQ_SIDE_RIGHT.
Referenced by sequencer_select_less_exec(), and sequencer_select_more_exec().
Definition at line 85 of file sequencer_select.c.
References find_neighboring_sequence(), Sequence::flag, recurs_sel_seq(), scene, SELECT, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SIDE_LEFT, and SEQ_SIDE_RIGHT.
Referenced by sequencer_select_linked_handle().
SeqCollection* selected_strips_from_context | ( | struct bContext * | C | ) |
Returns collection with selected strips presented to user. If operation is done in preview, collection is limited to selected presented strips, that can produce image output at current frame.
C | context |
Sequence
) Definition at line 68 of file sequencer_select.c.
References C, RenderData::cfra, channels(), CTX_data_scene(), Scene::r, scene, SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_editing_get(), SEQ_filter_selected_strips(), SEQ_query_rendered_strips(), SEQ_query_selected_strips(), and sequencer_view_has_preview_poll().
Referenced by sequencer_delete_exec(), and sequencer_view_selected_exec().
|
static |
Definition at line 1580 of file sequencer_select.c.
References isect_point_quad_v2(), scene, SeqSelect_Link::seq, SEQ_image_transform_final_quad_get(), seq_point_image_isect(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by seq_box_select_seq_from_preview().
|
static |
Definition at line 1603 of file sequencer_select.c.
References BLI_assert, C, RenderData::cfra, channels(), SpaceSeq::chanshown, CTX_data_scene(), CTX_wm_space_seq(), ELEM, Sequence::flag, Scene::r, scene, SEL_OP_ADD, SEL_OP_SET, SEL_OP_SUB, SELECT, SeqSelect_Link::seq, SEQ_active_seqbase_get(), seq_box_select_rect_image_isect(), SEQ_channels_displayed_get(), SEQ_collection_free(), SEQ_editing_get(), SEQ_ITERATOR_FOREACH, and SEQ_query_rendered_strips().
Referenced by sequencer_box_select_exec().
|
static |
Definition at line 420 of file sequencer_select.c.
References isect_point_quad_v2(), point, scene, and SEQ_image_transform_final_quad_get().
Referenced by seq_box_select_rect_image_isect(), and seq_select_seq_from_preview().
Definition at line 250 of file sequencer_select.c.
References Sequence::machine, scene, SEQ_STRIP_OFSBOTTOM, SEQ_STRIP_OFSTOP, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by sequencer_box_select_exec().
|
static |
Check if click happened on image which belongs to strip. If multiple strips are found, loop through them in order (depth (top-most first) or closest to mouse when center
is true).
Definition at line 734 of file sequencer_select.c.
References BLI_addtail(), BLI_freelistN(), BLI_listbase_sort(), C, center, SeqSelect_Link::center_dist_sq, RenderData::cfra, channels(), SpaceSeq::chanshown, CTX_data_scene(), CTX_wm_space_seq(), ListBase::first, Sequence::flag, len_squared_v2(), MEM_callocN, mul_v2_v2(), SeqSelect_Link::next, NULL, Scene::r, scene, SELECT, SeqSelect_Link::seq, SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_collection_free(), SEQ_editing_get(), SEQ_image_transform_origin_offset_pixelspace_get(), SEQ_ITERATOR_FOREACH, seq_point_image_isect(), SEQ_query_rendered_strips(), SEQ_select_active_get(), seq_sort_for_center_select(), seq_sort_for_depth_select(), sqrtf, square_f(), sub_v2_v2(), UI_view2d_fromcontext(), UI_view2d_region_to_view(), UI_view2d_scale_get_x(), UI_view2d_scale_get_y(), and WM_cursor_test_motion_and_update().
Referenced by sequencer_select_exec().
Definition at line 714 of file sequencer_select.c.
References Freestyle::a, usdtokens::b(), SeqSelect_Link::center_dist_sq, and seq_sort_for_depth_select().
Referenced by seq_select_seq_from_preview().
Definition at line 699 of file sequencer_select.c.
References Freestyle::a, usdtokens::b(), Sequence::machine, and SeqSelect_Link::seq.
Referenced by seq_select_seq_from_preview(), and seq_sort_for_center_select().
|
static |
Definition at line 1631 of file sequencer_select.c.
References BLI_rctf_isect(), BLI_rctf_size_x(), BLI_rcti_size_x(), C, CTX_data_scene(), CTX_wm_region(), View2D::cur, ED_sequencer_deselect_all(), Sequence::flag, handles, LISTBASE_FOREACH, View2D::mask, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_PREVIEW, RNA_boolean_get(), RNA_enum_get(), scene, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select(), SELECT, SeqSelect_Link::seq, seq_box_select_seq_from_preview(), SEQ_editing_get(), SEQ_LEFTSEL, seq_rectf(), SEQ_RIGHTSEL, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), Editing::seqbasep, sequence_handle_size_get_clamped(), sequencer_select_do_updates(), sequencer_view_preview_only_poll(), SET_FLAG_FROM_TEST, UI_view2d_fromcontext(), UI_view2d_region_to_view_rctf(), WM_operator_properties_border_to_rctf(), rctf::xmax, and rctf::xmin.
Referenced by SEQUENCER_OT_select_box().
|
static |
Definition at line 1713 of file sequencer_select.c.
References C, CTX_data_scene(), CTX_wm_region(), find_nearest_seq(), NULL, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_PREVIEW, RNA_boolean_get(), scene, SeqSelect_Link::seq, sequencer_view_preview_only_poll(), ARegion::v2d, WM_event_drag_start_mval(), and WM_gesture_box_invoke().
Referenced by SEQUENCER_OT_select_box().
|
static |
Definition at line 440 of file sequencer_select.c.
References all_strips_from_context(), C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), Sequence::flag, NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), scene, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, SEQ_ALLSEL, SEQ_collection_free(), SEQ_ITERATOR_FOREACH, SEQ_LEFTSEL, SEQ_RIGHTSEL, sequencer_view_has_preview_poll(), sequencer_view_preview_only_poll(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_all().
void SEQUENCER_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 1007 of file sequencer_select.c.
References wmOperatorType::description, ED_operator_sequencer_active(), ED_select_pick_get_name(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), sequencer_select_exec(), sequencer_select_invoke(), wmOperatorType::srna, WM_generic_select_modal(), WM_operator_properties_generic_select(), and WM_operator_properties_mouse_select().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 491 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, sequencer_de_select_all_exec(), sequencer_edit_poll(), and WM_operator_properties_select_all().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 1738 of file sequencer_select.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_sequencer_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(), sequencer_box_select_exec(), sequencer_box_select_invoke(), wmOperatorType::srna, WM_gesture_box_cancel(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_grouped | ( | wmOperatorType * | ot | ) |
Definition at line 2112 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), sequencer_edit_poll(), sequencer_prop_select_grouped_types, sequencer_select_grouped_exec(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_handles | ( | wmOperatorType * | ot | ) |
Definition at line 1406 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_select_handles_side_types, RNA_def_enum(), SEQ_SELECT_HANDLES_SIDE_BOTH, sequencer_edit_poll(), sequencer_select_handles_exec(), and wmOperatorType::srna.
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_inverse | ( | struct wmOperatorType * | ot | ) |
Definition at line 543 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, sequencer_edit_poll(), and sequencer_select_inverse_exec().
void SEQUENCER_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1197 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, sequencer_edit_poll(), and sequencer_select_less_exec().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 1296 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, sequencer_edit_poll(), and sequencer_select_linked_exec().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_linked_pick | ( | wmOperatorType * | ot | ) |
Definition at line 1253 of file sequencer_select.c.
References wmOperatorType::description, ED_operator_sequencer_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), sequencer_select_linked_pick_invoke(), and wmOperatorType::srna.
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1161 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, sequencer_edit_poll(), and sequencer_select_more_exec().
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_side | ( | wmOperatorType * | ot | ) |
Definition at line 1551 of file sequencer_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_side_types, RNA_def_enum(), SEQ_SIDE_BOTH, sequencer_edit_poll(), sequencer_select_side_exec(), and wmOperatorType::srna.
Referenced by sequencer_operatortypes().
void SEQUENCER_OT_select_side_of_frame | ( | wmOperatorType * | ot | ) |
Definition at line 1476 of file sequencer_select.c.
References wmOperatorType::description, ED_operator_sequencer_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), sequencer_select_side_of_frame_exec(), and wmOperatorType::srna.
Referenced by sequencer_operatortypes().
Definition at line 428 of file sequencer_select.c.
References C, ED_outliner_select_sync_from_sequence_tag(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, scene, and WM_event_add_notifier().
Referenced by sequencer_box_select_exec(), and sequencer_select_exec().
|
static |
Definition at line 891 of file sequencer_select.c.
References C, center, CTX_data_scene(), CTX_wm_region(), CTX_wm_space_seq(), ED_sequencer_deselect_all(), element_already_selected(), find_nearest_seq(), SpaceSeq::mainb, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_PREVIEW, RNA_boolean_get(), RNA_int_get(), scene, select_linked_time(), SeqSelect_Link::seq, SEQ_DRAW_IMG_IMBUF, SEQ_editing_get(), seq_select_seq_from_preview(), SEQ_SIDE_NONE, Editing::seqbasep, sequencer_select_do_updates(), sequencer_select_linked_handle(), sequencer_select_set_active(), sequencer_select_side_of_frame(), sequencer_select_strip_impl(), sequencer_view_preview_only_poll(), and UI_view2d_fromcontext().
Referenced by SEQUENCER_OT_select().
|
static |
Definition at line 2043 of file sequencer_select.c.
References all_strips_from_context(), BKE_report(), BLI_assert, C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), Sequence::flag, LISTBASE_FOREACH, Sequence::machine, NA_SELECTED, NC_SCENE, ND_SEQUENCER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, scene, SELECT, select_grouped_data(), select_grouped_effect(), select_grouped_effect_link(), select_grouped_time_overlap(), select_grouped_type(), select_grouped_type_basic(), select_grouped_type_effect(), SEQ_active_seqbase_get(), SEQ_collection_free(), SEQ_collection_has_strip(), SEQ_editing_get(), SEQ_select_active_get(), SEQ_SELECT_GROUP_DATA, SEQ_SELECT_GROUP_EFFECT, SEQ_SELECT_GROUP_EFFECT_LINK, SEQ_SELECT_GROUP_OVERLAP, SEQ_SELECT_GROUP_TYPE, SEQ_SELECT_GROUP_TYPE_BASIC, SEQ_SELECT_GROUP_TYPE_EFFECT, sequencer_view_has_preview_poll(), sequencer_view_preview_only_poll(), type, and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_grouped().
|
static |
Definition at line 1336 of file sequencer_select.c.
References C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), find_neighboring_sequence(), ListBase::first, Sequence::flag, NA_SELECTED, NC_SCENE, ND_SEQUENCER, Sequence::next, OPERATOR_FINISHED, wmOperator::ptr, recurs_sel_seq(), RNA_enum_get(), scene, SELECT, SeqSelect_Link::seq, SEQ_editing_get(), SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SELECT_HANDLES_SIDE_BOTH, SEQ_SELECT_HANDLES_SIDE_BOTH_NEIGHBORS, SEQ_SELECT_HANDLES_SIDE_LEFT, SEQ_SELECT_HANDLES_SIDE_LEFT_NEIGHBOR, SEQ_SELECT_HANDLES_SIDE_RIGHT, SEQ_SELECT_HANDLES_SIDE_RIGHT_NEIGHBOR, SEQ_SIDE_LEFT, SEQ_SIDE_RIGHT, Editing::seqbasep, and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_handles().
|
static |
Definition at line 514 of file sequencer_select.c.
References all_strips_from_context(), C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), Sequence::flag, NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, SELECT, SEQ_ALLSEL, SEQ_collection_free(), SEQ_ITERATOR_FOREACH, SEQ_LEFTSEL, SEQ_RIGHTSEL, sequencer_view_has_preview_poll(), sequencer_view_preview_only_poll(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_inverse().
|
static |
Definition at line 997 of file sequencer_select.c.
References C, CTX_wm_region(), ARegion::regiontype, RGN_TYPE_PREVIEW, WM_generic_select_invoke(), and WM_operator_flag_only_pass_through_on_press().
Referenced by SEQUENCER_OT_select().
|
static |
Definition at line 1182 of file sequencer_select.c.
References C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, select_more_less_seq__internal(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_less().
|
static |
Definition at line 1279 of file sequencer_select.c.
References C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_FINISHED, scene, select_linked_internal(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_linked().
|
static |
Definition at line 620 of file sequencer_select.c.
References C, CTX_data_scene(), ELEM, find_neighboring_sequence(), Sequence::flag, Sequence::machine, recurs_sel_seq(), scene, SELECT, select_active_side(), select_surrounding_handles(), SEQ_ALLSEL, SEQ_editing_get(), SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SIDE_LEFT, SEQ_SIDE_RIGHT, SEQ_time_left_handle_frame_get(), and Editing::seqbasep.
Referenced by sequencer_select_exec().
|
static |
Definition at line 1218 of file sequencer_select.c.
References C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), ED_sequencer_deselect_all(), find_nearest_seq(), Sequence::flag, wmEvent::mval, NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_FINISHED, wmOperator::ptr, recurs_sel_seq(), RNA_boolean_get(), scene, SELECT, select_linked_internal(), UI_view2d_fromcontext(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_linked_pick().
|
static |
Definition at line 1146 of file sequencer_select.c.
References C, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, select_more_less_seq__internal(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_more().
Definition at line 564 of file sequencer_select.c.
References Editing::act_imagedir, Editing::act_sounddir, BLI_strncpy(), Strip::dir, ELEM, FILE_MAXDIR, recurs_sel_seq(), scene, SEQ_editing_get(), SEQ_select_active_set(), SEQ_TYPE_IMAGE, SEQ_TYPE_MOVIE, SEQ_TYPE_SOUND_RAM, Sequence::strip, and Sequence::type.
Referenced by sequencer_select_exec().
|
static |
Definition at line 1510 of file sequencer_select.c.
References ARRAY_SIZE, C, copy_vn_i(), CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), Sequence::flag, LISTBASE_FOREACH, Sequence::machine, max_ii(), MAXSEQ, min_ii(), NA_SELECTED, NC_SCENE, ND_SEQUENCER, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), scene, SELECT, select_active_side_range(), SeqSelect_Link::seq, SEQ_editing_get(), SEQ_SIDE_LEFT, SEQ_time_left_handle_frame_get(), Editing::seqbasep, UNLIKELY, and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_side().
|
static |
Definition at line 583 of file sequencer_select.c.
References C, RenderData::cfra, CTX_wm_space_seq(), ListBase::first, TimeMarker::flag, SpaceSeq::flag, TimeMarker::frame, LISTBASE_FOREACH, Scene::markers, TimeMarker::next, r, Scene::r, recurs_sel_seq(), scene, SELECT, SEQ_active_seqbase_get(), SEQ_editing_get(), SEQ_MARKER_TRANS, SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), UI_view2d_region_to_view_x(), and x.
Referenced by sequencer_select_exec().
|
static |
Definition at line 1435 of file sequencer_select.c.
References C, RenderData::cfra, CTX_data_scene(), ED_outliner_select_sync_from_sequence_tag(), ED_sequencer_deselect_all(), Sequence::flag, LISTBASE_FOREACH, NA_SELECTED, NC_SCENE, ND_SEQUENCER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, recurs_sel_seq(), RNA_boolean_get(), RNA_enum_get(), scene, SELECT, SeqSelect_Link::seq, SEQ_active_seqbase_get(), SEQ_editing_get(), SEQ_time_left_handle_frame_get(), SEQ_time_right_handle_frame_get(), SEQ_time_strip_intersects_frame(), and WM_event_add_notifier().
Referenced by SEQUENCER_OT_select_side_of_frame().
|
static |
Definition at line 837 of file sequencer_select.c.
References Editing::act_seq, Sequence::flag, SELECT, SeqSelect_Link::seq, SEQ_ALLSEL, SEQ_LEFTSEL, SEQ_RIGHTSEL, SEQ_SIDE_LEFT, SEQ_SIDE_NONE, and SEQ_SIDE_RIGHT.
Referenced by sequencer_select_exec().
|
static |
Definition at line 1326 of file sequencer_select.c.
Referenced by SEQUENCER_OT_select_handles().
|
static |
Definition at line 1786 of file sequencer_select.c.
Referenced by SEQUENCER_OT_select_grouped().