diff main/OSCHandler.cpp @ 312:3f0c98204636

* Add Zoom to Fit to OSC commands
author Chris Cannam
date Mon, 02 Mar 2009 14:29:14 +0000
parents 9d772bee2095
children 635b79462d3e
line wrap: on
line diff
--- a/main/OSCHandler.cpp	Fri Feb 27 14:24:54 2009 +0000
+++ b/main/OSCHandler.cpp	Mon Mar 02 14:29:14 2009 +0000
@@ -418,6 +418,9 @@
             } else if (message.getArg(0).canConvert(QVariant::String) &&
                        message.getArg(0).toString() == "default") {
                 zoomDefault();
+            } else if (message.getArg(0).canConvert(QVariant::String) &&
+                       message.getArg(0).toString() == "fit") {
+                zoomToFit();
             } else if (message.getArg(0).canConvert(QVariant::Double)) {
                 double level = message.getArg(0).toDouble();
                 Pane *currentPane = m_paneStack->getCurrentPane();