1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 15:39:27 +02:00

Update Fade-Ends Macro, and RelativeTo enums.

- FromEnd boolean parameter is now replaced by RelativeTo enum.
This commit is contained in:
James Crook 2018-03-17 14:54:53 +00:00
parent 51011fb38f
commit d7406b3b0f
2 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ void MacroCommands::RestoreMacro(const wxString & name)
} else if (name == GetCustomTranslation( FadeEnds ) ){
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"1\"") );
AddToMacro( wxT("FadeIn") );
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"1\" FromEnd=\"1\"") );
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"1\" RelativeTo=\"Project End\"") );
AddToMacro( wxT("FadeOut") );
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"0\"") );
}

View File

@ -46,12 +46,12 @@ explicitly code all three.
const int nRelativeTos =6;
static const wxString kRelativeTo[nRelativeTos] =
{
XO("ProjectStart"),
XO("Project Start"),
XO("Project"),
XO("ProjectEnd"),
XO("SelectionStart"),
XO("Project End"),
XO("Selection Start"),
XO("Selection"),
XO("SelectionEnd")
XO("Selection End")
};
bool SelectTimeCommand::DefineParams( ShuttleParams & S ){