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/libs/client/PatchModel.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/libs/client/PatchModel.cpp')
-rw-r--r-- | src/libs/client/PatchModel.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp index d61258f3..659fca23 100644 --- a/src/libs/client/PatchModel.cpp +++ b/src/libs/client/PatchModel.cpp @@ -223,6 +223,26 @@ PatchModel::remove_connection(const string& src_port_path, const string& dst_por } +void +PatchModel::enable() +{ + if (!m_enabled) { + m_enabled = true; + enabled_sig.emit(); + } +} + + +void +PatchModel::disable() +{ + if (m_enabled) { + m_enabled = false; + disabled_sig.emit(); + } +} + + bool PatchModel::polyphonic() const { |