- scan_status = new ScanStatus(this, 30, 30, 1, 1,
+ scan_status = new ScanStatus(this, xS(30), yS(30), 1, 1,
cancelled, _("Cutting Ads"));
scan_status->update_length(0, frames);
scan_status->update_position(0, 0);
cancelled, _("Cutting Ads"));
scan_status->update_length(0, frames);
scan_status->update_position(0, 0);
Tracks *tracks = mwindow->edl->tracks;
for(Track *atrk=tracks->first; !cancelled && atrk; atrk=atrk->next) {
if( atrk->data_type != TRACK_AUDIO ) continue;
Tracks *tracks = mwindow->edl->tracks;
for(Track *atrk=tracks->first; !cancelled && atrk; atrk=atrk->next) {
if( atrk->data_type != TRACK_AUDIO ) continue;
Edits *edits = atrk->edits; Edit *next = 0;
for( Edit *edit=edits->first; !cancelled && edit; edit=next ) {
next = edit->next;
Edits *edits = atrk->edits; Edit *next = 0;
for( Edit *edit=edits->first; !cancelled && edit; edit=next ) {
next = edit->next;
- scan_status = new ScanStatus(this, 30, 30, 2, 2,
+ scan_status = new ScanStatus(this, xS(30), yS(30), 2, 2,
Tracks *tracks = mwindow->edl->tracks;
for( Track *vtrk=tracks->first; !cancelled && vtrk; vtrk=vtrk->next) {
if( vtrk->data_type != TRACK_VIDEO ) continue;
Tracks *tracks = mwindow->edl->tracks;
for( Track *vtrk=tracks->first; !cancelled && vtrk; vtrk=vtrk->next) {
if( vtrk->data_type != TRACK_VIDEO ) continue;
Edits *edits = vtrk->edits; Edit *next = 0;
for( Edit *edit=edits->first; !cancelled && edit; edit=next ) {
next = edit->next;
Edits *edits = vtrk->edits; Edit *next = 0;
for( Edit *edit=edits->first; !cancelled && edit; edit=next ) {
next = edit->next;
ScanStatusGUI::
ScanStatusGUI(ScanStatus *sswindow, int x, int y, int nlines, int nbars)
ScanStatusGUI::
ScanStatusGUI(ScanStatus *sswindow, int x, int y, int nlines, int nbars)
- : BC_Window(_("Scanning"), x, y, 340,
- 40 + BC_CancelButton::calculate_h() +
+ : BC_Window(_("Scanning"), x, y, xS(340),
+ yS(40) + BC_CancelButton::calculate_h() +
- commercials->mwindow->gui, _("My")) + 5) * nlines +
- (BC_ProgressBar::calculate_h() + 5) * nbars, 0, 0, 0)
+ commercials->mwindow->gui, _("My")) + yS(5)) * nlines +
+ (BC_ProgressBar::calculate_h() + yS(5)) * nbars, 0, 0, 0)
for( int i=0; i<nlines; ++i, y+=dy, text="" )
add_tool(texts[i] = new BC_Title(x, y, text));
for( int i=0; i<nlines; ++i, y+=dy, text="" )
add_tool(texts[i] = new BC_Title(x, y, text));
- add_tool(bars[i] = new ScanStatusBar(x, y, get_w() - 20, 100));
+ add_tool(bars[i] = new ScanStatusBar(x, y, get_w() - xs20, yS(100)));