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);
47 void create_objects();
48 // Change source to asset, creating a new EDL
49 void change_source(Indexable *indexable);
50 // Change source to EDL
51 void change_source(EDL *edl);
52 // Change source to 1 of master EDL's vwindow EDLs after a load.
53 void change_source(int number);
54 // Returns private EDL of VWindow
55 // If an asset is dropped in, a new VWindow EDL is created in the master EDL
56 // and this points to it.
57 // If a clip is dropped in, it points to the clip EDL.
59 // Returns last argument of change_source or 0 if it was an EDL
60 // Asset* get_asset();
61 Indexable* get_source();
62 void update(int do_timebar);
64 void update_position(int change_type = CHANGE_NONE,
66 int update_slider = 0,
68 int update_position(double position);
71 void unset_inoutpoint();
73 void splice_selection();
74 void overwrite_selection();
75 void delete_source(int do_main_edl, int update_gui);
78 void stop_playback(int wait);
80 VTracking *playback_cursor;
82 // Number of source in GUI list
86 VPlayback *playback_engine;
88 // Pointer to object being played back in the main EDL.
91 // Pointer to source for accounting