Allow multiple simulataneous Drags to be active, and hence set up and drag time ranges when moving regions in PT-edit mode.

git-svn-id: svn://localhost/ardour2/branches/3.0@6478 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-01-12 16:14:49 +00:00
parent 642f41b82f
commit 11bd4eed89
14 changed files with 414 additions and 350 deletions

View file

@ -3826,10 +3826,8 @@ Editor::cut_copy (CutCopyOp op)
*/
if (op == Cut || op == Clear) {
if (_drag) {
_drag->item()->ungrab (0);
delete _drag;
_drag = 0;
if (_drags->active ()) {
_drags->abort ();
}
}
@ -3846,10 +3844,7 @@ Editor::cut_copy (CutCopyOp op)
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &Editor::really_remove_marker), loc));
}
break_drag ();
delete _drag;
_drag = 0;
_drags->break_drag ();
return;
}
@ -3930,9 +3925,7 @@ Editor::cut_copy (CutCopyOp op)
}
if (op == Cut || op == Clear) {
break_drag ();
delete _drag;
_drag = 0;
_drags->break_drag ();
}
}