diff layer/Layer.h @ 1520:4eafe5a1b655 time-frequency-boxes

Tidying
author Chris Cannam
date Wed, 25 Sep 2019 09:46:27 +0100
parents b402121d8f5f
children 4f8c72adbf43
line wrap: on
line diff
--- a/layer/Layer.h	Wed Sep 25 09:46:20 2019 +0100
+++ b/layer/Layer.h	Wed Sep 25 09:46:27 2019 +0100
@@ -488,6 +488,17 @@
     }
 
     /**
+     * Consider using the given value extents and units for this
+     * layer. This may be called on a new layer when added, to prepare
+     * it for editing, and the extents are those of the layer
+     * underneath it. May not be appropriate for most layer types.
+     */
+    virtual bool adoptExtents(double /* min */, double /* max */,
+                              QString /* unit */) {
+        return false;
+    }
+    
+    /**
      * Return the value and unit at the given x coordinate in the
      * given view.  This is for descriptive purposes using the
      * measurement tool.  The default implementation works correctly