From fe81cb8af20ecbe721eba55d53fa62c5e2041421 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jun 2013 04:51:32 +0000 Subject: Support removing properties from the properties dialog. You can definitely blow your leg off with this one, clever ontology awareness (e.g. required properties) would be good... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5138 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/Resource.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ingen/Resource.hpp') diff --git a/ingen/Resource.hpp b/ingen/Resource.hpp index 756419d8..3d6d6cd2 100644 --- a/ingen/Resource.hpp +++ b/ingen/Resource.hpp @@ -152,6 +152,15 @@ public: */ virtual void on_property(const Raul::URI& uri, const Atom& value) {} + /** Hook called whenever a property value is removed. + * + * If all values of a given key are removed, then value will be the wildcard. + * + * This can be used by derived classes to implement special behaviour for + * particular properties (e.g. ingen:value for ports). + */ + virtual void on_property_removed(const Raul::URI& uri, const Atom& value) {} + /** Get the ingen type from a set of Properties. * * If some coherent ingen type is found, true is returned and the appropriate -- cgit v1.2.1