#include "auto.h"
#include "autos.h"
+#include "edl.h"
#include "filexml.h"
Auto::Auto()
this->edl = 0;
this->autos = 0;
position = 0;
- skip = 0;
- WIDTH = 10;
- HEIGHT = 10;
+ WIDTH = xS(10);
+ HEIGHT = yS(10);
is_default = 0;
+ id = EDL::next_id();
+ orig_id = id;
}
Auto::Auto(EDL *edl, Autos *autos)
this->edl = edl;
this->autos = autos;
position = 0;
- skip = 0;
- WIDTH = 10;
- HEIGHT = 10;
+ WIDTH = xS(10);
+ HEIGHT = yS(10);
is_default = 0;
+ id = EDL::next_id();
+ orig_id = id;
}
Auto& Auto::operator=(Auto& that)
void Auto::copy_from(Auto *that)
{
+ this->orig_id = that->orig_id;
this->position = that->position;
}
if( !templ ) templ = previous;
if( !templ && this->autos )
templ = this->autos->default_auto;
- if( templ )
+ if( templ ) {
+ int orig_id = this->orig_id;
copy_from(templ);
+ this->orig_id = orig_id;
+ }
position = new_position;
return 0;
}