Fix missing virtual destructors.
[ardour.git] / gtk2_ardour / track_selection.h
index 8d46a59828ac18d79eb53b97143080d5efd2d50a..4fb11873692e6e4ec2748f37302f3bb4adc57b4a 100644 (file)
@@ -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
 #ifndef __ardour_gtk_track_selection_h__
 #define __ardour_gtk_track_selection_h__
 
-#include <list>
+#include "track_view_list.h"
 
-class TimeAxisView;
+class PublicEditor;
 
-class TrackSelection : public std::list<TimeAxisView*>
+class TrackSelection : public TrackViewList
 {
 public:
-       std::list<TimeAxisView*> add (std::list<TimeAxisView*> const &);
-       bool contains (TimeAxisView const *) const;
+       TrackSelection (PublicEditor const * e) : _editor (e) {}
+       TrackSelection (PublicEditor const *, TrackViewList const &);
+
+       virtual ~TrackSelection ();
+       
+       TrackViewList add (TrackViewList const &);
+
+private:
+       PublicEditor const * _editor;
 };
 
 #endif /* __ardour_gtk_track_selection_h__ */