Mercurial > hg > svcore
comparison data/model/TextModel.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 |
---|---|
36 int getDimensions() const { return 2; } | 36 int getDimensions() const { return 2; } |
37 | 37 |
38 long frame; | 38 long frame; |
39 float height; | 39 float height; |
40 QString label; | 40 QString label; |
41 | |
42 QString getLabel() const { return label; } | |
41 | 43 |
42 void toXml(QTextStream &stream, QString indent = "", | 44 void toXml(QTextStream &stream, QString indent = "", |
43 QString extraAttributes = "") const | 45 QString extraAttributes = "") const |
44 { | 46 { |
45 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n") | 47 stream << QString("%1<point frame=\"%2\" height=\"%3\" label=\"%4\" %5/>\n") |
91 (out, | 93 (out, |
92 indent, | 94 indent, |
93 QString("%1 subtype=\"text\"") | 95 QString("%1 subtype=\"text\"") |
94 .arg(extraAttributes)); | 96 .arg(extraAttributes)); |
95 } | 97 } |
98 | |
99 QString getTypeName() const { return tr("Text"); } | |
96 }; | 100 }; |
97 | 101 |
98 | 102 |
99 #endif | 103 #endif |
100 | 104 |