summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-12-02 05:21:46 +0000
committerDavid Robillard <d@drobilla.net>2007-12-02 05:21:46 +0000
commit8918236846ef0e35f3fccbec6a92978f369323e4 (patch)
tree267d2d0a20da1e694f927b96a2524e2c6fc8df12
parentd844897d9a0cda4af5a701055e53d50623519abe (diff)
downloadingen-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
-rw-r--r--src/libs/gui/PatchCanvas.cpp4
-rw-r--r--src/libs/gui/PatchCanvas.hpp2
-rw-r--r--src/libs/gui/PatchWindow.cpp2
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);
}