comparison layer/NoteLayer.h @ 811:c4ef666721bf

Merge from branch warnfix_no_size_t
author Chris Cannam
date Wed, 18 Jun 2014 13:51:27 +0100
parents 4c8ca536b54f
children b66fb15de477
comparison
equal deleted inserted replaced
782:ddae586bc47b 811:c4ef666721bf
41 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; 41 virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const;
42 42
43 virtual QString getFeatureDescription(View *v, QPoint &) const; 43 virtual QString getFeatureDescription(View *v, QPoint &) const;
44 44
45 virtual bool snapToFeatureFrame(View *v, int &frame, 45 virtual bool snapToFeatureFrame(View *v, int &frame,
46 size_t &resolution, 46 int &resolution,
47 SnapType snap) const; 47 SnapType snap) const;
48 48
49 virtual void drawStart(View *v, QMouseEvent *); 49 virtual void drawStart(View *v, QMouseEvent *);
50 virtual void drawDrag(View *v, QMouseEvent *); 50 virtual void drawDrag(View *v, QMouseEvent *);
51 virtual void drawEnd(View *v, QMouseEvent *); 51 virtual void drawEnd(View *v, QMouseEvent *);
58 virtual void editDrag(View *v, QMouseEvent *); 58 virtual void editDrag(View *v, QMouseEvent *);
59 virtual void editEnd(View *v, QMouseEvent *); 59 virtual void editEnd(View *v, QMouseEvent *);
60 60
61 virtual bool editOpen(View *v, QMouseEvent *); 61 virtual bool editOpen(View *v, QMouseEvent *);
62 62
63 virtual void moveSelection(Selection s, size_t newStartFrame); 63 virtual void moveSelection(Selection s, int newStartFrame);
64 virtual void resizeSelection(Selection s, Selection newSize); 64 virtual void resizeSelection(Selection s, Selection newSize);
65 virtual void deleteSelection(Selection s); 65 virtual void deleteSelection(Selection s);
66 66
67 virtual void copy(View *v, Selection s, Clipboard &to); 67 virtual void copy(View *v, Selection s, Clipboard &to);
68 virtual bool paste(View *v, const Clipboard &from, int frameOffset, 68 virtual bool paste(View *v, const Clipboard &from, int frameOffset,
111 /** 111 /**
112 * Add a note-on. Used when recording MIDI "live". The note will 112 * Add a note-on. Used when recording MIDI "live". The note will
113 * not be finally added to the layer until the corresponding 113 * not be finally added to the layer until the corresponding
114 * note-off. 114 * note-off.
115 */ 115 */
116 void addNoteOn(long frame, int pitch, int velocity); 116 void addNoteOn(int frame, int pitch, int velocity);
117 117
118 /** 118 /**
119 * Add a note-off. This will cause a note to appear, if and only 119 * Add a note-off. This will cause a note to appear, if and only
120 * if there is a matching pending note-on. 120 * if there is a matching pending note-on.
121 */ 121 */
122 void addNoteOff(long frame, int pitch); 122 void addNoteOff(int frame, int pitch);
123 123
124 /** 124 /**
125 * Abandon all pending note-on events. 125 * Abandon all pending note-on events.
126 */ 126 */
127 void abandonNoteOns(); 127 void abandonNoteOns();