shuttlerc, boobytraps, vwindow hang, lock cleanup
[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_done_event(int result);
42         BC_Window* new_gui();
43         void process(VFrame *output_frame);
44
45         MWindow *mwindow;
46         RecordMonitor *record_monitor;
47         RecordScopeGUI *scope_gui;
48         Mutex *gui_lock;
49         VFrame *output_frame;
50 };
51
52
53
54 class RecordScopeGUI : public ScopeGUI
55 {
56 public:
57         RecordScopeGUI(MWindow *mwindow,
58                 RecordMonitor *record_monitor);
59         ~RecordScopeGUI();
60
61         void create_objects();
62         void toggle_event();
63         int translation_event();
64         int resize_event(int w, int h);
65
66         MWindow *mwindow;
67         RecordMonitor *record_monitor;
68 };
69
70
71
72
73
74 class ScopeEnable : public BC_Toggle
75 {
76 public:
77         ScopeEnable(MWindow *mwindow, RecordMonitor *record_monitor, int x, int y);
78         ~ScopeEnable();
79         int handle_event();
80         RecordMonitor *record_monitor;
81         MWindow *mwindow;
82 };
83
84
85 #endif
86
87