1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 22:45:29 +01:00

Rename Chains to Macros.

Lots of renaming.
Did not rename the containing files (yet) since that will require makefile updates.
This commit is contained in:
James Crook
2018-03-03 19:08:23 +00:00
parent 8ab69ae5c3
commit c0dcba66dd
16 changed files with 367 additions and 367 deletions

View File

@@ -9,8 +9,8 @@
**********************************************************************/
#ifndef __AUDACITY_BATCH_PROCESS_DIALOG__
#define __AUDACITY_BATCH_PROCESS_DIALOG__
#ifndef __AUDACITY_MACROS_WINDOW__
#define __AUDACITY_MACROS_WINDOW__
#include <wx/defs.h>
#include <wx/string.h>
@@ -39,11 +39,11 @@ class wxButton;
class wxTextCtrl;
class ShuttleGui;
class BatchProcessDialog : public wxDialogWrapper {
class ApplyMacroDialog : public wxDialogWrapper {
public:
// constructors and destructors
BatchProcessDialog(wxWindow * parent, bool bInherited=false);
virtual ~BatchProcessDialog();
ApplyMacroDialog(wxWindow * parent, bool bInherited=false);
virtual ~ApplyMacroDialog();
public:
// Populate methods NOT virtual.
void Populate();
@@ -55,29 +55,29 @@ class BatchProcessDialog : public wxDialogWrapper {
virtual wxString GetHelpPageName() {return "Tools_Menu#chains_compact_dialog";};
void PopulateChains();
void ApplyChainToProject( int iChain, bool bHasGui=true );
void PopulateMacros();
void ApplyMacroToProject( int iMacro, bool bHasGui=true );
// These will be reused in the derived class...
wxListCtrl *mList;
wxListCtrl *mChains;
BatchCommands mBatchCommands; /// Provides list of available commands.
wxListCtrl *mMacros;
MacroCommands mMacroCommands; /// Provides list of available commands.
wxButton *mOK;
wxButton *mCancel;
wxTextCtrl *mResults;
bool mAbort;
wxString mActiveChain;
wxString mActiveMacro;
DECLARE_EVENT_TABLE()
};
class EditChainsDialog final : public BatchProcessDialog
class MacrosWindow final : public ApplyMacroDialog
{
public:
EditChainsDialog(wxWindow * parent, bool bExpanded=true);
~EditChainsDialog();
MacrosWindow(wxWindow * parent, bool bExpanded=true);
~MacrosWindow();
void UpdateDisplay( bool bExpanded );
private:
@@ -94,10 +94,10 @@ private:
bool ChangeOK();
void UpdateMenus();
void OnChainSelected(wxListEvent &event);
void OnMacroSelected(wxListEvent &event);
void OnListSelected(wxListEvent &event);
void OnChainsBeginEdit(wxListEvent &event);
void OnChainsEndEdit(wxListEvent &event);
void OnMacrosBeginEdit(wxListEvent &event);
void OnMacrosEndEdit(wxListEvent &event);
void OnAdd(wxCommandEvent &event);
void OnRemove(wxCommandEvent &event);
void OnRename(wxCommandEvent &event);
@@ -122,10 +122,10 @@ private:
void InsertCommandAt(int item);
bool SaveChanges();
// These are already provided by BatchProcessDialog
// These are already provided by ApplyMacroDialog
//wxListCtrl *mList; /// List of commands in current command chain.
//BatchCommands mBatchCommands; /// Provides list of available commands.
//wxListCtrl *mChains; /// List of chains.
//MacroCommands mMacroCommands; /// Provides list of available commands.
//wxListCtrl *mMacros; /// List of chains.
wxButton *mRemove;
wxButton *mRename;