changeset 162:c17284397aa9

* 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
author Chris Cannam
date Thu, 26 Feb 2009 10:49:08 +0000
parents f90e277d2876
children 2c158dd3b983
files framework/MainWindowBase.cpp framework/MainWindowBase.h
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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();