mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
merge 2.0-ongoing into 3.0 @ 3581 - 3710
git-svn-id: svn://localhost/ardour2/branches/3.0@3712 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
68e943265e
commit
c86210a9d5
51 changed files with 1230 additions and 713 deletions
|
|
@ -42,6 +42,10 @@
|
|||
#ifdef VST_SUPPORT
|
||||
#include <ardour/vst_plugin.h>
|
||||
#endif
|
||||
#ifdef HAVE_LV2
|
||||
#include <ardour/lv2_plugin.h>
|
||||
#include "lv2_plugin_ui.h"
|
||||
#endif
|
||||
|
||||
#include <lrdf.h>
|
||||
|
||||
|
|
@ -86,6 +90,10 @@ PluginUIWindow::PluginUIWindow (Gtk::Window* win, boost::shared_ptr<PluginInsert
|
|||
error << _("Eh? LADSPA plugins don't have editors!") << endmsg;
|
||||
break;
|
||||
|
||||
case ARDOUR::LV2:
|
||||
have_gui = create_lv2_editor (insert);
|
||||
break;
|
||||
|
||||
default:
|
||||
#ifndef VST_SUPPORT
|
||||
error << _("unknown type of editor-supplying plugin (note: no VST support in this version of ardour)")
|
||||
|
|
@ -250,6 +258,30 @@ PluginUIWindow::app_activated (bool yn)
|
|||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
|
||||
{
|
||||
#ifndef HAVE_LV2
|
||||
return false;
|
||||
#else
|
||||
|
||||
boost::shared_ptr<LV2Plugin> vp;
|
||||
|
||||
if ((vp = boost::dynamic_pointer_cast<LV2Plugin> (insert->plugin())) == 0) {
|
||||
error << _("create_lv2_editor called on non-LV2 plugin") << endmsg;
|
||||
throw failed_constructor ();
|
||||
} else {
|
||||
LV2PluginUI* lpu = new LV2PluginUI (insert, vp);
|
||||
_pluginui = lpu;
|
||||
add (*lpu);
|
||||
lpu->package (*this);
|
||||
}
|
||||
|
||||
non_gtk_gui = false;
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
PluginUIWindow::on_key_press_event (GdkEventKey* event)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue