Mercurial > hg > svgui
comparison view/View.cpp @ 510:683c46d7500b
* 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 | 08e1ccfe289c |
children | 455810e65543 |
comparison
equal
deleted
inserted
replaced
509:f8b98f63f200 | 510:683c46d7500b |
---|---|
1352 setZoomLevel(newZoomLevel); | 1352 setZoomLevel(newZoomLevel); |
1353 } | 1353 } |
1354 } | 1354 } |
1355 | 1355 |
1356 void | 1356 void |
1357 View::scroll(bool right, bool lots) | 1357 View::scroll(bool right, bool lots, bool e) |
1358 { | 1358 { |
1359 long delta; | 1359 long delta; |
1360 if (lots) { | 1360 if (lots) { |
1361 delta = (getEndFrame() - getStartFrame()) / 2; | 1361 delta = (getEndFrame() - getStartFrame()) / 2; |
1362 } else { | 1362 } else { |
1363 delta = (getEndFrame() - getStartFrame()) / 20; | 1363 delta = (getEndFrame() - getStartFrame()) / 20; |
1364 } | 1364 } |
1365 if (right) delta = -delta; | 1365 if (right) delta = -delta; |
1366 | 1366 |
1367 if (int(m_centreFrame) < delta) { | 1367 if (int(m_centreFrame) < delta) { |
1368 setCentreFrame(0); | 1368 setCentreFrame(0, e); |
1369 } else if (int(m_centreFrame) - delta >= int(getModelsEndFrame())) { | 1369 } else if (int(m_centreFrame) - delta >= int(getModelsEndFrame())) { |
1370 setCentreFrame(getModelsEndFrame()); | 1370 setCentreFrame(getModelsEndFrame(), e); |
1371 } else { | 1371 } else { |
1372 setCentreFrame(m_centreFrame - delta); | 1372 setCentreFrame(m_centreFrame - delta, e); |
1373 } | 1373 } |
1374 } | 1374 } |
1375 | 1375 |
1376 void | 1376 void |
1377 View::checkProgress(void *object) | 1377 View::checkProgress(void *object) |