Mercurial > hg > svgui
comparison view/View.cpp @ 180:29f01de27db4
* Add vertical zooming and snap-to-selection for OSC control;
add a demo script
author | Chris Cannam |
---|---|
date | Wed, 15 Nov 2006 18:22:26 +0000 |
parents | 86cee2b060c7 |
children | 5f86ae638b04 |
comparison
equal
deleted
inserted
replaced
179:6a0d54f3f21a | 180:29f01de27db4 |
---|---|
769 | 769 |
770 switch (m_followPlay) { | 770 switch (m_followPlay) { |
771 | 771 |
772 case PlaybackScrollContinuous: | 772 case PlaybackScrollContinuous: |
773 if (QApplication::mouseButtons() == Qt::NoButton) { | 773 if (QApplication::mouseButtons() == Qt::NoButton) { |
774 setCentreFrame(f, false); | 774 setCentreFrame(f, true); //!!! |
775 } | 775 } |
776 break; | 776 break; |
777 | 777 |
778 case PlaybackScrollPage: | 778 case PlaybackScrollPage: |
779 { | 779 { |
1449 } | 1449 } |
1450 paint.restore(); | 1450 paint.restore(); |
1451 } | 1451 } |
1452 | 1452 |
1453 if (sampleRate && shouldLabelSelections() && m_manager && | 1453 if (sampleRate && shouldLabelSelections() && m_manager && |
1454 m_manager->getOverlayMode() != ViewManager::NoOverlays) { | 1454 m_manager->getOverlayMode() == ViewManager::AllOverlays) { |
1455 | 1455 |
1456 QString startText = QString("%1 / %2") | 1456 QString startText = QString("%1 / %2") |
1457 .arg(QString::fromStdString | 1457 .arg(QString::fromStdString |
1458 (RealTime::frame2RealTime | 1458 (RealTime::frame2RealTime |
1459 (i->getStartFrame(), sampleRate).toText(true))) | 1459 (i->getStartFrame(), sampleRate).toText(true))) |