Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
107:52af71802ffd | 108:e25e8f5d785b |
---|---|
991 { | 991 { |
992 out << indent + QString("<data%1%2>\n") | 992 out << indent + QString("<data%1%2>\n") |
993 .arg(extraAttributes == "" ? "" : " ").arg(extraAttributes); | 993 .arg(extraAttributes == "" ? "" : " ").arg(extraAttributes); |
994 | 994 |
995 if (m_mainModel) { | 995 if (m_mainModel) { |
996 | |
996 m_mainModel->toXml(out, indent + " ", "mainModel=\"true\""); | 997 m_mainModel->toXml(out, indent + " ", "mainModel=\"true\""); |
998 | |
999 PlayParameters *playParameters = | |
1000 PlayParameterRepository::getInstance()->getPlayParameters(m_mainModel); | |
1001 if (playParameters) { | |
1002 playParameters->toXml | |
1003 (out, indent + " ", | |
1004 QString("model=\"%1\"") | |
1005 .arg(XmlExportable::getObjectExportId(m_mainModel))); | |
1006 } | |
997 } | 1007 } |
998 | 1008 |
999 // Models that are not used in a layer that is in a view should | 1009 // Models that are not used in a layer that is in a view should |
1000 // not be written. Get our list of required models first. | 1010 // not be written. Get our list of required models first. |
1001 | 1011 |