comparison data/model/TextModel.h @ 1060:57633d605547 tonioni

Add data export options (not all implemented yet)
author Chris Cannam
date Mon, 30 Mar 2015 17:27:25 +0100
parents a1cd5abcb38b
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1059:7598a78cf915 1060:57633d605547
49 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n") 49 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n")
50 .arg(indent).arg(frame).arg(height) 50 .arg(indent).arg(frame).arg(height)
51 .arg(encodeEntities(label)).arg(extraAttributes); 51 .arg(encodeEntities(label)).arg(extraAttributes);
52 } 52 }
53 53
54 QString toDelimitedDataString(QString delimiter, sv_samplerate_t sampleRate) const 54 QString toDelimitedDataString(QString delimiter, DataExportOptions, sv_samplerate_t sampleRate) const
55 { 55 {
56 QStringList list; 56 QStringList list;
57 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 57 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
58 list << QString("%1").arg(height); 58 list << QString("%1").arg(height);
59 if (label != "") list << label; 59 if (label != "") list << label;