Option to fit a route group to the editor window.
[ardour.git] / gtk2_ardour / track_selection.cc
1 #include <algorithm>
2 #include "track_selection.h"
3
4 using namespace std;
5
6 list<TimeAxisView*>
7 TrackSelection::add (list<TimeAxisView*> const & t)
8 {
9         list<TimeAxisView*> added;
10
11         for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) {
12                 if (!contains (*i)) {
13                         added.push_back (*i);
14                         push_back (*i);
15                 }
16         }
17
18         return added;
19 }
20
21 bool
22 TrackSelection::contains (TimeAxisView const * t) const
23 {
24         return find (begin(), end(), t) != end();
25 }