diff options
author | David Robillard <d@drobilla.net> | 2006-07-03 17:46:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-03 17:46:19 +0000 |
commit | 0aaae8b002fcff9fdd81a6155c609a546f68b938 (patch) | |
tree | 452897c7b6507d15e85382845bda71e66a3803d8 /src/progs/ingenuity/PatchView.cpp | |
parent | 03aa3b084fe3d97f62b67867085c04a23402397e (diff) | |
download | ingen-0aaae8b002fcff9fdd81a6155c609a546f68b938.tar.gz ingen-0aaae8b002fcff9fdd81a6155c609a546f68b938.tar.bz2 ingen-0aaae8b002fcff9fdd81a6155c609a546f68b938.zip |
Enabled checkbox on patch windows working
git-svn-id: http://svn.drobilla.net/lad/ingen@79 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchView.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchView.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/progs/ingenuity/PatchView.cpp b/src/progs/ingenuity/PatchView.cpp index be9aa1d6..bc1de20f 100644 --- a/src/progs/ingenuity/PatchView.cpp +++ b/src/progs/ingenuity/PatchView.cpp @@ -72,6 +72,9 @@ PatchView::patch_controller(PatchController* pc) m_polyphony_label->set_text(txt); //m_description_window->patch_model(pc->model()); + + pc->patch_model()->enabled_sig.connect(sigc::mem_fun(this, &PatchView::enable)); + pc->patch_model()->disabled_sig.connect(sigc::mem_fun(this, &PatchView::disable)); } @@ -108,10 +111,19 @@ PatchView::process_toggled() void -PatchView::enabled(bool e) +PatchView::enable() +{ + m_enable_signal = false; + m_process_checkbutton->set_active(true); + m_enable_signal = true; +} + + +void +PatchView::disable() { m_enable_signal = false; - m_process_checkbutton->set_active(e); + m_process_checkbutton->set_active(false); m_enable_signal = true; } |