diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-08 21:45:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-08 21:45:44 +0000 |
commit | 1bf79fa88502a156a71cd3d2de35aa234950c40c (patch) | |
tree | d17b2e9ed485511ac557647c4b331054c1d477c0 /gtk2_ardour/canvas-note.h | |
parent | 539c8361de35364effe804e2db184790226b340a (diff) |
move note drag & note resize mouse handling up into the Drag/Editor infrastructure/level
git-svn-id: svn://localhost/ardour2/branches/3.0@5641 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.h')
-rw-r--r-- | gtk2_ardour/canvas-note.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/gtk2_ardour/canvas-note.h b/gtk2_ardour/canvas-note.h index 46f4bbee35..cd3c166951 100644 --- a/gtk2_ardour/canvas-note.h +++ b/gtk2_ardour/canvas-note.h @@ -31,7 +31,7 @@ namespace Canvas { class CanvasNote : public SimpleRect, public CanvasNoteEvent { public: - typedef Evoral::Note<double> NoteType; + typedef Evoral::Note<Evoral::MusicalTime> NoteType; double x1() { return property_x1(); } double y1() { return property_y1(); } @@ -46,27 +46,12 @@ public: bool on_event(GdkEvent* ev); - enum NoteEnd { - NOTE_ON, - NOTE_OFF - }; - - enum NoteState { - None, - RelativeResize, - AbsoluteResize - }; - - CanvasNote( - MidiRegionView& region, - Group& group, - const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>()) - : SimpleRect(group), CanvasNoteEvent(region, this, note), _note_state(None) + CanvasNote (MidiRegionView& region, + Group& group, + const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>()) + : SimpleRect(group), CanvasNoteEvent(region, this, note) { } - -protected: - NoteState _note_state; }; } // namespace Gnome |