Mercurial > hg > svcore
comparison base/Layer.h @ 40:b2d1a61ab916
* A bit more work on main window / document / commands stuff. This is still
pretty unstable.
* Enable CSV file reader also to read files with other separators (e.g. .lab
files with space separators)
* Show "(R)" on waveform display when resampling during playback
* Add ability to import additional audio files (can't process them yet)
* Fixes to spectrogram cache for multiple views
* Fix to avoid floating-point exception in sparse model when resolution not
set yet
author | Chris Cannam |
---|---|
date | Mon, 06 Mar 2006 17:20:25 +0000 |
parents | e1a0cf2dcc79 |
children | 2b6412c1e724 |
comparison
equal
deleted
inserted
replaced
39:e1a0cf2dcc79 | 40:b2d1a61ab916 |
---|---|
196 /** | 196 /** |
197 * Indicate that a layer is not currently visible in the given | 197 * Indicate that a layer is not currently visible in the given |
198 * view and is not expected to become visible in the near future | 198 * view and is not expected to become visible in the near future |
199 * (for example because the user has explicitly removed or hidden | 199 * (for example because the user has explicitly removed or hidden |
200 * it). The layer may respond by (for example) freeing any cache | 200 * it). The layer may respond by (for example) freeing any cache |
201 * memory it is using, until next time its paint method is called. | 201 * memory it is using, until next time its paint method is called, |
202 * It does not need to remember not to draw itself; the view will | 202 * when it should set itself un-dormant again. |
203 * handle that. | |
204 */ | 203 */ |
205 virtual void setLayerDormant(const View *v, bool dormant) { | 204 virtual void setLayerDormant(const View *v, bool dormant) { |
206 m_dormancy[v] = dormant; | 205 m_dormancy[v] = dormant; |
207 } | 206 } |
208 | 207 |
228 | 227 |
229 void layerParametersChanged(); | 228 void layerParametersChanged(); |
230 void layerNameChanged(); | 229 void layerNameChanged(); |
231 | 230 |
232 protected: | 231 protected: |
233 std::map<const void *, bool> m_dormancy; | 232 mutable std::map<const void *, bool> m_dormancy; |
234 }; | 233 }; |
235 | 234 |
236 #endif | 235 #endif |
237 | 236 |