fix incorrect accumulation of export video options each time the dialog is used
[ardour.git] / gtk2_ardour / note.h
index 26c45adda17201f585dde7b7d9d17b415c8eb32d..05635205cefcb5714c814f4c1455d3150503da46 100644 (file)
 #include "midi_util.h"
 
 namespace ArdourCanvas {
-       class Group;
+       class Container;
+       class Note;
 }
 
 class Note : public NoteBase
 {
 public:
-       typedef Evoral::Note<Evoral::MusicalTime> NoteType;
+       typedef Evoral::Note<Temporal::Beats> NoteType;
 
        Note (MidiRegionView&                   region,
-             ArdourCanvas::Group*              group,
+             ArdourCanvas::Item*               parent,
              const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
              bool with_events = true);
 
@@ -46,12 +47,14 @@ public:
        ArdourCanvas::Coord x1 () const;
        ArdourCanvas::Coord y1 () const;
 
+       void set (ArdourCanvas::Rect);
        void set_x0 (ArdourCanvas::Coord);
        void set_y0 (ArdourCanvas::Coord);
        void set_x1 (ArdourCanvas::Coord);
        void set_y1 (ArdourCanvas::Coord);
 
-       void set_outline_what (int);
+       void set_outline_what (ArdourCanvas::Rectangle::What);
+       void set_outline_all ();
 
        void set_outline_color (uint32_t);
        void set_fill_color (uint32_t);
@@ -61,10 +64,11 @@ public:
 
        void set_ignore_events (bool);
 
+       void set_velocity (double);
        void move_event (double dx, double dy);
 
 private:
-       ArdourCanvas::Rectangle* _rectangle;
+       ArdourCanvas::Note* _note;
 };
 
 #endif /* __gtk_ardour_note_h__ */