Mercurial > hg > sonic-visualiser
comparison main/OSCHandler.cpp @ 497:e583f57f1311
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:01:21 +0000 |
parents | 868f73825b37 |
children | ba338234c001 17fe7e0c23a1 |
comparison
equal
deleted
inserted
replaced
496:abbd15ead43d | 497:e583f57f1311 |
---|---|
348 } else if (property == "overlays") { | 348 } else if (property == "overlays") { |
349 if (value < 0.5) { | 349 if (value < 0.5) { |
350 m_viewManager->setOverlayMode(ViewManager::NoOverlays); | 350 m_viewManager->setOverlayMode(ViewManager::NoOverlays); |
351 } else if (value < 1.5) { | 351 } else if (value < 1.5) { |
352 m_viewManager->setOverlayMode(ViewManager::MinimalOverlays); | 352 m_viewManager->setOverlayMode(ViewManager::MinimalOverlays); |
353 } else if (value < 2.5) { | |
354 m_viewManager->setOverlayMode(ViewManager::StandardOverlays); | |
355 } else { | 353 } else { |
356 m_viewManager->setOverlayMode(ViewManager::AllOverlays); | 354 m_viewManager->setOverlayMode(ViewManager::AllOverlays); |
357 } | 355 } |
358 } else if (property == "zoomwheels") { | 356 } else if (property == "zoomwheels") { |
359 m_viewManager->setZoomWheelsEnabled(value > 0.5); | 357 m_viewManager->setZoomWheelsEnabled(value > 0.5); |