put the issue of using a monitor section into ~/.config/ardour.rc, not the session...
[ardour2.git] / gtk2_ardour / canvas-note.cc
bloba3aa6ed8acbf028732137e4d49fcebd1d550eeb1
1 #include "canvas-note.h"
2 #include "midi_region_view.h"
3 #include "public_editor.h"
4 #include "evoral/Note.hpp"
6 using namespace ARDOUR;
8 namespace Gnome {
9 namespace Canvas {
11 bool
12 CanvasNote::on_event(GdkEvent* ev)
14 if (!_region.get_trackview().editor().canvas_note_event (ev, this)) {
15 return CanvasNoteEvent::on_event (ev);
16 } else {
17 return true;
21 void
22 CanvasNote::move_event(double dx, double dy)
24 property_x1() = property_x1() + dx;
25 property_y1() = property_y1() + dy;
26 property_x2() = property_x2() + dx;
27 property_y2() = property_y2() + dy;
29 if (_text) {
30 _text->hide();
31 _text->property_x() = _text->property_x() + dx;
32 _text->property_y() = _text->property_y() + dy;
33 _text->show();
38 } // namespace Gnome
39 } // namespace Canvas