int AddVideoTrack::handle_event()
{
if( mwindow->session->current_operation == NO_OPERATION )
- mwindow->add_video_track_entry();
+ mwindow->add_video_track_entry(1, 0);
return 1;
}
int AddSubttlTrack::handle_event()
{
if( mwindow->session->current_operation == NO_OPERATION )
- mwindow->add_subttl_track_entry();
+ mwindow->add_subttl_track_entry(1, 0);
return 1;
}
AUDIO_5_1_TO_2,
AUDIO_1_TO_1
};
- void add_audio_track_entry(int above, Track *dst);
- int add_audio_track(int above, Track *dst);
void add_clip_to_edl(EDL *edl);
- void add_video_track_entry(Track *dst = 0);
- int add_video_track(int above, Track *dst);
- void add_subttl_track_entry(Track *dst = 0);
- int add_subttl_track(int above, Track *dst);
+ void add_audio_track_entry(int above, Track *dst);
+ Track *add_audio_track(int above, Track *dst);
+ void add_video_track_entry(int above, Track *dst);
+ Track *add_video_track(int above, Track *dst);
+ void add_subttl_track_entry(int above, Track *dst);
+ Track *add_subttl_track(int above, Track *dst);
void asset_to_all();
void asset_to_size();
void MWindow::add_audio_track_entry(int above, Track *dst)
{
undo_before();
- add_audio_track(above, dst);
+ Track *track = add_audio_track(above, dst);
+ track->master = 1;
save_backup();
undo_after(_("add track"), LOAD_ALL);
cwindow->refresh_frame(CHANGE_EDL);
}
-void MWindow::add_video_track_entry(Track *dst)
+void MWindow::add_video_track_entry(int above, Track *dst)
{
undo_before();
- add_video_track(1, dst);
+ Track *track = add_video_track(above, dst);
+ track->master = 1;
undo_after(_("add track"), LOAD_ALL);
restart_brender();
save_backup();
}
-void MWindow::add_subttl_track_entry(Track *dst)
+void MWindow::add_subttl_track_entry(int above, Track *dst)
{
undo_before();
- add_subttl_track(1, dst);
+ Track *track = add_subttl_track(above, dst);
+ track->master = 1;
undo_after(_("add track"), LOAD_ALL);
restart_brender();
}
-int MWindow::add_audio_track(int above, Track *dst)
+Track *MWindow::add_audio_track(int above, Track *dst)
{
- edl->tracks->add_audio_track(above, dst);
+ Track *track = edl->tracks->add_audio_track(above, dst);
edl->tracks->update_y_pixels(theme);
save_backup();
- return 0;
+ return track;
}
-int MWindow::add_video_track(int above, Track *dst)
+Track *MWindow::add_video_track(int above, Track *dst)
{
- edl->tracks->add_video_track(above, dst);
+ Track *track = edl->tracks->add_video_track(above, dst);
edl->tracks->update_y_pixels(theme);
save_backup();
- return 0;
+ return track;
}
-int MWindow::add_subttl_track(int above, Track *dst)
+Track *MWindow::add_subttl_track(int above, Track *dst)
{
- edl->tracks->add_subttl_track(above, dst);
+ Track *track = edl->tracks->add_subttl_track(above, dst);
edl->tracks->update_y_pixels(theme);
save_backup();
- return 0;
+ return track;
}
void MWindow::asset_to_all()
Cakewalk and Neophyte themes by Olaf Wolff (CC BY 4.0,
https://creativecommons.org/licenses/by/4.0/)
.
+June 2020 New Features of note:
+ Ganging modes added for DAW-like editing of channels.
+ Rotate plugin has been modernized and improved.
+ Debug assist added of BC_TRACE_XERROR environment variable.
+ Perspective plugin minor addition of numbered corners.
May 2020 New Features of note:
Audio track height button added, separate from video height.
New patchbay toggle to vary individual vertical track height.