RafaMar + programmer friend Help button in Batch Render addition
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / recordscopes.h
1 /*
2  * CINELERRA
3  * Copyright (C) 1997-2011 Adam Williams <broadcast at earthling dot net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  *
19  */
20
21
22 #ifndef RECORDSCOPES_H
23 #define RECORDSCOPES_H
24
25 #include "bcdialog.h"
26 #include "guicast.h"
27 #include "loadbalance.h"
28 #include "mwindow.h"
29 #include "recordmonitor.inc"
30 #include "recordscopes.inc"
31 #include "scopewindow.h"
32
33
34
35 class RecordScopeThread : public BC_DialogThread
36 {
37 public:
38         RecordScopeThread(MWindow *mwindow, RecordMonitor *record_monitor);
39         ~RecordScopeThread();
40
41         void handle_close_event(int result);
42         void handle_done_event(int result);
43         BC_Window* new_gui();
44         void process(VFrame *output_frame);
45
46         MWindow *mwindow;
47         RecordMonitor *record_monitor;
48         RecordScopeGUI *scope_gui;
49         Mutex *gui_lock;
50         VFrame *output_frame;
51 };
52
53
54
55 class RecordScopeGUI : public ScopeGUI
56 {
57 public:
58         RecordScopeGUI(MWindow *mwindow,
59                 RecordMonitor *record_monitor);
60         ~RecordScopeGUI();
61
62         void create_objects();
63         void toggle_event();
64         int translation_event();
65         int resize_event(int w, int h);
66
67         MWindow *mwindow;
68         RecordMonitor *record_monitor;
69 };
70
71
72
73
74
75 class ScopeEnable : public BC_Toggle
76 {
77 public:
78         ScopeEnable(MWindow *mwindow, RecordMonitor *record_monitor, int x, int y);
79         ~ScopeEnable();
80         int handle_event();
81         RecordMonitor *record_monitor;
82         MWindow *mwindow;
83 };
84
85
86 #endif
87
88