-
- x = x1;
- add_subwindow(new BC_Title(x, y, _("Reel Name:")));
- x = x2;
- add_subwindow(new AssetEditReelName(this, x, y));
- y += 30;
-
- x = x1;
- add_subwindow(new BC_Title(x, y, _("Reel Number:")));
- x = x2;
- add_subwindow(new AssetEditReelNumber(this, x, y));
- y += 30;
-
- x = x1;
- add_subwindow(new BC_Title(x, y, _("Time Code Start:")));
- x = x2;
-
-// Calculate values to enter into textboxes
- char text[32], *tc = text;
- if( asset )
- Units::totext(tc, asset->tcstart / asset->frame_rate,
- TIME_HMSF, asset->sample_rate, asset->frame_rate);
- else
- strcpy(tc, "0:00:00:00");
-
- const char *tc_hours = tc, *tc_minutes, *tc_seconds, *tc_rest;
- tc = strchr(tc, ':'); *tc++ = 0; tc_minutes = tc;
- tc = strchr(tc, ':'); *tc++ = 0; tc_seconds = tc;
- tc = strchr(tc, ':'); *tc++ = 0; tc_rest = tc;
-
- int padw = BC_Title::calculate_w(this, ":", MEDIUMFONT);
- int fldw = BC_Title::calculate_w(this, "00", MEDIUMFONT) + 5;
- add_subwindow(tc_hours_textbox = new BC_TextBox(x, y, fldw, 1, tc_hours));
- add_subwindow(new BC_Title(x += tc_hours_textbox->get_w(), y, ":"));
- add_subwindow(tc_minutes_textbox = new BC_TextBox(x += padw, y, fldw, 1, tc_minutes));
- add_subwindow(new BC_Title(x += tc_minutes_textbox->get_w(), y, ":"));
- add_subwindow(tc_seconds_textbox = new BC_TextBox(x += padw, y , fldw, 1, tc_seconds));
- add_subwindow(new BC_Title(x += tc_seconds_textbox->get_w(), y, ":"));
- add_subwindow(tc_rest_textbox = new BC_TextBox(x += 10, y, fldw, 1, tc_rest));
-
- y += 30;