2 #include "localsession.h"
7 #include "vwindowgui.h"
10 VTimeBar::VTimeBar(MWindow *mwindow,
23 this->mwindow = mwindow;
27 int VTimeBar::resize_event()
29 reposition_window(mwindow->theme->vtimebar_x,
30 mwindow->theme->vtimebar_y,
31 mwindow->theme->vtimebar_w,
32 mwindow->theme->vtimebar_h);
37 EDL* VTimeBar::get_edl()
39 return gui->vwindow->get_edl();
42 void VTimeBar::draw_time()
47 void VTimeBar::update_preview()
49 gui->slider->set_position();
53 void VTimeBar::select_label(double position)
60 gui->transport->handle_transport(STOP, 1, 0, 0);
63 position = mwindow->edl->align_to_frame(position, 1);
67 if(position > edl->local_session->get_selectionend(1) / 2 +
68 edl->local_session->get_selectionstart(1) / 2)
71 edl->local_session->set_selectionend(position);
75 edl->local_session->set_selectionstart(position);
80 edl->local_session->set_selectionstart(position);
81 edl->local_session->set_selectionend(position);
85 mwindow->vwindow->update_position(CHANGE_NONE,