summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-07 00:52:22 +0000
committerDavid Robillard <d@drobilla.net>2007-04-07 00:52:22 +0000
commitbaf083b6075076cd20317d88fd25a370448f2bd7 (patch)
tree5445a7d66c303520f446c94cb58a1329977f0611 /src/progs/ingenuity/PatchWindow.cpp
parent46c75ceddd38b9ec95e2a039fa6199e0bc78493d (diff)
downloadingen-baf083b6075076cd20317d88fd25a370448f2bd7.tar.gz
ingen-baf083b6075076cd20317d88fd25a370448f2bd7.tar.bz2
ingen-baf083b6075076cd20317d88fd25a370448f2bd7.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/ingen@408 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchWindow.cpp')
-rw-r--r--src/progs/ingenuity/PatchWindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/progs/ingenuity/PatchWindow.cpp b/src/progs/ingenuity/PatchWindow.cpp
index 7556689b..a0a0c6a3 100644
--- a/src/progs/ingenuity/PatchWindow.cpp
+++ b/src/progs/ingenuity/PatchWindow.cpp
@@ -71,6 +71,7 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
xml->get_widget("patch_view_engine_window_menuitem", _menu_view_engine_window);
xml->get_widget("patch_properties_menuitem", _menu_view_patch_properties);
xml->get_widget("patch_fullscreen_menuitem", _menu_fullscreen);
+ xml->get_widget("patch_arrange_menuitem", _menu_arrange);
xml->get_widget("patch_clear_menuitem", _menu_clear);
xml->get_widget("patch_destroy_menuitem", _menu_destroy_patch);
xml->get_widget("patch_view_messages_window_menuitem", _menu_view_messages_window);
@@ -99,6 +100,8 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
sigc::mem_fun(App::instance().configuration_dialog(), &ConfigWindow::show));
_menu_fullscreen->signal_activate().connect(
sigc::mem_fun(this, &PatchWindow::event_fullscreen_toggled));
+ _menu_arrange->signal_activate().connect(
+ sigc::mem_fun(this, &PatchWindow::event_arrange));
_menu_view_engine_window->signal_activate().connect(
sigc::mem_fun(this, &PatchWindow::event_show_engine));
_menu_view_control_window->signal_activate().connect(
@@ -378,6 +381,7 @@ PatchWindow::event_quit()
b->set_label("_Quit");
Gtk::Widget* close_img = Gtk::manage(new Gtk::Image(Gtk::Stock::QUIT, Gtk::ICON_SIZE_BUTTON));
b->set_image(*close_img);
+ b->grab_default();
int ret = d.run();
if (ret == 1) {
@@ -403,6 +407,14 @@ PatchWindow::event_clear()
App::instance().engine()->clear_patch(_patch->path());
}
+
+void
+PatchWindow::event_arrange()
+{
+ _view->canvas()->arrange();
+}
+
+
void
PatchWindow::event_fullscreen_toggled()
{