diff options
author | David Robillard <d@drobilla.net> | 2006-09-10 20:11:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-10 20:11:40 +0000 |
commit | e772196c07ff58022beaabf5e494be3441d1ba4a (patch) | |
tree | 4a3dc214fb333d9787c666e1b3d239124b94302e /src/progs/ingenuity/PatchView.cpp | |
parent | 8854610aac91caaf6bb8db782cc4c9bd2ca53c52 (diff) | |
download | ingen-e772196c07ff58022beaabf5e494be3441d1ba4a.tar.gz ingen-e772196c07ff58022beaabf5e494be3441d1ba4a.tar.bz2 ingen-e772196c07ff58022beaabf5e494be3441d1ba4a.zip |
Zoom Full feature in FlowCanvas/Ingenuity.
Fix for reattaching to running engine (reponse ID bug).
More GUI work.
git-svn-id: http://svn.drobilla.net/lad/ingen@126 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchView.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchView.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/progs/ingenuity/PatchView.cpp b/src/progs/ingenuity/PatchView.cpp index eb1fc1ce..bce44369 100644 --- a/src/progs/ingenuity/PatchView.cpp +++ b/src/progs/ingenuity/PatchView.cpp @@ -42,12 +42,16 @@ PatchView::PatchView(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::X { property_visible() = false; - xml->get_widget("patch_view_scrolledwindow", _canvas_scrolledwindow); + xml->get_widget("patch_view_breadcrumb_container", _breadcrumb_container); + xml->get_widget("patch_view_process_but", _process_but); + xml->get_widget("patch_view_poly_spin", _poly_spin); + xml->get_widget("patch_view_clear_but", _clear_but); + xml->get_widget("patch_view_destroy_but", _destroy_but); + xml->get_widget("patch_view_refresh_but", _refresh_but); + xml->get_widget("patch_view_save_but", _save_but); xml->get_widget("patch_view_zoom_full_but", _zoom_full_but); xml->get_widget("patch_view_zoom_normal_but", _zoom_normal_but); - xml->get_widget("patch_view_poly_spin", _poly_spin); - xml->get_widget("patch_view_process_but", _process_but); - xml->get_widget("patch_view_breadcrumb_container", _breadcrumb_container); + xml->get_widget("patch_view_scrolledwindow", _canvas_scrolledwindow); _process_but->signal_toggled().connect(sigc::mem_fun(this, &PatchView::process_toggled)); } @@ -64,7 +68,7 @@ PatchView::patch_controller(PatchController* pc) _patch = pc; _canvas = new OmFlowCanvas(pc, 1600*2, 1200*2); - + _canvas_scrolledwindow->add(*_canvas); //_canvas->show(); //_canvas_scrolledwindow->show(); @@ -75,6 +79,9 @@ PatchView::patch_controller(PatchController* pc) pc->patch_model()->enabled_sig.connect(sigc::mem_fun(this, &PatchView::enable)); pc->patch_model()->disabled_sig.connect(sigc::mem_fun(this, &PatchView::disable)); + + _zoom_normal_but->signal_clicked().connect(sigc::bind(sigc::mem_fun(static_cast<FlowCanvas*>(_canvas), &FlowCanvas::set_zoom), 1.0)); + _zoom_full_but->signal_clicked().connect(sigc::mem_fun(static_cast<FlowCanvas*>(_canvas), &FlowCanvas::zoom_full)); } |