add_subwindow(title = new BC_Title(x, y, _("File Format:"),
LARGEFONT, resources->text_default));
add_subwindow(title = new BC_Title(x, y, _("File Format:"),
LARGEFONT, resources->text_default));
y += title->get_h() + margin;
recording_format = new FormatTools(mwindow, this,
y += title->get_h() + margin;
recording_format = new FormatTools(mwindow, this,
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,
resources->text_default));
add_subwindow(title = new BC_Title(x, y,
_("Audio In"), LARGEFONT,
resources->text_default));
- add_subwindow(new BC_Title(x, y, _("Record Driver:"),
+ add_subwindow(title = new BC_Title(x, y, _("Record Driver:"),
- audio_in_device = new ADevicePrefs(x + 110, y, pwindow, this, 0,
+ title->context_help_set_keyword("Audio In section");
+ audio_in_device = new ADevicePrefs(x + xS(110), y, pwindow, this, 0,
pwindow->thread->edl->session->aconfig_in, MODERECORD);
audio_in_device->initialize(1);
y += audio_in_device->get_h(1) + margin;
int pad = RecordWriteLength::calculate_h(this,
pwindow->thread->edl->session->aconfig_in, MODERECORD);
audio_in_device->initialize(1);
y += audio_in_device->get_h(1) + margin;
int pad = RecordWriteLength::calculate_h(this,
x2 = MAX(title0->get_w(), title1->get_w()) + margin;
x2 = MAX(x2, title2->get_w() + margin);
x2 = MAX(x2, title3->get_w() + margin);
x2 = MAX(title0->get_w(), title1->get_w()) + margin;
x2 = MAX(x2, title2->get_w() + margin);
x2 = MAX(x2, title3->get_w() + margin);
- add_subwindow(menu = new RecordFragment(x2,
- y,
- pwindow,
- this,
- string));
+ add_subwindow(menu = new RecordFragment(x2, y, pwindow, this, string));
y += menu->get_h() + mwindow->theme->widget_border;
menu->add_item(new BC_MenuItem("1024"));
menu->add_item(new BC_MenuItem("2048"));
y += menu->get_h() + mwindow->theme->widget_border;
menu->add_item(new BC_MenuItem("1024"));
menu->add_item(new BC_MenuItem("2048"));
menu->add_item(new BC_MenuItem("65536"));
menu->add_item(new BC_MenuItem("131072"));
menu->add_item(new BC_MenuItem("262144"));
menu->add_item(new BC_MenuItem("65536"));
menu->add_item(new BC_MenuItem("131072"));
menu->add_item(new BC_MenuItem("262144"));
sprintf(string, "%jd", pwindow->thread->edl->session->record_write_length);
add_subwindow(textbox = new RecordWriteLength(mwindow, pwindow, x2, y, string));
sprintf(string, "%jd", pwindow->thread->edl->session->record_write_length);
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));
y += textbox->get_h() + mwindow->theme->widget_border;
add_subwindow(textbox = new RecordSampleRate(pwindow, x2, y));
- add_subwindow(new SampleRatePulldown(mwindow,
- textbox,
- x2 + textbox->get_w(),
- y));
+ textbox->context_help_set_keyword("Audio In section");
+ add_subwindow(new SampleRatePulldown(mwindow, textbox, x2 + textbox->get_w(), y));
y += textbox->get_h() + mwindow->theme->widget_border;
RecordChannels *channels = new RecordChannels(pwindow, this, x2, y);
y += textbox->get_h() + mwindow->theme->widget_border;
RecordChannels *channels = new RecordChannels(pwindow, this, x2, y);
RecordMap51_2 *record_map51_2 = new RecordMap51_2(mwindow, pwindow, x, y,
pwindow->thread->edl->session->aconfig_in->map51_2);
add_subwindow(record_map51_2);
RecordMap51_2 *record_map51_2 = new RecordMap51_2(mwindow, pwindow, x, y,
pwindow->thread->edl->session->aconfig_in->map51_2);
add_subwindow(record_map51_2);
int y2 = y + BC_TextBox::calculate_h(this,MEDIUMFONT,1,1) - get_text_height(MEDIUMFONT);
add_subwindow(title = new BC_Title(x2, y2, _("Gain:")));
int y2 = y + BC_TextBox::calculate_h(this,MEDIUMFONT,1,1) - get_text_height(MEDIUMFONT);
add_subwindow(title = new BC_Title(x2, y2, _("Gain:")));
RecordGain *rec_gain = new RecordGain(pwindow, this, x2, y);
rec_gain->create_objects();
RecordGain *rec_gain = new RecordGain(pwindow, this, x2, y);
rec_gain->create_objects();
add_subwindow(new RecordRealTime(mwindow, pwindow, x2, y,
pwindow->thread->edl->session->real_time_record));
add_subwindow(new RecordRealTime(mwindow, pwindow, x2, y,
pwindow->thread->edl->session->real_time_record));
y += margin;
add_subwindow(title1 = new BC_Title(x, y, _("Video In"), LARGEFONT,
resources->text_default));
y += margin;
add_subwindow(title1 = new BC_Title(x, y, _("Video In"), LARGEFONT,
resources->text_default));
y += title1->get_h() + margin;
add_subwindow(title1 = new BC_Title(x, y, _("Record Driver:"), MEDIUMFONT,
resources->text_default));
y += title1->get_h() + margin;
add_subwindow(title1 = new BC_Title(x, y, _("Record Driver:"), MEDIUMFONT,
resources->text_default));
video_in_device = new VDevicePrefs(x + title1->get_w() + margin, y,
pwindow, this, 0, pwindow->thread->edl->session->vconfig_in, MODERECORD);
video_in_device->initialize(1);
y += video_in_device->get_h() + margin;
add_subwindow(title1 = new BC_Title(x, y, _("Frames to record to disk at a time:")));
video_in_device = new VDevicePrefs(x + title1->get_w() + margin, y,
pwindow, this, 0, pwindow->thread->edl->session->vconfig_in, MODERECORD);
video_in_device->initialize(1);
y += video_in_device->get_h() + margin;
add_subwindow(title1 = new BC_Title(x, y, _("Frames to record to disk at a time:")));
x1 = x + title1->get_w() + margin;
sprintf(string, "%d", pwindow->thread->edl->session->video_write_length);
add_subwindow(textbox = new VideoWriteLength(pwindow, string, x1, y));
x1 = x + title1->get_w() + margin;
sprintf(string, "%d", pwindow->thread->edl->session->video_write_length);
add_subwindow(textbox = new VideoWriteLength(pwindow, string, x1, y));
x1 += textbox->get_w() + margin;
add_subwindow(new CaptureLengthTumbler(pwindow, textbox, x1, y));
x1 += textbox->get_w() + margin;
add_subwindow(new CaptureLengthTumbler(pwindow, textbox, x1, y));
x1 = x + title1->get_w() + margin;
sprintf(string, "%d", pwindow->thread->edl->session->vconfig_in->capture_length);
add_subwindow(textbox = new VideoCaptureLength(pwindow, string, x1, y));
x1 = x + title1->get_w() + margin;
sprintf(string, "%d", pwindow->thread->edl->session->vconfig_in->capture_length);
add_subwindow(textbox = new VideoCaptureLength(pwindow, string, x1, y));
x1 += textbox->get_w() + margin;
add_subwindow(new CaptureLengthTumbler(pwindow, textbox, 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(title1 = new BC_Title(x1, y, _("Positioning:")));
+ title1->context_help_set_keyword("Video In section");
+ x1 += xS(120);
+ add_subwindow(textbox = new BC_TextBox(x1, y, xS(200), 1, ""));
+ textbox->context_help_set_keyword("Video In section");
RecordPositioning *positioning = new RecordPositioning(pwindow,textbox);
add_subwindow(positioning);
positioning->create_objects();
RecordPositioning *positioning = new RecordPositioning(pwindow,textbox);
add_subwindow(positioning);
positioning->create_objects();
add_subwindow(new RecordSyncDrives(pwindow,
pwindow->thread->edl->session->record_sync_drives,
x, y));
add_subwindow(new RecordSyncDrives(pwindow,
pwindow->thread->edl->session->record_sync_drives,
x, y));
BC_TextBox *w_text, *h_text;
add_subwindow(title1 = new BC_Title(x, y, _("Size of captured frame:")));
BC_TextBox *w_text, *h_text;
add_subwindow(title1 = new BC_Title(x, y, _("Size of captured frame:")));
x += title1->get_w() + margin;
add_subwindow(w_text = new RecordW(pwindow, x, y));
x += title1->get_w() + margin;
add_subwindow(w_text = new RecordW(pwindow, x, y));
x += w_text->get_w() + margin;
add_subwindow(title1 = new BC_Title(x, y, "x"));
x += w_text->get_w() + margin;
add_subwindow(title1 = new BC_Title(x, y, "x"));
x += title1->get_w() + margin;
add_subwindow(h_text = new RecordH(pwindow, x, y));
x += title1->get_w() + margin;
add_subwindow(h_text = new RecordH(pwindow, x, y));
- FrameSizePulldown *tumbler;
- add_subwindow(tumbler = new FrameSizePulldown(mwindow->theme,
+ FrameSizePulldown *frame_sizes;
+ add_subwindow(frame_sizes = new FrameSizePulldown(mwindow->theme,
x = mwindow->theme->preferencesoptions_x;
add_subwindow(title1 = new BC_Title(x, y, _("Frame rate for recording:")));
x = mwindow->theme->preferencesoptions_x;
add_subwindow(title1 = new BC_Title(x, y, _("Frame rate for recording:")));
x += title1->get_w() + margin;
add_subwindow(textbox = new RecordFrameRate(pwindow, x, y));
x += title1->get_w() + margin;
add_subwindow(textbox = new RecordFrameRate(pwindow, x, y));
x += textbox->get_w() + margin;
add_subwindow(new FrameRatePulldown(mwindow, textbox, x, y));
x += textbox->get_w() + margin;
add_subwindow(new FrameRatePulldown(mwindow, textbox, x, y));
RecordFragment::RecordFragment(int x,
int y,
PreferencesWindow *pwindow,
RecordPrefs *record,
char *text)
RecordFragment::RecordFragment(int x,
int y,
PreferencesWindow *pwindow,
RecordPrefs *record,
char *text)
RecordWriteLength::RecordWriteLength(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, char *text)
RecordWriteLength::RecordWriteLength(MWindow *mwindow, PreferencesWindow *pwindow, int x, int y, char *text)
- : BC_TextBox(x, y, 100, 1, text)
+ : BC_TextBox(x, y, xS(100), 1, text)
- : BC_TextBox(x, y, 70, 1, pwindow->thread->edl->session->aconfig_in->in_samplerate)
+ : BC_TextBox(x, y, xS(70), 1, pwindow->thread->edl->session->aconfig_in->in_samplerate)
- : BC_TextBox(x, y, 70, 1, pwindow->thread->edl->session->vconfig_in->w)
+ : BC_TextBox(x, y, xS(70), 1, pwindow->thread->edl->session->vconfig_in->w)
- : BC_TextBox(x, y, 70, 1, pwindow->thread->edl->session->vconfig_in->h)
+ : BC_TextBox(x, y, xS(70), 1, pwindow->thread->edl->session->vconfig_in->h)
- : BC_TextBox(x, y, 140, 1, pwindow->thread->edl->session->vconfig_in->in_framerate)
+ : BC_TextBox(x, y, xS(140), 1, pwindow->thread->edl->session->vconfig_in->in_framerate)
RecordChannels::RecordChannels(PreferencesWindow *pwindow, BC_SubWindow *gui, int x, int y)
: BC_TumbleTextBox(gui,
pwindow->thread->edl->session->aconfig_in->channels,
RecordChannels::RecordChannels(PreferencesWindow *pwindow, BC_SubWindow *gui, int x, int y)
: BC_TumbleTextBox(gui,
pwindow->thread->edl->session->aconfig_in->channels,
- 1, MAX_CHANNELS, x, y, 100)
+ 1, MAX_CHANNELS, x, y, xS(100))
RecordGain::RecordGain(PreferencesWindow *pwindow, BC_SubWindow *gui, int x, int y)
: BC_TumbleTextBox(gui,
pwindow->thread->edl->session->aconfig_in->rec_gain,
RecordGain::RecordGain(PreferencesWindow *pwindow, BC_SubWindow *gui, int x, int y)
: BC_TumbleTextBox(gui,
pwindow->thread->edl->session->aconfig_in->rec_gain,
- 0.0001f, 10000.0f, x, y, 72)
+ 0.0001f, 10000.0f, x, y, xS(72))
VideoWriteLength::VideoWriteLength(PreferencesWindow *pwindow, char *text, int x, int y)
VideoWriteLength::VideoWriteLength(PreferencesWindow *pwindow, char *text, int x, int y)
- : BC_TextBox(x, y, 100, 1, text)
+ : BC_TextBox(x, y, xS(100), 1, text)
VideoCaptureLength::VideoCaptureLength(PreferencesWindow *pwindow, char *text, int x, int y)
VideoCaptureLength::VideoCaptureLength(PreferencesWindow *pwindow, char *text, int x, int y)
- : BC_TextBox(x, y, 100, 1, text)
+ : BC_TextBox(x, y, xS(100), 1, text)
RecordPositioning::RecordPositioning(PreferencesWindow *pwindow, BC_TextBox *textbox)
: BC_ListBox(textbox->get_x() + textbox->get_w(), textbox->get_y(),
RecordPositioning::RecordPositioning(PreferencesWindow *pwindow, BC_TextBox *textbox)
: BC_ListBox(textbox->get_x() + textbox->get_w(), textbox->get_y(),
- 200, 100, LISTBOX_TEXT, &position_type, 0, 0, 1, 0, 1)
+ xS(200), yS(100), LISTBOX_TEXT, &position_type, 0, 0, 1, 0, 1)
: BC_CheckBox(x, y, value, _("Sync drives automatically"))
{
this->pwindow = pwindow;
: BC_CheckBox(x, y, value, _("Sync drives automatically"))
{
this->pwindow = pwindow;