diff layer/SpectrogramLayer.h @ 13:01849cd277e6

* Hook up tool selection buttons to switch the cursor mode * Implement simple and multi-selection, snapping to the resolution of the current layer. You can't actually do anything with a selection yet
author Chris Cannam
date Mon, 23 Jan 2006 17:02:57 +0000
parents 2d5005f2b3d9
children 4d5d9aba406b
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Thu Jan 19 17:59:11 2006 +0000
+++ b/layer/SpectrogramLayer.h	Mon Jan 23 17:02:57 2006 +0000
@@ -54,6 +54,10 @@
     virtual QRect getFeatureDescriptionRect(QPainter &, QPoint) const;
     virtual void paintLocalFeatureDescription(QPainter &, QRect, QPoint) const;
 
+    virtual int getNearestFeatureFrame(int frame, 
+				       size_t &resolution,
+				       bool snapRight = true) const;
+
     void setModel(const DenseTimeValueModel *model);
 
     virtual PropertyList getProperties() const;