mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-16 16:20:50 +02:00
Remove GTK workarounds (or the reason for them)
This commit is contained in:
parent
fdd725fc68
commit
dfcad8a926
@ -266,19 +266,10 @@ bool EffectBassTreble::InitPass2()
|
|||||||
void EffectBassTreble::PopulateOrExchange(ShuttleGui & S)
|
void EffectBassTreble::PopulateOrExchange(ShuttleGui & S)
|
||||||
{
|
{
|
||||||
S.StartVerticalLay(0);
|
S.StartVerticalLay(0);
|
||||||
{
|
|
||||||
S.StartStatic(wxT(""));
|
|
||||||
{
|
{
|
||||||
S.StartMultiColumn(3, wxEXPAND);
|
S.StartMultiColumn(3, wxEXPAND);
|
||||||
S.SetStretchyCol(2);
|
S.SetStretchyCol(2);
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK__
|
|
||||||
// BoxSizer is to make first mnemonic work, on Linux.
|
|
||||||
wxPanel* cPanel = new wxPanel(S.GetParent(), wxID_ANY);
|
|
||||||
wxBoxSizer* cSizer = new wxBoxSizer(wxVERTICAL);
|
|
||||||
cPanel->SetSizer(cSizer);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Bass control
|
// Bass control
|
||||||
FloatingPointValidator<double> vldBass(1, &dB_bass);
|
FloatingPointValidator<double> vldBass(1, &dB_bass);
|
||||||
vldBass.SetRange(MIN_Bass, MAX_Bass);
|
vldBass.SetRange(MIN_Bass, MAX_Bass);
|
||||||
@ -314,8 +305,6 @@ void EffectBassTreble::PopulateOrExchange(ShuttleGui & S)
|
|||||||
mLevelS->SetPageSize(30);
|
mLevelS->SetPageSize(30);
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
}
|
|
||||||
S.EndStatic();
|
|
||||||
|
|
||||||
// Normalize checkbox
|
// Normalize checkbox
|
||||||
S.StartHorizontalLay(wxLEFT, true);
|
S.StartHorizontalLay(wxLEFT, true);
|
||||||
|
@ -350,10 +350,7 @@ void EffectClickRemoval::PopulateOrExchange(ShuttleGui & S)
|
|||||||
mThreshS = S.Id(ID_Thresh).AddSlider(wxT(""), mThresholdLevel, MAX_Threshold, MIN_Threshold);
|
mThreshS = S.Id(ID_Thresh).AddSlider(wxT(""), mThresholdLevel, MAX_Threshold, MIN_Threshold);
|
||||||
mThreshS->SetName(_("Threshold"));
|
mThreshS->SetName(_("Threshold"));
|
||||||
mThreshS->SetValidator(wxGenericValidator(&mThresholdLevel));
|
mThreshS->SetValidator(wxGenericValidator(&mThresholdLevel));
|
||||||
#if defined(__WXGTK__)
|
mThreshS->SetMinSize(wxSize(150, -1));
|
||||||
// Force a minimum size since wxGTK allows it to go to zero
|
|
||||||
mThreshS->SetMinSize(wxSize(100, -1));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Click width
|
// Click width
|
||||||
IntegerValidator<int> vldWidth(&mClickWidth);
|
IntegerValidator<int> vldWidth(&mClickWidth);
|
||||||
@ -367,10 +364,7 @@ void EffectClickRemoval::PopulateOrExchange(ShuttleGui & S)
|
|||||||
mWidthS = S.Id(ID_Width).AddSlider(wxT(""), mClickWidth, MAX_Width, MIN_Width);
|
mWidthS = S.Id(ID_Width).AddSlider(wxT(""), mClickWidth, MAX_Width, MIN_Width);
|
||||||
mWidthS->SetName(_("Max Spike Width"));
|
mWidthS->SetName(_("Max Spike Width"));
|
||||||
mWidthS->SetValidator(wxGenericValidator(&mClickWidth));
|
mWidthS->SetValidator(wxGenericValidator(&mClickWidth));
|
||||||
#if defined(__WXGTK__)
|
mWidthS->SetMinSize(wxSize(150, -1));
|
||||||
// Force a minimum size since wxGTK allows it to go to zero
|
|
||||||
mWidthS->SetMinSize(wxSize(100, -1));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
|
|
||||||
|
@ -1691,13 +1691,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.AddVariableText(_(
|
S.AddVariableText(_(
|
||||||
"Select all of the audio you want filtered, choose how much noise you want\nfiltered out, and then click 'OK' to reduce noise.\n"));
|
"Select all of the audio you want filtered, choose how much noise you want\nfiltered out, and then click 'OK' to reduce noise.\n"));
|
||||||
|
|
||||||
#if defined(__WXGTK__)
|
|
||||||
// Put everything inside a panel to workaround a problem on Linux where the access key
|
|
||||||
// does not work if it is defined within static text on the first control.
|
|
||||||
S.SetStyle(wxTAB_TRAVERSAL);
|
|
||||||
S.StartPanel();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
S.StartMultiColumn(3, wxEXPAND);
|
S.StartMultiColumn(3, wxEXPAND);
|
||||||
S.SetStretchyCol(2);
|
S.SetStretchyCol(2);
|
||||||
{
|
{
|
||||||
@ -1733,10 +1726,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
|
|
||||||
#if defined(__WXGTK__)
|
|
||||||
S.EndPanel();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
@ -1744,13 +1733,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
#ifdef ADVANCED_SETTINGS
|
#ifdef ADVANCED_SETTINGS
|
||||||
S.StartStatic(_("Advanced Settings"));
|
S.StartStatic(_("Advanced Settings"));
|
||||||
{
|
{
|
||||||
#if defined(__WXGTK__)
|
|
||||||
// Put everything inside a panel to workaround a problem on Linux where the access key
|
|
||||||
// does not work if it is defined within static text on the first control.
|
|
||||||
S.SetStyle(wxTAB_TRAVERSAL);
|
|
||||||
S.StartPanel();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
S.StartMultiColumn(2);
|
S.StartMultiColumn(2);
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@ -1820,10 +1802,6 @@ void EffectNoiseReduction::Dialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndMultiColumn();
|
||||||
|
|
||||||
#if defined(__WXGTK__)
|
|
||||||
S.EndPanel();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user