diff options
author | David Robillard <d@drobilla.net> | 2007-10-01 05:27:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-01 05:27:41 +0000 |
commit | a47220df59c076eaa717710dc2ffc6614bee268c (patch) | |
tree | bea9dd981dd6a8ca90bb27c77bb976997be31f2d /src/libs/gui/Port.cpp | |
parent | 344cdcbd4f2bc7a9203b4e98da2ac349581e521a (diff) | |
download | ingen-a47220df59c076eaa717710dc2ffc6614bee268c.tar.gz ingen-a47220df59c076eaa717710dc2ffc6614bee268c.tar.bz2 ingen-a47220df59c076eaa717710dc2ffc6614bee268c.zip |
Blink MIDI ports on message transmission.
git-svn-id: http://svn.drobilla.net/lad/ingen@794 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/Port.cpp')
-rw-r--r-- | src/libs/gui/Port.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp index a75d9cee..228e4598 100644 --- a/src/libs/gui/Port.cpp +++ b/src/libs/gui/Port.cpp @@ -61,6 +61,8 @@ Port::Port(boost::shared_ptr<FlowCanvas::Module> module, SharedPtr<PortModel> pm pm->signal_metadata.connect(sigc::mem_fun(this, &Port::metadata_update)); _port_model->signal_control.connect(sigc::mem_fun(this, &Port::control_changed)); } + + _port_model->signal_activity.connect(sigc::mem_fun(this, &Port::activity)); control_changed(_port_model->value()); } @@ -90,6 +92,13 @@ Port::control_changed(float value) FlowCanvas::Port::set_control(value); } + +void +Port::activity() +{ + App::instance().port_activity(this); +} + void Port::set_control(float value, bool signal) |