diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-22 23:53:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-22 23:53:00 +0000 |
commit | 74801c321279d166cd1e47e79ffdfd9b33e08ccc (patch) | |
tree | a60fe1fc9ca2a8720ba1de9dbec24028b8cc9b9d /libs/ardour/ardour/playlist.h | |
parent | 71a4796dc3dbf8a7fe1df5c5d7acea388b40eae0 (diff) |
Move some RegionListProperty methods up to SequenceProperty.
git-svn-id: svn://localhost/ardour2/branches/3.0@7668 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/playlist.h')
-rw-r--r-- | libs/ardour/ardour/playlist.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/libs/ardour/ardour/playlist.h b/libs/ardour/ardour/playlist.h index 450e1dc75f..d87c6cb3a0 100644 --- a/libs/ardour/ardour/playlist.h +++ b/libs/ardour/ardour/playlist.h @@ -59,28 +59,19 @@ namespace Properties { extern PBD::PropertyDescriptor<bool> regions; } -class RegionListProperty : public PBD::SequenceProperty<std::list<boost::shared_ptr<Region > > > +class RegionListProperty : public PBD::SequenceProperty<std::list<boost::shared_ptr<Region> > > { public: RegionListProperty (Playlist&); boost::shared_ptr<Region> lookup_id (const PBD::ID& id); - void diff (PBD::PropertyList& undo, PBD::PropertyList& redo, Command*) const; - bool involves (boost::shared_ptr<Region>); private: - friend class Playlist; - std::list<boost::shared_ptr<Region> > rlist() { return _val; } + PBD::SequenceProperty<std::list<boost::shared_ptr<Region> > >* create () const; + friend class Playlist; /* we live and die with our playlist, no lifetime management needed */ Playlist& _playlist; - - /* create a copy of this RegionListProperty that only - has what is needed for use in a history list command. This - means that it won't contain the actual region list but - will have the added/removed list. - */ - RegionListProperty* copy_for_history () const; }; class Playlist : public SessionObject |