Mercurial > hg > svgui
comparison layer/NoteLayer.h @ 694:ad12e428785b tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 03 Dec 2013 17:58:40 +0000 |
parents | 4dcf10bd2863 |
children | 084f65094203 |
comparison
equal
deleted
inserted
replaced
688:212644efa523 | 694:ad12e428785b |
---|---|
31 | 31 |
32 public: | 32 public: |
33 NoteLayer(); | 33 NoteLayer(); |
34 | 34 |
35 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 35 virtual void paint(View *v, QPainter &paint, QRect rect) const; |
36 | |
37 virtual int getVerticalScaleWidth(View *v, bool, QPainter &) const; | |
38 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; | |
36 | 39 |
37 virtual QString getFeatureDescription(View *v, QPoint &) const; | 40 virtual QString getFeatureDescription(View *v, QPoint &) const; |
38 | 41 |
39 virtual bool snapToFeatureFrame(View *v, int &frame, | 42 virtual bool snapToFeatureFrame(View *v, int &frame, |
40 size_t &resolution, | 43 size_t &resolution, |
100 virtual int getVerticalZoomSteps(int &defaultStep) const; | 103 virtual int getVerticalZoomSteps(int &defaultStep) const; |
101 virtual int getCurrentVerticalZoomStep() const; | 104 virtual int getCurrentVerticalZoomStep() const; |
102 virtual void setVerticalZoomStep(int); | 105 virtual void setVerticalZoomStep(int); |
103 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; | 106 virtual RangeMapper *getNewVerticalZoomRangeMapper() const; |
104 | 107 |
105 virtual int getVerticalScaleWidth(View *, bool, QPainter &) const { return 0; } | |
106 | |
107 /** | 108 /** |
108 * Add a note-on. Used when recording MIDI "live". The note will | 109 * Add a note-on. Used when recording MIDI "live". The note will |
109 * not be finally added to the layer until the corresponding | 110 * not be finally added to the layer until the corresponding |
110 * note-off. | 111 * note-off. |
111 */ | 112 */ |