diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-21 19:59:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-21 19:59:56 +0000 |
commit | 955d731fa6933e6769986687a781d16f7889da67 (patch) | |
tree | 84a383627ac0a9548f5b789b17740915846e5dcf /gtk2_ardour/track_selection.cc | |
parent | 8cd536ab85b5923fe97d32cb93c913420fbaf5bf (diff) |
Merge edit and mix groups to just being route groups. Add properties to route groups to decide what things their member routes will share. Allow edits to happen across a route group without its tracks necessarily being selected.
git-svn-id: svn://localhost/ardour2/branches/3.0@5236 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/track_selection.cc')
-rwxr-xr-x | gtk2_ardour/track_selection.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/track_selection.cc b/gtk2_ardour/track_selection.cc new file mode 100755 index 0000000000..3e428b1a94 --- /dev/null +++ b/gtk2_ardour/track_selection.cc @@ -0,0 +1,19 @@ +#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 (find (begin(), end(), *i) == end()) { + added.push_back (*i); + push_back (*i); + } + } + + return added; +} |