diff options
author | David Robillard <d@drobilla.net> | 2007-08-01 21:59:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-01 21:59:07 +0000 |
commit | 4d1542d1e59737fb3f6464ebb5638ca64cb985e8 (patch) | |
tree | 1a72d1deecab5ce7a443c7324122b8251a991f71 /gtk2_ardour/canvas-hit.h | |
parent | d7db3f757fde92126ef9886370ce604992b7e974 (diff) |
Note deleting.
Press delete on a single note to delete it.
Hold delete and mouse over a number of notes to delete them all in a single operation.
git-svn-id: svn://localhost/ardour2/trunk@2214 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-hit.h')
-rw-r--r-- | gtk2_ardour/canvas-hit.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/canvas-hit.h b/gtk2_ardour/canvas-hit.h index 2760e62c79..e3dcc452de 100644 --- a/gtk2_ardour/canvas-hit.h +++ b/gtk2_ardour/canvas-hit.h @@ -29,8 +29,14 @@ namespace Canvas { class CanvasHit : public Diamond, public CanvasMidiEvent { public: - CanvasHit(MidiRegionView& region, Group& group, double size) - : Diamond(group, size), CanvasMidiEvent(region, this) {} + CanvasHit(MidiRegionView& region, Group& group, double size, const ARDOUR::MidiModel::Note* note=NULL) + : Diamond(group, size), CanvasMidiEvent(region, this, note) {} + + virtual void selected(bool yn) { + // Temporary hack, no reversal for now + if (yn) + property_outline_color_rgba() = 0xFF000099; + } bool on_event(GdkEvent* ev) { return CanvasMidiEvent::on_event(ev); } }; |