comparison layer/SpectrogramLayer.cpp @ 761:6a8d922f991d tonioni

A lot of work on saving and reloading sessions: save flexinote layer type and hybrid spectrogram normalisation, etc
author Chris Cannam
date Wed, 02 Apr 2014 21:50:04 +0100
parents 67e6d518ac27
children 410816717c2c
comparison
equal deleted inserted replaced
760:d0fd7630d32f 761:6a8d922f991d
3645 "maxFrequency=\"%2\" " 3645 "maxFrequency=\"%2\" "
3646 "colourScale=\"%3\" " 3646 "colourScale=\"%3\" "
3647 "colourScheme=\"%4\" " 3647 "colourScheme=\"%4\" "
3648 "colourRotation=\"%5\" " 3648 "colourRotation=\"%5\" "
3649 "frequencyScale=\"%6\" " 3649 "frequencyScale=\"%6\" "
3650 "binDisplay=\"%7\" " 3650 "binDisplay=\"%7\" ")
3651 "normalizeColumns=\"%8\" "
3652 "normalizeVisibleArea=\"%9\"")
3653 .arg(m_minFrequency) 3651 .arg(m_minFrequency)
3654 .arg(m_maxFrequency) 3652 .arg(m_maxFrequency)
3655 .arg(m_colourScale) 3653 .arg(m_colourScale)
3656 .arg(m_colourMap) 3654 .arg(m_colourMap)
3657 .arg(m_colourRotation) 3655 .arg(m_colourRotation)
3658 .arg(m_frequencyScale) 3656 .arg(m_frequencyScale)
3659 .arg(m_binDisplay) 3657 .arg(m_binDisplay);
3658
3659 s += QString("normalizeColumns=\"%1\" "
3660 "normalizeVisibleArea=\"%2\" "
3661 "normalizeHybrid=\"%3\" ")
3660 .arg(m_normalizeColumns ? "true" : "false") 3662 .arg(m_normalizeColumns ? "true" : "false")
3661 .arg(m_normalizeVisibleArea ? "true" : "false"); 3663 .arg(m_normalizeVisibleArea ? "true" : "false")
3664 .arg(m_normalizeHybrid ? "true" : "false");
3662 3665
3663 Layer::toXml(stream, indent, extraAttributes + " " + s); 3666 Layer::toXml(stream, indent, extraAttributes + " " + s);
3664 } 3667 }
3665 3668
3666 void 3669 void
3729 setNormalizeColumns(normalizeColumns); 3732 setNormalizeColumns(normalizeColumns);
3730 3733
3731 bool normalizeVisibleArea = 3734 bool normalizeVisibleArea =
3732 (attributes.value("normalizeVisibleArea").trimmed() == "true"); 3735 (attributes.value("normalizeVisibleArea").trimmed() == "true");
3733 setNormalizeVisibleArea(normalizeVisibleArea); 3736 setNormalizeVisibleArea(normalizeVisibleArea);
3734 } 3737
3735 3738 bool normalizeHybrid =
3739 (attributes.value("normalizeHybrid").trimmed() == "true");
3740 setNormalizeHybrid(normalizeHybrid);
3741 }
3742