mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-12 23:55:50 +01:00
incremental layout updates based on Steve's mock-up
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
ChangePitch.cpp
|
ChangePitch.cpp
|
||||||
|
|
||||||
Vaughan Johnson, Dominic Mazzoni
|
Vaughan Johnson, Dominic Mazzoni, Steve Daulton
|
||||||
|
|
||||||
Change Pitch effect provides raising or lowering
|
Change Pitch effect provides raising or lowering
|
||||||
the pitch without changing the tempo.
|
the pitch without changing the tempo.
|
||||||
@@ -281,11 +281,11 @@ void ChangePitchDialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
S.SetBorder(5);
|
S.SetBorder(5);
|
||||||
|
|
||||||
|
/* i18n-hint: (noun) Musical pitch.*/
|
||||||
|
S.StartStatic(wxT("Pitch"));
|
||||||
|
{
|
||||||
S.StartMultiColumn(6, wxCENTER);
|
S.StartMultiColumn(6, wxCENTER);
|
||||||
{
|
{
|
||||||
/* i18n-hint: (noun) Musical pitch.*/
|
|
||||||
S.AddUnits(_("Pitch:"));
|
|
||||||
|
|
||||||
S.StartHorizontalLay(wxALIGN_CENTER_VERTICAL);
|
S.StartHorizontalLay(wxALIGN_CENTER_VERTICAL);
|
||||||
{
|
{
|
||||||
m_pChoice_FromPitch = S.Id(ID_CHOICE_FROMPITCH).AddChoice(_("from"), wxT(""), &pitch);
|
m_pChoice_FromPitch = S.Id(ID_CHOICE_FROMPITCH).AddChoice(_("from"), wxT(""), &pitch);
|
||||||
@@ -311,9 +311,14 @@ void ChangePitchDialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
m_pTextCtrl_SemitonesChange->SetValidator(numvld);
|
m_pTextCtrl_SemitonesChange->SetValidator(numvld);
|
||||||
}
|
}
|
||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
|
}
|
||||||
|
S.EndMultiColumn();
|
||||||
|
}
|
||||||
|
S.EndStatic();
|
||||||
|
|
||||||
S.AddPrompt(_("Frequency (Hz):"));
|
S.StartStatic(wxT("Frequency (Hz)"));
|
||||||
S.StartHorizontalLay(wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL, false);
|
{
|
||||||
|
S.StartHorizontalLay(wxCENTER, false);
|
||||||
{
|
{
|
||||||
m_pTextCtrl_FromFrequency = S.Id(ID_TEXT_FROMFREQUENCY)
|
m_pTextCtrl_FromFrequency = S.Id(ID_TEXT_FROMFREQUENCY)
|
||||||
.AddTextBox(_("from"), wxT(""), 12);
|
.AddTextBox(_("from"), wxT(""), 12);
|
||||||
@@ -327,17 +332,12 @@ void ChangePitchDialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
|
|
||||||
S.AddPrompt(_("Percent Change:"));
|
S.StartHorizontalLay(wxCENTER, false);
|
||||||
S.StartHorizontalLay(wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL, false);
|
|
||||||
{
|
{
|
||||||
m_pTextCtrl_PercentChange = S.Id(ID_TEXT_PERCENTCHANGE)
|
m_pTextCtrl_PercentChange = S.Id(ID_TEXT_PERCENTCHANGE).AddTextBox(wxT("Percent Change:"), wxT(""), 12);
|
||||||
.AddTextBox(wxT(""), wxT(""), 12);
|
|
||||||
m_pTextCtrl_PercentChange->SetName(_("Percent Change"));
|
|
||||||
m_pTextCtrl_PercentChange->SetValidator(numvld);
|
m_pTextCtrl_PercentChange->SetValidator(numvld);
|
||||||
}
|
}
|
||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
}
|
|
||||||
S.EndMultiColumn();
|
|
||||||
|
|
||||||
S.StartHorizontalLay(wxEXPAND);
|
S.StartHorizontalLay(wxEXPAND);
|
||||||
{
|
{
|
||||||
@@ -347,8 +347,8 @@ void ChangePitchDialog::PopulateOrExchange(ShuttleGui & S)
|
|||||||
m_pSlider_PercentChange->SetName(_("Percent Change"));
|
m_pSlider_PercentChange->SetName(_("Percent Change"));
|
||||||
}
|
}
|
||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
|
}
|
||||||
return;
|
S.EndStatic();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChangePitchDialog::TransferDataToWindow()
|
bool ChangePitchDialog::TransferDataToWindow()
|
||||||
|
|||||||
Reference in New Issue
Block a user