3 This file is part of R²C²
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
12 #include <sigc++/sigc++.h>
18 sigc::signal<void> signal_changed;
21 std::set<R2C2::Track *> tracks;
24 const std::set<R2C2::Track *> &get_tracks() const { return tracks; }
25 R2C2::Track *get_track() const;
26 unsigned size() const { return tracks.size(); }
27 bool empty() const { return tracks.empty(); }
31 template<typename Iter>
32 void replace(Iter begin, Iter end)
35 tracks.insert(begin, end);
36 signal_changed.emit();
39 void add_track(R2C2::Track *);
40 void remove_track(R2C2::Track *);
41 void toggle_track(R2C2::Track *);