Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / editpopup.C
index ff66a88bc2792a4d3f3d223e8a6a8b94cd89ceef..865f77812da0418413c6cc48a856d8e2a5d25a8a 100644 (file)
@@ -67,6 +67,8 @@ void EditPopup::create_objects()
 {
        add_item(open_edl = new EditPopupOpenEDL(mwindow, this));
        add_item(new EditPopupClearSelect(mwindow, this));
+       add_item(new EditPopupSelectEdits(mwindow, this));
+       add_item(new EditPopupDeselectEdits(mwindow, this));
        add_item(new EditPopupCopy(mwindow, this));
        add_item(new EditPopupCut(mwindow, this));
        add_item(new EditPopupMute(mwindow, this));
@@ -140,7 +142,7 @@ int EditPopupOpenEDL::handle_event()
                eprintf(_("Edit is not EDL: %s"), edit_title);
                return 1;
        }
-       mwindow->stack_push(edl, idxbl, edit);
+       mwindow->stack_push(edl, idxbl);
        return 1;
 }
 
@@ -159,6 +161,34 @@ int EditPopupClearSelect::handle_event()
        return 1;
 }
 
+EditPopupSelectEdits::EditPopupSelectEdits(MWindow *mwindow, EditPopup *popup)
+ : BC_MenuItem(_("Select Edits"),_("Ctrl-Alt-'"),'\'')
+{
+       this->mwindow = mwindow;
+       this->popup = popup;
+       set_ctrl(1);
+       set_alt(1);
+}
+
+int EditPopupSelectEdits::handle_event()
+{
+       mwindow->select_edits(1);
+       return 1;
+}
+
+EditPopupDeselectEdits::EditPopupDeselectEdits(MWindow *mwindow, EditPopup *popup)
+ : BC_MenuItem(_("Deselect Edits"))
+{
+       this->mwindow = mwindow;
+       this->popup = popup;
+}
+
+int EditPopupDeselectEdits::handle_event()
+{
+       mwindow->select_edits(0);
+       return 1;
+}
+
 EditPopupCopy::EditPopupCopy(MWindow *mwindow, EditPopup *popup)
  : BC_MenuItem(_("Copy"),_("Ctrl-c"),'c')
 {
@@ -203,11 +233,12 @@ int EditPopupCut::handle_event()
 }
 
 EditPopupCutPack::EditPopupCutPack(MWindow *mwindow, EditPopup *popup)
- : BC_MenuItem(_("Cut pack"),_("Ctrl-z"),'z')
+ : BC_MenuItem(_("Cut pack"),_("Ctrl-Alt-z"),'z')
 {
        this->mwindow = mwindow;
        this->popup = popup;
        set_ctrl(1);
+       set_alt();
 }
 
 int EditPopupCutPack::handle_event()
@@ -346,6 +377,7 @@ EditPopupTimecode::EditPopupTimecode(MWindow *mwindow, EditPopup *popup)
        this->mwindow = mwindow;
        this->popup = popup;
        set_ctrl(1);
+       set_shift(1);
 }
 
 int EditPopupTimecode::handle_event()