From ac408e8d4ce77389e65d69e9a1ff30fd54a25ada Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 8 Jan 2013 04:05:01 +0000 Subject: 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 --- src/client/PortModel.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/client') 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(i->second.get_int32()) == _uris.atom_URID) { + return true; + } + } + return false; +} + void PortModel::set(SharedPtr model) { -- cgit v1.2.1