Mercurial > hg > svcore
comparison data/model/SparseOneDimensionalModel.h @ 384:6f6ab834449d spectrogram-cache-rejig
* Merge from trunk
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 11:59:42 +0000 |
parents | 7a4bd2c8585c |
children |
comparison
equal
deleted
inserted
replaced
337:a6fab10ff9e6 | 384:6f6ab834449d |
---|---|
28 | 28 |
29 int getDimensions() const { return 1; } | 29 int getDimensions() const { return 1; } |
30 | 30 |
31 long frame; | 31 long frame; |
32 QString label; | 32 QString label; |
33 | 33 |
34 QString getLabel() const { return label; } | |
35 | |
34 void toXml(QTextStream &stream, | 36 void toXml(QTextStream &stream, |
35 QString indent = "", | 37 QString indent = "", |
36 QString extraAttributes = "") const | 38 QString extraAttributes = "") const |
37 { | 39 { |
38 stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n") | 40 stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n") |
82 j != m_points.end(); ++j, ++i) { | 84 j != m_points.end(); ++j, ++i) { |
83 if (!comparator(*j, point) && !comparator(point, *j)) return i; | 85 if (!comparator(*j, point) && !comparator(point, *j)) return i; |
84 } | 86 } |
85 return -1; | 87 return -1; |
86 } | 88 } |
89 | |
90 QString getTypeName() const { return tr("Sparse 1-D"); } | |
87 }; | 91 }; |
88 | 92 |
89 #endif | 93 #endif |
90 | 94 |
91 | 95 |