summaryrefslogtreecommitdiff
path: root/gtk2_ardour/track_selection.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-12-13 19:09:52 +0000
committerCarl Hetherington <carl@carlh.net>2009-12-13 19:09:52 +0000
commit034db5fb1cc4d71bfa0e1c005733115df68fdefd (patch)
treea32b62bac855f7b7d6e97988bfb69d6b9ec9754c /gtk2_ardour/track_selection.h
parent8687895abba4209a6de8d8a8fc1bda5996f0d875 (diff)
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
Diffstat (limited to 'gtk2_ardour/track_selection.h')
-rw-r--r--gtk2_ardour/track_selection.h18
1 files changed, 10 insertions, 8 deletions
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 <list>
+#include "track_view_list.h"
-class TimeAxisView;
+class PublicEditor;
-class TrackSelection : public std::list<TimeAxisView*>
+class TrackSelection : public TrackViewList
{
public:
- TrackSelection () {}
+ TrackSelection (PublicEditor const * e) : _editor (e) {}
+ TrackSelection (PublicEditor const *, TrackViewList const &);
+
+ TrackViewList add (TrackViewList const &);
- TrackSelection (std::list<TimeAxisView*> const &);
- std::list<TimeAxisView*> add (std::list<TimeAxisView*> const &);
- bool contains (TimeAxisView const *) const;
+private:
+ PublicEditor const * _editor;
};
#endif /* __ardour_gtk_track_selection_h__ */