From 034db5fb1cc4d71bfa0e1c005733115df68fdefd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 13 Dec 2009 19:09:52 +0000 Subject: Apply Select property of route groups at the Selection object level. Accordingly simplify code related to selecting tracks. Add a TrackViewList object rather than "abusing" TrackSelection in lots of places. git-svn-id: svn://localhost/ardour2/branches/3.0@6358 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/track_selection.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'gtk2_ardour/track_selection.h') diff --git a/gtk2_ardour/track_selection.h b/gtk2_ardour/track_selection.h index 38032d6de3..d39101f981 100644 --- a/gtk2_ardour/track_selection.h +++ b/gtk2_ardour/track_selection.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2009 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,18 +20,20 @@ #ifndef __ardour_gtk_track_selection_h__ #define __ardour_gtk_track_selection_h__ -#include +#include "track_view_list.h" -class TimeAxisView; +class PublicEditor; -class TrackSelection : public std::list +class TrackSelection : public TrackViewList { public: - TrackSelection () {} + TrackSelection (PublicEditor const * e) : _editor (e) {} + TrackSelection (PublicEditor const *, TrackViewList const &); + + TrackViewList add (TrackViewList const &); - TrackSelection (std::list const &); - std::list add (std::list const &); - bool contains (TimeAxisView const *) const; +private: + PublicEditor const * _editor; }; #endif /* __ardour_gtk_track_selection_h__ */ -- cgit v1.2.3