From fa067527fe00b66b85d71955e152e9ef9215c9cd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Aug 2008 04:05:30 +0000 Subject: Replace imperative polyphony/polyphonic stuff with properties (kill more API). git-svn-id: http://svn.drobilla.net/lad/ingen@1412 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/ClientStore.cpp | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'src/libs/client/ClientStore.cpp') diff --git a/src/libs/client/ClientStore.cpp b/src/libs/client/ClientStore.cpp index 1fb00eea..969f3a8f 100644 --- a/src/libs/client/ClientStore.cpp +++ b/src/libs/client/ClientStore.cpp @@ -42,8 +42,6 @@ ClientStore::ClientStore(SharedPtr engine, SharedPtrsignal_new_patch.connect(sigc::mem_fun(this, &ClientStore::new_patch_event)); emitter->signal_new_node.connect(sigc::mem_fun(this, &ClientStore::new_node_event)); emitter->signal_new_port.connect(sigc::mem_fun(this, &ClientStore::new_port_event)); - emitter->signal_polyphonic.connect(sigc::mem_fun(this, &ClientStore::polyphonic_event)); - emitter->signal_patch_polyphony.connect(sigc::mem_fun(this, &ClientStore::patch_polyphony_event)); emitter->signal_patch_cleared.connect(sigc::mem_fun(this, &ClientStore::patch_cleared_event)); emitter->signal_connection.connect(sigc::mem_fun(this, &ClientStore::connection_event)); emitter->signal_disconnection.connect(sigc::mem_fun(this, &ClientStore::disconnection_event)); @@ -417,14 +415,14 @@ ClientStore::new_patch_event(const Path& path, uint32_t poly) void -ClientStore::new_node_event(const Path& path, const string& plugin_uri, bool polyphonic) +ClientStore::new_node_event(const Path& path, const string& plugin_uri) { SharedPtr plug = plugin(plugin_uri); if (!plug) { - SharedPtr n(new NodeModel(plugin_uri, path, polyphonic)); + SharedPtr n(new NodeModel(plugin_uri, path)); add_plugin_orphan(n); } else { - SharedPtr n(new NodeModel(plug, path, polyphonic)); + SharedPtr n(new NodeModel(plug, path)); add_object(n); } } @@ -441,24 +439,6 @@ ClientStore::new_port_event(const Path& path, uint32_t index, const string& type resolve_connection_orphans(p); } - -void -ClientStore::polyphonic_event(const Path& path, bool polyphonic) -{ - SharedPtr object = this->object(path); - if (object) - object->set_polyphonic(polyphonic); -} - - -void -ClientStore::patch_polyphony_event(const Path& path, uint32_t poly) -{ - SharedPtr patch = PtrCast(object(path)); - if (patch) - patch->poly(poly); -} - void ClientStore::patch_cleared_event(const Path& path) -- cgit v1.2.1