8 #include "trackcanvas.h"
10 #include "transitionhandles.h"
12 TransitionHandle::TransitionHandle(MWindow *mwindow,
13 TrackCanvas *trackcanvas,
23 // mwindow->theme->transitionhandle_data)
27 TransitionHandle::~TransitionHandle()
31 int TransitionHandle::handle_event()
39 TransitionHandles::TransitionHandles(MWindow *mwindow,
40 TrackCanvas *trackcanvas)
41 : CanvasTools(mwindow, trackcanvas)
45 TransitionHandles::~TransitionHandles()
50 void TransitionHandles::update()
54 for(Track *current = mwindow->edl->tracks->first;
58 for(Edit *edit = current->edits->first; edit; edit = edit->next)
62 int64_t edit_x, edit_y, edit_w, edit_h;
63 trackcanvas->edit_dimensions(edit, edit_x, edit_y, edit_w, edit_h);
64 trackcanvas->get_transition_coords(edit_x, edit_y, edit_w, edit_h);
66 if(visible(edit_x, edit_w, edit_y, edit_h))
70 for(int i = 0; i < total; i++)
72 TransitionHandle *handle = (TransitionHandle*)values[i];
73 if(handle->edit->id == edit->id)
75 handle->reposition_window(edit_x, edit_y);
84 TransitionHandle *handle = new TransitionHandle(mwindow,
89 trackcanvas->add_subwindow(handle);
90 handle->set_cursor(ARROW_CURSOR);
103 // c-file-style: "linux"