diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-05 17:05:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-05 17:12:31 +0300 |
commit | 846dde590f00087ebf26faaffcd520ceaed795d0 (patch) | |
tree | 118c9cb35a9b5c3a2eb5a2eefa206a7d4d6febae /source | |
parent | 0f64de6b9b7dc3e4c4af30f68afeb3e42f385042 (diff) |
Cleanup: use doxy sections for sequencer edit, select
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 328 | ||||
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_select.c | 80 |
2 files changed, 375 insertions, 33 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index ea0d5785d22..28ded81eeae 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -71,7 +71,10 @@ /* Own include. */ #include "sequencer_intern.h" -/* XXX */ +/* -------------------------------------------------------------------- */ +/** \name Structs & Enums + * \{ */ + /* RNA Enums, used in multiple files. */ EnumPropertyItem sequencer_prop_effect_types[] = { {SEQ_TYPE_CROSS, "CROSS", 0, "Crossfade", "Crossfade effect strip type"}, @@ -122,9 +125,11 @@ typedef struct TransSeq { int len; } TransSeq; -/* ********************************************************************** */ +/** \} */ -/* ***************** proxy job manager ********************** */ +/* -------------------------------------------------------------------- */ +/** \name Proxy Job Manager + * \{ */ typedef struct ProxyBuildJob { struct Main *main; @@ -256,7 +261,11 @@ static void seq_proxy_build_job(const bContext *C, ReportList *reports) ED_area_tag_redraw(area); } -/* ********************************************************************** */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Sequence Query Utilities + * \{ */ void seq_rectf(Sequence *seq, rctf *rect) { @@ -487,6 +496,12 @@ static bool seq_is_predecessor(Sequence *pred, Sequence *seq) return 0; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Selection Utilities + * \{ */ + void ED_sequencer_deselect_all(Scene *scene) { Sequence *seq; @@ -527,6 +542,12 @@ void recurs_sel_seq(Sequence *seqm) } } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Public Context Checks + * \{ */ + bool ED_space_sequencer_maskedit_mask_poll(bContext *C) { return ED_space_sequencer_maskedit_poll(C); @@ -566,6 +587,12 @@ bool ED_space_sequencer_check_show_strip(SpaceSeq *sseq) ELEM(sseq->mainb, SEQ_DRAW_SEQUENCE, SEQ_DRAW_IMG_IMBUF)); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Find Selected Strips as Inputs to an Effects Strip + * \{ */ + int seq_effect_find_selected(Scene *scene, Sequence *activeseq, int type, @@ -654,6 +681,12 @@ int seq_effect_find_selected(Scene *scene, return 1; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Delete Utilities + * \{ */ + static Sequence *del_seq_find_replace_recurs(Scene *scene, Sequence *seq) { Sequence *seq1, *seq2, *seq3; @@ -748,6 +781,12 @@ static void recurs_del_seq_flag(Scene *scene, ListBase *lb, short flag, short de } } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Split (Hard) Utility + * \{ */ + static Sequence *split_seq_hard( Main *bmain, Scene *scene, Sequence *seq, ListBase *new_seq_list, int split_frame) { @@ -865,6 +904,12 @@ static Sequence *split_seq_hard( return seqn; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Split (Soft) Utility + * \{ */ + static Sequence *split_seq_soft( Main *UNUSED(bmain), Scene *scene, Sequence *seq, ListBase *new_seq_list, int split_frame) { @@ -1130,6 +1175,12 @@ static void UNUSED_FUNCTION(seq_remap_paths)(Scene *scene) SEQ_END; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Remove Gaps Operator + * \{ */ + static int sequencer_gap_remove_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1198,6 +1249,12 @@ void SEQUENCER_OT_gap_remove(struct wmOperatorType *ot) RNA_def_boolean(ot->srna, "all", 0, "All Gaps", "Do all gaps to right of current frame"); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Insert Gaps Operator + * \{ */ + static int sequencer_gap_insert_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1238,6 +1295,12 @@ void SEQUENCER_OT_gap_insert(struct wmOperatorType *ot) 1000); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Shared Poll Functions + * \{ */ + #if 0 static int seq_get_snaplimit(View2D *v2d) { @@ -1298,7 +1361,12 @@ bool sequencer_view_strips_poll(bContext *C) return 0; } -/* Snap operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Snap Strips to the Current Frame Operator + * \{ */ + static int sequencer_snap_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1399,6 +1467,12 @@ void SEQUENCER_OT_snap(struct wmOperatorType *ot) INT_MAX); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Trim Strips Operator + * \{ */ + typedef struct SlipData { int init_mouse[2]; float init_mouseloc[2]; @@ -1855,7 +1929,12 @@ void SEQUENCER_OT_slip(struct wmOperatorType *ot) INT32_MAX); } -/* Mute operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Mute Strips Operator + * \{ */ + static int sequencer_mute_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1906,7 +1985,12 @@ void SEQUENCER_OT_mute(struct wmOperatorType *ot) ot->srna, "unselected", 0, "Unselected", "Mute unselected rather than selected strips"); } -/* Unmute operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Unmute Strips Operator + * \{ */ + static int sequencer_unmute_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1957,7 +2041,12 @@ void SEQUENCER_OT_unmute(struct wmOperatorType *ot) ot->srna, "unselected", 0, "Unselected", "Unmute unselected rather than selected strips"); } -/* Lock operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Lock Strips Operator + * \{ */ + static int sequencer_lock_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -1990,7 +2079,12 @@ void SEQUENCER_OT_lock(struct wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Unlock operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Unlock Strips Operator + * \{ */ + static int sequencer_unlock_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -2023,7 +2117,12 @@ void SEQUENCER_OT_unlock(struct wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Reload operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Reload Strips Operator + * \{ */ + static int sequencer_reload_exec(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); @@ -2074,7 +2173,12 @@ void SEQUENCER_OT_reload(struct wmOperatorType *ot) RNA_def_property_flag(prop, PROP_SKIP_SAVE); } -/* Reload operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Refresh Sequencer Operator + * \{ */ + static bool sequencer_refresh_all_poll(bContext *C) { if (G.is_rendering) { @@ -2107,6 +2211,12 @@ void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot) ot->poll = sequencer_refresh_all_poll; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Reassign Inputs Operator + * \{ */ + static int sequencer_reassign_inputs_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -2166,6 +2276,12 @@ void SEQUENCER_OT_reassign_inputs(struct wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Swap Inputs Operator + * \{ */ + static int sequencer_swap_inputs_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -2201,7 +2317,12 @@ void SEQUENCER_OT_swap_inputs(struct wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Split operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Split Strips Operator + * \{ */ + static const EnumPropertyItem prop_split_types[] = { {SEQ_SPLIT_SOFT, "SOFT", 0, "Soft", ""}, {SEQ_SPLIT_HARD, "HARD", 0, "Hard", ""}, @@ -2397,7 +2518,12 @@ void SEQUENCER_OT_split(struct wmOperatorType *ot) #undef SEQ_SIDE_MOUSE -/* Duplicate operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Duplicate Strips Operator + * \{ */ + static int apply_unique_name_fn(Sequence *seq, void *arg_pt) { Scene *scene = (Scene *)arg_pt; @@ -2453,7 +2579,12 @@ void SEQUENCER_OT_duplicate(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Delete operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Erase Strips Operator + * \{ */ + static int sequencer_delete_exec(bContext *C, wmOperator *UNUSED(op)) { Main *bmain = CTX_data_main(C); @@ -2549,7 +2680,12 @@ void SEQUENCER_OT_delete(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Offset clear operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Clear Strip Offset Operator + * \{ */ + static int sequencer_offset_clear_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -2599,7 +2735,12 @@ void SEQUENCER_OT_offset_clear(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Separate_images operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Separate Images Operator + * \{ */ + static int sequencer_separate_images_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -2698,9 +2839,12 @@ void SEQUENCER_OT_images_separate(wmOperatorType *ot) RNA_def_int(ot->srna, "length", 1, 1, INT_MAX, "Length", "Length of each frame", 1, 1000); } -/* META Operators. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Toggle Meta Strip Operator + * \{ */ -/* Separate_meta_toggle operator. */ static int sequencer_meta_toggle_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -2786,7 +2930,12 @@ void SEQUENCER_OT_meta_toggle(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Separate_meta_make operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Make Meta Strip Operator + * \{ */ + static int sequencer_meta_make_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -2850,6 +2999,12 @@ void SEQUENCER_OT_meta_make(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name UnMeta Strip Operator + * \{ */ + static int seq_depends_on_meta(Sequence *seq, Sequence *seqm) { if (seq == seqm) { @@ -2869,7 +3024,6 @@ static int seq_depends_on_meta(Sequence *seq, Sequence *seqm) } } -/* Separate_meta_make operator. */ static int sequencer_meta_separate_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -2935,7 +3089,12 @@ void SEQUENCER_OT_meta_separate(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* View_all operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Sequencer Frame All Operator + * \{ */ + static int sequencer_view_all_exec(bContext *C, wmOperator *op) { ARegion *region = CTX_wm_region(C); @@ -2963,6 +3122,12 @@ void SEQUENCER_OT_view_all(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Go to Current Frame Operator + * \{ */ + static int sequencer_view_frame_exec(bContext *C, wmOperator *op) { const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); @@ -2986,7 +3151,12 @@ void SEQUENCER_OT_view_frame(wmOperatorType *ot) ot->flag = 0; } -/* View_all operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Preview Frame All Operator + * \{ */ + static int sequencer_view_all_preview_exec(bContext *C, wmOperator *UNUSED(op)) { bScreen *screen = CTX_wm_screen(C); @@ -3050,6 +3220,12 @@ void SEQUENCER_OT_view_all_preview(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Sequencer View Zoom Ratio Operator + * \{ */ + static int sequencer_view_zoom_ratio_exec(bContext *C, wmOperator *op) { RenderData *rd = &CTX_data_scene(C)->r; @@ -3093,6 +3269,12 @@ void SEQUENCER_OT_view_zoom_ratio(wmOperatorType *ot) FLT_MAX); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name View Toggle Operator + * \{ */ + #if 0 static const EnumPropertyItem view_type_items[] = { {SEQ_VIEW_SEQUENCE, "SEQUENCER", ICON_SEQ_SEQUENCER, "Sequencer", ""}, @@ -3106,7 +3288,6 @@ static const EnumPropertyItem view_type_items[] = { }; #endif -/* View_all operator. */ static int sequencer_view_toggle_exec(bContext *C, wmOperator *UNUSED(op)) { SpaceSeq *sseq = (SpaceSeq *)CTX_wm_space_data(C); @@ -3136,7 +3317,12 @@ void SEQUENCER_OT_view_toggle(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER; } -/* View_selected operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Frame Selected Operator + * \{ */ + static int sequencer_view_selected_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -3218,6 +3404,12 @@ void SEQUENCER_OT_view_selected(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Jump to Strip Operator + * \{ */ + static bool strip_jump_internal(Scene *scene, const short side, const bool do_skip_mute, @@ -3245,7 +3437,6 @@ static bool sequencer_strip_jump_poll(bContext *C) return sequencer_edit_poll(C); } -/* Jump frame to edit point operator. */ static int sequencer_strip_jump_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -3281,6 +3472,12 @@ void SEQUENCER_OT_strip_jump(wmOperatorType *ot) RNA_def_boolean(ot->srna, "center", true, "Use strip center", ""); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Swap Strip Operator + * \{ */ + static void swap_sequence(Scene *scene, Sequence *seqa, Sequence *seqb) { int gap = seqb->startdisp - seqa->enddisp; @@ -3401,6 +3598,12 @@ void SEQUENCER_OT_swap(wmOperatorType *ot) ot->srna, "side", prop_side_lr_types, SEQ_SIDE_RIGHT, "Side", "Side of the strip to swap"); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Set Render Size Operator + * \{ */ + static int sequencer_rendersize_exec(bContext *C, wmOperator *UNUSED(op)) { int retval = OPERATOR_CANCELLED; @@ -3457,6 +3660,12 @@ void SEQUENCER_OT_rendersize(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Copy Operator + * \{ */ + static void seq_copy_del_sound(Scene *scene, Sequence *seq) { if (seq->type == SEQ_TYPE_META) { @@ -3516,6 +3725,12 @@ void SEQUENCER_OT_copy(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Paste Operator + * \{ */ + static int sequencer_paste_exec(bContext *C, wmOperator *UNUSED(op)) { Main *bmain = CTX_data_main(C); @@ -3572,6 +3787,12 @@ void SEQUENCER_OT_paste(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Sequencer Swap Data Operator + * \{ */ + static int sequencer_swap_data_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -3633,7 +3854,12 @@ void SEQUENCER_OT_swap_data(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } -/* Box select operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Border Offset View Operator + * \{ */ + static int view_ghost_border_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -3689,7 +3915,12 @@ void SEQUENCER_OT_view_ghost_border(wmOperatorType *ot) WM_operator_properties_gesture_box(ot); } -/* Rebuild_proxy operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Rebuild Proxy and Timecode Indices Operator + * \{ */ + static int sequencer_rebuild_proxy_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) @@ -3753,6 +3984,12 @@ void SEQUENCER_OT_rebuild_proxy(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Set Selected Strip Proxies Operator + * \{ */ + static int sequencer_enable_proxies_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) @@ -3849,7 +4086,12 @@ void SEQUENCER_OT_enable_proxies(wmOperatorType *ot) RNA_def_boolean(ot->srna, "overwrite", false, "Overwrite", ""); } -/* Change effect inputs operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Change Effect Input Operator + * \{ */ + static const EnumPropertyItem prop_change_effect_input_types[] = { {0, "A_B", 0, "A -> B", ""}, {1, "B_C", 0, "B -> C", ""}, @@ -3914,7 +4156,12 @@ void SEQUENCER_OT_change_effect_input(struct wmOperatorType *ot) ot->srna, "swap", prop_change_effect_input_types, 0, "Swap", "The effect inputs to swap"); } -/* Change effect type operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Change Effect Type Operator + * \{ */ + static int sequencer_change_effect_type_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -3976,7 +4223,12 @@ void SEQUENCER_OT_change_effect_type(struct wmOperatorType *ot) "Sequencer effect type"); } -/* Change path operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Change Data/Files Operator + * \{ */ + static int sequencer_change_path_exec(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); @@ -4124,7 +4376,12 @@ void SEQUENCER_OT_change_path(struct wmOperatorType *ot) "Use placeholders for missing frames of the strip"); } -/* Export subtitles operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Export Subtitles Operator + * \{ */ + static int sequencer_export_subtitles_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) @@ -4259,7 +4516,12 @@ void SEQUENCER_OT_export_subtitles(struct wmOperatorType *ot) FILE_SORT_ALPHA); } -/* Set range to strips operator. */ +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Set Range to Strips Operator + * \{ */ + static int sequencer_set_range_to_strips_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -4323,3 +4585,5 @@ void SEQUENCER_OT_set_range_to_strips(struct wmOperatorType *ot) prop = RNA_def_boolean(ot->srna, "preview", false, "Preview", "Set the preview range instead"); RNA_def_property_flag(prop, PROP_SKIP_SAVE | PROP_HIDDEN); } + +/** \} */ diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c index e6cde22b40b..f2b7e138c3e 100644 --- a/source/blender/editors/space_sequencer/sequencer_select.c +++ b/source/blender/editors/space_sequencer/sequencer_select.c @@ -52,6 +52,10 @@ /* Own include. */ #include "sequencer_intern.h" +/* -------------------------------------------------------------------- */ +/** \name Selection Utilities + * \{ */ + static void select_surrounding_handles(Scene *scene, Sequence *test) /* XXX BRING BACK */ { Sequence *neighbor; @@ -248,6 +252,12 @@ static void select_neighbor_from_last(Scene *scene, int lr) } #endif +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name (De)select All Operator + * \{ */ + static int sequencer_de_select_all_exec(bContext *C, wmOperator *op) { int action = RNA_enum_get(op->ptr, "action"); @@ -311,6 +321,12 @@ void SEQUENCER_OT_select_all(struct wmOperatorType *ot) WM_operator_properties_select_all(ot); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Inverse Operator + * \{ */ + static int sequencer_select_inverse_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -349,6 +365,12 @@ void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot) ot->flag = OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Operator + * \{ */ + static int sequencer_select_exec(bContext *C, wmOperator *op) { View2D *v2d = UI_view2d_fromcontext(C); @@ -641,6 +663,12 @@ void SEQUENCER_OT_select(wmOperatorType *ot) RNA_def_property_flag(prop, PROP_SKIP_SAVE); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select More Operator + * \{ */ + /* Run recursively to select linked. */ static bool select_more_less_seq__internal(Scene *scene, bool sel, const bool linked) { @@ -738,6 +766,12 @@ void SEQUENCER_OT_select_more(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Less Operator + * \{ */ + static int sequencer_select_less_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -768,6 +802,12 @@ void SEQUENCER_OT_select_less(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Pick Linked Operator + * \{ */ + static int sequencer_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event) { Scene *scene = CTX_data_scene(C); @@ -821,6 +861,12 @@ void SEQUENCER_OT_select_linked_pick(wmOperatorType *ot) RNA_def_boolean(ot->srna, "extend", 0, "Extend", "Extend the selection"); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Linked Operator + * \{ */ + static int sequencer_select_linked_exec(bContext *C, wmOperator *UNUSED(op)) { Scene *scene = CTX_data_scene(C); @@ -853,6 +899,12 @@ void SEQUENCER_OT_select_linked(wmOperatorType *ot) ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Handles Operator + * \{ */ + static int sequencer_select_handles_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -908,6 +960,12 @@ void SEQUENCER_OT_select_handles(wmOperatorType *ot) "The side of the handle that is selected"); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Side of Frame Operator + * \{ */ + static int sequencer_select_side_of_frame_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -977,6 +1035,12 @@ void SEQUENCER_OT_select_side_of_frame(wmOperatorType *ot) ot->prop = RNA_def_enum(ot->srna, "side", sequencer_select_left_right_types, 0, "Side", ""); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Side Operator + * \{ */ + static int sequencer_select_side_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1041,6 +1105,12 @@ void SEQUENCER_OT_select_side(wmOperatorType *ot) "The side to which the selection is applied"); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Box Select Operator + * \{ */ + static int sequencer_box_select_exec(bContext *C, wmOperator *op) { Scene *scene = CTX_data_scene(C); @@ -1165,6 +1235,12 @@ void SEQUENCER_OT_select_box(wmOperatorType *ot) RNA_def_property_flag(prop, PROP_SKIP_SAVE); } +/** \} */ + +/* -------------------------------------------------------------------- */ +/** \name Select Grouped Operator + * \{ */ + enum { SEQ_SELECT_GROUP_TYPE, SEQ_SELECT_GROUP_TYPE_BASIC, @@ -1501,8 +1577,8 @@ void SEQUENCER_OT_select_grouped(wmOperatorType *ot) { /* Identifiers. */ ot->name = "Select Grouped"; - ot->description = "Select all strips grouped by various properties"; ot->idname = "SEQUENCER_OT_select_grouped"; + ot->description = "Select all strips grouped by various properties"; /* Api callbacks. */ ot->invoke = WM_menu_invoke; @@ -1525,3 +1601,5 @@ void SEQUENCER_OT_select_grouped(wmOperatorType *ot) "Same Channel", "Only consider strips on the same channel as the active one"); } + +/** \} */ |