Remove internal edit mode and add "content" tool.
[ardour.git] / gtk2_ardour / hit.cc
index 69dd8d5bc8be0397cf87b4e1abbc12bcd0ad0381..c7bfcb617f13f78e6d0bc4cb4c776e476b35eb5d 100644 (file)
 #include "canvas/polygon.h"
 #include "canvas/debug.h"
 
-#include "midi_region_view.h"
-#include "public_editor.h"
-#include "utils.h"
 #include "hit.h"
 
 using namespace ARDOUR;
 using namespace ArdourCanvas;
 
-Hit::Hit (MidiRegionView& region, Group* group, double size, const boost::shared_ptr<NoteType> note, bool with_events) 
+Hit::Hit (MidiRegionView& region, Item* parent, double size, const boost::shared_ptr<NoteType> note, bool with_events) 
        : NoteBase (region, with_events, note)
 {
-       _polygon = new ArdourCanvas::Polygon (group);
+       _polygon = new ArdourCanvas::Polygon (parent);
        CANVAS_DEBUG_NAME (_polygon, "note");
        set_item (_polygon);
        set_height (size);