Renamed remove_child_track -> remove_descendant_track

This commit is contained in:
Joel Holdsworth 2009-01-24 12:23:18 +00:00
parent 41f394a57b
commit e7481afc3d
5 changed files with 16 additions and 8 deletions

View file

@ -49,7 +49,7 @@ ParentTrack::can_host_children() const
} }
bool bool
ParentTrack::remove_child_track(const boost::shared_ptr<Track> track) ParentTrack::remove_descendant_track(const boost::shared_ptr<Track> track)
{ {
REQUIRE(track); REQUIRE(track);
@ -63,7 +63,7 @@ ParentTrack::remove_child_track(const boost::shared_ptr<Track> track)
return true; return true;
} }
if(child_track->remove_child_track(track)) if(child_track->remove_descendant_track(track))
return true; return true;
} }

View file

@ -47,8 +47,14 @@ public:
get_child_track_list(); get_child_track_list();
bool can_host_children() const; bool can_host_children() const;
bool remove_child_track(const boost::shared_ptr<Track> track); /**
* Tries to remove a given track from amongst the descendants of this
* track.
* @param The model track to try and remove.
* @return Returns true if the track was successfully removed.
**/
bool remove_descendant_track(const boost::shared_ptr<Track> track);
protected: protected:
lumiera::observable_list< boost::shared_ptr<Track> > tracks; lumiera::observable_list< boost::shared_ptr<Track> > tracks;

View file

@ -62,7 +62,7 @@ Track::can_host_children() const
} }
bool bool
Track::remove_child_track(const shared_ptr<Track> /*track*/) Track::remove_descendant_track(const shared_ptr<Track> /*track*/)
{ {
return false; return false;
} }

View file

@ -71,11 +71,13 @@ public:
virtual bool can_host_children() const; virtual bool can_host_children() const;
/** /**
* Tries to remove a given child track from the list. * Tries to remove a given track from amongst the descendants of this
* track.
* @param The model track to try and remove. * @param The model track to try and remove.
* @return Returns true if the track was successfully removed. * @return Returns true if the track was successfully removed.
**/ **/
virtual bool remove_child_track(const boost::shared_ptr<Track> track); virtual bool remove_descendant_track(
const boost::shared_ptr<Track> track);
/** /**
* A debugging helper function that prints this track, and all it's * A debugging helper function that prints this track, and all it's

View file

@ -251,7 +251,7 @@ Track::on_remove_track()
REQUIRE(model_track); REQUIRE(model_track);
REQUIRE(timelineWidget.sequence); REQUIRE(timelineWidget.sequence);
timelineWidget.sequence->remove_child_track(model_track); timelineWidget.sequence->remove_descendant_track(model_track);
} }
} // namespace timeline } // namespace timeline