{
}
-
-int Track::copy_settings(Track *track)
+int Track::copy_settings(Track *track, int do_title)
{
+ if( do_title )
+ strcpy(this->title, track->title);
this->expand_view = track->expand_view;
this->draw = track->draw;
this->gang = track->gang;
this->play = track->play;
this->track_w = track->track_w;
this->track_h = track->track_h;
- strcpy(this->title, track->title);
return 0;
}
//printf("Track::insert_track %d %s %jd\n", __LINE__, title, min_length);
// Decide whether to copy settings based on load_mode
- if(replace_default) copy_settings(track);
+ if( replace_default )
+ copy_settings(track, 0);
edits->insert_edits(track->edits,
to_units(position, 0),
}
-
-
-
int Track::dump(FILE *fp)
{
- fprintf(fp," Data type %d\n", data_type);
+ fprintf(fp," Data type %d, draw %d, gang %d, play %d, record %d, nudge %jd\n",
+ data_type, draw, gang, play, record, nudge);
fprintf(fp," Title %s\n", title);
fprintf(fp," Edits:\n");
for(Edit* current = edits->first; current; current = NEXT)
- {
current->dump(fp);
- }
automation->dump(fp);
fprintf(fp," Plugin Sets: %d\n", plugin_set.total);
- for(int i = 0; i < plugin_set.total; i++)
- plugin_set.values[i]->dump(fp);
-//printf("Track::dump 2\n");
+ for( int i=0; i<plugin_set.total; ++i )
+ plugin_set[i]->dump(fp);
return 0;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Track::Track() : ListItem<Track>()
{