comparison data/model/AlignmentModel.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 88ad01799040
children cd42620e3f40
comparison
equal deleted inserted replaced
928:6a94bb528e9d 929:59e7fe1b1003
35 Model *inputModel, // probably an AggregateWaveModel; I take ownership 35 Model *inputModel, // probably an AggregateWaveModel; I take ownership
36 SparseTimeValueModel *path); // I take ownership 36 SparseTimeValueModel *path); // I take ownership
37 ~AlignmentModel(); 37 ~AlignmentModel();
38 38
39 virtual bool isOK() const; 39 virtual bool isOK() const;
40 virtual size_t getStartFrame() const; 40 virtual int getStartFrame() const;
41 virtual size_t getEndFrame() const; 41 virtual int getEndFrame() const;
42 virtual size_t getSampleRate() const; 42 virtual int getSampleRate() const;
43 virtual Model *clone() const; 43 virtual Model *clone() const;
44 virtual bool isReady(int *completion = 0) const; 44 virtual bool isReady(int *completion = 0) const;
45 virtual const ZoomConstraint *getZoomConstraint() const; 45 virtual const ZoomConstraint *getZoomConstraint() const;
46 46
47 QString getTypeName() const { return tr("Alignment"); } 47 QString getTypeName() const { return tr("Alignment"); }
48 48
49 const Model *getReferenceModel() const; 49 const Model *getReferenceModel() const;
50 const Model *getAlignedModel() const; 50 const Model *getAlignedModel() const;
51 51
52 size_t toReference(size_t frame) const; 52 int toReference(int frame) const;
53 size_t fromReference(size_t frame) const; 53 int fromReference(int frame) const;
54 54
55 void setPath(PathModel *path); 55 void setPath(PathModel *path);
56 56
57 virtual void toXml(QTextStream &stream, 57 virtual void toXml(QTextStream &stream,
58 QString indent = "", 58 QString indent = "",
59 QString extraAttributes = "") const; 59 QString extraAttributes = "") const;
60 60
61 signals: 61 signals:
62 void modelChanged(); 62 void modelChanged();
63 void modelChanged(size_t startFrame, size_t endFrame); 63 void modelChanged(int startFrame, int endFrame);
64 void completionChanged(); 64 void completionChanged();
65 65
66 protected slots: 66 protected slots:
67 void pathChanged(); 67 void pathChanged();
68 void pathChanged(size_t startFrame, size_t endFrame); 68 void pathChanged(int startFrame, int endFrame);
69 void pathCompletionChanged(); 69 void pathCompletionChanged();
70 70
71 protected: 71 protected:
72 Model *m_reference; // I don't own this 72 Model *m_reference; // I don't own this
73 Model *m_aligned; // I don't own this 73 Model *m_aligned; // I don't own this
81 bool m_pathComplete; 81 bool m_pathComplete;
82 82
83 void constructPath() const; 83 void constructPath() const;
84 void constructReversePath() const; 84 void constructReversePath() const;
85 85
86 size_t align(PathModel *path, size_t frame) const; 86 int align(PathModel *path, int frame) const;
87 }; 87 };
88 88
89 #endif 89 #endif