comparison 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
comparison
equal deleted inserted replaced
75:163f3428bbe0 76:af2725b5d6fe
76 virtual QString getLayerPresentationName() const; 76 virtual QString getLayerPresentationName() const;
77 77
78 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } 78 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
79 virtual void paintVerticalScale(View *, QPainter &, QRect) const { } 79 virtual void paintVerticalScale(View *, QPainter &, QRect) const { }
80 80
81 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos,
82 std::vector<QRect> &) const { return false; }
83 virtual void paintCrosshairs(View *, QPainter &, QPoint) const { }
84
81 virtual QString getFeatureDescription(View *, QPoint &) const { 85 virtual QString getFeatureDescription(View *, QPoint &) const {
82 return ""; 86 return "";
83 } 87 }
84
85 //!!! We also need a method (like the vertical scale method) for
86 //drawing additional scales like a colour scale. That is, unless
87 //all applicable layers can actually do this from
88 //paintVerticalScale as well?
89 88
90 enum SnapType { 89 enum SnapType {
91 SnapLeft, 90 SnapLeft,
92 SnapRight, 91 SnapRight,
93 SnapNearest, 92 SnapNearest,