From 8918236846ef0e35f3fccbec6a92978f369323e4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Dec 2007 05:21:46 +0000 Subject: Optional edge length hints for FlowCanvas (only used by Machina). git-svn-id: http://svn.drobilla.net/lad/ingen@939 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/PatchCanvas.cpp | 4 ++-- src/libs/gui/PatchCanvas.hpp | 2 +- src/libs/gui/PatchWindow.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp index 657617dd..4fec2626 100644 --- a/src/libs/gui/PatchCanvas.cpp +++ b/src/libs/gui/PatchCanvas.cpp @@ -227,9 +227,9 @@ PatchCanvas::build() void -PatchCanvas::arrange() +PatchCanvas::arrange(bool ingen_doesnt_use_length_hints) { - FlowCanvas::Canvas::arrange(); + FlowCanvas::Canvas::arrange(false); for (list >::iterator i = _items.begin(); i != _items.end(); ++i) (*i)->store_location(); diff --git a/src/libs/gui/PatchCanvas.hpp b/src/libs/gui/PatchCanvas.hpp index fdd7cb34..1df3773f 100644 --- a/src/libs/gui/PatchCanvas.hpp +++ b/src/libs/gui/PatchCanvas.hpp @@ -65,7 +65,7 @@ public: }*/ void build(); - void arrange(); + void arrange(bool use_length_hints); void add_node(SharedPtr nm); void remove_node(SharedPtr nm); diff --git a/src/libs/gui/PatchWindow.cpp b/src/libs/gui/PatchWindow.cpp index 5569c037..7d72f9ab 100644 --- a/src/libs/gui/PatchWindow.cpp +++ b/src/libs/gui/PatchWindow.cpp @@ -476,7 +476,7 @@ PatchWindow::event_clear() void PatchWindow::event_arrange() { - _view->canvas()->arrange(); + _view->canvas()->arrange(false); } -- cgit v1.2.1