+CanvasHit::CanvasHit (MidiRegionView& region,
+ Group& group,
+ double size,
+ const boost::shared_ptr<NoteType> note,
+ bool with_events)
+ : Diamond(group, size)
+ , CanvasNoteEvent(region, this, note)
+{
+ if (with_events) {
+ signal_event().connect (sigc::mem_fun (*this, &CanvasHit::on_event));
+ }
+}
+