diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/App.cpp | 3 | ||||
-rw-r--r-- | src/gui/ControlPanel.cpp | 3 | ||||
-rw-r--r-- | src/gui/PatchCanvas.cpp | 8 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 448f3903..5a42af53 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -390,8 +390,9 @@ bool App::can_control(const Client::PortModel* port) const { return port->is_a(uris().lv2_ControlPort) + || port->is_a(uris().cv_CVPort) || (port->is_a(uris().atom_ValuePort) - && (port->supports(uris().atom_Float32) + && (port->supports(uris().atom_Float) || port->supports(uris().atom_String))); } diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp index 6b3c180d..3c02d2d9 100644 --- a/src/gui/ControlPanel.cpp +++ b/src/gui/ControlPanel.cpp @@ -93,7 +93,8 @@ ControlPanel::add_port(SharedPtr<const PortModel> pm) WidgetFactory::get_widget_derived("toggle_control", tc); control = tc; } else if (pm->is_a(_app->uris().lv2_ControlPort) - || pm->supports(_app->uris().atom_Float32)) { + || pm->is_a(_app->uris().cv_CVPort) + || pm->supports(_app->uris().atom_Float)) { SliderControl* sc; WidgetFactory::get_widget_derived("control_strip", sc); control = sc; diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 0c6d73fa..6690e93f 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -96,16 +96,16 @@ PatchCanvas::PatchCanvas(App& app, // Add port menu items _menu_add_audio_input->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "audio_in", "Audio In", "http://lv2plug.in/ns/lv2core#AudioPort", false)); + "audio_in", "Audio In", LV2_CORE__AudioPort, false)); _menu_add_audio_output->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "audio_out", "Audio Out", "http://lv2plug.in/ns/lv2core#AudioPort", true)); + "audio_out", "Audio Out", LV2_CORE__AudioPort, true)); _menu_add_control_input->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "control_in", "Control In", "http://lv2plug.in/ns/lv2core#ControlPort", false)); + "control_in", "Control In", LV2_CORE__ControlPort, false)); _menu_add_control_output->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), - "control_out", "Control Out", "http://lv2plug.in/ns/lv2core#ControlPort", true)); + "control_out", "Control Out", LV2_CORE__ControlPort, true)); _menu_add_event_input->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_port), "event_in", "Event In", "http://lv2plug.in/ns/ext/event#EventPort", false)); |