diff 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
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Thu Jan 12 13:45:27 2006 +0000
+++ b/layer/SpectrogramLayer.cpp	Thu Jan 12 17:19:08 2006 +0000
@@ -1643,6 +1643,33 @@
     }
 }
 
+QString
+SpectrogramLayer::toXmlString(QString indent, QString extraAttributes) const
+{
+    QString s;
+    
+    s += QString("channel=\"%1\" "
+		 "windowSize=\"%2\" "
+		 "windowType=\"%3\" "
+		 "windowOverlap=\"%4\" "
+		 "gain=\"%5\" "
+		 "maxFrequency=\"%6\" "
+		 "colourScale=\"%7\" "
+		 "colourScheme=\"%8\" "
+		 "frequencyScale=\"%9\"")
+	.arg(m_channel)
+	.arg(m_windowSize)
+	.arg(m_windowType)
+	.arg(m_windowOverlap)
+	.arg(m_gain)
+	.arg(m_maxFrequency)
+	.arg(m_colourScale)
+	.arg(m_colourScheme)
+	.arg(m_frequencyScale);
+
+    return Layer::toXmlString(indent, extraAttributes + " " + s);
+}
+
 #ifdef INCLUDE_MOCFILES
 #include "SpectrogramLayer.moc.cpp"
 #endif