comparison view/View.cpp @ 364:f1e6204c1f17

* New views created in page-follow mode should be centred on global centre frame, not playback frame
author Chris Cannam
date Thu, 07 Feb 2008 12:36:18 +0000
parents 6167a28d25fc
children 06b5f110c5d2
comparison
equal deleted inserted replaced
363:6167a28d25fc 364:f1e6204c1f17
665 PlaybackFollowMode))); 665 PlaybackFollowMode)));
666 666
667 connect(this, SIGNAL(zoomLevelChanged(unsigned long, bool)), 667 connect(this, SIGNAL(zoomLevelChanged(unsigned long, bool)),
668 m_manager, SLOT(viewZoomLevelChanged(unsigned long, bool))); 668 m_manager, SLOT(viewZoomLevelChanged(unsigned long, bool)));
669 669
670 if (m_followPlay != PlaybackIgnore) { 670 if (m_followPlay == PlaybackScrollPage) {
671 // std::cerr << "View::setViewManager: setting centre frame to global centre frame: " << m_manager->getGlobalCentreFrame() << std::endl;
672 setCentreFrame(m_manager->getGlobalCentreFrame(), false);
673 } else if (m_followPlay == PlaybackScrollContinuous) {
671 // std::cerr << "View::setViewManager: setting centre frame to playback frame: " << m_manager->getPlaybackFrame() << std::endl; 674 // std::cerr << "View::setViewManager: setting centre frame to playback frame: " << m_manager->getPlaybackFrame() << std::endl;
672 setCentreFrame(m_manager->getPlaybackFrame(), false); 675 setCentreFrame(m_manager->getPlaybackFrame(), false);
673 } else if (m_followPan) { 676 } else if (m_followPan) {
674 // std::cerr << "View::setViewManager: setting centre frame to global centre frame: " << m_manager->getGlobalCentreFrame() << std::endl; 677 // std::cerr << "View::setViewManager: setting centre frame to global centre frame: " << m_manager->getGlobalCentreFrame() << std::endl;
675 setCentreFrame(m_manager->getGlobalCentreFrame(), false); 678 setCentreFrame(m_manager->getGlobalCentreFrame(), false);