Better resolution than r13716
The hairbrained "solution" I came up with in r13716 "worked" but it was simply unnecessary and this is what I should have just done to begin with. The previous "solution" actually caused some display issues in the menus.
This commit is contained in:
parent
0c51333407
commit
814ed57a68
|
@ -42,7 +42,7 @@ class EffectChangePitch : public EffectSoundTouch
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("ChangePitch"));
|
||||
return wxString(wxT("Change Pitch"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -40,7 +40,7 @@ class EffectChangeSpeed : public Effect
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("ChangeSpeed"));
|
||||
return wxString(wxT("Change Speed"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -42,7 +42,7 @@ class EffectChangeTempo : public EffectSoundTouch {
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("ChangeTempo"));
|
||||
return wxString(wxT("Change Tempo"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("ClickRemoval"));
|
||||
return wxString(wxT("Click Removal"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -48,7 +48,7 @@ class EffectDtmf : public Generator {
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("DTMFTone"));
|
||||
return wxString(wxT("DTMF Tones"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectDescription() {
|
||||
|
|
|
@ -175,30 +175,7 @@ wxString Effect::GetName()
|
|||
return mClient->GetName();
|
||||
}
|
||||
|
||||
// Break up identifier into words based on caps
|
||||
//
|
||||
// EffectManager::GetEffectIdentifier() CamelCases identifiers based on
|
||||
// blank delimited words. But not all legacy effects have blank delimted
|
||||
// words and were manually CamelCased. So use that to break up the ident
|
||||
// into words
|
||||
//
|
||||
// This is only temporary and will go away when the legacy effects
|
||||
// get converted.
|
||||
//
|
||||
wxString ident = GetEffectIdentifier();
|
||||
wxString name;
|
||||
|
||||
for (size_t i = 0, cnt = ident.Len(); i < cnt; i++)
|
||||
{
|
||||
wxChar c = ident.GetChar(i);
|
||||
if (wxIsupper(c) && i != 0)
|
||||
{
|
||||
name += wxT(' ');
|
||||
}
|
||||
name += c;
|
||||
}
|
||||
|
||||
return name;
|
||||
return GetEffectIdentifier();
|
||||
}
|
||||
|
||||
wxString Effect::GetVendor()
|
||||
|
|
|
@ -31,7 +31,7 @@ class EffectFadeIn: public EffectSimpleMono {
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("FadeIn"));
|
||||
return wxString(wxT("Fade In"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
@ -65,7 +65,7 @@ class EffectFadeOut:public EffectSimpleMono {
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("FadeOut"));
|
||||
return wxString(wxT("Fade Out"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -46,7 +46,7 @@ class EffectFindClipping:public Effect
|
|||
|
||||
virtual wxString GetEffectIdentifier()
|
||||
{
|
||||
return wxString(wxT("FindClipping"));
|
||||
return wxString(wxT("Find Clipping"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction()
|
||||
|
|
|
@ -432,7 +432,7 @@ std::set<wxString> EffectNoiseReduction::GetEffectCategories()
|
|||
|
||||
wxString EffectNoiseReduction::GetEffectIdentifier()
|
||||
{
|
||||
return wxString(wxT("NoiseReduction"));
|
||||
return wxString(wxT("Noise Reduction"));
|
||||
}
|
||||
|
||||
wxString EffectNoiseReduction::GetEffectAction()
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("NoiseRemoval"));
|
||||
return wxString(wxT("Noise Removal"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
|
||||
// Used internally, users will not see this. Do not translate.
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxT("StereoToMono");
|
||||
return wxT("Stereo To Mono");
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -40,7 +40,7 @@ class EffectTimeScale : public EffectSBSMS {
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("TimeScale"));
|
||||
return wxString(wxT("Time Scale"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
}
|
||||
|
||||
virtual wxString GetEffectIdentifier() {
|
||||
return wxString(wxT("TruncateSilence"));
|
||||
return wxString(wxT("Truncate Silence"));
|
||||
}
|
||||
|
||||
virtual wxString GetEffectAction() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user