![]() |
Audacity 3.2.0
|
#include <BatchProcessDialog.h>
Public Member Functions | |
MacrosWindow (wxWindow *parent, AudacityProject &project, bool bExpanded=true) | |
Constructor. More... | |
~MacrosWindow () | |
void | UpdateDisplay (bool bExpanded) |
![]() | |
ApplyMacroDialog (wxWindow *parent, AudacityProject &project, bool bInherited=false) | |
virtual | ~ApplyMacroDialog () |
void | Populate () |
void | PopulateOrExchange (ShuttleGui &S) |
Defines the dialog and does data exchange with it. More... | |
virtual void | OnApplyToProject (wxCommandEvent &event) |
virtual void | OnApplyToFiles (wxCommandEvent &event) |
virtual void | OnCancel (wxCommandEvent &event) |
virtual void | OnHelp (wxCommandEvent &event) |
virtual ManualPageID | GetHelpPageName () |
void | PopulateMacros () |
void | ApplyMacroToProject (int iMacro, bool bHasGui=true) |
void | ApplyMacroToProject (const CommandID &MacroID, bool bHasGui=true) |
![]() | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
![]() | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Private Member Functions | |
TranslatableString | WindowTitle () const |
void | Populate () |
Creates the dialog and its contents. More... | |
void | PopulateOrExchange (ShuttleGui &S) |
Defines the dialog and does data exchange with it. More... | |
void | OnApplyToProject (wxCommandEvent &event) override |
void | OnApplyToFiles (wxCommandEvent &event) override |
void | OnCancel (wxCommandEvent &event) override |
virtual ManualPageID | GetHelpPageName () override |
void | PopulateList () |
This clears and updates the contents of mList, the commands for the current macro. More... | |
void | AddItem (const CommandID &command, wxString const ¶ms) |
Add one item into mList. More... | |
bool | ChangeOK () |
void | UpdateMenus () |
void | ShowActiveMacro () |
void | OnMacroSelected (wxListEvent &event) |
An item in the macros list has been selected. More... | |
void | OnListSelected (wxListEvent &event) |
An item in the macros list has been selected. More... | |
void | OnMacrosBeginEdit (wxListEvent &event) |
void | OnMacrosEndEdit (wxListEvent &event) |
void | OnAdd (wxCommandEvent &event) |
void | OnRemove (wxCommandEvent &event) |
void | OnRename (wxCommandEvent &event) |
void | OnRestore (wxCommandEvent &event) |
Reset a built in macro. More... | |
void | OnImport (wxCommandEvent &event) |
void | OnExport (wxCommandEvent &event) |
void | OnSave (wxCommandEvent &event) |
void | OnExpand (wxCommandEvent &event) |
void | OnShrink (wxCommandEvent &event) |
void | OnSize (wxSizeEvent &event) |
The window has been resized. More... | |
void | OnCommandActivated (wxListEvent &event) |
void | OnInsert (wxCommandEvent &event) |
void | OnEditCommandParams (wxCommandEvent &event) |
void | OnDelete (wxCommandEvent &event) |
void | OnUp (wxCommandEvent &event) |
void | OnDown (wxCommandEvent &event) |
void | OnOK (wxCommandEvent &event) |
Send changed values back to Prefs, and update Audacity. More... | |
void | OnKeyDown (wxKeyEvent &event) |
void | FitColumns () |
void | InsertCommandAt (int item) |
bool | SaveChanges () |
void | UpdatePrefs () override |
Private Attributes | |
AudacityProject & | mProject |
wxButton * | mRemove |
wxButton * | mRename |
wxButton * | mRestore |
wxButton * | mImport |
wxButton * | mExport |
wxButton * | mSave |
int | mSelectedCommand |
bool | mChanged |
Additional Inherited Members | |
![]() | |
static CommandID | MacroIdOfName (const wxString &MacroName) |
![]() | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
![]() | |
wxListCtrl * | mList |
wxListCtrl * | mMacros |
MacroCommands | mMacroCommands |
wxButton * | mResize |
Provides list of available commands. More... | |
wxButton * | mOK |
wxButton * | mCancel |
wxTextCtrl * | mResults |
bool | mAbort |
bool | mbExpanded |
wxString | mActiveMacro |
wxString | mMacroBeingRenamed |
![]() | |
virtual void | UpdateSelectedPrefs (int id) |
![]() | |
AudacityProject & | mProject |
const MacroCommandsCatalog | mCatalog |
Definition at line 72 of file BatchProcessDialog.h.
MacrosWindow::MacrosWindow | ( | wxWindow * | parent, |
AudacityProject & | project, | ||
bool | bExpanded = true |
||
) |
Constructor.
Definition at line 564 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, mChanged, mSelectedCommand, ApplyMacroDialog::Populate(), Populate(), wxDialogWrapper::SetLabel(), wxDialogWrapper::SetName(), wxDialogWrapper::SetTitle(), and WindowTitle().
MacrosWindow::~MacrosWindow | ( | ) |
Definition at line 584 of file BatchProcessDialog.cpp.
|
private |
Add one item into mList.
Definition at line 754 of file BatchProcessDialog.cpp.
References ActionColumn, MacroCommandsCatalog::ByCommandId(), MacroCommandsCatalog::end(), entry, ApplyMacroDialog::mCatalog, ApplyMacroDialog::mList, ParamsColumn, and wxT().
Referenced by PopulateList().
|
private |
Definition at line 828 of file BatchProcessDialog.cpp.
References AudacityMessageBox(), id, ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, title, MacroCommands::WriteMacro(), and XO().
Referenced by OnAdd(), OnCancel(), OnImport(), OnMacroSelected(), and OnShrink().
|
private |
Definition at line 906 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mList.
Referenced by OnListSelected(), OnSize(), and Populate().
|
inlineoverrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 90 of file BatchProcessDialog.h.
References ApplyMacroDialog::mbExpanded.
|
private |
Definition at line 1173 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), Identifier::empty(), mChanged, ApplyMacroDialog::mMacroCommands, mProject, mSave, MacroCommandDialog::mSelectedCommand, mSelectedCommand, MacroCommandDialog::mSelectedParameters, and PopulateList().
Referenced by OnEditCommandParams(), and OnInsert().
|
private |
Definition at line 987 of file BatchProcessDialog.cpp.
References MacroCommands::AddMacro(), AudacityMessageBox(), ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroCommands, name, ApplyMacroDialog::PopulateMacros(), UpdateMenus(), WindowTitle(), and XO().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1313 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::OnApplyToFiles(), and SaveChanges().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1306 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::OnApplyToProject(), and SaveChanges().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1347 of file BatchProcessDialog.cpp.
References ChangeOK(), mChanged, and ShowActiveMacro().
|
private |
An item in the list has been selected. Bring up a dialog to allow its parameters to be edited.
Definition at line 1155 of file BatchProcessDialog.cpp.
References OnEditCommandParams().
|
private |
Definition at line 1241 of file BatchProcessDialog.cpp.
References MacroCommands::DeleteFromMacro(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Definition at line 1285 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Definition at line 1201 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), InsertCommandAt(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, params, PopulateList(), and MacroCommands::PromptForParamsFor().
Referenced by OnCommandActivated().
|
private |
Definition at line 818 of file BatchProcessDialog.cpp.
References UpdateDisplay().
|
private |
Definition at line 1135 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, and MacroCommands::WriteMacro().
|
private |
Definition at line 1108 of file BatchProcessDialog.cpp.
References ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, name, ApplyMacroDialog::PopulateMacros(), MacroCommands::ReadMacro(), and UpdateMenus().
|
private |
Definition at line 1162 of file BatchProcessDialog.cpp.
References InsertCommandAt(), and ApplyMacroDialog::mList.
|
private |
Definition at line 1363 of file BatchProcessDialog.cpp.
References wxT().
|
private |
An item in the macros list has been selected.
Definition at line 891 of file BatchProcessDialog.cpp.
References FitColumns().
|
private |
Definition at line 950 of file BatchProcessDialog.cpp.
References MacroCommands::IsFixed(), ApplyMacroDialog::mMacroBeingRenamed, ApplyMacroDialog::mMacroCommands, and ApplyMacroDialog::mMacros.
|
private |
An item in the macros list has been selected.
Definition at line 857 of file BatchProcessDialog.cpp.
References ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacros, and ShowActiveMacro().
|
private |
Definition at line 965 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroBeingRenamed, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::PopulateMacros(), MacroCommands::RenameMacro(), and UpdateMenus().
|
private |
Send changed values back to Prefs, and update Audacity.
Definition at line 1338 of file BatchProcessDialog.cpp.
References SaveChanges().
|
private |
Definition at line 1042 of file BatchProcessDialog.cpp.
References MacroCommands::DeleteMacro(), ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, mSave, name, ApplyMacroDialog::PopulateMacros(), UpdateMenus(), Verbatim(), and XO().
|
private |
Definition at line 1083 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mMacros, and UpdateMenus().
|
private |
Reset a built in macro.
Definition at line 1097 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, PopulateList(), and MacroCommands::RestoreMacro().
|
private |
Definition at line 1147 of file BatchProcessDialog.cpp.
References SaveChanges().
|
private |
Definition at line 821 of file BatchProcessDialog.cpp.
References ChangeOK(), and UpdateDisplay().
|
private |
The window has been resized.
Definition at line 897 of file BatchProcessDialog.cpp.
References FitColumns(), and ApplyMacroDialog::mbExpanded.
|
private |
Definition at line 1263 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Creates the dialog and its contents.
Definition at line 589 of file BatchProcessDialog.cpp.
References eIsCreating, FitColumns(), gPrefs, ApplyMacroDialog::mActiveMacro, min(), ApplyMacroDialog::mMacros, PopulateList(), ApplyMacroDialog::PopulateMacros(), PopulateOrExchange(), S, and wxT().
Referenced by MacrosWindow(), and UpdateDisplay().
|
private |
This clears and updates the contents of mList, the commands for the current macro.
Definition at line 721 of file BatchProcessDialog.cpp.
References _, AddItem(), MacroCommands::GetCommand(), MacroCommands::GetCount(), MacroCommands::GetParams(), ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSelectedCommand, and wxT().
Referenced by InsertCommandAt(), OnDelete(), OnDown(), OnEditCommandParams(), OnRestore(), OnUp(), Populate(), and ShowActiveMacro().
|
private |
Defines the dialog and does data exchange with it.
Definition at line 623 of file BatchProcessDialog.cpp.
References AddButtonID, ApplyToFilesID, ApplyToProjectID, CommandsListID, DeleteButtonID, DownButtonID, eCloseButton, EditButtonID, eHelpButton, ExportButtonID, ImportButtonID, InsertButtonID, MacrosListID, mChanged, mExport, mImport, ApplyMacroDialog::mList, ApplyMacroDialog::mMacros, mRemove, mRename, ApplyMacroDialog::mResize, mRestore, mSave, RemoveButtonID, RenameButtonID, RestoreButtonID, S, safenew, SaveButtonID, ShrinkID, UpButtonID, XO(), and XXO().
Referenced by Populate().
|
private |
Definition at line 1320 of file BatchProcessDialog.cpp.
References FileConfig::Flush(), gPrefs, ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, MacroCommands::WriteMacro(), and wxT().
Referenced by OnApplyToFiles(), OnApplyToProject(), OnOK(), OnSave(), and UpdateDisplay().
|
private |
Definition at line 870 of file BatchProcessDialog.cpp.
References MacroCommands::IsFixed(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mbExpanded, ApplyMacroDialog::mMacroCommands, mRemove, mRename, mRestore, PopulateList(), and MacroCommands::ReadMacro().
Referenced by OnCancel(), and OnMacroSelected().
void MacrosWindow::UpdateDisplay | ( | bool | bExpanded | ) |
Definition at line 778 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, mChanged, ApplyMacroDialog::mResize, mSave, mSelectedCommand, ApplyMacroDialog::Populate(), Populate(), SaveChanges(), wxDialogWrapper::SetLabel(), wxDialogWrapper::SetName(), wxDialogWrapper::SetTitle(), and WindowTitle().
Referenced by anonymous_namespace{BatchProcessDialog.cpp}::OnApplyMacrosPalette(), OnExpand(), anonymous_namespace{BatchProcessDialog.cpp}::OnManageMacros(), OnShrink(), and UpdatePrefs().
|
private |
Definition at line 771 of file BatchProcessDialog.cpp.
References MenuManager::Get(), mProject, and MenuCreator::RebuildMenuBar().
Referenced by OnAdd(), OnImport(), OnMacrosEndEdit(), OnRemove(), and OnRename().
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 1378 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, and UpdateDisplay().
|
private |
Definition at line 1372 of file BatchProcessDialog.cpp.
References MacrosPaletteTitle, ManageMacrosTitle, and ApplyMacroDialog::mbExpanded.
Referenced by MacrosWindow(), OnAdd(), and UpdateDisplay().
|
private |
Definition at line 144 of file BatchProcessDialog.h.
Referenced by ChangeOK(), InsertCommandAt(), MacrosWindow(), OnCancel(), OnDelete(), OnDown(), OnEditCommandParams(), OnRemove(), OnRestore(), OnUp(), PopulateOrExchange(), SaveChanges(), and UpdateDisplay().
|
private |
Definition at line 140 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 139 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 134 of file BatchProcessDialog.h.
Referenced by InsertCommandAt(), and UpdateMenus().
|
private |
Definition at line 136 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), and ShowActiveMacro().
|
private |
Definition at line 137 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), and ShowActiveMacro().
|
private |
Definition at line 138 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), and ShowActiveMacro().
|
private |
Definition at line 141 of file BatchProcessDialog.h.
Referenced by ChangeOK(), InsertCommandAt(), OnDelete(), OnDown(), OnEditCommandParams(), OnRemove(), OnRestore(), OnUp(), PopulateOrExchange(), SaveChanges(), and UpdateDisplay().
|
private |
Definition at line 143 of file BatchProcessDialog.h.
Referenced by InsertCommandAt(), MacrosWindow(), OnDelete(), OnDown(), OnEditCommandParams(), OnUp(), PopulateList(), and UpdateDisplay().