mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 23:30:07 +02:00
Add new 'Select to Ends' default Macro
This commit is contained in:
parent
e6a9bd70a2
commit
b421a2b0ec
@ -107,6 +107,7 @@ MacroCommands::MacroCommands()
|
||||
|
||||
static const wxString MP3Conversion = XO("MP3 Conversion");
|
||||
static const wxString FadeEnds = XO("Fade Ends");
|
||||
static const wxString SelectToEnds = XO("Select to Ends");
|
||||
|
||||
|
||||
wxArrayString MacroCommands::GetNamesOfDefaultMacros()
|
||||
@ -114,6 +115,7 @@ wxArrayString MacroCommands::GetNamesOfDefaultMacros()
|
||||
wxArrayString defaults;
|
||||
defaults.Add( GetCustomTranslation( MP3Conversion ) );
|
||||
defaults.Add( GetCustomTranslation( FadeEnds ) );
|
||||
defaults.Add( GetCustomTranslation( SelectToEnds ) );
|
||||
return defaults;
|
||||
}
|
||||
|
||||
@ -131,7 +133,10 @@ void MacroCommands::RestoreMacro(const wxString & name)
|
||||
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"1\" RelativeTo=\"Project End\"") );
|
||||
AddToMacro( wxT("FadeOut") );
|
||||
AddToMacro( wxT("Select"), wxT("Start=\"0\" End=\"0\"") );
|
||||
}
|
||||
} else if (name == GetCustomTranslation( SelectToEnds ) ){
|
||||
AddToMacro( wxT("SelCursorEnd") );
|
||||
AddToMacro( wxT("SelStartCursor") );
|
||||
}
|
||||
}
|
||||
|
||||
wxString MacroCommands::GetCommand(int index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user