From 6178329ac029b44b7b9b4cfd7185b65aeb3269a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Apr 2007 02:13:23 +0000 Subject: Fixed connection to patch MIDI ports when loading deprecated patches. Fixes for auto-arrange in Ingen. git-svn-id: http://svn.drobilla.net/lad/ingen@411 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/PatchCanvas.cpp | 10 ++++++++++ src/progs/ingenuity/PatchCanvas.h | 1 + src/progs/ingenuity/ingenuity.glade | 19 ++++++++++--------- 3 files changed, 21 insertions(+), 9 deletions(-) (limited to 'src/progs/ingenuity') diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp index 2279a053..13ceaac0 100644 --- a/src/progs/ingenuity/PatchCanvas.cpp +++ b/src/progs/ingenuity/PatchCanvas.cpp @@ -119,6 +119,16 @@ PatchCanvas::build() } +void +PatchCanvas::arrange() +{ + LibFlowCanvas::FlowCanvas::arrange(); + + for (list >::iterator i = _items.begin(); i != _items.end(); ++i) + (*i)->store_location(); +} + + void PatchCanvas::add_node(SharedPtr nm) { diff --git a/src/progs/ingenuity/PatchCanvas.h b/src/progs/ingenuity/PatchCanvas.h index f76e0c94..64f72881 100644 --- a/src/progs/ingenuity/PatchCanvas.h +++ b/src/progs/ingenuity/PatchCanvas.h @@ -61,6 +61,7 @@ public: }*/ void build(); + void arrange(); void add_node(SharedPtr nm); void remove_node(SharedPtr nm); diff --git a/src/progs/ingenuity/ingenuity.glade b/src/progs/ingenuity/ingenuity.glade index 3e578e36..16b2bd9a 100644 --- a/src/progs/ingenuity/ingenuity.glade +++ b/src/progs/ingenuity/ingenuity.glade @@ -49,9 +49,10 @@ _Import True + - + True gtk-open 1 @@ -106,7 +107,7 @@ - + True gtk-preferences 1 @@ -239,7 +240,7 @@ - + True gtk-sort-ascending 1 @@ -262,7 +263,7 @@ - + True gtk-preferences 1 @@ -304,7 +305,7 @@ - + True gtk-delete 1 @@ -341,7 +342,7 @@ - + True gtk-connect 1 @@ -364,7 +365,7 @@ - + True gtk-index 1 @@ -387,7 +388,7 @@ - + True gtk-dialog-error 1 @@ -422,7 +423,7 @@ - + True gtk-info 1 -- cgit v1.2.1