diff options
author | David Robillard <d@drobilla.net> | 2007-08-28 17:48:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-28 17:48:37 +0000 |
commit | 056b2a59d5cb28042926dab61f56e49917c8eec4 (patch) | |
tree | 7c5ae738749667bc5800da51db63205fb0793659 /gtk2_ardour/canvas-midi-event.h | |
parent | 23949886e6f207e423d11b330b8d7e9ad5a949bf (diff) |
Split MidiModel::Note out to ARDOUR::Note in it's own file (midi_model.h was getting fat).
Initial work on MidiModel iterator.
git-svn-id: svn://localhost/ardour2/trunk@2355 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-midi-event.h')
-rw-r--r-- | gtk2_ardour/canvas-midi-event.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/canvas-midi-event.h b/gtk2_ardour/canvas-midi-event.h index ce49b580b4..63b32cf0ca 100644 --- a/gtk2_ardour/canvas-midi-event.h +++ b/gtk2_ardour/canvas-midi-event.h @@ -43,7 +43,7 @@ namespace Canvas { */ class CanvasMidiEvent { public: - CanvasMidiEvent(MidiRegionView& region, Item* item, const ARDOUR::MidiModel::Note* note = NULL); + CanvasMidiEvent(MidiRegionView& region, Item* item, const ARDOUR::Note* note = NULL); virtual ~CanvasMidiEvent() {} bool on_event(GdkEvent* ev); @@ -62,16 +62,16 @@ public: const Item* item() const { return _item; } Item* item() { return _item; } - const ARDOUR::MidiModel::Note* note() { return _note; } + const ARDOUR::Note* note() { return _note; } protected: enum State { None, Pressed, Dragging }; - MidiRegionView& _region; - Item* const _item; - State _state; - const ARDOUR::MidiModel::Note* _note; - bool _selected; + MidiRegionView& _region; + Item* const _item; + State _state; + const ARDOUR::Note* _note; + bool _selected; }; } // namespace Gnome |