mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
move note drag & note resize mouse handling up into the Drag/Editor infrastructure/level
git-svn-id: svn://localhost/ardour2/branches/3.0@5641 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
539c8361de
commit
1bf79fa885
13 changed files with 283 additions and 258 deletions
|
|
@ -605,6 +605,22 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||
_drag = new RegionCreateDrag (this, item, clicked_axisview);
|
||||
_drag->start_grab (event);
|
||||
return true;
|
||||
case NoteItem:
|
||||
/* Note: we don't get here if not in internal_editing() mode */
|
||||
if (mouse_mode == MouseTimeFX) {
|
||||
assert (_drag == 0);
|
||||
_drag = new NoteResizeDrag (this, item);
|
||||
_drag->start_grab (event);
|
||||
return true;
|
||||
} else if (mouse_mode == MouseObject) {
|
||||
assert (_drag == 0);
|
||||
_drag = new NoteDrag (this, item);
|
||||
_drag->start_grab (event);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue