diff options
author | David Robillard <d@drobilla.net> | 2013-12-19 03:42:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-19 03:42:30 +0000 |
commit | ec50b5ee6f3c27428846e05f6bc46a290b58ce78 (patch) | |
tree | 57ace4207c26e741422694e84bb199b2dd67b66a /src/gui | |
parent | 322f81091f5a568b176f87850ccb882ba46cd2d7 (diff) | |
download | machina-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
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/NodeView.cpp | 2 |
1 files changed, 2 insertions, 0 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) { |