comparison layer/FlexiNoteLayer.h @ 694:ad12e428785b tonioni

Merge from default branch
author Chris Cannam
date Tue, 03 Dec 2013 17:58:40 +0000
parents layer/NoteLayer.h@4dcf10bd2863 layer/NoteLayer.h@8663a831838f
children ceb9a2992d96
comparison
equal deleted inserted replaced
688:212644efa523 694:ad12e428785b
33 33
34 public: 34 public:
35 FlexiNoteLayer(); 35 FlexiNoteLayer();
36 36
37 virtual void paint(View *v, QPainter &paint, QRect rect) const; 37 virtual void paint(View *v, QPainter &paint, QRect rect) const;
38
39 virtual int getVerticalScaleWidth(View *v, bool, QPainter &) const;
40 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const;
38 41
39 virtual QString getFeatureDescription(View *v, QPoint &) const; 42 virtual QString getFeatureDescription(View *v, QPoint &) const;
40 43
41 virtual bool snapToFeatureFrame(View *v, int &frame, 44 virtual bool snapToFeatureFrame(View *v, int &frame,
42 size_t &resolution, 45 size_t &resolution,
119 virtual int getVerticalZoomSteps(int &defaultStep) const; 122 virtual int getVerticalZoomSteps(int &defaultStep) const;
120 virtual int getCurrentVerticalZoomStep() const; 123 virtual int getCurrentVerticalZoomStep() const;
121 virtual void setVerticalZoomStep(int); 124 virtual void setVerticalZoomStep(int);
122 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; 125 virtual RangeMapper *getNewVerticalZoomRangeMapper() const;
123 126
124 virtual int getVerticalScaleWidth(View *, bool, QPainter &) const { return 0; }
125
126 /** 127 /**
127 * Add a note-on. Used when recording MIDI "live". The note will 128 * Add a note-on. Used when recording MIDI "live". The note will
128 * not be finally added to the layer until the corresponding 129 * not be finally added to the layer until the corresponding
129 * note-off. 130 * note-off.
130 */ 131 */