Blender  V2.93
sequencer_ops.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #include <math.h>
25 #include <stdlib.h>
26 
27 #include "DNA_space_types.h"
28 
29 #include "WM_api.h"
30 #include "WM_types.h"
31 
32 #include "ED_sequencer.h"
33 
34 #include "sequencer_intern.h"
35 
36 /* ************************** registration **********************************/
37 
39 {
40  /* sequencer_edit.c */
58 
66 
68 
71 
77 
81 
82  /* sequencer_select.c */
94 
95  /* sequencer_add.c */
103 
104  /* sequencer_modifiers.c */
109 
110  /* sequencer_view.h */
118 }
119 
121 {
122  /* Common items ------------------------------------------------------------------ */
123  WM_keymap_ensure(keyconf, "SequencerCommon", SPACE_SEQ, 0);
124 
125  /* Strips Region --------------------------------------------------------------- */
126  WM_keymap_ensure(keyconf, "Sequencer", SPACE_SEQ, 0);
127 
128  /* Preview Region ----------------------------------------------------------- */
129  WM_keymap_ensure(keyconf, "SequencerPreview", SPACE_SEQ, 0);
130 }
131 
133 {
135 
136  ot = WM_operatortype_append_macro("SEQUENCER_OT_duplicate_move",
137  "Duplicate Strips",
138  "Duplicate selected strips and move them",
140 
141  WM_operatortype_macro_define(ot, "SEQUENCER_OT_duplicate");
142  WM_operatortype_macro_define(ot, "TRANSFORM_OT_seq_slide");
143 }
@ SPACE_SEQ
@ OPTYPE_UNDO
Definition: WM_types.h:155
@ OPTYPE_REGISTER
Definition: WM_types.h:153
void SEQUENCER_OT_mask_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_scene_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_movie_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_effect_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_movieclip_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_image_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_sound_strip_add(struct wmOperatorType *ot)
void SEQUENCER_OT_copy(wmOperatorType *ot)
void SEQUENCER_OT_delete(wmOperatorType *ot)
void SEQUENCER_OT_rendersize(wmOperatorType *ot)
void SEQUENCER_OT_unmute(struct wmOperatorType *ot)
void SEQUENCER_OT_snap(struct wmOperatorType *ot)
void SEQUENCER_OT_reassign_inputs(struct wmOperatorType *ot)
void SEQUENCER_OT_gap_insert(struct wmOperatorType *ot)
void SEQUENCER_OT_mute(struct wmOperatorType *ot)
void SEQUENCER_OT_export_subtitles(struct wmOperatorType *ot)
void SEQUENCER_OT_swap_data(wmOperatorType *ot)
void SEQUENCER_OT_slip(struct wmOperatorType *ot)
void SEQUENCER_OT_strip_transform_clear(struct wmOperatorType *ot)
void SEQUENCER_OT_images_separate(wmOperatorType *ot)
void SEQUENCER_OT_change_effect_type(struct wmOperatorType *ot)
void SEQUENCER_OT_offset_clear(wmOperatorType *ot)
void SEQUENCER_OT_gap_remove(struct wmOperatorType *ot)
void SEQUENCER_OT_meta_make(wmOperatorType *ot)
void SEQUENCER_OT_split(struct wmOperatorType *ot)
void SEQUENCER_OT_unlock(struct wmOperatorType *ot)
void SEQUENCER_OT_duplicate(wmOperatorType *ot)
void SEQUENCER_OT_set_range_to_strips(struct wmOperatorType *ot)
void SEQUENCER_OT_lock(struct wmOperatorType *ot)
void SEQUENCER_OT_swap(wmOperatorType *ot)
void SEQUENCER_OT_paste(wmOperatorType *ot)
void SEQUENCER_OT_change_effect_input(struct wmOperatorType *ot)
void SEQUENCER_OT_meta_toggle(wmOperatorType *ot)
void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot)
void SEQUENCER_OT_change_path(struct wmOperatorType *ot)
void SEQUENCER_OT_strip_jump(wmOperatorType *ot)
void SEQUENCER_OT_meta_separate(wmOperatorType *ot)
void SEQUENCER_OT_strip_transform_fit(struct wmOperatorType *ot)
void SEQUENCER_OT_reload(struct wmOperatorType *ot)
void SEQUENCER_OT_swap_inputs(struct wmOperatorType *ot)
void SEQUENCER_OT_select_handles(struct wmOperatorType *ot)
void SEQUENCER_OT_strip_modifier_remove(struct wmOperatorType *ot)
void SEQUENCER_OT_select_linked_pick(struct wmOperatorType *ot)
void SEQUENCER_OT_view_frame(struct wmOperatorType *ot)
void SEQUENCER_OT_select_side_of_frame(struct wmOperatorType *ot)
void SEQUENCER_OT_view_all(struct wmOperatorType *ot)
void SEQUENCER_OT_select_more(struct wmOperatorType *ot)
void SEQUENCER_OT_select_less(struct wmOperatorType *ot)
void SEQUENCER_OT_view_all_preview(struct wmOperatorType *ot)
void SEQUENCER_OT_view_ghost_border(struct wmOperatorType *ot)
void SEQUENCER_OT_select_all(struct wmOperatorType *ot)
void SEQUENCER_OT_view_selected(struct wmOperatorType *ot)
void SEQUENCER_OT_select_grouped(struct wmOperatorType *ot)
void SEQUENCER_OT_select(struct wmOperatorType *ot)
void SEQUENCER_OT_sample(struct wmOperatorType *ot)
void SEQUENCER_OT_strip_modifier_add(struct wmOperatorType *ot)
void SEQUENCER_OT_rebuild_proxy(struct wmOperatorType *ot)
void SEQUENCER_OT_select_box(struct wmOperatorType *ot)
void SEQUENCER_OT_select_side(struct wmOperatorType *ot)
void SEQUENCER_OT_select_linked(struct wmOperatorType *ot)
void SEQUENCER_OT_enable_proxies(struct wmOperatorType *ot)
void SEQUENCER_OT_strip_modifier_move(struct wmOperatorType *ot)
void SEQUENCER_OT_view_zoom_ratio(struct wmOperatorType *ot)
void SEQUENCER_OT_strip_modifier_copy(struct wmOperatorType *ot)
void ED_operatormacros_sequencer(void)
void sequencer_operatortypes(void)
Definition: sequencer_ops.c:38
void sequencer_keymap(wmKeyConfig *keyconf)
wmOperatorType * ot
Definition: wm_files.c:3156
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
Definition: wm_keymap.c:852
wmOperatorType * WM_operatortype_append_macro(const char *idname, const char *name, const char *description, int flag)
wmOperatorTypeMacro * WM_operatortype_macro_define(wmOperatorType *ot, const char *idname)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))