changeset 163:4148ad087959

* Add mono timestretch toggle button; some more work on getting blocksize etc parameters through to plugins
author Chris Cannam
date Mon, 18 Sep 2006 16:43:17 +0000
parents 3fe6660f8fe2
children da3701a3953e
files data/model/WaveFileModel.cpp data/model/WaveFileModel.h plugin/PluginXml.cpp
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Wed Sep 13 11:56:44 2006 +0000
+++ b/data/model/WaveFileModel.cpp	Mon Sep 18 16:43:17 2006 +0000
@@ -479,6 +479,16 @@
 //    }
 }
 
+void
+WaveFileModel::toXml(QTextStream &out,
+                     QString indent,
+                     QString extraAttributes) const
+{
+    Model::toXml(out, indent,
+                 QString("type=\"wavefile\" file=\"%1\" %2")
+                 .arg(m_path).arg(extraAttributes));
+}
+
 QString
 WaveFileModel::toXmlString(QString indent,
 			   QString extraAttributes) const
--- a/data/model/WaveFileModel.h	Wed Sep 13 11:56:44 2006 +0000
+++ b/data/model/WaveFileModel.h	Mon Sep 18 16:43:17 2006 +0000
@@ -62,6 +62,10 @@
 
     virtual Range getRange(size_t channel, size_t start, size_t end) const;
 
+    virtual void toXml(QTextStream &out,
+                       QString indent = "",
+                       QString extraAttributes = "") const;
+
     virtual QString toXmlString(QString indent = "",
 				QString extraAttributes = "") const;
 
--- a/plugin/PluginXml.cpp	Wed Sep 13 11:56:44 2006 +0000
+++ b/plugin/PluginXml.cpp	Mon Sep 18 16:43:17 2006 +0000
@@ -211,7 +211,7 @@
 
     setParameters(attrs);
 }
-    
+
 QString
 PluginXml::stripInvalidParameterNameCharacters(QString s) const
 {