Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 765:410816717c2c tony_integration
Merge from tonioni branch
author | Chris Cannam |
---|---|
date | Wed, 07 May 2014 15:12:13 +0100 |
parents | 5d3a6ecdf2db 6a8d922f991d |
children | 1d526ba11a24 |
comparison
equal
deleted
inserted
replaced
757:2cd6d2d17437 | 765:410816717c2c |
---|---|
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 |