Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / probeprefs.h
1 /*
2  * CINELERRA
3  * Copyright (C) 2016-2020 William Morrow
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published
7  * by 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, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA
19  */
20
21 #ifndef __PROBEPREFS_H__
22 #define __PROBEPREFS_H__
23
24 #include "bcwindowbase.h"
25 #include "bcbutton.h"
26 #include "bcdialog.h"
27 #include "bclistbox.h"
28 #include "bclistboxitem.h"
29 #include "bctoggle.h"
30 #include "preferences.inc"
31 #include "preferencesthread.inc"
32 #include "thread.h"
33 #include "probeprefs.inc"
34
35
36 class FileProbeDialog : public BC_DialogThread
37 {
38 public:
39         PreferencesWindow *pwindow;
40
41         ProbeEditWindow *pb_window;
42         BC_Window* new_gui();
43         void handle_close_event(int result);
44
45         FileProbeDialog(PreferencesWindow *pwindow);
46         ~FileProbeDialog();
47 };
48
49 class ProbePref
50 {
51 public:
52         char name[BCSTRLEN];
53         int armed;
54
55         ProbePref(const char *nm, int armed);
56         ~ProbePref();
57 };
58
59 class ProbeUpButton : public BC_GenericButton {
60 public:
61         ProbeEditWindow *pb_window;
62         int handle_event();
63
64         ProbeUpButton(ProbeEditWindow *pb_window, int x, int y);
65         ~ProbeUpButton();
66 };
67
68 class ProbeDownButton : public BC_GenericButton {
69 public:
70         ProbeEditWindow *pb_window;
71         int handle_event();
72
73         ProbeDownButton(ProbeEditWindow *pb_window, int x, int y);
74         ~ProbeDownButton();
75 };
76
77 class ProbeEnabled : public BC_CheckBox
78 {
79 public:
80         ProbeEditWindow *pb_window;
81         int handle_event();
82
83         ProbeEnabled(ProbeEditWindow *pb_window, int x, int y);
84         ~ProbeEnabled();
85 };
86
87 class ProbePrefItem : public BC_ListBoxItem {
88 public:
89         ProbeEditWindow *pb_window;
90         int armed;
91         void set_armed(int armed);
92
93         ProbePrefItem(ProbeEditWindow *pb_window, ProbePref *pref);
94         ~ProbePrefItem();
95 };
96
97 class ProbePrefList : public BC_ListBox
98 {
99 public:
100         ProbeEditWindow *pb_window;
101         int handle_event();
102         int selection_changed();
103
104         ProbePrefList(ProbeEditWindow *pb_window, int x, int y);
105         ~ProbePrefList();
106 };
107
108 class ProbeEditOK : public BC_OKButton
109 {
110 public:
111         ProbeEditWindow *pb_window;
112         int handle_event();
113
114         ProbeEditOK(ProbeEditWindow *pb_window);
115         ~ProbeEditOK();
116 };
117
118 class ProbeEditWindow : public BC_Window
119 {
120 public:
121         ProbeUpButton *probe_up_button;
122         ProbeDownButton *probe_down_button;
123         ProbeEnabled *probe_enabled;
124         ArrayList<ProbePrefItem *> probe_items;
125         ProbePrefList *probe_list;
126         BC_Pixmap *pb_enabled, *pb_disabled;
127
128         void create_objects();
129         int list_update();
130
131         ProbeEditWindow(FileProbeDialog *pb_dialog, int x, int y);
132         ~ProbeEditWindow();
133
134         FileProbeDialog *pb_dialog;
135 };
136
137 #endif