aboutsummaryrefslogtreecommitdiffstats
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
commitec50b5ee6f3c27428846e05f6bc46a290b58ce78 (patch)
tree57ace4207c26e741422694e84bb199b2dd67b66a
parent322f81091f5a568b176f87850ccb882ba46cd2d7 (diff)
downloadmachina-ec50b5ee6f3c27428846e05f6bc46a290b58ce78.tar.gz
machina-ec50b5ee6f3c27428846e05f6bc46a290b58ce78.tar.bz2
machina-ec50b5ee6f3c27428846e05f6bc46a290b58ce78.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/machina@5186 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/NodeView.cpp2
-rw-r--r--wscript2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp
index f87b74a..30df429 100644
--- a/src/gui/NodeView.cpp
+++ b/src/gui/NodeView.cpp
@@ -49,6 +49,7 @@ NodeView::NodeView(Gtk::Window* window,
MachinaCanvas* mcanvas = dynamic_cast<MachinaCanvas*>(&canvas);
if (is(mcanvas->app()->forge(), URIs::instance().machina_initial)) {
set_border_width(4.0);
+ set_is_source(true);
const uint8_t alpha[] = { 0xCE, 0xB1, 0 };
set_label((const char*)alpha);
}
@@ -158,6 +159,7 @@ NodeView::on_property(machina::URIInt key, const Atom& value)
}
} else if (key == URIs::instance().machina_initial) {
set_border_width(value.get<int32_t>() ? 4.0 : 1.0);
+ set_is_source(value.get<int32_t>());
} else if (key == URIs::instance().machina_active) {
if (value.get<int32_t>()) {
if (get_fill_color() != active_color) {
diff --git a/wscript b/wscript
index 5f74608..df1901c 100644
--- a/wscript
+++ b/wscript
@@ -41,7 +41,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'raul', uselib_store='RAUL',
atleast_version='0.5.1', mandatory=True)
autowaf.check_pkg(conf, 'ganv-1', uselib_store='GANV',
- atleast_version='1.0.0', mandatory=False)
+ atleast_version='1.2.1', mandatory=False)
autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
atleast_version='0.2.0', mandatory=False)
autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',