comparison layer/Layer.h @ 335:2f83b6e3b8ca

* Add Erase tool and mode * Add icons for Normalize buttons in property boxes, and for Show Peaks * Add support for velocity in notes -- not yet reflected in display or editable in the note edit dialog, but they are imported from MIDI, played, and exported * Begin work on making pastes align pasted times (subtler than I thought)
author Chris Cannam
date Fri, 23 Nov 2007 16:48:23 +0000
parents 984c1975f1ff
children 020c485aa7e0 0895517bb2d1
comparison
equal deleted inserted replaced
334:0a74248af622 335:2f83b6e3b8ca
149 SnapType /* snap */) const { 149 SnapType /* snap */) const {
150 resolution = 1; 150 resolution = 1;
151 return false; 151 return false;
152 } 152 }
153 153
154 // Draw and edit modes: 154 // Draw, erase, and edit modes:
155 // 155 //
156 // Layer needs to get actual mouse events, I guess. Draw mode is 156 // Layer needs to get actual mouse events, I guess. Draw mode is
157 // probably the easier. 157 // probably the easier.
158 158
159 virtual void drawStart(View *, QMouseEvent *) { } 159 virtual void drawStart(View *, QMouseEvent *) { }
160 virtual void drawDrag(View *, QMouseEvent *) { } 160 virtual void drawDrag(View *, QMouseEvent *) { }
161 virtual void drawEnd(View *, QMouseEvent *) { } 161 virtual void drawEnd(View *, QMouseEvent *) { }
162
163 virtual void eraseStart(View *, QMouseEvent *) { }
164 virtual void eraseDrag(View *, QMouseEvent *) { }
165 virtual void eraseEnd(View *, QMouseEvent *) { }
162 166
163 virtual void editStart(View *, QMouseEvent *) { } 167 virtual void editStart(View *, QMouseEvent *) { }
164 virtual void editDrag(View *, QMouseEvent *) { } 168 virtual void editDrag(View *, QMouseEvent *) { }
165 virtual void editEnd(View *, QMouseEvent *) { } 169 virtual void editEnd(View *, QMouseEvent *) { }
166 170