Mercurial > hg > svcore
comparison data/model/Model.h @ 929:59e7fe1b1003 warnfix_no_size_t
Unsigned removals and warning fixes in data/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:33:42 +0100 |
parents | d81c16e47e22 |
children | df82da55e86a |
comparison
equal
deleted
inserted
replaced
928:6a94bb528e9d | 929:59e7fe1b1003 |
---|---|
48 virtual bool isOK() const = 0; | 48 virtual bool isOK() const = 0; |
49 | 49 |
50 /** | 50 /** |
51 * Return the first audio frame spanned by the model. | 51 * Return the first audio frame spanned by the model. |
52 */ | 52 */ |
53 virtual size_t getStartFrame() const = 0; | 53 virtual int getStartFrame() const = 0; |
54 | 54 |
55 /** | 55 /** |
56 * Return the last audio frame spanned by the model. | 56 * Return the last audio frame spanned by the model. |
57 */ | 57 */ |
58 virtual size_t getEndFrame() const = 0; | 58 virtual int getEndFrame() const = 0; |
59 | 59 |
60 /** | 60 /** |
61 * Return the frame rate in frames per second. | 61 * Return the frame rate in frames per second. |
62 */ | 62 */ |
63 virtual size_t getSampleRate() const = 0; | 63 virtual int getSampleRate() const = 0; |
64 | 64 |
65 /** | 65 /** |
66 * Return the frame rate of the underlying material, if the model | 66 * Return the frame rate of the underlying material, if the model |
67 * itself has already been resampled. | 67 * itself has already been resampled. |
68 */ | 68 */ |
69 virtual size_t getNativeRate() const { return getSampleRate(); } | 69 virtual int getNativeRate() const { return getSampleRate(); } |
70 | 70 |
71 /** | 71 /** |
72 * Return the "work title" of the model, if known. | 72 * Return the "work title" of the model, if known. |
73 */ | 73 */ |
74 virtual QString getTitle() const; | 74 virtual QString getTitle() const; |
178 | 178 |
179 /** | 179 /** |
180 * Return the frame number of the reference model that corresponds | 180 * Return the frame number of the reference model that corresponds |
181 * to the given frame number in this model. | 181 * to the given frame number in this model. |
182 */ | 182 */ |
183 virtual size_t alignToReference(size_t frame) const; | 183 virtual int alignToReference(int frame) const; |
184 | 184 |
185 /** | 185 /** |
186 * Return the frame number in this model that corresponds to the | 186 * Return the frame number in this model that corresponds to the |
187 * given frame number of the reference model. | 187 * given frame number of the reference model. |
188 */ | 188 */ |
189 virtual size_t alignFromReference(size_t referenceFrame) const; | 189 virtual int alignFromReference(int referenceFrame) const; |
190 | 190 |
191 /** | 191 /** |
192 * Return the completion percentage for the alignment model: 100 | 192 * Return the completion percentage for the alignment model: 100 |
193 * if there is no alignment model or it has been entirely | 193 * if there is no alignment model or it has been entirely |
194 * calculated, or less than 100 if it is still being calculated. | 194 * calculated, or less than 100 if it is still being calculated. |
212 virtual void toXml(QTextStream &stream, | 212 virtual void toXml(QTextStream &stream, |
213 QString indent = "", | 213 QString indent = "", |
214 QString extraAttributes = "") const; | 214 QString extraAttributes = "") const; |
215 | 215 |
216 virtual QString toDelimitedDataString(QString delimiter) const { | 216 virtual QString toDelimitedDataString(QString delimiter) const { |
217 return toDelimitedDataString(delimiter, getStartFrame(), getEndFrame()); | 217 return toDelimitedDataStringSubset(delimiter, getStartFrame(), getEndFrame()); |
218 } | 218 } |
219 virtual QString toDelimitedDataString(QString, size_t /* f0 */, size_t /* f1 */) const { | 219 virtual QString toDelimitedDataStringSubset(QString, int /* f0 */, int /* f1 */) const { |
220 return ""; | 220 return ""; |
221 } | 221 } |
222 | 222 |
223 public slots: | 223 public slots: |
224 void aboutToDelete(); | 224 void aboutToDelete(); |
233 | 233 |
234 /** | 234 /** |
235 * Emitted when a model has been edited (or more data retrieved | 235 * Emitted when a model has been edited (or more data retrieved |
236 * from cache, in the case of a cached model that generates slowly) | 236 * from cache, in the case of a cached model that generates slowly) |
237 */ | 237 */ |
238 void modelChanged(size_t startFrame, size_t endFrame); | 238 void modelChanged(int startFrame, int endFrame); |
239 | 239 |
240 /** | 240 /** |
241 * Emitted when some internal processing has advanced a stage, but | 241 * Emitted when some internal processing has advanced a stage, but |
242 * the model has not changed externally. Views should respond by | 242 * the model has not changed externally. Views should respond by |
243 * updating any progress meters or other monitoring, but not | 243 * updating any progress meters or other monitoring, but not |