Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 77:fd348f36c0d3
* 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 | 72fa239a4880 |
children | 19bf27e4fb29 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Fri Apr 07 17:50:33 2006 +0000 +++ b/layer/SpectrogramLayer.h Mon Apr 10 17:22:59 2006 +0000 @@ -59,6 +59,10 @@ virtual int getVerticalScaleWidth(View *v, QPainter &) const; virtual void paintVerticalScale(View *v, QPainter &paint, QRect rect) const; + virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, + std::vector<QRect> &extents) const; + virtual void paintCrosshairs(View *, QPainter &, QPoint) const; + virtual QString getFeatureDescription(View *v, QPoint &) const; virtual bool snapToFeatureFrame(View *v, int &frame, @@ -207,6 +211,7 @@ size_t m_maxFrequency; ColourScale m_colourScale; ColourScheme m_colourScheme; + QColor m_crosshairColour; FrequencyScale m_frequencyScale; BinDisplay m_binDisplay; bool m_normalizeColumns;