Merge with 2.0-ongoing R2988
[ardour.git] / gtk2_ardour / midi_region_view.h
index 6b0dcd18047cad06a57464f5b322f0c8c0bf72e6..a709f523a3aa660f5fd5ff63039fb35a2400ca35 100644 (file)
@@ -72,11 +72,13 @@ class MidiRegionView : public RegionView
        
        void set_y_position_and_height (double, double);
        
+       void set_frame_color();
+
        void redisplay_model();
 
     GhostRegion* add_ghost (AutomationTimeAxisView&);
 
-       void add_note(const ARDOUR::Note& note, bool copy_note);
+       void add_note(const boost::shared_ptr<ARDOUR::Note> note);
        void resolve_note(uint8_t note_num, double end_time);
 
        void begin_write();
@@ -99,14 +101,14 @@ class MidiRegionView : public RegionView
                        _delta_command = _model->new_delta_command();
        }
        
-       void command_add_note(ARDOUR::Note& note) {
+       void command_add_note(const boost::shared_ptr<ARDOUR::Note> note) {
                if (_delta_command)
                        _delta_command->add(note);
        }
 
        void command_remove_note(ArdourCanvas::CanvasMidiEvent* ev) {
                if (_delta_command && ev->note()) {
-                       _delta_command->remove(*ev->note());
+                       _delta_command->remove(ev->note());
                        ev->selected(true);
                }
        }