summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PortModel.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-05-19 21:36:34 +0000
committerDavid Robillard <d@drobilla.net>2008-05-19 21:36:34 +0000
commitf9eba59332ee7e45ffbfebcd0ce79e8e0cfd9ec4 (patch)
treefa8a4a74ee4072987ed79ffdcf766730bcdc0790 /src/libs/client/PortModel.hpp
parentee173c38c5c0a385c46bec12e3f52c57e0e074a0 (diff)
downloadingen-f9eba59332ee7e45ffbfebcd0ce79e8e0cfd9ec4.tar.gz
ingen-f9eba59332ee7e45ffbfebcd0ce79e8e0cfd9ec4.tar.bz2
ingen-f9eba59332ee7e45ffbfebcd0ce79e8e0cfd9ec4.zip
More (but not yet completely) type safe value_changed notification.
git-svn-id: http://svn.drobilla.net/lad/ingen@1216 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PortModel.hpp')
-rw-r--r--src/libs/client/PortModel.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libs/client/PortModel.hpp b/src/libs/client/PortModel.hpp
index 940b967e..759b8c1e 100644
--- a/src/libs/client/PortModel.hpp
+++ b/src/libs/client/PortModel.hpp
@@ -56,18 +56,16 @@ public:
inline bool operator==(const PortModel& pm) const { return (_path == pm._path); }
- inline void value(float val)
+ inline void value(const Atom& val)
{
if (val != _current_val) {
_current_val = val;
- signal_control.emit(val);
+ signal_value_changed.emit(val);
}
}
- inline float value() { return _current_val; }
-
// Signals
- sigc::signal<void, float> signal_control; ///< Control ports
+ sigc::signal<void, const Atom&> signal_value_changed; ///< Value ports
sigc::signal<void> signal_activity; ///< Message ports
sigc::signal<void, SharedPtr<PortModel> > signal_connection;
sigc::signal<void, SharedPtr<PortModel> > signal_disconnection;