another replacement of ActionManager::get_action() by ActionMap::find_action()
[ardour.git] / gtk2_ardour / hit.h
index 0a02501606b0830f92749e9c1d790aea0cea14ab..81a0868734d1681315a9626b1adfe80f49bb6b25 100644 (file)
@@ -30,16 +30,17 @@ namespace ArdourCanvas {
 class Hit : public NoteBase
 {
 public:
-       typedef Evoral::Note<double> NoteType;
+       typedef Evoral::Note<Temporal::Beats> NoteType;
 
        Hit (MidiRegionView&                   region,
-            ArdourCanvas::Group*              group,
+            ArdourCanvas::Item*               parent,
             double                            size,
-            const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
-            bool with_events = true);
-       ~Hit();
+            const boost::shared_ptr<NoteType> note        = boost::shared_ptr<NoteType>(),
+            bool                              with_events = true);
 
-        void show ();
+       ~Hit();
+
+       void show ();
        void hide ();
 
        ArdourCanvas::Coord x0 () const;
@@ -47,6 +48,8 @@ public:
        ArdourCanvas::Coord x1 () const;
        ArdourCanvas::Coord y1 () const;
 
+       ArdourCanvas::Duple position ();
+
        void set_position (ArdourCanvas::Duple);
 
        void set_height (ArdourCanvas::Coord);
@@ -54,10 +57,14 @@ public:
        void set_outline_color (uint32_t);
        void set_fill_color (uint32_t);
 
+       void set_ignore_events (bool);
+
        void move_event (double, double);
 
-        /* no trimming of percussive hits */
-        bool big_enough_to_trim() const { return false; }
+       /* no trimming of percussive hits */
+       bool big_enough_to_trim() const { return false; }
+
+       static ArdourCanvas::Points points(ArdourCanvas::Distance height);
 
 private:
        ArdourCanvas::Polygon* _polygon;