mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
Layout changes
- Progress bar now less likely to obscure a small window that invokes it. - Check boxes grouped together in TrackPrefs
This commit is contained in:
parent
6b3041118f
commit
fb8b797d63
@ -117,7 +117,6 @@ void BatchProcessDialog::PopulateOrExchange(ShuttleGui &S)
|
|||||||
S.Id(ApplyToProjectID).AddButton(_("&Project"));
|
S.Id(ApplyToProjectID).AddButton(_("&Project"));
|
||||||
S.Id(ApplyToFilesID).AddButton(_("&Files..."));
|
S.Id(ApplyToFilesID).AddButton(_("&Files..."));
|
||||||
S.AddSpace( 40 );
|
S.AddSpace( 40 );
|
||||||
//S.Id(wxID_CANCEL).AddButton(_("&Cancel"));
|
|
||||||
S.AddStandardButtons( eCancelButton | eHelpButton);
|
S.AddStandardButtons( eCancelButton | eHelpButton);
|
||||||
}
|
}
|
||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
@ -187,7 +186,10 @@ void BatchProcessDialog::OnApplyToProject(wxCommandEvent & WXUNUSED(event))
|
|||||||
pD->Layout();
|
pD->Layout();
|
||||||
pD->Fit();
|
pD->Fit();
|
||||||
pD->CenterOnScreen();
|
pD->CenterOnScreen();
|
||||||
pD->Move(-1, 0);
|
// Avoid overlap with progress.
|
||||||
|
int x,y;
|
||||||
|
pD->GetPosition( &x, &y );
|
||||||
|
pD->Move(wxMax(0,x-300), 0);
|
||||||
pD->Show();
|
pD->Show();
|
||||||
|
|
||||||
// The Hide() on the next line seems to tickle a bug in wx3,
|
// The Hide() on the next line seems to tickle a bug in wx3,
|
||||||
@ -358,8 +360,13 @@ void BatchProcessDialog::OnApplyToFiles(wxCommandEvent & WXUNUSED(event))
|
|||||||
pD->Fit();
|
pD->Fit();
|
||||||
pD->SetSizeHints(pD->GetSize());
|
pD->SetSizeHints(pD->GetSize());
|
||||||
pD->CenterOnScreen();
|
pD->CenterOnScreen();
|
||||||
pD->Move(-1, 0);
|
// Avoid overlap with progress.
|
||||||
|
int x,y;
|
||||||
|
pD->GetPosition( &x, &y );
|
||||||
|
pD->Move(wxMax(0,x-300), 0);
|
||||||
pD->Show();
|
pD->Show();
|
||||||
|
// Give dialog a chance to actually show.
|
||||||
|
wxYield();
|
||||||
Hide();
|
Hide();
|
||||||
|
|
||||||
mBatchCommands.ReadChain(name);
|
mBatchCommands.ReadChain(name);
|
||||||
|
@ -132,6 +132,9 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.TieCheckBox(_("Auto-&fit track height"),
|
S.TieCheckBox(_("Auto-&fit track height"),
|
||||||
wxT("/GUI/TracksFitVerticallyZoomed"),
|
wxT("/GUI/TracksFitVerticallyZoomed"),
|
||||||
false);
|
false);
|
||||||
|
S.TieCheckBox(_("Sho&w audio track name as overlay"),
|
||||||
|
wxT("/GUI/ShowTrackNameInWaveform"),
|
||||||
|
false);
|
||||||
|
|
||||||
S.AddSpace(10);
|
S.AddSpace(10);
|
||||||
|
|
||||||
@ -157,10 +160,6 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
30);
|
30);
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
|
|
||||||
S.TieCheckBox(_("Sho&w audio track name as overlay"),
|
|
||||||
wxT("/GUI/ShowTrackNameInWaveform"),
|
|
||||||
false);
|
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
|
@ -1286,7 +1286,13 @@ bool ProgressDialog::Create(const wxString & title,
|
|||||||
}
|
}
|
||||||
Layout();
|
Layout();
|
||||||
|
|
||||||
Centre(wxCENTER_FRAME | wxBOTH);
|
// Center progress bar on Parent if it is nice and wide, otherwise Center on screen.
|
||||||
|
int parentWidth = -1, parentHeight=-1;
|
||||||
|
if( GetParent() ) GetParent()->GetSize( &parentWidth, &parentHeight );
|
||||||
|
if (parentWidth > 400)
|
||||||
|
CenterOnParent();
|
||||||
|
else
|
||||||
|
CenterOnScreen();
|
||||||
|
|
||||||
Reinit();
|
Reinit();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user