changeset 312:3f0c98204636

* Add Zoom to Fit to OSC commands
author Chris Cannam
date Mon, 02 Mar 2009 14:29:14 +0000
parents 0e7d0cdb6ac7
children 635b79462d3e
files main/OSCHandler.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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();