allow for mandatory control protocols, plus some ongoing work on automation control point selection (unfinished)

git-svn-id: svn://localhost/trunk/ardour2@516 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2006-05-19 20:10:35 +00:00
parent 50ee09e80f
commit 9c6984dbbb
16 changed files with 212 additions and 101 deletions

View file

@ -536,6 +536,31 @@ AutomationTimeAxisView::cut_copy_clear_one (AutomationLine& line, Selection& sel
return ret;
}
void
AutomationTimeAxisView::reset_objects (PointSelection& selection)
{
for (vector<AutomationLine*>::iterator i = lines.begin(); i != lines.end(); ++i) {
reset_objects_one ((**i), selection);
}
}
void
AutomationTimeAxisView::reset_objects_one (AutomationLine& line, PointSelection& selection)
{
AutomationList& alist (line.the_list());
_session.add_undo (alist.get_memento());
for (PointSelection::iterator i = selection.begin(); i != selection.end(); ++i) {
if (&(*i).track != this) {
continue;
}
alist.reset_range ((*i).start, (*i).end);
}
}
bool
AutomationTimeAxisView::cut_copy_clear_objects (PointSelection& selection, CutCopyOp op)
{