diff options
author | David Robillard <d@drobilla.net> | 2007-12-02 05:21:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-12-02 05:21:46 +0000 |
commit | 8918236846ef0e35f3fccbec6a92978f369323e4 (patch) | |
tree | 267d2d0a20da1e694f927b96a2524e2c6fc8df12 /src/libs/gui | |
parent | d844897d9a0cda4af5a701055e53d50623519abe (diff) | |
download | ingen-8918236846ef0e35f3fccbec6a92978f369323e4.tar.gz ingen-8918236846ef0e35f3fccbec6a92978f369323e4.tar.bz2 ingen-8918236846ef0e35f3fccbec6a92978f369323e4.zip |
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
Diffstat (limited to 'src/libs/gui')
-rw-r--r-- | src/libs/gui/PatchCanvas.cpp | 4 | ||||
-rw-r--r-- | src/libs/gui/PatchCanvas.hpp | 2 | ||||
-rw-r--r-- | src/libs/gui/PatchWindow.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
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<boost::shared_ptr<Item> >::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<NodeModel> nm); void remove_node(SharedPtr<NodeModel> 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); } |