comparison layer/SpectrogramLayer.cpp @ 771:a964151832a7

Merge from branch tony_integration
author Chris Cannam
date Wed, 14 May 2014 09:54:34 +0100
parents 410816717c2c
children 1d526ba11a24
comparison
equal deleted inserted replaced
768:8b614632568c 771:a964151832a7
3655 "maxFrequency=\"%2\" " 3655 "maxFrequency=\"%2\" "
3656 "colourScale=\"%3\" " 3656 "colourScale=\"%3\" "
3657 "colourScheme=\"%4\" " 3657 "colourScheme=\"%4\" "
3658 "colourRotation=\"%5\" " 3658 "colourRotation=\"%5\" "
3659 "frequencyScale=\"%6\" " 3659 "frequencyScale=\"%6\" "
3660 "binDisplay=\"%7\" " 3660 "binDisplay=\"%7\" ")
3661 "normalizeColumns=\"%8\" "
3662 "normalizeVisibleArea=\"%9\"")
3663 .arg(m_minFrequency) 3661 .arg(m_minFrequency)
3664 .arg(m_maxFrequency) 3662 .arg(m_maxFrequency)
3665 .arg(m_colourScale) 3663 .arg(m_colourScale)
3666 .arg(m_colourMap) 3664 .arg(m_colourMap)
3667 .arg(m_colourRotation) 3665 .arg(m_colourRotation)
3668 .arg(m_frequencyScale) 3666 .arg(m_frequencyScale)
3669 .arg(m_binDisplay) 3667 .arg(m_binDisplay);
3668
3669 s += QString("normalizeColumns=\"%1\" "
3670 "normalizeVisibleArea=\"%2\" "
3671 "normalizeHybrid=\"%3\" ")
3670 .arg(m_normalizeColumns ? "true" : "false") 3672 .arg(m_normalizeColumns ? "true" : "false")
3671 .arg(m_normalizeVisibleArea ? "true" : "false"); 3673 .arg(m_normalizeVisibleArea ? "true" : "false")
3674 .arg(m_normalizeHybrid ? "true" : "false");
3672 3675
3673 Layer::toXml(stream, indent, extraAttributes + " " + s); 3676 Layer::toXml(stream, indent, extraAttributes + " " + s);
3674 } 3677 }
3675 3678
3676 void 3679 void
3739 setNormalizeColumns(normalizeColumns); 3742 setNormalizeColumns(normalizeColumns);
3740 3743
3741 bool normalizeVisibleArea = 3744 bool normalizeVisibleArea =
3742 (attributes.value("normalizeVisibleArea").trimmed() == "true"); 3745 (attributes.value("normalizeVisibleArea").trimmed() == "true");
3743 setNormalizeVisibleArea(normalizeVisibleArea); 3746 setNormalizeVisibleArea(normalizeVisibleArea);
3744 } 3747
3745 3748 bool normalizeHybrid =
3749 (attributes.value("normalizeHybrid").trimmed() == "true");
3750 setNormalizeHybrid(normalizeHybrid);
3751 }
3752