Mercurial > hg > svgui
diff layer/NoteLayer.h @ 692:4dcf10bd2863
Add piano scale to note layer as well (need to handle the auto-align case properly)
author | Chris Cannam |
---|---|
date | Tue, 03 Dec 2013 17:55:37 +0000 |
parents | 5b72899d692b |
children | 084f65094203 |
line wrap: on
line diff
--- a/layer/NoteLayer.h Tue Dec 03 17:48:46 2013 +0000 +++ b/layer/NoteLayer.h Tue Dec 03 17:55:37 2013 +0000 @@ -34,6 +34,9 @@ virtual void paint(View *v, QPainter &paint, QRect rect) const; + virtual int getVerticalScaleWidth(View *v, bool, QPainter &) const; + virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; + virtual QString getFeatureDescription(View *v, QPoint &) const; virtual bool snapToFeatureFrame(View *v, int &frame, @@ -102,8 +105,6 @@ virtual void setVerticalZoomStep(int); virtual RangeMapper *getNewVerticalZoomRangeMapper() const; - virtual int getVerticalScaleWidth(View *, bool, QPainter &) const { return 0; } - /** * Add a note-on. Used when recording MIDI "live". The note will * not be finally added to the layer until the corresponding