comparison layer/SpectrogramLayer.cpp @ 6:02aaea1ffaf7

* Beginnings of session save code * Add spline curve mode to time value layer
author Chris Cannam
date Thu, 12 Jan 2006 17:19:08 +0000
parents 37b110168acf
children 561be41ad083
comparison
equal deleted inserted replaced
5:37b110168acf 6:02aaea1ffaf7
1641 1641
1642 py = vy; 1642 py = vy;
1643 } 1643 }
1644 } 1644 }
1645 1645
1646 QString
1647 SpectrogramLayer::toXmlString(QString indent, QString extraAttributes) const
1648 {
1649 QString s;
1650
1651 s += QString("channel=\"%1\" "
1652 "windowSize=\"%2\" "
1653 "windowType=\"%3\" "
1654 "windowOverlap=\"%4\" "
1655 "gain=\"%5\" "
1656 "maxFrequency=\"%6\" "
1657 "colourScale=\"%7\" "
1658 "colourScheme=\"%8\" "
1659 "frequencyScale=\"%9\"")
1660 .arg(m_channel)
1661 .arg(m_windowSize)
1662 .arg(m_windowType)
1663 .arg(m_windowOverlap)
1664 .arg(m_gain)
1665 .arg(m_maxFrequency)
1666 .arg(m_colourScale)
1667 .arg(m_colourScheme)
1668 .arg(m_frequencyScale);
1669
1670 return Layer::toXmlString(indent, extraAttributes + " " + s);
1671 }
1672
1646 #ifdef INCLUDE_MOCFILES 1673 #ifdef INCLUDE_MOCFILES
1647 #include "SpectrogramLayer.moc.cpp" 1674 #include "SpectrogramLayer.moc.cpp"
1648 #endif 1675 #endif
1649 1676