13
0
livetrax/gtk2_ardour/track_selection.cc
Carl Hetherington c9e37fcc14 Option to fit a route group to the editor window.
git-svn-id: svn://localhost/ardour2/branches/3.0@5241 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-06-22 01:01:43 +00:00

26 lines
451 B
C++
Executable File

#include <algorithm>
#include "track_selection.h"
using namespace std;
list<TimeAxisView*>
TrackSelection::add (list<TimeAxisView*> const & t)
{
list<TimeAxisView*> added;
for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) {
if (!contains (*i)) {
added.push_back (*i);
push_back (*i);
}
}
return added;
}
bool
TrackSelection::contains (TimeAxisView const * t) const
{
return find (begin(), end(), t) != end();
}