4 * Copyright (C) 1997-2012 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "clipedit.inc"
29 #include "indexable.inc"
30 #include "mwindow.inc"
32 #include "transportque.inc"
33 #include "vplayback.inc"
34 #include "vtracking.inc"
35 #include "vwindowgui.inc"
37 class VWindow : public BC_DialogThread
40 VWindow(MWindow *mwindow);
43 void handle_done_event(int result);
44 void handle_close_event(int result);
48 void create_objects();
49 // Change source to asset, creating a new EDL
50 void change_source(Indexable *indexable);
51 // Change source to EDL
52 void change_source(EDL *edl);
53 // Change source to 1 of master EDL's vwindow EDLs after a load.
54 void change_source(int number);
55 // Returns private EDL of VWindow
56 // If an asset is dropped in, a new VWindow EDL is created in the master EDL
57 // and this points to it.
58 // If a clip is dropped in, it points to the clip EDL.
60 // Returns last argument of change_source or 0 if it was an EDL
61 // Asset* get_asset();
62 Indexable* get_source();
63 void update(int do_timebar);
65 void update_position(int change_type = CHANGE_NONE);
66 int update_position(double position);
69 void unset_inoutpoint();
71 void splice_selection();
72 void overwrite_selection();
73 void delete_source(int do_main_edl, int update_gui);
76 void stop_playback(int wait);
77 void interrupt_playback(int wait);
79 VTracking *playback_cursor;
81 // Number of source in GUI list
85 VPlayback *playback_engine;
87 // Pointer to object being played back in the main EDL.
90 // Pointer to source for accounting