r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / selections.C
blob35021fd7b5bb3cbec22dc89e7049c7fc424585f5
1 #include "selection.h"
2 #include "selections.h"
3 #include "track.h"
5 Selections::Selections(EDL *edl, Track *track)
6  : Edits(edl, track)
8         this->track = track;
11 Selections::~Selections()
16 Selections& Selections::operator=(Selections& selections)
18         while(last) delete last;
19         for(Selection *current = (Selection*)selections.first; current; current = (Selection*)NEXT)
20         {
21                 Selection *new_selection = (Selection*)append(new Selection(edl, this));
22                 *new_selection = *current;
23         }
24         return *this;