1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-03 15:43:50 +01: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 ) ){ } else if (name == GetCustomTranslation( FadeEnds ) ){
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"1\"") ); AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"1\"") );
AddToMacro( wxT("FadeIn") ); 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("FadeOut") );
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"0\"") ); AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"0\"") );
} }

View File

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