mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
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
This commit is contained in:
parent
23949886e6
commit
056b2a59d5
17 changed files with 375 additions and 120 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue