int VWindowGUI::button_press_event()
{
+ if( get_buttonpress() == LEFT_BUTTON && canvas->get_canvas() &&
+ canvas->get_canvas()->get_cursor_over_window() ) {
+ int command = STOP;
+ PlaybackEngine *playback_engine = vwindow->playback_engine;
+ if( !playback_engine->is_playing_back && vwindow->get_edl() != 0 ) {
+ double length = vwindow->get_edl()->tracks->total_playable_length();
+ double position = playback_engine->get_tracking_position();
+ if( position >= length ) transport->goto_start();
+ command = NORMAL_FWD;
+ }
+ unlock_window();
+ transport->handle_transport(command, 1);
+ lock_window("VWindowGUI::button_press_event");
+ return 1;
+ }
if(canvas->get_canvas())
return canvas->button_press_event_base(canvas->get_canvas());
return 0;
{
highlighted = 0;
canvas->draw_refresh();
+ unlock_window();
Indexable *indexable = mwindow->session->drag_assets->size() ?
mwindow->session->drag_assets->get(0) :
EDL *edl = mwindow->session->drag_clips->size() ?
mwindow->session->drag_clips->get(0) :
0;
-
if(indexable)
vwindow->change_source(indexable);
else
if(edl)
vwindow->change_source(edl);
+ lock_window("VWindowGUI::drag_stop");
return 1;
}