summaryrefslogtreecommitdiffstats
path: root/src/client/PortModel.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-02 01:22:20 +0000
committerDavid Robillard <d@drobilla.net>2010-02-02 01:22:20 +0000
commitc1ac1f31457708db618143f54a3dfef7eb3361aa (patch)
tree88c91e75f4a90cf6efab9ab6f8219d53dd5b892f /src/client/PortModel.hpp
parent6e8877ee110b774caef800adbe35b21338b3372f (diff)
downloadingen-c1ac1f31457708db618143f54a3dfef7eb3361aa.tar.gz
ingen-c1ac1f31457708db618143f54a3dfef7eb3361aa.tar.bz2
ingen-c1ac1f31457708db618143f54a3dfef7eb3361aa.zip
Remove set_port_value from CommonInterface (replaced with set_property(path, "ingen:value", value)).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2404 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PortModel.hpp')
-rw-r--r--src/client/PortModel.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/PortModel.hpp b/src/client/PortModel.hpp
index 8cf0dccb..58f3262e 100644
--- a/src/client/PortModel.hpp
+++ b/src/client/PortModel.hpp
@@ -59,6 +59,14 @@ public:
inline bool operator==(const PortModel& pm) const { return (_path == pm._path); }
+ Raul::Atom& set_property(const Raul::URI& uri,
+ const Raul::Atom& value) {
+ Raul::Atom& ret = ObjectModel::set_property(uri, value);
+ if (uri.str() == "ingen:value")
+ this->value(value);
+ return ret;
+ }
+
inline void value(const Raul::Atom& val) {
if (val != _current_val) {
_current_val = val;