Mercurial > hg > tony
comparison src/MainWindow.cpp @ 429:9dad69cbf452
Wire options into CSVFileWriter; omit levels from Tony note export
author | Chris Cannam |
---|---|
date | Tue, 31 Mar 2015 11:05:02 +0100 |
parents | 46003a5a8736 |
children | 548433164338 |
comparison
equal
deleted
inserted
replaced
428:2bbec2dfe9f6 | 429:9dad69cbf452 |
---|---|
2217 error = exporter.getError(); | 2217 error = exporter.getError(); |
2218 } | 2218 } |
2219 | 2219 |
2220 } else { | 2220 } else { |
2221 | 2221 |
2222 DataExportOptions options = DataExportFillGaps; | |
2223 | |
2222 CSVFileWriter writer(path, model, | 2224 CSVFileWriter writer(path, model, |
2223 ((suffix == "csv") ? "," : "\t")); | 2225 ((suffix == "csv") ? "," : "\t"), |
2226 options); | |
2224 writer.write(); | 2227 writer.write(); |
2225 | 2228 |
2226 if (!writer.isOK()) { | 2229 if (!writer.isOK()) { |
2227 error = writer.getError(); | 2230 error = writer.getError(); |
2228 } | 2231 } |
2276 error = exporter.getError(); | 2279 error = exporter.getError(); |
2277 } | 2280 } |
2278 | 2281 |
2279 } else { | 2282 } else { |
2280 | 2283 |
2284 DataExportOptions options = DataExportOmitLevels; | |
2285 | |
2281 CSVFileWriter writer(path, model, | 2286 CSVFileWriter writer(path, model, |
2282 ((suffix == "csv") ? "," : "\t")); | 2287 ((suffix == "csv") ? "," : "\t"), |
2288 options); | |
2283 writer.write(); | 2289 writer.write(); |
2284 | 2290 |
2285 if (!writer.isOK()) { | 2291 if (!writer.isOK()) { |
2286 error = writer.getError(); | 2292 error = writer.getError(); |
2287 } | 2293 } |