comparison view/ViewManager.cpp @ 815:09026c875301

Create separate play scroll modes for (Tony-style, DAW-style) page mode and (SV-style) paging with playhead alignment to centre on drag
author Chris Cannam
date Wed, 02 Jul 2014 17:30:09 +0100
parents 40c6c9344ff6
children d974ed657176
comparison
equal deleted inserted replaced
814:db31266cf606 815:09026c875301
552 emit globalCentreFrameChanged(f); 552 emit globalCentreFrameChanged(f);
553 } else { 553 } else {
554 if (v) emit viewCentreFrameChanged(v, f); 554 if (v) emit viewCentreFrameChanged(v, f);
555 } 555 }
556 556
557 if (!dynamic_cast<Overview *>(v) || (mode == PlaybackScrollContinuous)) { 557 if (!dynamic_cast<Overview *>(v) || (mode != PlaybackIgnore)) {
558 if (m_mainModelSampleRate != 0) { 558 if (m_mainModelSampleRate != 0) {
559 emit activity(tr("Scroll to %1") 559 emit activity(tr("Scroll to %1")
560 .arg(RealTime::frame2RealTime 560 .arg(RealTime::frame2RealTime
561 (f, m_mainModelSampleRate).toText().c_str())); 561 (f, m_mainModelSampleRate).toText().c_str()));
562 } 562 }
563 } 563 }
564 564
565 if (mode != PlaybackScrollContinuous) { 565 if (mode == PlaybackScrollPageWithCentre ||
566 return; 566 mode == PlaybackScrollContinuous) {
567 } 567 seek(f);
568 568 }
569 seek(f);
570 } 569 }
571 570
572 void 571 void
573 ViewManager::seek(int f) 572 ViewManager::seek(int f)
574 { 573 {