comparison layer/WaveformLayer.h @ 11:2d5005f2b3d9

* Rework handling of layer properties in file I/O -- we now get the individual layers to load and save them rather than doing it via generic property lists in the base class, so as to ensure we read and write meaningful values rather than generic int values requiring conversion.
author Chris Cannam
date Thu, 19 Jan 2006 12:54:38 +0000
parents 02aaea1ffaf7
children 0183ebb725ca
comparison
equal deleted inserted replaced
10:8f5b812baaee 11:2d5005f2b3d9
158 virtual QString getPropertyContainerIconName() const { return "waveform"; } 158 virtual QString getPropertyContainerIconName() const { return "waveform"; }
159 159
160 virtual QString toXmlString(QString indent = "", 160 virtual QString toXmlString(QString indent = "",
161 QString extraAttributes = "") const; 161 QString extraAttributes = "") const;
162 162
163 void setProperties(const QXmlAttributes &attributes);
164
163 protected: 165 protected:
164 int dBscale(float sample, int m) const; 166 int dBscale(float sample, int m) const;
165 167
166 const RangeSummarisableTimeValueModel *m_model; // I do not own this 168 const RangeSummarisableTimeValueModel *m_model; // I do not own this
167 169