comparison framework/MainWindowBase.cpp @ 256:f3f9e3d647c1

Give a dedicated key to toggling the centre line, and move it out of the overlay level setting -- reducing number of overlay levels to 3. Introduce two distinct vertical scale types (so that we can hide the spectrogram colour scale part easily)
author Chris Cannam
date Mon, 30 Jan 2012 16:02:14 +0000
parents 3240925e00ef
children a7ab511107fa
comparison
equal deleted inserted replaced
255:3240925e00ef 256:f3f9e3d647c1
2270 { 2270 {
2271 m_viewManager->setOverlayMode(ViewManager::MinimalOverlays); 2271 m_viewManager->setOverlayMode(ViewManager::MinimalOverlays);
2272 } 2272 }
2273 2273
2274 void 2274 void
2275 MainWindowBase::showStandardOverlays()
2276 {
2277 m_viewManager->setOverlayMode(ViewManager::StandardOverlays);
2278 }
2279
2280 void
2281 MainWindowBase::showAllOverlays() 2275 MainWindowBase::showAllOverlays()
2282 { 2276 {
2283 m_viewManager->setOverlayMode(ViewManager::AllOverlays); 2277 m_viewManager->setOverlayMode(ViewManager::AllOverlays);
2284 } 2278 }
2285 2279
2363 } 2357 }
2364 2358
2365 settings.setValue("showstatusbar", !sb); 2359 settings.setValue("showstatusbar", !sb);
2366 2360
2367 settings.endGroup(); 2361 settings.endGroup();
2362 }
2363
2364 void
2365 MainWindowBase::toggleCentreLine()
2366 {
2367 if (m_viewManager->shouldShowCentreLine()) {
2368 m_viewManager->setShowCentreLine(false);
2369 } else {
2370 m_viewManager->setShowCentreLine(true);
2371 }
2368 } 2372 }
2369 2373
2370 void 2374 void
2371 MainWindowBase::preferenceChanged(PropertyContainer::PropertyName name) 2375 MainWindowBase::preferenceChanged(PropertyContainer::PropertyName name)
2372 { 2376 {