# HG changeset patch # User Chris Cannam # Date 1236004154 0 # Node ID 3f0c9820463608f2111885f913860e28f0b94bd9 # Parent 0e7d0cdb6ac7e4bab525c8d88c2a022cbc17a016 * Add Zoom to Fit to OSC commands diff -r 0e7d0cdb6ac7 -r 3f0c98204636 main/OSCHandler.cpp --- 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();