diff base/Layer.h @ 76:af2725b5d6fe

* Implement harmonic cursor in spectrogram * Implement layer export. This doesn't quite do the right thing for the SV XML layer export yet -- it doesn't include layer display information, so when imported, it only creates an invisible model. Could also do with fixing CSV file import so as to work correctly for note and text layers.
author Chris Cannam
date Mon, 10 Apr 2006 17:22:59 +0000
parents 47fd14e29813
children c983dda79f72
line wrap: on
line diff
--- a/base/Layer.h	Mon Apr 10 13:52:32 2006 +0000
+++ b/base/Layer.h	Mon Apr 10 17:22:59 2006 +0000
@@ -78,15 +78,14 @@
     virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
     virtual void paintVerticalScale(View *, QPainter &, QRect) const { }
 
+    virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos,
+                                     std::vector<QRect> &) const { return false; }
+    virtual void paintCrosshairs(View *, QPainter &, QPoint) const { }
+
     virtual QString getFeatureDescription(View *, QPoint &) const {
 	return "";
     }
 
-    //!!! We also need a method (like the vertical scale method) for
-    //drawing additional scales like a colour scale.  That is, unless
-    //all applicable layers can actually do this from
-    //paintVerticalScale as well?
-
     enum SnapType {
 	SnapLeft,
 	SnapRight,