comparison layer/Layer.h @ 183:5f86ae638b04

* Omit translucent blue fill for selection rectangles that are superimposed over layers that use colours for meaningful purposes such as the spectrogram (CHARM change request)
author Chris Cannam
date Fri, 24 Nov 2006 16:56:15 +0000
parents 42118892f428
children e7cf6044c2a0
comparison
equal deleted inserted replaced
182:42118892f428 183:5f86ae638b04
199 * rectangle can be cached). 199 * rectangle can be cached).
200 */ 200 */
201 virtual bool isLayerOpaque() const { return false; } 201 virtual bool isLayerOpaque() const { return false; }
202 202
203 /** 203 /**
204 * This should return true if the layer uses colours to indicate
205 * meaningful information (as opposed to just using a single
206 * colour of the user's choice). If this is the case, the view
207 * will show selections using unfilled rectangles instead of
208 * translucent filled rectangles, so as not to disturb the colours
209 * underneath.
210 */
211 virtual bool isLayerColourSignificant() const { return false; }
212
213 /**
204 * This should return true if the layer can be edited by the user. 214 * This should return true if the layer can be edited by the user.
205 * If this is the case, the appropriate edit tools may be made 215 * If this is the case, the appropriate edit tools may be made
206 * available by the application and the layer's drawStart/Drag/End 216 * available by the application and the layer's drawStart/Drag/End
207 * and editStart/Drag/End methods should be implemented. 217 * and editStart/Drag/End methods should be implemented.
208 */ 218 */