Expose "select all strips to left/right" in the select menu.
[blender.git] / source / blender / editors / space_sequencer / sequencer_ops.c
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * The Original Code is Copyright (C) 2008 Blender Foundation.
19  * All rights reserved.
20  *
21  *
22  * Contributor(s): Blender Foundation
23  *
24  * ***** END GPL LICENSE BLOCK *****
25  */
26
27 /** \file blender/editors/space_sequencer/sequencer_ops.c
28  *  \ingroup spseq
29  */
30
31 #include <stdlib.h>
32 #include <math.h>
33
34 #include "DNA_space_types.h"
35
36 #include "WM_api.h"
37 #include "WM_types.h"
38
39 #include "ED_sequencer.h"
40 #include "ED_markers.h"
41 #include "ED_transform.h" /* transform keymap */
42
43 #include "sequencer_intern.h"
44
45
46 /* ************************** registration **********************************/
47
48
49 void sequencer_operatortypes(void)
50 {
51         /* sequencer_edit.c */
52         WM_operatortype_append(SEQUENCER_OT_cut);
53         WM_operatortype_append(SEQUENCER_OT_mute);
54         WM_operatortype_append(SEQUENCER_OT_unmute);
55         WM_operatortype_append(SEQUENCER_OT_lock);
56         WM_operatortype_append(SEQUENCER_OT_unlock);
57         WM_operatortype_append(SEQUENCER_OT_reload);
58         WM_operatortype_append(SEQUENCER_OT_refresh_all);
59         WM_operatortype_append(SEQUENCER_OT_reassign_inputs);
60         WM_operatortype_append(SEQUENCER_OT_swap_inputs);
61         WM_operatortype_append(SEQUENCER_OT_duplicate);
62         WM_operatortype_append(SEQUENCER_OT_delete);
63         WM_operatortype_append(SEQUENCER_OT_offset_clear);
64         WM_operatortype_append(SEQUENCER_OT_images_separate);
65         WM_operatortype_append(SEQUENCER_OT_meta_toggle);
66         WM_operatortype_append(SEQUENCER_OT_meta_make);
67         WM_operatortype_append(SEQUENCER_OT_meta_separate);
68         
69         WM_operatortype_append(SEQUENCER_OT_gap_remove);
70         WM_operatortype_append(SEQUENCER_OT_gap_insert);
71         WM_operatortype_append(SEQUENCER_OT_snap);
72         WM_operatortype_append(SEQUENCER_OT_strip_jump);
73         WM_operatortype_append(SEQUENCER_OT_swap);
74         WM_operatortype_append(SEQUENCER_OT_swap_data);
75         WM_operatortype_append(SEQUENCER_OT_rendersize);
76
77         WM_operatortype_append(SEQUENCER_OT_copy);
78         WM_operatortype_append(SEQUENCER_OT_paste);
79
80         WM_operatortype_append(SEQUENCER_OT_view_all);
81         WM_operatortype_append(SEQUENCER_OT_view_selected);
82         WM_operatortype_append(SEQUENCER_OT_view_all_preview);
83         WM_operatortype_append(SEQUENCER_OT_view_toggle);
84         WM_operatortype_append(SEQUENCER_OT_view_zoom_ratio);
85         WM_operatortype_append(SEQUENCER_OT_view_ghost_border);
86
87         WM_operatortype_append(SEQUENCER_OT_rebuild_proxy);
88         WM_operatortype_append(SEQUENCER_OT_change_effect_input);
89         WM_operatortype_append(SEQUENCER_OT_change_effect_type);
90         WM_operatortype_append(SEQUENCER_OT_change_path);
91
92         /* sequencer_select.c */
93         WM_operatortype_append(SEQUENCER_OT_select_all);
94         WM_operatortype_append(SEQUENCER_OT_select);
95         WM_operatortype_append(SEQUENCER_OT_select_more);
96         WM_operatortype_append(SEQUENCER_OT_select_less);
97         WM_operatortype_append(SEQUENCER_OT_select_linked_pick);
98         WM_operatortype_append(SEQUENCER_OT_select_linked);
99         WM_operatortype_append(SEQUENCER_OT_select_handles);
100         WM_operatortype_append(SEQUENCER_OT_select_active_side);
101         WM_operatortype_append(SEQUENCER_OT_select_border);
102         WM_operatortype_append(SEQUENCER_OT_select_grouped);
103
104         /* sequencer_add.c */
105         WM_operatortype_append(SEQUENCER_OT_scene_strip_add);
106         WM_operatortype_append(SEQUENCER_OT_movieclip_strip_add);
107         WM_operatortype_append(SEQUENCER_OT_mask_strip_add);
108         WM_operatortype_append(SEQUENCER_OT_movie_strip_add);
109         WM_operatortype_append(SEQUENCER_OT_sound_strip_add);
110         WM_operatortype_append(SEQUENCER_OT_image_strip_add);
111         WM_operatortype_append(SEQUENCER_OT_effect_strip_add);
112
113         /* sequencer_buttons.c */
114         WM_operatortype_append(SEQUENCER_OT_properties);
115
116         /* sequencer_modifiers.c */
117         WM_operatortype_append(SEQUENCER_OT_strip_modifier_add);
118         WM_operatortype_append(SEQUENCER_OT_strip_modifier_remove);
119         WM_operatortype_append(SEQUENCER_OT_strip_modifier_move);
120
121         /* sequencer_view.h */
122         WM_operatortype_append(SEQUENCER_OT_sample);
123 }
124
125
126 void sequencer_keymap(wmKeyConfig *keyconf)
127 {
128         wmKeyMap *keymap;
129         wmKeyMapItem *kmi;
130         
131         /* Common items ------------------------------------------------------------------ */
132         keymap = WM_keymap_find(keyconf, "SequencerCommon", SPACE_SEQ, 0);
133
134         WM_keymap_add_item(keymap, "SEQUENCER_OT_properties", NKEY, KM_PRESS, 0, 0);
135
136         kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", OKEY, KM_PRESS, KM_SHIFT, 0);
137         RNA_string_set(kmi->ptr, "data_path", "scene.sequence_editor.show_overlay");
138
139         /* operators common to sequence and preview view */
140         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_toggle", TABKEY, KM_PRESS, KM_CTRL, 0);
141
142         /* Strips Region --------------------------------------------------------------- */
143         keymap = WM_keymap_find(keyconf, "Sequencer", SPACE_SEQ, 0);
144
145         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select_all", AKEY, KM_PRESS, 0, 0);
146         RNA_enum_set(kmi->ptr, "action", SEL_TOGGLE);
147         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select_all", IKEY, KM_PRESS, KM_CTRL, 0);
148         RNA_enum_set(kmi->ptr, "action", SEL_INVERT);
149
150         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_cut", KKEY, KM_PRESS, 0, 0);
151         RNA_enum_set(kmi->ptr, "type", SEQ_CUT_SOFT);
152         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_cut", KKEY, KM_PRESS, KM_SHIFT, 0);
153         RNA_enum_set(kmi->ptr, "type", SEQ_CUT_HARD);
154
155         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_mute", HKEY, KM_PRESS, 0, 0);
156         RNA_boolean_set(kmi->ptr, "unselected", false);
157         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_mute", HKEY, KM_PRESS, KM_SHIFT, 0);
158         RNA_boolean_set(kmi->ptr, "unselected", true);
159
160         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_unmute", HKEY, KM_PRESS, KM_ALT, 0);
161         RNA_boolean_set(kmi->ptr, "unselected", false);
162         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_unmute", HKEY, KM_PRESS, KM_ALT | KM_SHIFT, 0);
163         RNA_boolean_set(kmi->ptr, "unselected", true);
164
165         WM_keymap_add_item(keymap, "SEQUENCER_OT_lock", LKEY, KM_PRESS, KM_SHIFT, 0);
166         WM_keymap_add_item(keymap, "SEQUENCER_OT_unlock", LKEY, KM_PRESS, KM_SHIFT | KM_ALT, 0);
167
168         WM_keymap_add_item(keymap, "SEQUENCER_OT_reassign_inputs", RKEY, KM_PRESS, 0, 0);
169
170         WM_keymap_add_item(keymap, "SEQUENCER_OT_reload", RKEY, KM_PRESS, KM_ALT, 0);
171         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_reload", RKEY, KM_PRESS, KM_SHIFT | KM_ALT, 0);
172         RNA_boolean_set(kmi->ptr, "adjust_length", true);
173
174         WM_keymap_add_item(keymap, "SEQUENCER_OT_offset_clear", OKEY, KM_PRESS, KM_ALT, 0);
175
176         WM_keymap_add_item(keymap, "SEQUENCER_OT_duplicate_move", DKEY, KM_PRESS, KM_SHIFT, 0);
177
178         WM_keymap_add_item(keymap, "SEQUENCER_OT_delete", XKEY, KM_PRESS, 0, 0);
179         WM_keymap_add_item(keymap, "SEQUENCER_OT_delete", DELKEY, KM_PRESS, 0, 0);
180
181         WM_keymap_add_item(keymap, "SEQUENCER_OT_copy", CKEY, KM_PRESS, KM_CTRL, 0);
182         WM_keymap_add_item(keymap, "SEQUENCER_OT_paste", VKEY, KM_PRESS, KM_CTRL, 0);
183 #ifdef __APPLE__
184         WM_keymap_add_item(keymap, "SEQUENCER_OT_copy", CKEY, KM_PRESS, KM_OSKEY, 0);
185         WM_keymap_add_item(keymap, "SEQUENCER_OT_paste", VKEY, KM_PRESS, KM_OSKEY, 0);
186 #endif
187
188         WM_keymap_add_item(keymap, "SEQUENCER_OT_images_separate", YKEY, KM_PRESS, 0, 0);
189
190         WM_keymap_add_item(keymap, "SEQUENCER_OT_meta_toggle", TABKEY, KM_PRESS, 0, 0);
191
192         WM_keymap_add_item(keymap, "SEQUENCER_OT_meta_make", GKEY, KM_PRESS, KM_CTRL, 0);
193         WM_keymap_add_item(keymap, "SEQUENCER_OT_meta_separate", GKEY, KM_PRESS, KM_ALT, 0);
194
195         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
196         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_all", NDOF_BUTTON_FIT, KM_PRESS, 0, 0);
197         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
198
199         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_strip_jump", PAGEUPKEY, KM_PRESS, 0, 0);
200         RNA_boolean_set(kmi->ptr, "next", true);
201         RNA_boolean_set(kmi->ptr, "center", false);
202         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_strip_jump", PAGEDOWNKEY, KM_PRESS, 0, 0);
203         RNA_boolean_set(kmi->ptr, "next", false);
204         RNA_boolean_set(kmi->ptr, "center", false);
205
206         /* alt for center */
207         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_strip_jump", PAGEUPKEY, KM_PRESS, KM_ALT, 0);
208         RNA_boolean_set(kmi->ptr, "next", true);
209         RNA_boolean_set(kmi->ptr, "center", true);
210         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_strip_jump", PAGEDOWNKEY, KM_PRESS, KM_ALT, 0);
211         RNA_boolean_set(kmi->ptr, "next", false);
212         RNA_boolean_set(kmi->ptr, "center", true);
213
214         RNA_enum_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_swap", LEFTARROWKEY, KM_PRESS, KM_ALT, 0)->ptr, "side", SEQ_SIDE_LEFT);
215         RNA_enum_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_swap", RIGHTARROWKEY, KM_PRESS, KM_ALT, 0)->ptr, "side", SEQ_SIDE_RIGHT);
216
217         RNA_boolean_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_gap_remove", BACKSPACEKEY, KM_PRESS, 0, 0)->ptr, "all", false);
218         RNA_boolean_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_gap_remove", BACKSPACEKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "all", true);
219         WM_keymap_add_item(keymap, "SEQUENCER_OT_gap_insert", EQUALKEY, KM_PRESS, KM_SHIFT, 0);
220         
221         WM_keymap_add_item(keymap, "SEQUENCER_OT_snap", SKEY, KM_PRESS, KM_SHIFT, 0);
222         WM_keymap_add_item(keymap, "SEQUENCER_OT_swap_inputs", SKEY, KM_PRESS, KM_ALT, 0);
223
224         /* multicam editing keyboard layout, switch to camera 1-10 using
225          * regular number keys */
226         {
227                 int keys[] = { ONEKEY, TWOKEY, THREEKEY, FOURKEY, FIVEKEY,
228                                    SIXKEY, SEVENKEY, EIGHTKEY, NINEKEY, ZEROKEY };
229                 int i;
230
231                 for (i = 1; i <= 10; i++) {
232                         RNA_int_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_cut_multicam", keys[i - 1], KM_PRESS, 0, 0)->ptr, "camera", i);
233                 }
234         }
235
236         /* Mouse selection, a bit verbose :/ */
237         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, 0, 0);
238         RNA_boolean_set(kmi->ptr, "extend", false);
239         RNA_boolean_set(kmi->ptr, "linked_handle", false);
240         RNA_enum_set(kmi->ptr, "left_right", SEQ_SELECT_LR_NONE);
241         RNA_boolean_set(kmi->ptr, "linked_time", false);
242         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT, 0);
243         RNA_boolean_set(kmi->ptr, "extend", true);
244         RNA_boolean_set(kmi->ptr, "linked_handle", false);
245         RNA_enum_set(kmi->ptr, "left_right", SEQ_SELECT_LR_NONE);
246         RNA_boolean_set(kmi->ptr, "linked_time", false);
247
248
249         /* 2.4x method, now use Alt for handles and select the side based on which handle was selected */
250 #if 0
251         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_CTRL, 0);
252         RNA_boolean_set(kmi->ptr, "linked_left", true);
253         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_ALT, 0);
254         RNA_boolean_set(kmi->ptr, "linked_right", true);
255
256         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_CTRL | KM_ALT, 0);
257         RNA_boolean_set(kmi->ptr, "linked_left", true);
258         RNA_boolean_set(kmi->ptr, "linked_right", true);
259
260         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT | KM_CTRL | KM_ALT, 0);
261         RNA_boolean_set(kmi->ptr, "extend", true);
262         RNA_boolean_set(kmi->ptr, "linked_left", true);
263         RNA_boolean_set(kmi->ptr, "linked_right", true);
264
265         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT | KM_CTRL, 0);
266         RNA_boolean_set(kmi->ptr, "extend", true);
267         RNA_boolean_set(kmi->ptr, "linked_left", true);
268
269         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT | KM_ALT, 0);
270         RNA_boolean_set(kmi->ptr, "extend", true);
271         RNA_boolean_set(kmi->ptr, "linked_right", true);
272 #endif
273
274         /* 2.5 method, Alt and use selected handle */
275         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_ALT, 0);
276         RNA_boolean_set(kmi->ptr, "extend", false);
277         RNA_boolean_set(kmi->ptr, "linked_handle", true);
278         RNA_enum_set(kmi->ptr, "left_right", SEQ_SELECT_LR_NONE);
279         RNA_boolean_set(kmi->ptr, "linked_time", false);
280
281         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT | KM_ALT, 0);
282         RNA_boolean_set(kmi->ptr, "extend", true);
283         RNA_boolean_set(kmi->ptr, "linked_handle", true);
284         RNA_enum_set(kmi->ptr, "left_right", SEQ_SELECT_LR_NONE);
285         RNA_boolean_set(kmi->ptr, "linked_time", false);
286
287         /* match action editor */
288         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_CTRL, 0);
289         RNA_boolean_set(kmi->ptr, "extend", false);
290         RNA_boolean_set(kmi->ptr, "linked_handle", false);
291         RNA_enum_set(kmi->ptr, "left_right", SEQ_SELECT_LR_MOUSE);     /* grr, these conflict - only use left_right if not over an active seq */
292         RNA_boolean_set(kmi->ptr, "linked_time", true);
293         /* adjusted since 2.4 */
294
295         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select", SELECTMOUSE, KM_PRESS, KM_SHIFT | KM_CTRL, 0);
296         RNA_boolean_set(kmi->ptr, "extend", true);
297         RNA_boolean_set(kmi->ptr, "linked_handle", false);
298         RNA_enum_set(kmi->ptr, "left_right", SEQ_SELECT_LR_NONE);
299         RNA_boolean_set(kmi->ptr, "linked_time", true);
300
301         WM_keymap_add_item(keymap, "SEQUENCER_OT_select_more", PADPLUSKEY, KM_PRESS, KM_CTRL, 0);
302         WM_keymap_add_item(keymap, "SEQUENCER_OT_select_less", PADMINUS, KM_PRESS, KM_CTRL, 0);
303
304         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select_linked_pick", LKEY, KM_PRESS, 0, 0);
305         RNA_boolean_set(kmi->ptr, "extend", false);
306         kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_select_linked_pick", LKEY, KM_PRESS, KM_SHIFT, 0);
307         RNA_boolean_set(kmi->ptr, "extend", true);
308
309         WM_keymap_add_item(keymap, "SEQUENCER_OT_select_linked", LKEY, KM_PRESS, KM_CTRL, 0);
310
311         WM_keymap_add_item(keymap, "SEQUENCER_OT_select_border", BKEY, KM_PRESS, 0, 0);
312
313         WM_keymap_add_item(keymap, "SEQUENCER_OT_select_grouped", GKEY, KM_PRESS, KM_SHIFT, 0);
314
315         WM_keymap_add_menu(keymap, "SEQUENCER_MT_add", AKEY, KM_PRESS, KM_SHIFT, 0);
316
317         WM_keymap_add_menu(keymap, "SEQUENCER_MT_change", CKEY, KM_PRESS, 0, 0);
318
319         kmi = WM_keymap_add_item(keymap, "WM_OT_context_set_int", OKEY, KM_PRESS, 0, 0);
320         RNA_string_set(kmi->ptr, "data_path", "scene.sequence_editor.overlay_frame");
321         RNA_int_set(kmi->ptr, "value", 0);
322
323         transform_keymap_for_space(keyconf, keymap, SPACE_SEQ);
324
325         /* special markers hotkeys for anim editors: see note in definition of this function */
326         ED_marker_keymap_animedit_conflictfree(keymap);
327
328
329         /* Preview Region ----------------------------------------------------------- */
330         keymap = WM_keymap_find(keyconf, "SequencerPreview", SPACE_SEQ, 0);
331         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_all_preview", HOMEKEY, KM_PRESS, 0, 0);
332         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_all_preview", NDOF_BUTTON_FIT, KM_PRESS, 0, 0);
333
334         WM_keymap_add_item(keymap, "SEQUENCER_OT_view_ghost_border", OKEY, KM_PRESS, 0, 0);
335
336         /* would prefer to use numpad keys for job */
337         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD1, KM_PRESS, 0, 0)->ptr, "ratio", 1.0f);
338
339         /* Setting zoom levels is not that useful, except for back to zoom level 1, removing keymap because of conflicts for now */
340 #if 0
341         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD8, KM_PRESS, KM_SHIFT, 0)->ptr, "ratio", 8.0f);
342         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD4, KM_PRESS, KM_SHIFT, 0)->ptr, "ratio", 4.0f);
343         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD2, KM_PRESS, KM_SHIFT, 0)->ptr, "ratio", 2.0f);
344
345         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD2, KM_PRESS, 0, 0)->ptr, "ratio", 0.5f);
346         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD4, KM_PRESS, 0, 0)->ptr, "ratio", 0.25f);
347         RNA_float_set(WM_keymap_add_item(keymap, "SEQUENCER_OT_view_zoom_ratio", PAD8, KM_PRESS, 0, 0)->ptr, "ratio", 0.125f);
348 #endif
349
350         /* sample */
351         WM_keymap_add_item(keymap, "SEQUENCER_OT_sample", ACTIONMOUSE, KM_PRESS, 0, 0);
352 }
353
354 void ED_operatormacros_sequencer(void)
355 {
356         wmOperatorType *ot;
357
358         ot = WM_operatortype_append_macro("SEQUENCER_OT_duplicate_move", "Duplicate Strips",
359                                           "Duplicate selected strips and move them", OPTYPE_UNDO | OPTYPE_REGISTER);
360
361         WM_operatortype_macro_define(ot, "SEQUENCER_OT_duplicate");
362         WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
363 }