diff framework/Document.cpp @ 108:e25e8f5d785b

* Fix #1628781 changes to layer visibility and mute should use a command * Also use a command for changes to layer playback pan, gain, plugin settings * Refactor PlayParameterRepository to remove dependency on audioio from base * Fix failure to save play parameters for main model in session file
author Chris Cannam
date Thu, 13 Mar 2008 14:06:03 +0000
parents b9faa1418d29
children c82913d31a53
line wrap: on
line diff
--- a/framework/Document.cpp	Thu Mar 13 10:12:14 2008 +0000
+++ b/framework/Document.cpp	Thu Mar 13 14:06:03 2008 +0000
@@ -993,7 +993,17 @@
         .arg(extraAttributes == "" ? "" : " ").arg(extraAttributes);
 
     if (m_mainModel) {
+
 	m_mainModel->toXml(out, indent + "  ", "mainModel=\"true\"");
+
+        PlayParameters *playParameters =
+            PlayParameterRepository::getInstance()->getPlayParameters(m_mainModel);
+        if (playParameters) {
+            playParameters->toXml
+                (out, indent + "  ",
+                 QString("model=\"%1\"")
+                 .arg(XmlExportable::getObjectExportId(m_mainModel)));
+        }
     }
 
     // Models that are not used in a layer that is in a view should