Mercurial > hg > sonic-visualiser
comparison document/SVFileReader.cpp @ 109:e6c4b27cba2c
* Rejig handling of scrolling views. Ensures, among other things, that playing
when there is a scroll mode view present (e.g. a spectrum) does not drag
any page mode views into scroll mode with it.
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2007 11:55:46 +0000 |
parents | 51be0daa1386 |
children | b4110b17bca8 |
comparison
equal
deleted
inserted
replaced
108:58f21cf235c7 | 109:e6c4b27cba2c |
---|---|
677 QString tracking = attributes.value("tracking"); | 677 QString tracking = attributes.value("tracking"); |
678 | 678 |
679 // Specify the follow modes before we set the actual values | 679 // Specify the follow modes before we set the actual values |
680 view->setFollowGlobalPan(followPan); | 680 view->setFollowGlobalPan(followPan); |
681 view->setFollowGlobalZoom(followZoom); | 681 view->setFollowGlobalZoom(followZoom); |
682 view->setPlaybackFollow(tracking == "scroll" ? View::PlaybackScrollContinuous : | 682 view->setPlaybackFollow(tracking == "scroll" ? PlaybackScrollContinuous : |
683 tracking == "page" ? View::PlaybackScrollPage | 683 tracking == "page" ? PlaybackScrollPage |
684 : View::PlaybackIgnore); | 684 : PlaybackIgnore); |
685 | 685 |
686 // Then set these values | 686 // Then set these values |
687 view->setCentreFrame(centre); | 687 view->setCentreFrame(centre); |
688 view->setZoomLevel(zoom); | 688 view->setZoomLevel(zoom); |
689 view->setLightBackground(light); | 689 view->setLightBackground(light); |