diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-25 22:18:42 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-25 22:18:42 +0200 |
commit | 668058ed445d56fe46ac7d5e5c2c2cc65b4e1e4c (patch) | |
tree | 8644e63ca3ab413150376fa5bfdd9985968f63fe /src/projectserialiser.cc | |
parent | cb896a4fa1acd9167d3e7ee9f6336a63309eebde (diff) |
Store export path and prefix.
Diffstat (limited to 'src/projectserialiser.cc')
-rw-r--r-- | src/projectserialiser.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/projectserialiser.cc b/src/projectserialiser.cc index f70e6dd..f80fa36 100644 --- a/src/projectserialiser.cc +++ b/src/projectserialiser.cc @@ -139,6 +139,11 @@ QString ProjectSerialiser::serialise(const Project& project) instruments.appendChild(instrument); + auto export_path = doc.createElement("export_path"); + export_path.setAttribute("prefix", i.getPrefix()); + export_path.appendChild(doc.createTextNode(i.export_path)); + instrument.appendChild(export_path); + auto instrument_name = doc.createElement("instrument_name"); instrument_name.appendChild(doc.createTextNode(i.instrument_name)); instrument.appendChild(instrument_name); @@ -231,6 +236,9 @@ bool ProjectSerialiser::deserialise(const QString& data, Project& project) instr.threshold = instrument["threshold"].toFloat(); + instr.export_path = instrument("export_path").text(); + instr.prefix = instrument("export_path")["prefix"]; + auto selections = instrument("regions"); instr.selections.nextid = selections["nextid"].toInt(); instr.selections.act = selections["act"].toInt(); |