"View Frame" now works in the sequencer too
[blender.git] / source / blender / editors / space_sequencer / sequencer_ops.c
index dff8f69509ed21a5b9ab001706b3c66243d72222..655e029cfddd3f2628261f65883a68fe735db042 100644 (file)
@@ -40,6 +40,8 @@
 #include "ED_markers.h"
 #include "ED_transform.h" /* transform keymap */
 
+#include "BKE_sequencer.h"
+
 #include "sequencer_intern.h"
 
 
@@ -50,7 +52,7 @@ void sequencer_operatortypes(void)
 {
        /* sequencer_edit.c */
        WM_operatortype_append(SEQUENCER_OT_cut);
-       WM_operatortype_append(SEQUENCER_OT_trim);
+       WM_operatortype_append(SEQUENCER_OT_slip);
        WM_operatortype_append(SEQUENCER_OT_mute);
        WM_operatortype_append(SEQUENCER_OT_unmute);
        WM_operatortype_append(SEQUENCER_OT_lock);
@@ -75,17 +77,21 @@ void sequencer_operatortypes(void)
        WM_operatortype_append(SEQUENCER_OT_swap_data);
        WM_operatortype_append(SEQUENCER_OT_rendersize);
 
+       WM_operatortype_append(SEQUENCER_OT_export_subtitles);
+
        WM_operatortype_append(SEQUENCER_OT_copy);
        WM_operatortype_append(SEQUENCER_OT_paste);
 
        WM_operatortype_append(SEQUENCER_OT_view_all);
        WM_operatortype_append(SEQUENCER_OT_view_selected);
+       WM_operatortype_append(SEQUENCER_OT_view_frame);
        WM_operatortype_append(SEQUENCER_OT_view_all_preview);
        WM_operatortype_append(SEQUENCER_OT_view_toggle);
        WM_operatortype_append(SEQUENCER_OT_view_zoom_ratio);
        WM_operatortype_append(SEQUENCER_OT_view_ghost_border);
 
        WM_operatortype_append(SEQUENCER_OT_rebuild_proxy);
+       WM_operatortype_append(SEQUENCER_OT_enable_proxies);
        WM_operatortype_append(SEQUENCER_OT_change_effect_input);
        WM_operatortype_append(SEQUENCER_OT_change_effect_type);
        WM_operatortype_append(SEQUENCER_OT_change_path);
@@ -118,6 +124,7 @@ void sequencer_operatortypes(void)
        WM_operatortype_append(SEQUENCER_OT_strip_modifier_add);
        WM_operatortype_append(SEQUENCER_OT_strip_modifier_remove);
        WM_operatortype_append(SEQUENCER_OT_strip_modifier_move);
+       WM_operatortype_append(SEQUENCER_OT_strip_modifier_copy);
 
        /* sequencer_view.h */
        WM_operatortype_append(SEQUENCER_OT_sample);
@@ -196,6 +203,7 @@ void sequencer_keymap(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "SEQUENCER_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "SEQUENCER_OT_view_all", NDOF_BUTTON_FIT, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "SEQUENCER_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "SEQUENCER_OT_view_frame", PAD0, KM_PRESS, 0, 0);
 
        kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_strip_jump", PAGEUPKEY, KM_PRESS, 0, 0);
        RNA_boolean_set(kmi->ptr, "next", true);
@@ -317,7 +325,7 @@ void sequencer_keymap(wmKeyConfig *keyconf)
 
        WM_keymap_add_menu(keymap, "SEQUENCER_MT_change", CKEY, KM_PRESS, 0, 0);
 
-       WM_keymap_add_item(keymap, "SEQUENCER_OT_trim", TKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "SEQUENCER_OT_slip", SKEY, KM_PRESS, 0, 0);
 
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_set_int", OKEY, KM_PRESS, 0, 0);
        RNA_string_set(kmi->ptr, "data_path", "scene.sequence_editor.overlay_frame");
@@ -362,5 +370,5 @@ void ED_operatormacros_sequencer(void)
                                          "Duplicate selected strips and move them", OPTYPE_UNDO | OPTYPE_REGISTER);
 
        WM_operatortype_macro_define(ot, "SEQUENCER_OT_duplicate");
-       WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
+       WM_operatortype_macro_define(ot, "TRANSFORM_OT_seq_slide");
 }