+AssetPopupOpenEDL::AssetPopupOpenEDL(MWindow *mwindow, AssetPopup *popup)
+ : BC_MenuItem(_("Open EDL"))
+{
+ this->mwindow = mwindow;
+ this->popup = popup;
+}
+AssetPopupOpenEDL::~AssetPopupOpenEDL()
+{
+}
+
+int AssetPopupOpenEDL::handle_event()
+{
+ int assets_total = mwindow->session->drag_assets->size();
+ if( assets_total ) {
+ popup->unlock_window();
+ Indexable *idxbl = mwindow->session->drag_assets->get(0);
+ EDL *edl = idxbl && !idxbl->is_asset ? (EDL *)idxbl : 0;
+ if( edl )
+ mwindow->stack_push(edl);
+ else
+ eprintf(_("media is not EDL:\n%s"), idxbl->path);
+ popup->lock_window("AssetPopupOpenEDL::handle_event");
+ }
+ return 1;
+}
+
+AssetPopupCloseEDL::AssetPopupCloseEDL(MWindow *mwindow, AWindowGUI *gui)
+ : BC_MenuItem(_("Close EDL"))
+{
+ this->mwindow = mwindow;
+ this->gui = gui;
+}
+AssetPopupCloseEDL::~AssetPopupCloseEDL()
+{
+}
+
+int AssetPopupCloseEDL::handle_event()
+{
+ gui->unlock_window();
+ mwindow->gui->lock_window("AssetPopupCloseEDL::handle_event");
+ mwindow->stack_pop();
+ mwindow->gui->unlock_window();
+ gui->lock_window("AssetPopupCloseEDL::handle_event");
+ return 1;
+}
+
+
+AssetPopupToClip::AssetPopupToClip(MWindow *mwindow, AssetPopup *popup)
+ : BC_MenuItem(_("EDL to clip"))
+{
+ this->mwindow = mwindow;
+ this->popup = popup;
+}
+
+AssetPopupToClip::~AssetPopupToClip()
+{
+}
+
+int AssetPopupToClip::handle_event()
+{
+ mwindow->media_to_clip();
+ return 1;
+}
+
+