* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- add_subwindow(title = new BC_Title(x, y, _("File Format:"),
+ add_subwindow(title = new BC_Title(x, y, _("File Format:"),
1, // Include tools for audio
1, // Include tools for video
1, // Include checkbox for audio
1, // Include tools for audio
1, // Include tools for video
1, // Include checkbox for audio
1,
0, // Select compressors to be offered
1, // Prompt for recording options
1,
0, // Select compressors to be offered
1, // Prompt for recording options
0); // Supply file formats for background rendering
realtime_toc = new RecordRealtimeTOC(mwindow, pwindow,
0); // Supply file formats for background rendering
realtime_toc = new RecordRealtimeTOC(mwindow, pwindow,
- add_subwindow(title = new BC_Title(x, y,
- _("Audio In"), LARGEFONT,
+ add_subwindow(title = new BC_Title(x, y,
+ _("Audio In"), LARGEFONT,
add_subwindow(new BC_Title(x, y, _("Record Driver:"),
MEDIUMFONT, resources->text_default));
audio_in_device = new ADevicePrefs(x + 110, y, pwindow, this, 0,
pwindow->thread->edl->session->aconfig_in, MODERECORD);
audio_in_device->initialize(1);
add_subwindow(new BC_Title(x, y, _("Record Driver:"),
MEDIUMFONT, resources->text_default));
audio_in_device = new ADevicePrefs(x + 110, y, pwindow, this, 0,
pwindow->thread->edl->session->aconfig_in, MODERECORD);
audio_in_device->initialize(1);
mwindow->theme->widget_border;
add_subwindow(title0 = new BC_Title(x, y, _("Samples read from device:")));
add_subwindow(title1 = new BC_Title(x, y + pad, _("Samples to write to disk:")));
add_subwindow(title2 = new BC_Title(x, y + pad * 2, _("Sample rate for recording:")));
add_subwindow(title3 = new BC_Title(x, y + pad * 3, _("Channels to record:")));
mwindow->theme->widget_border;
add_subwindow(title0 = new BC_Title(x, y, _("Samples read from device:")));
add_subwindow(title1 = new BC_Title(x, y + pad, _("Samples to write to disk:")));
add_subwindow(title2 = new BC_Title(x, y + pad * 2, _("Sample rate for recording:")));
add_subwindow(title3 = new BC_Title(x, y + pad * 3, _("Channels to record:")));
- x2 = MAX(title0->get_w(), title1->get_w()) + mwindow->theme->widget_border;
- x2 = MAX(x2, title2->get_w() + mwindow->theme->widget_border);
- x2 = MAX(x2, title3->get_w() + mwindow->theme->widget_border);
+ x2 = MAX(title0->get_w(), title1->get_w()) + margin;
+ x2 = MAX(x2, title2->get_w() + margin);
+ x2 = MAX(x2, title3->get_w() + margin);
sprintf(string, "%ld", (long)pwindow->thread->edl->session->record_fragment_size);
RecordFragment *menu;
add_subwindow(menu = new RecordFragment(x2,
y,
sprintf(string, "%ld", (long)pwindow->thread->edl->session->record_fragment_size);
RecordFragment *menu;
add_subwindow(menu = new RecordFragment(x2,
y,
add_subwindow(textbox = new RecordWriteLength(mwindow, pwindow, x2, y, string));
y += textbox->get_h() + mwindow->theme->widget_border;
add_subwindow(textbox = new RecordSampleRate(pwindow, x2, y));
add_subwindow(textbox = new RecordWriteLength(mwindow, pwindow, x2, y, string));
y += textbox->get_h() + mwindow->theme->widget_border;
add_subwindow(textbox = new RecordSampleRate(pwindow, x2, y));
- RecordMap51_2 *record_map51_2 = new RecordMap51_2(mwindow, pwindow, x, y,
+ RecordMap51_2 *record_map51_2 = new RecordMap51_2(mwindow, pwindow, x, y,
- add_subwindow(new RecordRealTime(mwindow, pwindow, x2, y,
+ add_subwindow(new RecordRealTime(mwindow, pwindow, x2, y,
- add_subwindow(new BC_Title(x, y, _("Video In"), LARGEFONT,
+ add_subwindow(title1 = new BC_Title(x, y, _("Video In"), LARGEFONT,
- add_subwindow(new BC_Title(x, y, _("Record Driver:"), MEDIUMFONT,
+ add_subwindow(title1 = new BC_Title(x, y, _("Record Driver:"), MEDIUMFONT,
- video_in_device = new VDevicePrefs(x + 110, y, pwindow, this, 0,
- pwindow->thread->edl->session->vconfig_in, MODERECORD);
+ video_in_device = new VDevicePrefs(x + title1->get_w() + margin, y,
+ pwindow, this, 0, pwindow->thread->edl->session->vconfig_in, MODERECORD);
- add_subwindow(textbox = new VideoWriteLength(pwindow, string, y));
- add_subwindow(new CaptureLengthTumbler(pwindow, textbox, textbox->get_x() + textbox->get_w(), y));
- add_subwindow(new BC_Title(x, y, _("Frames to record to disk at a time:")));
+ add_subwindow(textbox = new VideoWriteLength(pwindow, string, x1, y));
+ x1 += textbox->get_w() + margin;
+ add_subwindow(new CaptureLengthTumbler(pwindow, textbox, x1, y));
- add_subwindow(textbox = new VideoCaptureLength(pwindow, string, y));
- add_subwindow(new CaptureLengthTumbler(pwindow, textbox, textbox->get_x() + textbox->get_w(), y));
- add_subwindow(new BC_Title(x, y, _("Frames to buffer in device:")));
+ add_subwindow(textbox = new VideoCaptureLength(pwindow, string, x1, y));
+ x1 += textbox->get_w() + margin;
+ add_subwindow(new CaptureLengthTumbler(pwindow, textbox, x1, y));
add_subwindow(new BC_Title(x1, y, _("Positioning:")));
x1 += 100;
add_subwindow(textbox = new BC_TextBox(x1, y, 200, 1, ""));
add_subwindow(new BC_Title(x1, y, _("Positioning:")));
x1 += 100;
add_subwindow(textbox = new BC_TextBox(x1, y, 200, 1, ""));
- add_subwindow(new RecordSyncDrives(pwindow,
- pwindow->thread->edl->session->record_sync_drives,
+ add_subwindow(new RecordSyncDrives(pwindow,
+ pwindow->thread->edl->session->record_sync_drives,
- add_subwindow(new BC_Title(x, y, _("Size of captured frame:")));
- x += 170;
+ add_subwindow(title1 = new BC_Title(x, y, _("Size of captured frame:")));
+ x += title1->get_w() + margin;
- x += w_text->get_w() + 2;
- add_subwindow(new BC_Title(x, y, "x"));
- x += 10;
+ x += w_text->get_w() + margin;
+ add_subwindow(title1 = new BC_Title(x, y, "x"));
+ x += title1->get_w() + margin;
- x += h_text->get_w();
- add_subwindow(new FrameSizePulldown(mwindow->theme,
+ x += h_text->get_w() + margin;
+ FrameSizePulldown *tumbler;
+ add_subwindow(tumbler = new FrameSizePulldown(mwindow->theme,
- y += 30;
- x = 5;
- add_subwindow(new BC_Title(x, y, _("Frame rate for recording:")));
- x += 180;
+ x = mwindow->theme->preferencesoptions_x;
+ add_subwindow(title1 = new BC_Title(x, y, _("Frame rate for recording:")));
+ x += title1->get_w() + margin;
add_subwindow(new FrameRatePulldown(mwindow, textbox, x, y));
}
add_subwindow(new FrameRatePulldown(mwindow, textbox, x, y));
}
-RecordFragment::RecordFragment(int x,
- int y,
- PreferencesWindow *pwindow,
- RecordPrefs *record,
+RecordFragment::RecordFragment(int x,
+ int y,
+ PreferencesWindow *pwindow,
+ RecordPrefs *record,
RecordWriteLength::RecordWriteLength(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, char *text)
: BC_TextBox(x, y, 100, 1, text)
RecordWriteLength::RecordWriteLength(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, char *text)
: BC_TextBox(x, y, 100, 1, text)
PreferencesWindow *pwindow, int x, int y, int value)
PreferencesWindow *pwindow, int x, int y, int value)
- : BC_CheckBox(x, y, value,
+ : BC_CheckBox(x, y, value,
PreferencesWindow *pwindow, int x, int y, int value)
: BC_CheckBox(x, y, value, _("Map 5.1->2"))
PreferencesWindow *pwindow, int x, int y, int value)
: BC_CheckBox(x, y, value, _("Map 5.1->2"))
PreferencesWindow *pwindow, int x, int y, int value)
: BC_CheckBox(x, y, value, _("Realtime TOC"))
PreferencesWindow *pwindow, int x, int y, int value)
: BC_CheckBox(x, y, value, _("Realtime TOC"))
// DuplexEnable::DuplexEnable(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, int value)
// : BC_CheckBox(x, y, value, _("Enable full duplex"))
// { this->pwindow = pwindow; }
// DuplexEnable::DuplexEnable(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, int value)
// : BC_CheckBox(x, y, value, _("Enable full duplex"))
// { this->pwindow = pwindow; }
- : BC_TextBox(x, y, 70, 1, pwindow->thread->edl->session->vconfig_in->in_framerate)
+ : BC_TextBox(x, y, 140, 1, pwindow->thread->edl->session->vconfig_in->in_framerate)
RecordChannels::RecordChannels(PreferencesWindow *pwindow, BC_SubWindow *gui, int x, int y)
RecordChannels::RecordChannels(PreferencesWindow *pwindow, BC_SubWindow *gui, int x, int y)
pwindow->thread->edl->session->aconfig_in->channels,
1, MAX_CHANNELS, x, y, 100)
{
pwindow->thread->edl->session->aconfig_in->channels,
1, MAX_CHANNELS, x, y, 100)
{
pwindow->thread->edl->session->aconfig_in->rec_gain,
0.0001f, 10000.0f, x, y, 72)
{
pwindow->thread->edl->session->aconfig_in->rec_gain,
0.0001f, 10000.0f, x, y, 72)
{
-VideoWriteLength::VideoWriteLength(PreferencesWindow *pwindow, char *text, int y)
- : BC_TextBox(260, y, 100, 1, text)
-{
- this->pwindow = pwindow;
+VideoWriteLength::VideoWriteLength(PreferencesWindow *pwindow, char *text, int x, int y)
+ : BC_TextBox(x, y, 100, 1, text)
+{
+ this->pwindow = pwindow;
-VideoCaptureLength::VideoCaptureLength(PreferencesWindow *pwindow, char *text, int y)
- : BC_TextBox(260, y, 100, 1, text)
-{
+VideoCaptureLength::VideoCaptureLength(PreferencesWindow *pwindow, char *text, int x, int y)
+ : BC_TextBox(x, y, 100, 1, text)
+{
}
CaptureLengthTumbler::CaptureLengthTumbler(PreferencesWindow *pwindow, BC_TextBox *text, int x, int y)
}
CaptureLengthTumbler::CaptureLengthTumbler(PreferencesWindow *pwindow, BC_TextBox *text, int x, int y)
RecordSyncDrives::RecordSyncDrives(PreferencesWindow *pwindow, int value, int x, int y)
: BC_CheckBox(x, y, value, _("Sync drives automatically"))
{
RecordSyncDrives::RecordSyncDrives(PreferencesWindow *pwindow, int value, int x, int y)
: BC_CheckBox(x, y, value, _("Sync drives automatically"))
{