summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-note.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-10-06 22:07:10 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-10-06 22:07:10 +0000
commitaefcce1c99598cc8c1748940a01e2d8aa55caf85 (patch)
tree9a6b0a3be7faac2c82b58f3517640fa195c96825 /gtk2_ardour/canvas-note.cc
parent77364b0e25bcf97d0f3000ee97c27b2dca8454c6 (diff)
ogg/flac support bits and pieces; fix up MIDI note dragging and front-edge trims; BROKEN IN PERCUSSIVE MODE FOR NOW
git-svn-id: svn://localhost/ardour2/branches/3.0@5745 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.cc')
-rw-r--r--gtk2_ardour/canvas-note.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/canvas-note.cc b/gtk2_ardour/canvas-note.cc
index b43514edcc..4686a80df9 100644
--- a/gtk2_ardour/canvas-note.cc
+++ b/gtk2_ardour/canvas-note.cc
@@ -18,5 +18,22 @@ CanvasNote::on_event(GdkEvent* ev)
}
}
+void
+CanvasNote::move_event(double dx, double dy)
+{
+ property_x1() = property_x1() + dx;
+ property_y1() = property_y1() + dy;
+ property_x2() = property_x2() + dx;
+ property_y2() = property_y2() + dy;
+
+ if (_text) {
+ _text->hide();
+ _text->property_x() = _text->property_x() + dx;
+ _text->property_y() = _text->property_y() + dy;
+ _text->show();
+ }
+}
+
+
} // namespace Gnome
} // namespace Canvas