yuv colorspace/range + prefs, ffmpeg colorrange probe, x11 direct force colormodel...
[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         BC_Window* new_gui();
45
46         void load_defaults();
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.
58         EDL* get_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);
63
64         void update_position(int change_type = CHANGE_NONE,
65                 int use_slider = 1,
66                 int update_slider = 0,
67                 int lock_window = 0);
68         int update_position(double position);
69         void set_inpoint();
70         void set_outpoint();
71         void unset_inoutpoint();
72         void copy();
73         void splice_selection();
74         void overwrite_selection();
75         void delete_source(int do_main_edl, int update_gui);
76         void goto_start();
77         void goto_end();
78         void stop_playback(int wait);
79
80         VTracking *playback_cursor;
81
82 // Number of source in GUI list
83         MWindow *mwindow;
84         VWindow *vwindow;
85         VWindowGUI *gui;
86         VPlayback *playback_engine;
87         ClipEdit *clip_edit;
88 // Pointer to object being played back in the main EDL.
89         EDL *edl;
90
91 // Pointer to source for accounting
92         Indexable *indexable;
93 };
94
95
96 #endif