diff layer/Layer.h @ 260:6d113226bb4c

* a bit more work on measurement tool mode * use arrow cursors on thumbwheels and panner in pane HUD
author Chris Cannam
date Thu, 14 Jun 2007 15:20:49 +0000
parents e175ade2d6b0
children 4ed1446ad604
line wrap: on
line diff
--- a/layer/Layer.h	Wed Jun 13 13:44:19 2007 +0000
+++ b/layer/Layer.h	Thu Jun 14 15:20:49 2007 +0000
@@ -318,6 +318,24 @@
     }
 
     /**
+     * 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
+     * if the layer hasTimeXAxis().
+     */
+    virtual bool getXScaleValue(View *v, int x,
+                                float &value, QString &unit) const;
+
+    /** 
+     * Return the value and unit at the given y coordinate in the
+     * given view.
+     */
+    virtual bool getYScaleValue(View *, int /* y */,
+                                float &/* value */, QString &/* unit */) const {
+        return false;
+    }
+
+    /**
      * Get the number of vertical zoom steps available for this layer.
      * If vertical zooming is not available, return 0.  The meaning of
      * "zooming" is entirely up to the layer -- changing the zoom