From 254b434f0a79fea54bd963e8ff2e845a5b0cd3a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Mar 2012 20:16:46 +0000 Subject: Partially functioning communication between Ingen LV2 plugin and UI. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4078 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/Port.cpp') diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index aa3786e3..d61724d6 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -50,7 +50,7 @@ Port::create(App& app, Glib::ustring label(human_name ? "" : pm->path().symbol()); if (human_name) { const Raul::Atom& name = pm->get_property(app.uris().lv2_name); - if (name.type() == Raul::Atom::STRING) { + if (name.type() == app.forge().String) { label = name.get_string(); } else { const SharedPtr parent(PtrCast(pm->parent())); @@ -163,7 +163,7 @@ Port::on_value_changed(const Glib::VariantBase& value) void Port::value_changed(const Atom& value) { - if (!_pressed && value.type() == Atom::FLOAT) { + if (!_pressed && value.type() == _app.forge().Float) { Ganv::Port::set_control_value(value.get_float()); } } @@ -278,7 +278,7 @@ void Port::property_changed(const URI& key, const Atom& value) { const URIs& uris = _app.uris(); - if (value.type() == Atom::FLOAT) { + if (value.type() == uris.forge.Float) { float val = value.get_float(); if (key == uris.ingen_value && !_pressed) { Ganv::Port::set_control_value(val); @@ -299,7 +299,7 @@ Port::property_changed(const URI& key, const Atom& value) } else if (key == uris.ctx_context) { Raul::info << "TODO: Visual indication of port context?" << std::endl; } else if (key == uris.lv2_name) { - if (value.type() == Atom::STRING + if (value.type() == uris.forge.String && _app.configuration()->name_style() == Configuration::HUMAN) { set_label(value.get_string()); } -- cgit v1.2.1