summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-17 15:06:30 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-17 15:06:30 +0000
commitfe85a922ec4a3e0cf1107adadfa50ad7b8417aa3 (patch)
tree28c6259e58192cd414a32e41b9fd3ff5bcbd8506 /gtk2_ardour/editor_mouse.cc
parentac9589ff2c589d079a600106b59a1772ce61b624 (diff)
new trim cursors from chrisg, fix up hotspots for said cursors, make Editor cursors public; note draw mode now trims existing notes (but without trim cursor :(
git-svn-id: svn://localhost/ardour2/branches/3.0@7270 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 8aef3f9a5e..3bf0b3d352 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -663,6 +663,13 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
}
break;
+ case NoteItem:
+ if (internal_editing()) {
+ /* trim notes if we're in internal edit mode and near the ends of the note */
+ _drags->set (new NoteResizeDrag (this, item), event);
+ }
+ return true;
+
case StreamItem:
if (internal_editing()) {
_drags->set (new RegionCreateDrag (this, item, clicked_axisview), event);