From 668058ed445d56fe46ac7d5e5c2c2cc65b4e1e4c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 25 May 2018 22:18:42 +0200 Subject: Store export path and prefix. --- src/projectserialiser.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/projectserialiser.cc') 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(); -- cgit v1.2.3