Mercurial > hg > svcore
comparison data/model/AggregateWaveModel.cpp @ 1391:2c0e04062a99
Write aggregate models to .sv file when saving document. They still are not reloaded, but I think this is far as I'm prepared to go for 3.0.
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2017 16:52:47 +0000 |
parents | 1a572937ed8c |
children | 7b4d56b01440 |
comparison
equal
deleted
inserted
replaced
1390:1a572937ed8c | 1391:2c0e04062a99 |
---|---|
215 { | 215 { |
216 emit completionChanged(); | 216 emit completionChanged(); |
217 } | 217 } |
218 | 218 |
219 void | 219 void |
220 AggregateWaveModel::toXml(QTextStream &, | 220 AggregateWaveModel::toXml(QTextStream &out, |
221 QString , | 221 QString indent, |
222 QString ) const | 222 QString extraAttributes) const |
223 { | 223 { |
224 //!!! complete | 224 QStringList componentStrings; |
225 } | 225 for (const auto &c: m_components) { |
226 | 226 componentStrings.push_back(QString("%1").arg(getObjectExportId(c.model))); |
227 } | |
228 Model::toXml(out, indent, | |
229 QString("type=\"aggregatewave\" components=\"%1\" %2") | |
230 .arg(componentStrings.join(",")) | |
231 .arg(extraAttributes)); | |
232 } | |
233 |