diff 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
line wrap: on
line diff
--- a/layer/Layer.h	Fri Nov 17 16:27:39 2006 +0000
+++ b/layer/Layer.h	Fri Nov 24 16:56:15 2006 +0000
@@ -201,6 +201,16 @@
     virtual bool isLayerOpaque() const { return false; }
 
     /**
+     * This should return true if the layer uses colours to indicate
+     * meaningful information (as opposed to just using a single
+     * colour of the user's choice).  If this is the case, the view
+     * will show selections using unfilled rectangles instead of
+     * translucent filled rectangles, so as not to disturb the colours
+     * underneath.
+     */
+    virtual bool isLayerColourSignificant() const { return false; }
+
+    /**
      * This should return true if the layer can be edited by the user.
      * If this is the case, the appropriate edit tools may be made
      * available by the application and the layer's drawStart/Drag/End