xfer parallel build, reload vwindow, snap/grab fixes, shader memeory leak
[goodguy/history.git] / cinelerra-5.1 / cinelerra / vwindow.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 1997-2012 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef VWINDOW_H
23 #define VWINDOW_H
24
25 #include "asset.inc"
26 #include "bcdialog.h"
27 #include "clipedit.inc"
28 #include "edl.inc"
29 #include "indexable.inc"
30 #include "mwindow.inc"
31 #include "thread.h"
32 #include "transportque.inc"
33 #include "vplayback.inc"
34 #include "vtracking.inc"
35 #include "vwindowgui.inc"
36
37 class VWindow : public BC_DialogThread
38 {
39 public:
40         VWindow(MWindow *mwindow);
41         ~VWindow();
42
43         void handle_done_event(int result);
44         void handle_close_event(int result);
45         BC_Window* new_gui();
46
47         void load_defaults();
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.
59         EDL* get_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);
64
65         void update_position(int change_type = CHANGE_NONE,
66                 int use_slider = 1,
67                 int update_slider = 0,
68                 int lock_window = 0);
69         int update_position(double position);
70         void set_inpoint();
71         void set_outpoint();
72         void unset_inoutpoint();
73         void copy();
74         void splice_selection();
75         void overwrite_selection();
76         void delete_source(int do_main_edl, int update_gui);
77         void goto_start();
78         void goto_end();
79         void stop_playback(int wait);
80
81         VTracking *playback_cursor;
82
83 // Number of source in GUI list
84         MWindow *mwindow;
85         VWindow *vwindow;
86         VWindowGUI *gui;
87         VPlayback *playback_engine;
88         ClipEdit *clip_edit;
89 // Pointer to object being played back in the main EDL.
90         EDL *edl;
91
92 // Pointer to source for accounting
93         Indexable *indexable;
94 };
95
96
97 #endif