diff options
author | David Robillard <d@drobilla.net> | 2008-08-17 18:58:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-17 18:58:24 +0000 |
commit | 602e31074b30167baace71ccfff1f58a6b3f0626 (patch) | |
tree | eb7b85c99532af48adfe6322e2b620ac31c62f76 /src/libs/client/PortModel.hpp | |
parent | 0e47cf5e7153a96875a64754291fad1cdbf26da7 (diff) | |
download | ingen-602e31074b30167baace71ccfff1f58a6b3f0626.tar.gz ingen-602e31074b30167baace71ccfff1f58a6b3f0626.tar.bz2 ingen-602e31074b30167baace71ccfff1f58a6b3f0626.zip |
More serialization work.
Preliminary copy/paste (nodes only)
git-svn-id: http://svn.drobilla.net/lad/ingen@1418 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PortModel.hpp')
-rw-r--r-- | src/libs/client/PortModel.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libs/client/PortModel.hpp b/src/libs/client/PortModel.hpp index 8fa18f1c..a86c9188 100644 --- a/src/libs/client/PortModel.hpp +++ b/src/libs/client/PortModel.hpp @@ -56,16 +56,21 @@ public: inline bool operator==(const PortModel& pm) const { return (_path == pm._path); } - inline void value(const Atom& val) - { + inline void value(const Atom& val) { if (val != _current_val) { _current_val = val; signal_value_changed.emit(val); } } + inline void value(uint32_t voice, const Atom& val) { + // FIXME: implement properly + signal_voice_changed.emit(voice, val); + } + // Signals sigc::signal<void, const Atom&> signal_value_changed; ///< Value ports + sigc::signal<void, uint32_t, const Atom&> signal_voice_changed; ///< Polyphonic value ports sigc::signal<void> signal_activity; ///< Message ports sigc::signal<void, SharedPtr<PortModel> > signal_connection; sigc::signal<void, SharedPtr<PortModel> > signal_disconnection; |