diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-25 23:14:41 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-25 23:14:41 +0000 |
commit | f7bff95fbce75cb0d4c717b1400677edd814f7be (patch) | |
tree | ad4e1bce3e7d30f5e22ece30dd3df740dac1e73e /gtk2_ardour/canvas-note.h | |
parent | 6b19aee3b511eaae2800837175e9b9a931d325e7 (diff) |
Rudimentary ghost note when adding MIDI notes to a region, as per #3180.
git-svn-id: svn://localhost/ardour2/branches/3.0@7162 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.h')
-rw-r--r-- | gtk2_ardour/canvas-note.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/canvas-note.h b/gtk2_ardour/canvas-note.h index b65eae53d6..6147941ad2 100644 --- a/gtk2_ardour/canvas-note.h +++ b/gtk2_ardour/canvas-note.h @@ -55,6 +55,22 @@ public: } }; +class NoEventCanvasNote : public CanvasNote +{ +public: + NoEventCanvasNote ( + MidiRegionView& region, + Group& group, + const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>() + ) + : CanvasNote (region, group, note) {} + + double point_vfunc(double, double, int, int, GnomeCanvasItem**) { + /* return a huge value to tell the canvas that we're never the item for an event */ + return 9999999999999.0; + } +}; + } // namespace Gnome } // namespace Canvas |