}
}
-
-
BC_Window* VWindow::new_gui()
{
//printf("VWindow::create_objects 1\n");
return gui;
}
+void VWindow::handle_close_event(int result)
+{
+ delete playback_engine;
+ playback_engine = 0;
+}
+
EDL* VWindow::get_edl()
{
void VWindow::change_source(int edl_number)
{
if(!is_running()) return;
+ if( playback_engine->is_playing_back )
+ stop_playback(1);
+ gui->lock_window("VWindow::change_source 1");
//printf("VWindow::change_source %d %p\n", __LINE__, mwindow->edl->get_vwindow_edl(edl_number));
if( edl_number >= 0 && edl_number < mwindow->edl->total_vwindow_edls() &&
mwindow->edl->get_vwindow_edl(edl_number) )
// indexable = 0;
// mwindow->edl->vwindow_edl_shared = 0;
}
+ gui->unlock_window();
}
void VWindow::change_source(Indexable *indexable)
{
if(!running()) return;
+ if( playback_engine->is_playing_back )
+ stop_playback(1);
+
+ gui->lock_window("VWindow::change_source 2");
// if(asset && this->asset &&
// asset->id == this->asset->id &&
// asset == this->asset) return;
//printf("VWindow::change_source 2\n");
+ gui->unlock_window();
}
void VWindow::change_source(EDL *edl)
{
if(!running()) return;
+ if( playback_engine->is_playing_back )
+ stop_playback(1);
+
+ gui->lock_window("VWindow::change_source 3");
//printf("VWindow::change_source %d %p\n", __LINE__, edl);
// EDLs are identical
// if(edl && mwindow->edl->vwindow_edl &&
}
else
gui->change_source(edl, _("Viewer"));
+ gui->unlock_window();
}
{
//printf("VWindow::update_position %d\n", __LINE__);
//edl->dump();
- playback_engine->que->send_command(CURRENT_FRAME,
- change_type,
- edl,
- 1);
+ playback_engine->refresh_frame(change_type, edl);
double position = edl->local_session->get_selectionstart(1);
if(lock_window) gui->lock_window("VWindow::update_position");
gui->clock->update(position);
+ gui->timebar->update(1);
if(lock_window) gui->unlock_window();
}
}
}
}
-void VWindow::clear_inpoint()
-{
- EDL *edl = get_edl();
- if(edl)
- {
- edl->local_session->unset_inpoint();
- gui->timebar->update(1);
- }
-}
-
-void VWindow::clear_outpoint()
+void VWindow::unset_inoutpoint()
{
EDL *edl = get_edl();
if(edl)
{
- edl->local_session->unset_outpoint();
+ edl->unset_inoutpoint();
gui->timebar->update(1);
}
}