comparison data/model/TextModel.h @ 423:6a96bff0bd59

* Update translations, and add change counter to name of bundle command
author Chris Cannam
date Thu, 12 Jun 2008 10:47:11 +0000
parents 700cd3350391
children eafef13bb0b3
comparison
equal deleted inserted replaced
422:4caa28a0a8a2 423:6a96bff0bd59
17 #define _TEXT_MODEL_H_ 17 #define _TEXT_MODEL_H_
18 18
19 #include "SparseModel.h" 19 #include "SparseModel.h"
20 #include "base/XmlExportable.h" 20 #include "base/XmlExportable.h"
21 #include "base/RealTime.h" 21 #include "base/RealTime.h"
22
23 #include <QStringList>
22 24
23 /** 25 /**
24 * Text point type for use in a SparseModel. This represents a piece 26 * Text point type for use in a SparseModel. This represents a piece
25 * of text at a given time and y-value in the [0,1) range (indicative 27 * of text at a given time and y-value in the [0,1) range (indicative
26 * of height on the window). Intended for casual textual annotations. 28 * of height on the window). Intended for casual textual annotations.
78 80
79 // Make this a class rather than a typedef so it can be predeclared. 81 // Make this a class rather than a typedef so it can be predeclared.
80 82
81 class TextModel : public SparseModel<TextPoint> 83 class TextModel : public SparseModel<TextPoint>
82 { 84 {
85 Q_OBJECT
86
83 public: 87 public:
84 TextModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) : 88 TextModel(size_t sampleRate, size_t resolution, bool notifyOnAdd = true) :
85 SparseModel<TextPoint>(sampleRate, resolution, notifyOnAdd) 89 SparseModel<TextPoint>(sampleRate, resolution, notifyOnAdd)
86 { } 90 { }
87 91