# HG changeset patch # User Chris Cannam # Date 1235645348 0 # Node ID c17284397aa9341cdb79ffc92a8c34907d79443f # Parent f90e277d2876a3ceb7962c3f12a3785e0fee9a9a * Handle zero-velocity note ons as well as note offs (can't believe I fell for that one) * Add Peek Left / Peek Right (alt+left/right) and change peek-drag (i.e. dragging without moving playback pointer or other panes) from ctrl+drag to alt+drag for symmetry diff -r f90e277d2876 -r c17284397aa9 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Feb 25 11:15:22 2009 +0000 +++ b/framework/MainWindowBase.cpp Thu Feb 26 10:49:08 2009 +0000 @@ -1867,6 +1867,13 @@ } void +MainWindowBase::peekLeft() +{ + Pane *currentPane = m_paneStack->getCurrentPane(); + if (currentPane) currentPane->scroll(false, false, false); +} + +void MainWindowBase::scrollRight() { Pane *currentPane = m_paneStack->getCurrentPane(); @@ -1881,6 +1888,13 @@ } void +MainWindowBase::peekRight() +{ + Pane *currentPane = m_paneStack->getCurrentPane(); + if (currentPane) currentPane->scroll(true, false, false); +} + +void MainWindowBase::showNoOverlays() { m_viewManager->setOverlayMode(ViewManager::NoOverlays); diff -r f90e277d2876 -r c17284397aa9 framework/MainWindowBase.h --- a/framework/MainWindowBase.h Wed Feb 25 11:15:22 2009 +0000 +++ b/framework/MainWindowBase.h Thu Feb 26 10:49:08 2009 +0000 @@ -160,6 +160,8 @@ virtual void scrollRight(); virtual void jumpLeft(); virtual void jumpRight(); + virtual void peekLeft(); + virtual void peekRight(); virtual void showNoOverlays(); virtual void showMinimalOverlays();