summaryrefslogtreecommitdiffstats
path: root/src/engine/QueuedEngineInterface.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-11 18:05:24 +0000
committerDavid Robillard <d@drobilla.net>2009-05-11 18:05:24 +0000
commit698c38587bd4f0133a132dc363098ff8298ec47b (patch)
treeabcab2ab196d995fbcc52a4e62c4f5d496b6a754 /src/engine/QueuedEngineInterface.cpp
parent9ea901df533b0326e715ced10b9e9970239da515 (diff)
downloadingen-698c38587bd4f0133a132dc363098ff8298ec47b.tar.gz
ingen-698c38587bd4f0133a132dc363098ff8298ec47b.tar.bz2
ingen-698c38587bd4f0133a132dc363098ff8298ec47b.zip
* New ontology.
* Display human names on patch ports on creation, if enabled. * Fix copy/paste of subpatches. * Split properties into "properties" (class properties) and "variables" (instance properties). * Names are kind of a legacy leftover... * Remove special set poly / enable / etc events in favour of just setting properties (less API, extensible, RDF compatible). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1973 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/QueuedEngineInterface.cpp')
-rw-r--r--src/engine/QueuedEngineInterface.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/engine/QueuedEngineInterface.cpp b/src/engine/QueuedEngineInterface.cpp
index fc3d7788..6a322e16 100644
--- a/src/engine/QueuedEngineInterface.cpp
+++ b/src/engine/QueuedEngineInterface.cpp
@@ -204,20 +204,6 @@ QueuedEngineInterface::clear_patch(const string& patch_path)
void
-QueuedEngineInterface::set_polyphony(const string& patch_path, uint32_t poly)
-{
- push_queued(new SetPolyphonyEvent(_engine, _responder, now(), this, patch_path, poly));
-}
-
-
-void
-QueuedEngineInterface::set_polyphonic(const string& path, bool poly)
-{
- push_queued(new SetPolyphonicEvent(_engine, _responder, now(), this, path, poly));
-}
-
-
-void
QueuedEngineInterface::connect(const string& src_port_path,
const string& dst_port_path)
{
@@ -289,25 +275,7 @@ QueuedEngineInterface::set_property(const string& path,
const string& predicate,
const Atom& value)
{
- // FIXME: implement generically
- if (predicate == "ingen:enabled") {
- if (value.type() == Atom::BOOL) {
- push_queued(new EnablePatchEvent(_engine, _responder, now(), path, value.get_bool()));
- return;
- }
- } else if (predicate == "ingen:polyphonic") {
- if (value.type() == Atom::BOOL) {
- push_queued(new SetPolyphonicEvent(_engine, _responder, now(), this, path, value.get_bool()));
- return;
- }
- } else if (predicate == "ingen:polyphony") {
- if (value.type() == Atom::INT) {
- push_queued(new SetPolyphonyEvent(_engine, _responder, now(), this, path, value.get_int32()));
- return;
- }
- } else {
- push_queued(new SetMetadataEvent(_engine, _responder, now(), true, path, predicate, value));
- }
+ push_queued(new SetMetadataEvent(_engine, _responder, now(), true, path, predicate, value));
}
// Requests //