Mercurial > hg > svgui
diff layer/WaveformLayer.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 | ce747045a023 |
children | 8f5b812baaee |
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp Thu Jan 12 13:45:27 2006 +0000 +++ b/layer/WaveformLayer.cpp Thu Jan 12 17:19:08 2006 +0000 @@ -739,6 +739,31 @@ } } +QString +WaveformLayer::toXmlString(QString indent, QString extraAttributes) const +{ + QString s; + + s += QString("gain=\"%1\" " + "colour=\"%2\" " + "showMeans=\"%3\" " + "greyscale=\"%4\" " + "channelMode=\"%5\" " + "channel=\"%6\" " + "scale=\"%7\" " + "aggressive=\"%8\"") + .arg(m_gain) + .arg(encodeColour(m_colour)) + .arg(m_showMeans) + .arg(m_greyscale) + .arg(m_channelMode) + .arg(m_channel) + .arg(m_scale) + .arg(m_aggressive); + + return Layer::toXmlString(indent, extraAttributes + " " + s); +} + #ifdef INCLUDE_MOCFILES #include "WaveformLayer.moc.cpp" #endif