mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Merge with trunk R2920.
git-svn-id: svn://localhost/ardour2/trunk@2921 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b2e3b18dab
commit
ac1a255706
12 changed files with 202 additions and 110 deletions
|
|
@ -295,12 +295,48 @@ Selection::add (TimeAxisView* track)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Selection::add (vector<RegionView*>& v)
|
||||
{
|
||||
/* XXX This method or the add (const RegionSelection&) needs to go
|
||||
*/
|
||||
|
||||
bool changed = false;
|
||||
|
||||
for (vector<RegionView*>::iterator i = v.begin(); i != v.end(); ++i) {
|
||||
if (find (regions.begin(), regions.end(), (*i)) == regions.end()) {
|
||||
changed = regions.add ((*i));
|
||||
if (Config->get_link_region_and_track_selection() && changed) {
|
||||
add (&(*i)->get_trackview());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
RegionsChanged ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Selection::add (const RegionSelection& rs)
|
||||
{
|
||||
if (!rs.empty()) {
|
||||
regions.insert (regions.end(), rs.begin(), rs.end());
|
||||
RegionsChanged(); /* EMIT SIGNAL */
|
||||
/* XXX This method or the add (const vector<RegionView*>&) needs to go
|
||||
*/
|
||||
|
||||
bool changed = false;
|
||||
|
||||
for (RegionSelection::const_iterator i = rs.begin(); i != rs.end(); ++i) {
|
||||
if (find (regions.begin(), regions.end(), (*i)) == regions.end()) {
|
||||
changed = regions.add ((*i));
|
||||
if (Config->get_link_region_and_track_selection() && changed) {
|
||||
add (&(*i)->get_trackview());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
select_edit_group_regions ();
|
||||
RegionsChanged ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -316,26 +352,6 @@ Selection::add (RegionView* r)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Selection::add (vector<RegionView*>& v)
|
||||
{
|
||||
bool changed = false;
|
||||
|
||||
for (vector<RegionView*>::iterator i = v.begin(); i != v.end(); ++i) {
|
||||
if (find (regions.begin(), regions.end(), (*i)) == regions.end()) {
|
||||
changed = regions.add ((*i));
|
||||
if (Config->get_link_region_and_track_selection() && changed) {
|
||||
add (&(*i)->get_trackview());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
select_edit_group_regions ();
|
||||
RegionsChanged ();
|
||||
}
|
||||
}
|
||||
|
||||
long
|
||||
Selection::add (nframes_t start, nframes_t end)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue