mixer undo fix, new ffmpeg opts, docs
[goodguy/history.git] / cinelerra-5.1 / cinelerra / probeprefs.h
1 #ifndef __PROBEPREFS_H__
2 #define __PROBEPREFS_H__
3
4 #include "bcwindowbase.h"
5 #include "bcbutton.h"
6 #include "bcdialog.h"
7 #include "bclistbox.h"
8 #include "bclistboxitem.h"
9 #include "bctoggle.h"
10 #include "preferences.inc"
11 #include "preferencesthread.inc"
12 #include "thread.h"
13 #include "probeprefs.inc"
14
15
16 class FileProbeDialog : public BC_DialogThread
17 {
18 public:
19         PreferencesWindow *pwindow;
20
21         ProbeEditWindow *pb_window;
22         BC_Window* new_gui();
23         void handle_close_event(int result);
24
25         FileProbeDialog(PreferencesWindow *pwindow);
26         ~FileProbeDialog();
27 };
28
29 class ProbePref
30 {
31 public:
32         char name[BCSTRLEN];
33         int armed;
34
35         ProbePref(const char *nm, int armed);
36         ~ProbePref();
37 };
38
39 class ProbeUpButton : public BC_GenericButton {
40 public:
41         ProbeEditWindow *pb_window;
42         int handle_event();
43
44         ProbeUpButton(ProbeEditWindow *pb_window, int x, int y);
45         ~ProbeUpButton();
46 };
47
48 class ProbeDownButton : public BC_GenericButton {
49 public:
50         ProbeEditWindow *pb_window;
51         int handle_event();
52
53         ProbeDownButton(ProbeEditWindow *pb_window, int x, int y);
54         ~ProbeDownButton();
55 };
56
57 class ProbeEnabled : public BC_CheckBox
58 {
59 public:
60         ProbeEditWindow *pb_window;
61         int handle_event();
62
63         ProbeEnabled(ProbeEditWindow *pb_window, int x, int y);
64         ~ProbeEnabled();
65 };
66
67 class ProbePrefItem : public BC_ListBoxItem {
68 public:
69         ProbeEditWindow *pb_window;
70         int armed;
71         void set_armed(int armed);
72
73         ProbePrefItem(ProbeEditWindow *pb_window, ProbePref *pref);
74         ~ProbePrefItem();
75 };
76
77 class ProbePrefList : public BC_ListBox
78 {
79 public:
80         ProbeEditWindow *pb_window;
81         int handle_event();
82         int selection_changed();
83
84         ProbePrefList(ProbeEditWindow *pb_window, int x, int y);
85         ~ProbePrefList();
86 };
87
88 class ProbeEditOK : public BC_OKButton
89 {
90 public:
91         ProbeEditWindow *pb_window;
92         int handle_event();
93
94         ProbeEditOK(ProbeEditWindow *pb_window);
95         ~ProbeEditOK();
96 };
97
98 class ProbeEditWindow : public BC_Window
99 {
100 public:
101         ProbeUpButton *probe_up_button;
102         ProbeDownButton *probe_down_button;
103         ProbeEnabled *probe_enabled;
104         ArrayList<ProbePrefItem *> probe_items;
105         ProbePrefList *probe_list;
106         BC_Pixmap *pb_enabled, *pb_disabled;
107
108         void create_objects();
109         int list_update();
110
111         ProbeEditWindow(FileProbeDialog *pb_dialog, int x, int y);
112         ~ProbeEditWindow();
113
114         FileProbeDialog *pb_dialog;
115 };
116
117 #endif