Mercurial > hg > svgui
diff layer/RegionLayer.cpp @ 587:4806715f7a19
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:05 +0100 |
parents | f4960f8ce798 |
children | ece1af8cfffa |
line wrap: on
line diff
--- a/layer/RegionLayer.cpp Tue Jun 14 14:48:29 2011 +0100 +++ b/layer/RegionLayer.cpp Tue Jun 14 15:27:05 2011 +0100 @@ -61,7 +61,7 @@ connect(m_model, SIGNAL(modelChanged()), this, SLOT(recalcSpacing())); recalcSpacing(); -// DEBUG << "RegionLayer::setModel(" << model << ")" << endl; +// SVDEBUG << "RegionLayer::setModel(" << model << ")" << endl; emit modelReplaced(); } @@ -239,12 +239,12 @@ m_distributionMap.clear(); if (!m_model) return; -// DEBUG << "RegionLayer::recalcSpacing" << endl; +// SVDEBUG << "RegionLayer::recalcSpacing" << endl; for (RegionModel::PointList::const_iterator i = m_model->getPoints().begin(); i != m_model->getPoints().end(); ++i) { m_distributionMap[i->value]++; -// DEBUG << "RegionLayer::recalcSpacing: value found: " << i->value << " (now have " << m_distributionMap[i->value] << " of this value)" << endl; +// SVDEBUG << "RegionLayer::recalcSpacing: value found: " << i->value << " (now have " << m_distributionMap[i->value] << " of this value)" << endl; } int n = 0; @@ -252,7 +252,7 @@ for (SpacingMap::const_iterator i = m_distributionMap.begin(); i != m_distributionMap.end(); ++i) { m_spacingMap[i->first] = n++; -// DEBUG << "RegionLayer::recalcSpacing: " << i->first << " -> " << m_spacingMap[i->first] << endl; +// SVDEBUG << "RegionLayer::recalcSpacing: " << i->first << " -> " << m_spacingMap[i->first] << endl; } } @@ -680,7 +680,7 @@ int y = spacingIndexToY(v, i->second); -// DEBUG << "RegionLayer::getYForValue: value " << val << " -> i->second " << i->second << " -> y " << y << endl; +// SVDEBUG << "RegionLayer::getYForValue: value " << val << " -> i->second " << i->second << " -> y " << y << endl; return y; @@ -811,7 +811,7 @@ val = LogRange::map(val); } -// DEBUG << "RegionLayer::getColourForValue: min " << min << ", max " +// SVDEBUG << "RegionLayer::getColourForValue: min " << min << ", max " // << max << ", log " << log << ", value " << val << endl; QColor solid = ColourMapper(m_colourMap, min, max).map(val); @@ -848,7 +848,7 @@ QColor brushColour(getBaseQColor()); brushColour.setAlpha(80); -// DEBUG << "RegionLayer::paint: resolution is " +// SVDEBUG << "RegionLayer::paint: resolution is " // << m_model->getResolution() << " frames" << endl; float min = m_model->getValueMinimum();