comparison data/model/SparseTimeValueModel.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 value; 39 float value;
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\" value=\"%3\" label=\"%4\" %5/>\n") 47 stream << QString("%1<point frame=\"%2\" value=\"%3\" label=\"%4\" %5/>\n")
91 valueMinimum, valueMaximum, 93 valueMinimum, valueMaximum,
92 notifyOnAdd) 94 notifyOnAdd)
93 { 95 {
94 PlayParameterRepository::getInstance()->addModel(this); 96 PlayParameterRepository::getInstance()->addModel(this);
95 } 97 }
98
99 QString getTypeName() const { return tr("Sparse Time-Value"); }
96 }; 100 };
97 101
98 102
99 #endif 103 #endif
100 104