From 019f5553a221e53a47bcc3ef4b6e25e18a297c79 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Aug 2009 21:50:25 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2181 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeMenu.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index ce6c5660..3819f45a 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -88,9 +88,9 @@ NodeMenu::init(SharedPtr node) #ifdef HAVE_SLV2 if (plugin && plugin->type() == PluginModel::LV2) { SLV2Results presets = slv2_plugin_query_sparql(plugin->slv2_plugin(), - "PREFIX lv2p: \n" - "PREFIX dc: \n" - "SELECT ?p ?name WHERE { <> lv2p:hasPreset ?p . ?p dc:title ?name }\n"); + "PREFIX pset: \n" + "PREFIX dc: \n" + "SELECT ?p ?name WHERE { <> pset:hasPreset ?p . ?p dc:title ?name }\n"); if (!slv2_results_finished(presets)) { items().push_front(Gtk::Menu_Helpers::SeparatorElem()); items().push_front(Gtk::Menu_Helpers::ImageMenuElem("_Presets", @@ -175,10 +175,10 @@ NodeMenu::on_preset_activated(const std::string uri) const NodeModel* const node = (NodeModel*)_object.get(); const PluginModel* const plugin = dynamic_cast(node->plugin()); const string query = string( - "PREFIX lv2p: \n" - "PREFIX dc: \n" + "PREFIX pset: \n" + "PREFIX dc: \n" "SELECT ?sym ?val WHERE { <") + uri + "> lv2:port ?port . " - " ?port lv2:symbol ?sym ; lv2p:value ?val . }"; + " ?port lv2:symbol ?sym ; pset:value ?val . }"; SLV2Results values = slv2_plugin_query_sparql(plugin->slv2_plugin(), query.c_str()); App::instance().engine()->bundle_begin(); for (; !slv2_results_finished(values); slv2_results_next(values)) { @@ -187,7 +187,6 @@ NodeMenu::on_preset_activated(const std::string uri) App::instance().engine()->set_port_value( node->path().base() + slv2_value_as_string(sym), slv2_value_as_float(val)); - } App::instance().engine()->bundle_end(); slv2_results_free(values); -- cgit v1.2.1