comparison view/Overview.cpp @ 274:b9380f679f70

* Fix centre line position * Fix failure to update overview when generating peaks from wav file * Provide y-coordinate scale values and differences for spectrum measurement mode, and fix values for waveform (inc dB for both) * Add Printer colour scheme (may be futile)
author Chris Cannam
date Mon, 02 Jul 2007 13:04:17 +0000
parents 1b1e6947c124
children cd2492c5fe45
comparison
equal deleted inserted replaced
273:e954c00cbe55 274:b9380f679f70
31 { 31 {
32 setObjectName(tr("Overview")); 32 setObjectName(tr("Overview"));
33 m_followPan = false; 33 m_followPan = false;
34 m_followZoom = false; 34 m_followZoom = false;
35 setPlaybackFollow(PlaybackIgnore); 35 setPlaybackFollow(PlaybackIgnore);
36 m_modelTestTime.start();
36 } 37 }
37 38
38 void 39 void
39 Overview::modelChanged(size_t startFrame, size_t endFrame) 40 Overview::modelChanged(size_t startFrame, size_t endFrame)
40 { 41 {
48 if (zoomLevel != m_zoomLevel) { 49 if (zoomLevel != m_zoomLevel) {
49 zoomChanged = true; 50 zoomChanged = true;
50 } 51 }
51 52
52 if (!zoomChanged) { 53 if (!zoomChanged) {
53 for (LayerList::const_iterator i = m_layers.begin(); 54 if (m_modelTestTime.elapsed() < 1000) {
54 i != m_layers.end(); ++i) { 55 for (LayerList::const_iterator i = m_layers.begin();
55 if ((*i)->getModel() && 56 i != m_layers.end(); ++i) {
56 !(*i)->getModel()->isOK() || 57 if ((*i)->getModel() &&
57 !(*i)->getModel()->isReady()) { 58 !(*i)->getModel()->isOK() ||
58 return; 59 !(*i)->getModel()->isReady()) {
60 return;
61 }
59 } 62 }
63 } else {
64 m_modelTestTime.restart();
60 } 65 }
61 } 66 }
62 67
63 View::modelChanged(startFrame, endFrame); 68 View::modelChanged(startFrame, endFrame);
64 } 69 }