diff options
author | David Robillard <d@drobilla.net> | 2007-04-07 00:52:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-07 00:52:22 +0000 |
commit | dec8f83f342ed76611d7dff156ab29b8df554a00 (patch) | |
tree | ea3ed349a8d67fb19e5e5d3a77384548973754db /src/Patchage.cpp | |
parent | 723b032fdd736230c18d5088ceda7b2f0d2c82cf (diff) | |
download | patchage-dec8f83f342ed76611d7dff156ab29b8df554a00.tar.gz patchage-dec8f83f342ed76611d7dff156ab29b8df554a00.tar.bz2 patchage-dec8f83f342ed76611d7dff156ab29b8df554a00.zip |
Fix for overly loopy connections over short distances.
Auto-arrange support for modules/ports.
Added auto-arrange to Patchage and Ingen.
git-svn-id: http://svn.drobilla.net/lad/patchage@408 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 266913d..cdd21f8 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -146,6 +146,7 @@ Patchage::Patchage(int argc, char** argv) xml->get_widget("store_positions_menuitem", _menu_store_positions); xml->get_widget("file_quit_menuitem", _menu_file_quit); xml->get_widget("view_refresh_menuitem", _menu_view_refresh); + xml->get_widget("view_arrange_menuitem", _menu_view_arrange); xml->get_widget("view_messages_menuitem", _menu_view_messages); xml->get_widget("view_toolbar_menuitem", _menu_view_toolbar); xml->get_widget("help_about_menuitem", _menu_help_about); @@ -219,6 +220,7 @@ Patchage::Patchage(int argc, char** argv) _menu_store_positions->signal_activate().connect(sigc::mem_fun(this, &Patchage::menu_store_positions)); _menu_file_quit->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_file_quit)); _menu_view_refresh->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_view_refresh)); + _menu_view_arrange->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_view_arrange)); _menu_view_toolbar->signal_activate().connect( sigc::mem_fun(this, &Patchage::view_toolbar_toggled)); _menu_view_messages->signal_toggled().connect( sigc::mem_fun(this, &Patchage::show_messages_toggled)); _menu_help_about->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_help_about)); @@ -695,6 +697,15 @@ Patchage::menu_view_refresh() void +Patchage::menu_view_arrange() +{ + assert(_canvas); + + _canvas->arrange(); +} + + +void Patchage::view_toolbar_toggled() { _update_pane_position = false; |