From fb750aa4b85776c423163e04cf709c5c5312a8b5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 26 Sep 2022 11:15:44 -0600 Subject: [PATCH] skeleton to allow opening the library download manager from the clip viewer --- gtk2_ardour/trigger_clip_picker.cc | 6 ++++++ gtk2_ardour/trigger_clip_picker.h | 1 + 2 files changed, 7 insertions(+) diff --git a/gtk2_ardour/trigger_clip_picker.cc b/gtk2_ardour/trigger_clip_picker.cc index ff585bc394..83fef52c31 100644 --- a/gtk2_ardour/trigger_clip_picker.cc +++ b/gtk2_ardour/trigger_clip_picker.cc @@ -308,6 +308,7 @@ TriggerClipPicker::refill_dropdown () _clip_dir_menu.AddMenuElem (Menu_Helpers::SeparatorElem ()); _clip_dir_menu.AddMenuElem (Menu_Helpers::MenuElem (_("Edit..."), sigc::mem_fun (*this, &TriggerClipPicker::edit_path))); _clip_dir_menu.AddMenuElem (Menu_Helpers::MenuElem (_("Other..."), sigc::mem_fun (*this, &TriggerClipPicker::open_dir))); + _clip_dir_menu.AddMenuElem (Menu_Helpers::MenuElem (_("Download..."), sigc::mem_fun (*this, &TriggerClipPicker::open_downloader))); } static bool @@ -653,6 +654,11 @@ audio_midi_suffix (const std::string& str) return false; } +void +TriggerClipPicker::open_downloader () +{ +} + void TriggerClipPicker::open_dir () { diff --git a/gtk2_ardour/trigger_clip_picker.h b/gtk2_ardour/trigger_clip_picker.h index 8de4d7e739..8d3146eff8 100644 --- a/gtk2_ardour/trigger_clip_picker.h +++ b/gtk2_ardour/trigger_clip_picker.h @@ -56,6 +56,7 @@ public: private: void list_dir (std::string const&, Gtk::TreeNodeChildren const* pc = NULL); void open_dir (); + void open_downloader (); void edit_path (); void refill_dropdown (); void parameter_changed (std::string const&);