summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchController.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-10 20:11:40 +0000
committerDavid Robillard <d@drobilla.net>2006-09-10 20:11:40 +0000
commite772196c07ff58022beaabf5e494be3441d1ba4a (patch)
tree4a3dc214fb333d9787c666e1b3d239124b94302e /src/progs/ingenuity/PatchController.cpp
parent8854610aac91caaf6bb8db782cc4c9bd2ca53c52 (diff)
downloadingen-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/PatchController.cpp')
-rw-r--r--src/progs/ingenuity/PatchController.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/progs/ingenuity/PatchController.cpp b/src/progs/ingenuity/PatchController.cpp
index 84c6eb7b..6ef90d32 100644
--- a/src/progs/ingenuity/PatchController.cpp
+++ b/src/progs/ingenuity/PatchController.cpp
@@ -423,9 +423,9 @@ PatchController::add_node(CountedPtr<NodeModel> object)
node->y(y);
// Set zoom to 1.0 so module isn't messed up (Death to GnomeCanvas)
- float old_zoom = m_patch_view->canvas()->zoom();
+ float old_zoom = m_patch_view->canvas()->get_zoom();
if (old_zoom != 1.0)
- m_patch_view->canvas()->zoom(1.0);
+ m_patch_view->canvas()->set_zoom(1.0);
nc->create_module(m_patch_view->canvas());
assert(nc->module());
@@ -433,7 +433,7 @@ PatchController::add_node(CountedPtr<NodeModel> object)
// Reset zoom
if (old_zoom != 1.0) {
- m_patch_view->canvas()->zoom(old_zoom);
+ m_patch_view->canvas()->set_zoom(old_zoom);
nc->module()->zoom(old_zoom);
}
}
@@ -496,17 +496,13 @@ PatchController::add_port(CountedPtr<PortModel> pm)
if (m_patch_view != NULL) {
// Set zoom to 1.0 so module isn't messed up (Death to GnomeCanvas)
- float old_zoom = m_patch_view->canvas()->zoom();
- if (old_zoom != 1.0)
- m_patch_view->canvas()->zoom(1.0);
+ float old_zoom = m_patch_view->canvas()->get_zoom();
+ m_patch_view->canvas()->set_zoom(1.0);
pc->create_module(m_patch_view->canvas());
// Reset zoom
- if (old_zoom != 1.0) {
- m_patch_view->canvas()->zoom(old_zoom);
- pc->module()->zoom(old_zoom);
- }
+ pc->module()->zoom(old_zoom);
}
if (m_control_window != NULL) {