From ec50b5ee6f3c27428846e05f6bc46a290b58ce78 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Dec 2013 03:42:30 +0000 Subject: 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 --- src/gui/NodeView.cpp | 2 ++ wscript | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(&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() ? 4.0 : 1.0); + set_is_source(value.get()); } else if (key == URIs::instance().machina_active) { if (value.get()) { 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', -- cgit v1.2.1