summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-19 03:42:30 +0000
committerDavid Robillard <d@drobilla.net>2013-12-19 03:42:30 +0000
commit681fc6bcb59fb959594af6b9694112d4fd493eb0 (patch)
treeafb426be74b4bfd5a2cc4a9dc387b4088dbb6773 /src
parent73f6522b1c60286d35aa64739664273119fb6eb3 (diff)
downloadingen-681fc6bcb59fb959594af6b9694112d4fd493eb0.tar.gz
ingen-681fc6bcb59fb959594af6b9694112d4fd493eb0.tar.bz2
ingen-681fc6bcb59fb959594af6b9694112d4fd493eb0.zip
FDGL: Improve flow-directed layout.
Allow apps to specify nodes as sources to improve layout. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5186 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gui/GraphPortModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp
index 77d8a6fe..9f403d6b 100644
--- a/src/gui/GraphPortModule.cpp
+++ b/src/gui/GraphPortModule.cpp
@@ -52,6 +52,9 @@ GraphPortModule::GraphPortModule(GraphCanvas& canvas,
assert(dynamic_ptr_cast<const GraphModel>(model->parent()));
set_stacked(model->polyphonic());
+ if (model->is_input()) {
+ set_is_source(true);
+ }
model->signal_property().connect(
sigc::mem_fun(this, &GraphPortModule::property_changed));