From c1ac1f31457708db618143f54a3dfef7eb3361aa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 2 Feb 2010 01:22:20 +0000 Subject: Remove set_port_value from CommonInterface (replaced with set_property(path, "ingen:value", value)). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2404 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/ControlPanel.cpp | 2 +- src/gui/NodeMenu.cpp | 5 +++-- src/gui/Port.cpp | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp index 21728d59..e393b7ca 100644 --- a/src/gui/ControlPanel.cpp +++ b/src/gui/ControlPanel.cpp @@ -185,7 +185,7 @@ ControlPanel::value_changed_atom(SharedPtr port, const Raul::Atom& va { if (_callback_enabled) { if (_all_voices_radio->get_active()) { - App::instance().engine()->set_port_value(port->path(), val); + App::instance().engine()->set_property(port->path(), "ingen:value", val); port->value(val); } else { int voice = _voice_spinbutton->get_value_as_int(); diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index 887ef06a..c801d3e7 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -145,7 +145,7 @@ NodeMenu::on_menu_randomize() float min = 0.0f, max = 1.0f; nm->port_value_range(*i, min, max); const float val = ((rand() / (float)RAND_MAX) * (max - min) + min); - App::instance().engine()->set_port_value((*i)->path(), val); + App::instance().engine()->set_property((*i)->path(), "ingen:value", val); } } @@ -176,8 +176,9 @@ NodeMenu::on_preset_activated(const std::string uri) for (; !slv2_results_finished(values); slv2_results_next(values)) { SLV2Value sym = slv2_results_get_binding_value(values, 0); SLV2Value val = slv2_results_get_binding_value(values, 1); - App::instance().engine()->set_port_value( + App::instance().engine()->set_property( node->path().base() + slv2_value_as_string(sym), + "ingen:value", slv2_value_as_float(val)); } App::instance().engine()->bundle_end(); diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index fafac68d..70cade09 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -165,7 +165,7 @@ Port::set_control(float value, bool signal) { if (signal) { if (model()->type() == PortType::CONTROL) { - App::instance().engine()->set_port_value(model()->path(), Atom(value)); + App::instance().engine()->set_property(model()->path(), "ingen:value", Atom(value)); PatchWindow* pw = App::instance().window_factory()->patch_window( PtrCast(model()->parent())); if (!pw) @@ -175,7 +175,7 @@ Port::set_control(float value, bool signal) pw->show_port_status(model().get(), value); } else if (model()->type() == PortType::EVENTS) { - App::instance().engine()->set_port_value(model()->path(), + App::instance().engine()->set_property(model()->path(), "ingen:value", Atom("", 0, NULL)); } } -- cgit v1.2.1