summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-08 04:05:01 +0000
committerDavid Robillard <d@drobilla.net>2013-01-08 04:05:01 +0000
commitac408e8d4ce77389e65d69e9a1ff30fd54a25ada (patch)
tree27d3f568c8a8040c345dd61a890dabd08549cd5c /src/client
parent63d21b23d262b0c5169d54822aa5723b6200c764 (diff)
downloadingen-ac408e8d4ce77389e65d69e9a1ff30fd54a25ada.tar.gz
ingen-ac408e8d4ce77389e65d69e9a1ff30fd54a25ada.tar.bz2
ingen-ac408e8d4ce77389e65d69e9a1ff30fd54a25ada.zip
Add support for URID ports.
Fix glib errors when resetting properties dialog. Move RDFS domain/range/classes/etc code to reusable location. Add preliminary "mesp" (message processing) plugin package. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4903 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/PortModel.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp
index fdef852d..e936a1e2 100644
--- a/src/client/PortModel.cpp
+++ b/src/client/PortModel.cpp
@@ -50,6 +50,20 @@ PortModel::port_property(const Raul::URI& uri) const
_uris.forge.alloc_uri(uri));
}
+bool
+PortModel::is_uri() const
+{
+ // FIXME: Resource::has_property doesn't work, URI != URID
+ for (Resource::Properties::const_iterator i = properties().begin();
+ i != properties().end(); ++i) {
+ if (i->second.type() == _uris.atom_URID &&
+ static_cast<LV2_URID>(i->second.get_int32()) == _uris.atom_URID) {
+ return true;
+ }
+ }
+ return false;
+}
+
void
PortModel::set(SharedPtr<ObjectModel> model)
{