comparison data/model/AggregateWaveModel.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 166c22eff678
children cd42620e3f40
comparison
equal deleted inserted replaced
928:6a94bb528e9d 929:59e7fe1b1003
42 bool isOK() const; 42 bool isOK() const;
43 bool isReady(int *) const; 43 bool isReady(int *) const;
44 44
45 QString getTypeName() const { return tr("Aggregate Wave"); } 45 QString getTypeName() const { return tr("Aggregate Wave"); }
46 46
47 size_t getComponentCount() const; 47 int getComponentCount() const;
48 ModelChannelSpec getComponent(size_t c) const; 48 ModelChannelSpec getComponent(int c) const;
49 49
50 const ZoomConstraint *getZoomConstraint() const { return &m_zoomConstraint; } 50 const ZoomConstraint *getZoomConstraint() const { return &m_zoomConstraint; }
51 51
52 size_t getFrameCount() const; 52 int getFrameCount() const;
53 size_t getChannelCount() const; 53 int getChannelCount() const;
54 size_t getSampleRate() const; 54 int getSampleRate() const;
55 55
56 virtual Model *clone() const; 56 virtual Model *clone() const;
57 57
58 float getValueMinimum() const { return -1.0f; } 58 float getValueMinimum() const { return -1.0f; }
59 float getValueMaximum() const { return 1.0f; } 59 float getValueMaximum() const { return 1.0f; }
60 60
61 virtual size_t getStartFrame() const { return 0; } 61 virtual int getStartFrame() const { return 0; }
62 virtual size_t getEndFrame() const { return getFrameCount(); } 62 virtual int getEndFrame() const { return getFrameCount(); }
63 63
64 virtual size_t getData(int channel, size_t start, size_t count, 64 virtual int getData(int channel, int start, int count,
65 float *buffer) const; 65 float *buffer) const;
66 66
67 virtual size_t getData(int channel, size_t start, size_t count, 67 virtual int getData(int channel, int start, int count,
68 double *buffer) const; 68 double *buffer) const;
69 69
70 virtual size_t getData(size_t fromchannel, size_t tochannel, 70 virtual int getData(int fromchannel, int tochannel,
71 size_t start, size_t count, 71 int start, int count,
72 float **buffer) const; 72 float **buffer) const;
73 73
74 virtual size_t getSummaryBlockSize(size_t desired) const; 74 virtual int getSummaryBlockSize(int desired) const;
75 75
76 virtual void getSummaries(size_t channel, size_t start, size_t count, 76 virtual void getSummaries(int channel, int start, int count,
77 RangeBlock &ranges, 77 RangeBlock &ranges,
78 size_t &blockSize) const; 78 int &blockSize) const;
79 79
80 virtual Range getSummary(size_t channel, size_t start, size_t count) const; 80 virtual Range getSummary(int channel, int start, int count) const;
81 81
82 virtual void toXml(QTextStream &out, 82 virtual void toXml(QTextStream &out,
83 QString indent = "", 83 QString indent = "",
84 QString extraAttributes = "") const; 84 QString extraAttributes = "") const;
85 85
86 signals: 86 signals:
87 void modelChanged(); 87 void modelChanged();
88 void modelChanged(size_t, size_t); 88 void modelChanged(int, int);
89 void completionChanged(); 89 void completionChanged();
90 90
91 protected slots: 91 protected slots:
92 void componentModelChanged(); 92 void componentModelChanged();
93 void componentModelChanged(size_t, size_t); 93 void componentModelChanged(int, int);
94 void componentModelCompletionChanged(); 94 void componentModelCompletionChanged();
95 95
96 protected: 96 protected:
97 ChannelSpecList m_components; 97 ChannelSpecList m_components;
98 static PowerOfSqrtTwoZoomConstraint m_zoomConstraint; 98 static PowerOfSqrtTwoZoomConstraint m_zoomConstraint;