4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
25 #include "adeviceprefs.inc"
26 #include "formattools.inc"
27 #include "mwindow.inc"
28 #include "preferencesthread.h"
29 #include "recordprefs.inc"
30 #include "vdeviceprefs.inc"
32 class RecordPrefs : public PreferencesDialog
35 RecordPrefs(MWindow *mwindow, PreferencesWindow *pwindow);
38 void create_objects();
39 int show_window(int flush);
41 FormatTools *recording_format;
42 RecordRealtimeTOC *realtime_toc;
43 ADevicePrefs *audio_in_device;
44 VDevicePrefs *video_in_device;
49 class RecordFragment : public BC_PopupMenu
54 PreferencesWindow *pwindow,
58 PreferencesWindow *pwindow;
62 class RecordWriteLength : public BC_TextBox
65 RecordWriteLength(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, char *text);
67 PreferencesWindow *pwindow;
71 * class DuplexEnable : public BC_CheckBox
74 * DuplexEnable(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, int value);
76 * PreferencesWindow *pwindow;
80 class RecordRealTime : public BC_CheckBox
83 RecordRealTime(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, int value);
85 PreferencesWindow *pwindow;
89 class RecordSampleRate : public BC_TextBox
92 RecordSampleRate(PreferencesWindow *pwindow, int x, int y);
94 PreferencesWindow *pwindow;
98 class RecordRealtimeTOC : public BC_CheckBox
101 RecordRealtimeTOC(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, int value);
103 PreferencesWindow *pwindow;
107 class RecordPositioning : public BC_ListBox
109 PreferencesWindow *pwindow;
112 ArrayList<BC_ListBoxItem*> position_type;
113 RecordPositioning(PreferencesWindow *pwindow,BC_TextBox *textbox);
114 ~RecordPositioning();
115 void create_objects();
120 class RecordSyncDrives : public BC_CheckBox
123 RecordSyncDrives(PreferencesWindow *pwindow, int value, int x, int y);
125 PreferencesWindow *pwindow;
129 class RecordMap51_2 : public BC_CheckBox
132 RecordMap51_2(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, int value);
134 PreferencesWindow *pwindow;
138 class VideoWriteLength : public BC_TextBox
141 VideoWriteLength(PreferencesWindow *pwindow, char *text, int x, int y);
143 PreferencesWindow *pwindow;
146 class VideoCaptureLength : public BC_TextBox
149 VideoCaptureLength(PreferencesWindow *pwindow, char *text, int x, int y);
151 PreferencesWindow *pwindow;
154 class CaptureLengthTumbler : public BC_Tumbler
157 CaptureLengthTumbler(PreferencesWindow *pwindow, BC_TextBox *text, int x, int y);
158 int handle_up_event();
159 int handle_down_event();
160 PreferencesWindow *pwindow;
164 class RecordW : public BC_TextBox
167 RecordW(PreferencesWindow *pwindow, int x, int y);
169 PreferencesWindow *pwindow;
172 class RecordH : public BC_TextBox
175 RecordH(PreferencesWindow *pwindow, int x, int y);
177 PreferencesWindow *pwindow;
180 class RecordFrameRate : public BC_TextBox
183 RecordFrameRate(PreferencesWindow *pwindow, int x, int y);
185 PreferencesWindow *pwindow;
188 class RecordFrameRateText : public BC_TextBox
190 RecordFrameRateText(PreferencesWindow *pwindow, int x, int y);
192 PreferencesWindow *pwindow;
195 class RecordChannels : public BC_TumbleTextBox
198 RecordChannels(PreferencesWindow *pwindow,
203 PreferencesWindow *pwindow;
206 class RecordGain : public BC_TumbleTextBox
209 RecordGain(PreferencesWindow *pwindow,
214 PreferencesWindow *pwindow;