1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Add Fade-Ends macro. (a new item in Tools menu)

This commit is contained in:
James Crook
2018-03-03 20:26:31 +00:00
parent c0dcba66dd
commit 6e40d6d969
2 changed files with 31 additions and 24 deletions

View File

@@ -43,7 +43,7 @@ class MacroCommands final {
// These commands do not depend on the command list.
static wxArrayString GetNames();
// A pair of user-visible name, and internal string identifier
// A triple of user-visible name, internal string identifier and type/help string.
using CommandName = std::tuple<wxString, wxString, wxString>;
using CommandNameVector = std::vector<CommandName>;
// Result is sorted by user-visible name
@@ -56,6 +56,7 @@ class MacroCommands final {
// These commands do depend on the command list.
void ResetMacro();
void RestoreMacro(const wxString & name);
bool ReadMacro(const wxString & macro);
bool WriteMacro(const wxString & macro);
bool AddMacro(const wxString & macro);
@@ -71,12 +72,8 @@ class MacroCommands final {
wxString GetMessage(){ return mMessage;};
void AddToMessage(const wxString & msgIn ){ mMessage += msgIn;};
void SetWavToMp3Macro();
bool IsFixed(const wxString & name);
void RestoreMacro(const wxString & name);
void Split(const wxString & str, wxString & command, wxString & param);
wxString Join(const wxString & command, const wxString & param);