X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fcanvas-note.h;h=cd3c1669515dcee1e59476f555b746678f61dbfe;hb=a0b9c52a5e781f4b1514ffe8c21d2250b5c0ebaf;hp=30cbad6c25a9d0f0a6e9f6e7f356ba555d733ff0;hpb=d357eca668044badcb4bab318e2e74cfffa9a0b0;p=ardour.git diff --git a/gtk2_ardour/canvas-note.h b/gtk2_ardour/canvas-note.h index 30cbad6c25..cd3c166951 100644 --- a/gtk2_ardour/canvas-note.h +++ b/gtk2_ardour/canvas-note.h @@ -31,6 +31,8 @@ namespace Canvas { class CanvasNote : public SimpleRect, public CanvasNoteEvent { public: + typedef Evoral::Note NoteType; + double x1() { return property_x1(); } double y1() { return property_y1(); } double x2() { return property_x2(); } @@ -39,33 +41,17 @@ public: void set_outline_color(uint32_t c) { property_outline_color_rgba() = c; hide(); show(); } void set_fill_color(uint32_t c) { property_fill_color_rgba() = c; hide(); show(); } - bool on_event(GdkEvent* ev); - - enum NoteEnd { - NOTE_ON, - NOTE_OFF - }; - - enum NoteState { - None, - RelativeResize, - AbsoluteResize - }; + void show() { SimpleRect::show(); } + void hide() { SimpleRect::hide(); } - CanvasNote( - MidiRegionView& region, - Group& group, - const boost::shared_ptr note = boost::shared_ptr()) + bool on_event(GdkEvent* ev); - : SimpleRect(group), CanvasNoteEvent(region, this, note), _note_state(None) + CanvasNote (MidiRegionView& region, + Group& group, + const boost::shared_ptr note = boost::shared_ptr()) + : SimpleRect(group), CanvasNoteEvent(region, this, note) { } - -protected: - NoteState _note_state; - -private: - }; } // namespace Gnome