# HG changeset patch # User Chris Cannam # Date 1488214367 0 # Node ID 2c0e04062a99172dd4cf490a9b028723efe27b09 # Parent 1a572937ed8c24744d41f100b2233319f13402ef 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. diff -r 1a572937ed8c -r 2c0e04062a99 data/model/AggregateWaveModel.cpp --- a/data/model/AggregateWaveModel.cpp Mon Feb 27 15:44:14 2017 +0000 +++ b/data/model/AggregateWaveModel.cpp Mon Feb 27 16:52:47 2017 +0000 @@ -217,10 +217,17 @@ } void -AggregateWaveModel::toXml(QTextStream &, - QString , - QString ) const +AggregateWaveModel::toXml(QTextStream &out, + QString indent, + QString extraAttributes) const { - //!!! complete + QStringList componentStrings; + for (const auto &c: m_components) { + componentStrings.push_back(QString("%1").arg(getObjectExportId(c.model))); + } + Model::toXml(out, indent, + QString("type=\"aggregatewave\" components=\"%1\" %2") + .arg(componentStrings.join(",")) + .arg(extraAttributes)); }