diff layer/Layer.h @ 273:e954c00cbe55

* proper (though ugly) handling of y coord for measure rects in scrollable layers
author Chris Cannam
date Fri, 29 Jun 2007 16:50:59 +0000
parents 87e4c880b4c8
children b9380f679f70
line wrap: on
line diff
--- a/layer/Layer.h	Fri Jun 29 13:58:08 2007 +0000
+++ b/layer/Layer.h	Fri Jun 29 16:50:59 2007 +0000
@@ -429,6 +429,8 @@
         bool haveFrames;
         long startFrame; // only valid if haveFrames
         long endFrame;   // ditto
+        double startY;
+        double endY;
 
         bool operator<(const MeasureRect &mr) const;
         QString toXmlString(QString indent) const;
@@ -467,7 +469,10 @@
     // Note that pixrects are only correct for a single view.
     // So we should update them at the start of the paint procedure
     // (painting is single threaded) and only use them after that.
-    void updateMeasurementPixrects(View *v) const;
+    void updateMeasurePixrects(View *v) const;
+
+    virtual void updateMeasureRectYCoords(View *v, const MeasureRect &r) const;
+    virtual void setMeasureRectYCoord(View *v, MeasureRect &r, bool start, int y) const;
 
     // This assumes updateMeasurementPixrects has been called
     MeasureRectSet::const_iterator findFocusedMeasureRect(QPoint) const;