Mercurial > hg > svgui
comparison layer/WaveformLayer.h @ 6:02aaea1ffaf7
* Beginnings of session save code
* Add spline curve mode to time value layer
author | Chris Cannam |
---|---|
date | Thu, 12 Jan 2006 17:19:08 +0000 |
parents | 37b110168acf |
children | 2d5005f2b3d9 |
comparison
equal
deleted
inserted
replaced
5:37b110168acf | 6:02aaea1ffaf7 |
---|---|
155 | 155 |
156 virtual int getCompletion() const; | 156 virtual int getCompletion() const; |
157 | 157 |
158 virtual QString getPropertyContainerIconName() const { return "waveform"; } | 158 virtual QString getPropertyContainerIconName() const { return "waveform"; } |
159 | 159 |
160 virtual QString toXmlString(QString indent = "", | |
161 QString extraAttributes = "") const; | |
162 | |
160 protected: | 163 protected: |
161 int dBscale(float sample, int m) const; | 164 int dBscale(float sample, int m) const; |
162 | 165 |
163 const RangeSummarisableTimeValueModel *m_model; // I do not own this | 166 const RangeSummarisableTimeValueModel *m_model; // I do not own this |
164 | 167 |
165 /// Return value is number of channels displayed | 168 /// Return value is number of channels displayed |
166 size_t getChannelArrangement(size_t &min, size_t &max, bool &merging) const; | 169 size_t getChannelArrangement(size_t &min, size_t &max, bool &merging) const; |
167 | 170 |
168 float m_gain; | 171 float m_gain; |
169 QColor m_colour; | 172 QColor m_colour; |
170 bool m_showMeans; | 173 bool m_showMeans; |
171 bool m_greyscale; | 174 bool m_greyscale; |
172 ChannelMode m_channelMode; | 175 ChannelMode m_channelMode; |
173 int m_channel; | 176 int m_channel; |
174 Scale m_scale; | 177 Scale m_scale; |
175 bool m_aggressive; | 178 bool m_aggressive; |
176 | 179 |
177 mutable QPixmap *m_cache; | 180 mutable QPixmap *m_cache; |
178 mutable bool m_cacheValid; | 181 mutable bool m_cacheValid; |
179 mutable int m_cacheZoomLevel; | 182 mutable int m_cacheZoomLevel; |
180 }; | 183 }; |