X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fassetpopup.C;h=6b7173099b5b18d8ee08ff38714a1bb0126768e7;hp=102c803c8d943b36e1cbbed377021244b170d451;hb=a0ed17a5d6ecf2b010d977bc1f9b7226f24c20f6;hpb=050b37188b98a61408badd0582e0605a77275201 diff --git a/cinelerra-5.1/cinelerra/assetpopup.C b/cinelerra-5.1/cinelerra/assetpopup.C index 102c803c..6b717309 100644 --- a/cinelerra-5.1/cinelerra/assetpopup.C +++ b/cinelerra-5.1/cinelerra/assetpopup.C @@ -80,7 +80,8 @@ void AssetPopup::create_objects() add_item(index = new AssetPopupBuildIndex(mwindow, this)); add_item(view = new AssetPopupView(mwindow, this)); add_item(view_window = new AssetPopupViewWindow(mwindow, this)); - add_item(mixer = new AssetPopupMixer(mwindow, this)); + add_item(open_mixer = new AssetPopupOpenMixer(mwindow, this)); + add_item(insert_mixer = new AssetPopupInsertMixer(mwindow, this)); add_item(new AssetPopupPaste(mwindow, this)); add_item(menu_item = new BC_MenuItem(_("Match..."))); menu_item->add_submenu(submenu = new BC_SubMenu()); @@ -269,25 +270,44 @@ int AssetPopupViewWindow::handle_event() return 1; } -AssetPopupMixer::AssetPopupMixer(MWindow *mwindow, AssetPopup *popup) +AssetPopupOpenMixer::AssetPopupOpenMixer(MWindow *mwindow, AssetPopup *popup) : BC_MenuItem(_("Open Mixers")) { this->mwindow = mwindow; this->popup = popup; } -AssetPopupMixer::~AssetPopupMixer() +AssetPopupOpenMixer::~AssetPopupOpenMixer() { } -int AssetPopupMixer::handle_event() +int AssetPopupOpenMixer::handle_event() { - mwindow->gui->lock_window("AssetPopupMixer::handle_event"); + mwindow->gui->lock_window("AssetPopupOpenMixer::handle_event"); mwindow->create_mixers(); mwindow->gui->unlock_window(); return 1; } +AssetPopupInsertMixer::AssetPopupInsertMixer(MWindow *mwindow, AssetPopup *popup) + : BC_MenuItem(_("Insert Mixers")) +{ + this->mwindow = mwindow; + this->popup = popup; +} + +AssetPopupInsertMixer::~AssetPopupInsertMixer() +{ +} + +int AssetPopupInsertMixer::handle_event() +{ + mwindow->gui->lock_window("AssetPopupInsertMixer::handle_event"); + mwindow->create_mixers(-1); + mwindow->gui->unlock_window(); + return 1; +} + AssetPopupPaste::AssetPopupPaste(MWindow *mwindow, AssetPopup *popup) : BC_MenuItem(_("Paste")) {