mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
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:
parent
50ee09e80f
commit
9c6984dbbb
16 changed files with 212 additions and 101 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue